!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(p,e){function t(e,t){return t.toUpperCase()}var n=[],u=n.slice,g=n.concat,a=n.push,o=n.indexOf,i={},r=i.toString,m=i.hasOwnProperty,v={},y=p.document,s="2.1.4",k=function(e,t){return new k.fn.init(e,t)},l=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,c=/^-ms-/,h=/-([\da-z])/gi;function d(e){var t="length"in e&&e.length,n=k.type(e);return"function"!==n&&!k.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&0>10|55296,1023&i|56320)}function i(){v()}var e,p,_,r,o,g,d,m,w,c,u,v,x,s,y,b,a,f,k,T="sizzle"+1*new Date,C=n.document,S=0,E=0,l=re(),A=re(),D=re(),P=function(e,t){return e===t&&(u=!0),0},I={}.hasOwnProperty,t=[],j=t.pop,M=t.push,L=t.push,N=t.slice,O=function(e,t){for(var n=0,i=e.length;n+~]|"+H+")"+H+"*"),X=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),V=new RegExp(q),Q=new RegExp("^"+R+"$"),K={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z.replace("w","w*")+")"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,ee=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,te=/[+~]/,ne=/'|\\/g,ie=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig");try{L.apply(t=N.call(C.childNodes),C.childNodes),t[C.childNodes.length].nodeType}catch(e){L={apply:t.length?function(e,t){M.apply(e,N.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,n,i){var o,r,s,a,l,c,u,h,d,f;if((t?t.ownerDocument||t:C)!==x&&v(t),n=n||[],a=(t=t||x).nodeType,"string"!=typeof e||!e||1!==a&&9!==a&&11!==a)return n;if(!i&&y){if(11!==a&&(o=ee.exec(e)))if(s=o[1]){if(9===a){if(!(r=t.getElementById(s))||!r.parentNode)return n;if(r.id===s)return n.push(r),n}else if(t.ownerDocument&&(r=t.ownerDocument.getElementById(s))&&k(t,r)&&r.id===s)return n.push(r),n}else{if(o[2])return L.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&p.getElementsByClassName)return L.apply(n,t.getElementsByClassName(s)),n}if(p.qsa&&(!b||!b.test(e))){if(h=u=T,d=t,f=1!==a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(c=g(e),(u=t.getAttribute("id"))?h=u.replace(ne,"\\$&"):t.setAttribute("id",h),h="[id='"+h+"'] ",l=c.length;l--;)c[l]=h+ge(c[l]);d=te.test(e)&&fe(t.parentNode)||t,f=c.join(",")}if(f)try{return L.apply(n,d.querySelectorAll(f)),n}catch(e){}finally{u||t.removeAttribute("id")}}}return m(e.replace(B,"$1"),t,n,i)}function re(){var i=[];return function e(t,n){return i.push(t+" ")>_.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function se(e){return e[T]=!0,e}function ae(e){var t=x.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),i=e.length;i--;)_.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function de(s){return se(function(r){return r=+r,se(function(e,t){for(var n,i=s([],e.length,r),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},v=oe.setDocument=function(e){var t,n,l=e?e.ownerDocument||e:C;return l!==x&&9===l.nodeType&&l.documentElement?(s=(x=l).documentElement,(n=l.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),y=!o(l),p.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ae(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=J.test(l.getElementsByClassName),p.getById=ae(function(e){return s.appendChild(e).id=T,!l.getElementsByName||!l.getElementsByName(T).length}),p.getById?(_.find.ID=function(e,t){if(void 0!==t.getElementById&&y){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},_.filter.ID=function(e){var t=e.replace(ie,h);return function(e){return e.getAttribute("id")===t}}):(delete _.find.ID,_.filter.ID=function(e){var n=e.replace(ie,h);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),_.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},_.find.CLASS=p.getElementsByClassName&&function(e,t){return y?t.getElementsByClassName(e):void 0},a=[],b=[],(p.qsa=J.test(l.querySelectorAll))&&(ae(function(e){s.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||b.push("\\["+H+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+T+"-]").length||b.push("~="),e.querySelectorAll(":checked").length||b.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||b.push(".#.+[+~]")}),ae(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&b.push("name"+H+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||b.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),b.push(",.*:")})),(p.matchesSelector=J.test(f=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ae(function(e){p.disconnectedMatch=f.call(e,"div"),f.call(e,"[s!='']:x"),a.push("!=",q)}),b=b.length&&new RegExp(b.join("|")),a=a.length&&new RegExp(a.join("|")),t=J.test(s.compareDocumentPosition),k=t||J.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=t?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)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===C&&k(C,e)?-1:t===l||t.ownerDocument===C&&k(C,t)?1:c?O(c,e)-O(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e===l?-1:t===l?1:o?-1:r?1:c?O(c,e)-O(c,t):0;if(o===r)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ce(s[i],a[i]):s[i]===C?-1:a[i]===C?1:0},l):x},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==x&&v(e),t=t.replace(X,"='$1']"),!(!p.matchesSelector||!y||a&&a.test(t)||b&&b.test(t)))try{var n=f.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,h),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,h),"~="===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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=g(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(ie,h).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=l[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&l(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,o){return function(e){var t=oe.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===o:"!="===i?t!==o:"^="===i?o&&0===t.indexOf(o):"*="===i?o&&-1(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(e,n,i){if(k.isFunction(n))return k.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return k.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(w.test(n))return k.filter(n,e,i);n=k.filter(n,e)}return k.grep(e,function(e){return 0<=o.call(n,e)!==i})}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n=this.length,i=[],o=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(k.fn.init=function(e,t){var n,i;if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):k.isFunction(e)?void 0!==T.ready?T.ready(e):e(k):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),k.makeArray(e,this));if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:C.exec(e))||!n[1]&&t)return!t||t.jquery?(t||T).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),_.test(n[1])&&k.isPlainObject(t))for(n in t)k.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=y.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=y,this.selector=e,this}).prototype=k.fn,T=k(y);var S=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.extend({dir:function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(n))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;ex",v.noCloneChecked=!!$.cloneNode(!0).lastChild.defaultValue;var U="undefined";v.focusinBubbles="onfocusin"in p;var X=/^key/,V=/^(?:mouse|pointer|contextmenu)|click/,Q=/^(?:focusinfocus|focusoutblur)$/,K=/^([^.]*)(?:\.(.+)|)$/;function G(){return!0}function Z(){return!1}function J(){try{return y.activeElement}catch(e){}}k.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,c,u,h,d,f,p,g,m=N.get(t);if(m)for(n.handler&&(n=(r=n).handler,o=r.selector),n.guid||(n.guid=k.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return typeof k!=U&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(P)||[""]).length;c--;)f=g=(a=K.exec(e[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=k.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=k.event.special[f]||{},u=k.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:p.join(".")},r),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s,!1)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),k.event.global[f]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,c,u,h,d,f,p,g,m=N.hasData(e)&&N.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(P)||[""]).length;c--;)if(f=g=(a=K.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=k.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=d.length;r--;)u=d[r],!o&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||k.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)k.event.remove(e,f+t[c],n,i,!0);k.isEmptyObject(l)&&(delete m.handle,N.remove(e,"events"))}},trigger:function(e,t,n,i){var o,r,s,a,l,c,u,h=[n||y],d=m.call(e,"type")?e.type:e,f=m.call(e,"namespace")?e.namespace.split("."):[];if(r=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Q.test(d+k.event.triggered)&&(0<=d.indexOf(".")&&(d=(f=d.split(".")).shift(),f.sort()),l=d.indexOf(":")<0&&"on"+d,(e=e[k.expando]?e:new k.Event(d,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),u=k.event.special[d]||{},i||!u.trigger||!1!==u.trigger.apply(n,t))){if(!i&&!u.noBubble&&!k.isWindow(n)){for(a=u.delegateType||d,Q.test(a+d)||(r=r.parentNode);r;r=r.parentNode)h.push(r),s=r;s===(n.ownerDocument||y)&&h.push(s.defaultView||s.parentWindow||p)}for(o=0;(r=h[o++])&&!e.isPropagationStopped();)e.type=1]*)\/>/gi,te=/<([\w:]+)/,ne=/<|?\w+;/,ie=/<(?:script|style|link)/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,re=/^$|\/(?:java|ecma)script/i,se=/^true\/(.*)/,ae=/^\s*\s*$/g,le={option:[1,""," "],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ce(e,t){return k.nodeName(e,"table")&&k.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function he(e){var t=se.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function de(e,t){for(var n=0,i=e.length;n$2>")+a[2],c=a[0];c--;)r=r.lastChild;k.merge(h,r.childNodes),(r=u.firstChild).textContent=""}else h.push(t.createTextNode(o));for(u.textContent="",d=0;o=h[d++];)if((!i||-1===k.inArray(o,i))&&(l=k.contains(o.ownerDocument,o),r=pe(u.appendChild(o),"script"),l&&de(r),n))for(c=0;o=r[c++];)re.test(o.type||"")&&n.push(o);return u},cleanData:function(e){for(var t,n,i,o,r=k.event.special,s=0;void 0!==(n=e[s]);s++){if(k.acceptData(n)&&((o=n[N.expando])&&(t=N.cache[o]))){if(t.events)for(i in t.events)r[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);N.cache[o]&&delete N.cache[o]}delete O.cache[n[O.expando]]}}}),k.fn.extend({text:function(e){return M(this,function(e){return void 0===e?k.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 this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ce(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ce(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?k.filter(e,this):this,o=0;null!=(n=i[o]);o++)t||1!==n.nodeType||k.cleanData(pe(n)),n.parentNode&&(t&&k.contains(n.ownerDocument,n)&&de(pe(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return M(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)&&!le[(te.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ee,"<$1>$2>");try{for(;n ")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=ve(e,t),ge.detach()),me[e]=n),n}var be=/^margin/,_e=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),we=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):p.getComputedStyle(e,null)};function xe(e,t,n){var i,o,r,s,a=e.style;return(n=n||we(e))&&(s=n.getPropertyValue(t)||n[t]),n&&(""!==s||k.contains(e.ownerDocument,e)||(s=k.style(e,t)),_e.test(s)&&be.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function ke(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var t,n,i=y.documentElement,o=y.createElement("div"),r=y.createElement("div");if(r.style){function e(){r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r.innerHTML="",i.appendChild(o);var e=p.getComputedStyle(r,null);t="1%"!==e.top,n="4px"===e.width,i.removeChild(o)}r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===r.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(r),p.getComputedStyle&&k.extend(v,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==n&&e(),n},reliableMarginRight:function(){var e,t=r.appendChild(y.createElement("div"));return t.style.cssText=r.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",r.style.width="1px",i.appendChild(o),e=!parseFloat(p.getComputedStyle(t,null).marginRight),i.removeChild(o),r.removeChild(t),e}})}}(),k.swap=function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in o=n.apply(e,i||[]),t)e.style[r]=s[r];return o};var Te=/^(none|table(?!-c[ea]).+)/,Ce=new RegExp("^("+W+")(.*)$","i"),Se=new RegExp("^([+-])=("+W+")","i"),Ee={position:"absolute",visibility:"hidden",display:"block"},Ae={letterSpacing:"0",fontWeight:"400"},De=["Webkit","O","Moz","ms"];function Pe(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,o=De.length;o--;)if((t=De[o]+n)in e)return t;return i}function Ie(e,t,n){var i=Ce.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function je(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=k.css(e,n+B[r],!0,o)),i?("content"===n&&(s-=k.css(e,"padding"+B[r],!0,o)),"margin"!==n&&(s-=k.css(e,"border"+B[r]+"Width",!0,o))):(s+=k.css(e,"padding"+B[r],!0,o),"padding"!==n&&(s+=k.css(e,"border"+B[r]+"Width",!0,o)));return s}function Me(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=we(e),s="border-box"===k.css(e,"boxSizing",!1,r);if(o<=0||null==o){if(((o=xe(e,t,r))<0||null==o)&&(o=e.style[t]),_e.test(o))return o;i=s&&(v.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+je(e,t,n||(s?"border":"content"),i,r)+"px"}function Le(e,t){for(var n,i,o,r=[],s=0,a=e.length;s").prop({async:!0,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)}),y.head.appendChild(i[0])},abort:function(){o&&o()}}});var Et=[],At=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Et.pop()||k.expando+"_"+tt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,r,s=!1!==e.jsonp&&(At.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=k.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(At,"$1"+i):!1!==e.jsonp&&(e.url+=(nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return r||k.error(i+" was not called"),r[0]},e.dataTypes[0]="json",o=p[i],p[i]=function(){r=arguments},n.always(function(){p[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Et.push(i)),r&&k.isFunction(o)&&o(r[0]),r=o=void 0}),"script"):void 0}),k.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||y;var i=_.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=k.buildFragment([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes))};var Dt=k.fn.load;k.fn.load=function(e,t,n){if("string"!=typeof e&&Dt)return Dt.apply(this,arguments);var i,o,r,s=this,a=e.indexOf(" ");return 0<=a&&(i=k.trim(e.slice(a)),e=e.slice(0,a)),k.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0").append(k.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){s.each(n,r||[e.responseText,t,e])}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.filters.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length};var Pt=p.document.documentElement;function It(e){return k.isWindow(e)?e:9===e.nodeType&&e.defaultView}k.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,c=k.css(e,"position"),u=k(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=k.css(e,"top"),l=k.css(e,"left"),o=("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(s=(i=u.position()).top,i.left):(s=parseFloat(r)||0,parseFloat(l)||0),k.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+o),"using"in t?t.using.call(e,h):u.css(h)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,i=this[0],o={top:0,left:0},r=i&&i.ownerDocument;return r?(e=r.documentElement,k.contains(e,i)?(typeof i.getBoundingClientRect!=U&&(o=i.getBoundingClientRect()),n=It(r),{top:o.top+n.pageYOffset-e.clientTop,left:o.left+n.pageXOffset-e.clientLeft}):o):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===k.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),k.nodeName(e[0],"html")||(i=e.offset()),i.top+=k.css(e[0],"borderTopWidth",!0),i.left+=k.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-k.css(n,"marginTop",!0),left:t.left-i.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Pt;e&&!k.nodeName(e,"html")&&"static"===k.css(e,"position");)e=e.offsetParent;return e||Pt})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;k.fn[t]=function(e){return M(this,function(e,t,n){var i=It(e);return void 0===n?i?i[o]:e[t]:void(i?i.scrollTo(r?p.pageXOffset:n,r?n:p.pageYOffset):e[t]=n)},t,e,arguments.length,null)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ke(v.pixelPosition,function(e,t){return t?(t=xe(e,n),_e.test(t)?k(e).position()[n]+"px":t):void 0})}),k.each({Height:"height",Width:"width"},function(r,s){k.each({padding:"inner"+r,content:s,"":"outer"+r},function(i,e){k.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var i;return k.isWindow(e)?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?k.css(e,t,o):k.style(e,t,n,o)},s,n?e:void 0,n,null)}})}),k.fn.size=function(){return this.length},k.fn.andSelf=k.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var jt=p.jQuery,Mt=p.$;return k.noConflict=function(e){return p.$===k&&(p.$=Mt),e&&p.jQuery===k&&(p.jQuery=jt),k},typeof e==U&&(p.jQuery=p.$=k),k}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function r(e){return e&&"[object Function]"==={}.toString.call(e)}function v(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function h(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function f(e){if(!e||-1!==["HTML","BODY","#document"].indexOf(e.nodeName))return window.document.body;var t=v(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll)/.test(n+o+i)?e:f(h(e))}function y(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===v(t,"position")?y(t):t:window.document.documentElement}function l(e){return null===e.parentNode?e:l(e.parentNode)}function d(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return window.document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s=r.commonAncestorContainer;if(e!==s&&t!==s||i.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||y(e.firstElementChild)===e)}(s)?s:y(s);var a=l(e);return a.host?d(a.host,t):d(e,l(t).host)}function p(e,t){var n="top"===(1=i.clientWidth&&n>=i.clientHeight}),h=0o[e]&&!i.escapeWithReference&&(n=j(r[t],o[e]-("right"===e?r.width:r.height))),z({},t,n)}};return n.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";r=Y({},r,s[t](e))}),e.offsets.popper=r,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=M,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]r(i[a])&&(e.offsets.popper[l]=r(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!P(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,r=o.popper,s=o.reference,a=-1!==["left","right"].indexOf(i),l=a?"height":"width",c=a?"Top":"Left",u=c.toLowerCase(),h=a?"left":"top",d=a?"bottom":"right",f=k(n)[l];s[d]-fr[d]&&(e.offsets.popper[u]+=s[u]+f-r[d]);var p=s[u]+s[l]/2-f/2,g=v(e.instance.popper,"margin"+c).replace("px",""),m=p-b(e.offsets.popper)[u]-g;return m=L(j(r[l]-f,m),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[u]=Math.round(m),e.offsets.arrow[h]="",e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(f,p){if(e(f.instance.modifiers,"inner"))return f;if(f.flipped&&f.placement===f.originalPlacement)return f;var g=x(f.instance.popper,f.instance.reference,p.padding,p.boundariesElement),m=f.placement.split("-")[0],v=T(m),y=f.placement.split("-")[1]||"",b=[];switch(p.behavior){case V:b=[m,v];break;case Q:b=o(m);break;case K:b=o(m,!0);break;default:b=p.behavior}return b.forEach(function(e,t){if(m!==e||b.length===t+1)return f;m=f.placement.split("-")[0],v=T(m);var n=f.offsets.popper,i=f.offsets.reference,o=M,r="left"===m&&o(n.right)>o(i.left)||"right"===m&&o(n.left)o(i.top)||"bottom"===m&&o(n.top)o(g.right),l=o(n.top)o(g.bottom),u="left"===m&&s||"right"===m&&a||"top"===m&&l||"bottom"===m&&c,h=-1!==["top","bottom"].indexOf(m),d=!!p.flipVariations&&(h&&"start"===y&&s||h&&"end"===y&&a||!h&&"start"===y&&l||!h&&"end"===y&&c);(r||u||d)&&(f.flipped=!0,(r||u)&&(m=b[t+1]),d&&(y=function(e){return"end"===e?"start":"start"===e?"end":e}(y)),f.placement=m+(y?"-"+y:""),f.offsets.popper=Y({},f.offsets.popper,C(f.instance.popper,f.offsets.reference,f.placement)),f=E(f.instance.modifiers,f,"flip"))}),f},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),e.placement=T(t),e.offsets.popper=b(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!P(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=S(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightthis._items.length-1||e<0))if(this._isSliding)p(this._element).one(z.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=ndocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},ke._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},ke._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},et="show",tt={HIDE:"hide"+Ue,HIDDEN:"hidden"+Ue,SHOW:"show"+Ue,SHOWN:"shown"+Ue,INSERTED:"inserted"+Ue,CLICK:"click"+Ue,FOCUSIN:"focusin"+Ue,FOCUSOUT:"focusout"+Ue,MOUSEENTER:"mouseenter"+Ue,MOUSELEAVE:"mouseleave"+Ue},nt="fade",it="show",ot="hover",rt="focus",st=((We=at.prototype).enable=function(){this._isEnabled=!0},We.disable=function(){this._isEnabled=!1},We.toggleEnabled=function(){this._isEnabled=!this._isEnabled},We.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(it))return void this._leave(null,this);this._enter(null,this)}},We.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&p(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},We.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=g.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=g.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&p(o).addClass(nt);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(o).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(o).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new h(this.element,o,this._getPopperConfig(a)),p(o).addClass(it),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(p(this.tip).hasClass(nt)){var u=g.getTransitionDurationFromElement(this.tip);p(this.tip).one(g.TRANSITION_END,c).emulateTransitionEnd(u)}else c()}},We.hide=function(e){function t(){n._hoverState!==et&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),p(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,i=this.getTipElement(),o=p.Event(this.constructor.Event.HIDE);if(p(this.element).trigger(o),!o.isDefaultPrevented()){if(p(i).removeClass(it),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger.click=!1,this._activeTrigger[rt]=!1,this._activeTrigger[ot]=!1,p(this.tip).hasClass(nt)){var r=g.getTransitionDurationFromElement(i);p(i).one(g.TRANSITION_END,t).emulateTransitionEnd(r)}else t();this._hoverState=""}},We.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},We.isWithContent=function(){return Boolean(this.getTitle())},We.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Ve+"-"+e)},We.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},We.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(".tooltip-inner")),this.getTitle()),p(e).removeClass(nt+" "+it)},We.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=qe(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},We.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},We._getPopperConfig=function(e){var t=this;return s({},{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)},We._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},We._getContainer=function(){return!1===this.config.container?document.body:g.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},We._getAttachment=function(e){return Ze[e.toUpperCase()]},We._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if("manual"!==e){var t=e===ot?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===ot?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}}),this._hideModalHandler=function(){i.element&&i.hide()},p(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},We._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",""))},We._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?rt:ot]=!0),p(t.getTipElement()).hasClass(it)||t._hoverState===et?t._hoverState=et:(clearTimeout(t._timeout),t._hoverState=et,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===et&&t.show()},t.config.delay.show):t.show())},We._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?rt:ot]=!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())},We._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},We._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==Ke.indexOf(e)&&delete t[e]}),"number"==typeof(e=s({},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()),g.typeCheckConfig(Be,e,this.constructor.DefaultType),e.sanitize&&(e.template=qe(e.template,e.whiteList,e.sanitizeFn)),e},We._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},We._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Qe);null!==t&&t.length&&e.removeClass(t.join(""))},We._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},We._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(nt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},at._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(Ye),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new at(this,t),p(this).data(Ye,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},r(at,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Je}},{key:"NAME",get:function(){return Be}},{key:"DATA_KEY",get:function(){return Ye}},{key:"Event",get:function(){return tt}},{key:"EVENT_KEY",get:function(){return Ue}},{key:"DefaultType",get:function(){return Ge}}]),at);function at(e,t){if(void 0===h)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}p.fn[Be]=st._jQueryInterface,p.fn[Be].Constructor=st,p.fn[Be].noConflict=function(){return p.fn[Be]=Xe,st._jQueryInterface};var lt="popover",ct="bs.popover",ut="."+ct,ht=p.fn[lt],dt="bs-popover",ft=new RegExp("(^|\\s)"+dt+"\\S+","g"),pt=s({},st.Default,{placement:"right",trigger:"click",content:"",template:''}),gt=s({},st.DefaultType,{content:"(string|element|function)"}),mt={HIDE:"hide"+ut,HIDDEN:"hidden"+ut,SHOW:"show"+ut,SHOWN:"shown"+ut,INSERTED:"inserted"+ut,CLICK:"click"+ut,FOCUSIN:"focusin"+ut,FOCUSOUT:"focusout"+ut,MOUSEENTER:"mouseenter"+ut,MOUSELEAVE:"mouseleave"+ut},vt=function(e){function i(){return e.apply(this,arguments)||this}var t,n;n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(e){p(this.getTipElement()).addClass(dt+"-"+e)},o.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},o.setContent=function(){var e=p(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(ft);null!==t&&0=this._offsets[o]&&(void 0===this._offsets[o+1]||e li > .active",$t=((Mt=qt.prototype).show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&p(this._element).hasClass(Ht)||p(this._element).hasClass("disabled"))){var e,i,t=p(this._element).closest(".nav, .list-group")[0],o=g.getSelectorFromElement(this._element);if(t){var r="UL"===t.nodeName||"OL"===t.nodeName?Rt:zt;i=(i=p.makeArray(p(t).find(r)))[i.length-1]}var s=p.Event(Ft.HIDE,{relatedTarget:this._element}),a=p.Event(Ft.SHOW,{relatedTarget:i});if(i&&p(i).trigger(s),p(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,t);var l=function(){var e=p.Event(Ft.HIDDEN,{relatedTarget:n._element}),t=p.Event(Ft.SHOWN,{relatedTarget:i});p(i).trigger(e),p(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},Mt.dispose=function(){p.removeData(this._element,Lt),this._element=null},Mt._activate=function(e,t,n){function i(){return o._transitionComplete(e,r,n)}var o=this,r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p(t).children(zt):p(t).find(Rt))[0],s=n&&r&&p(r).hasClass("fade");if(r&&s){var a=g.getTransitionDurationFromElement(r);p(r).removeClass("show").one(g.TRANSITION_END,i).emulateTransitionEnd(a)}else i()},Mt._transitionComplete=function(e,t,n){if(t){p(t).removeClass(Ht);var i=p(t.parentNode).find("> .dropdown-menu .active")[0];i&&p(i).removeClass(Ht),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(p(e).addClass(Ht),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),g.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&p(e.parentNode).hasClass("dropdown-menu")){var o=p(e).closest(".dropdown")[0];if(o){var r=[].slice.call(o.querySelectorAll(".dropdown-toggle"));p(r).addClass(Ht)}e.setAttribute("aria-expanded",!0)}n&&n()},qt._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(Lt);if(t||(t=new qt(this),e.data(Lt,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},r(qt,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),qt);function qt(e){this._element=e}p(document).on(Ft.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),$t._jQueryInterface.call(p(this),"show")}),p.fn.tab=$t._jQueryInterface,p.fn.tab.Constructor=$t,p.fn.tab.noConflict=function(){return p.fn.tab=Ot,$t._jQueryInterface};var Wt,Bt="toast",Yt="bs.toast",Ut="."+Yt,Xt=p.fn[Bt],Vt={CLICK_DISMISS:"click.dismiss"+Ut,HIDE:"hide"+Ut,HIDDEN:"hidden"+Ut,SHOW:"show"+Ut,SHOWN:"shown"+Ut},Qt="show",Kt="showing",Gt={animation:"boolean",autohide:"boolean",delay:"number"},Zt={animation:!0,autohide:!0,delay:500},Jt=((Wt=en.prototype).show=function(){var e=this,t=p.Event(Vt.SHOW);if(p(this._element).trigger(t),!t.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove(Kt),e._element.classList.add(Qt),p(e._element).trigger(Vt.SHOWN),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove("hide"),g.reflow(this._element),this._element.classList.add(Kt),this._config.animation){var i=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},Wt.hide=function(){if(this._element.classList.contains(Qt)){var e=p.Event(Vt.HIDE);p(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},Wt.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Qt)&&this._element.classList.remove(Qt),p(this._element).off(Vt.CLICK_DISMISS),p.removeData(this._element,Yt),this._element=null,this._config=null},Wt._getConfig=function(e){return e=s({},Zt,{},p(this._element).data(),{},"object"==typeof e&&e?e:{}),g.typeCheckConfig(Bt,e,this.constructor.DefaultType),e},Wt._setListeners=function(){var e=this;p(this._element).on(Vt.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return e.hide()})},Wt._close=function(){function e(){t._element.classList.add("hide"),p(t._element).trigger(Vt.HIDDEN)}var t=this;if(this._element.classList.remove(Qt),this._config.animation){var n=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},en._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(Yt);if(t||(t=new en(this,"object"==typeof n&&n),e.data(Yt,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},r(en,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Gt}},{key:"Default",get:function(){return Zt}}]),en);function en(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}p.fn[Bt]=Jt._jQueryInterface,p.fn[Bt].Constructor=Jt,p.fn[Bt].noConflict=function(){return p.fn[Bt]=Xt,Jt._jQueryInterface},e.Alert=f,e.Button=E,e.Carousel=W,e.Collapse=oe,e.Dropdown=we,e.Modal=Fe,e.Popover=vt,e.Scrollspy=It,e.Tab=$t,e.Toast=Jt,e.Tooltip=st,e.Util=g,Object.defineProperty(e,"__esModule",{value:!0})}),function(l,c,r,a){function n(e,t){this.settings=null,this.options=l.extend({},n.Defaults,t),this.$element=l(e),this.drag=l.extend({},i),this.state=l.extend({},o),this.e=l.extend({},s),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],l.each(n.Plugins,l.proxy(function(e,t){this._plugins[e[0].toLowerCase()+e.slice(1)]=new t(this)},this)),l.each(n.Pipe,l.proxy(function(e,t){this._pipe.push({filter:t.filter,run:l.proxy(t.run,this)})},this)),this.setup(),this.initialize()}function u(e){if(e.touches!==a)return{x:e.touches[0].pageX,y:e.touches[0].pageY};if(e.touches===a){if(e.pageX!==a)return{x:e.pageX,y:e.pageY};if(e.pageX===a)return{x:e.clientX,y:e.clientY}}}function e(e){var t,n,i=r.createElement("div"),o=e;for(t in o)if(n=o[t],void 0!==i.style[n])return i=null,[n,t];return[!1]}var i,o,s;n.Defaults={items:3,loop:!(s={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null}),center:!(o={isTouch:!(i={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null}),isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1}),mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:c,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Plugins={},n.Pipe=[{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var e=this._clones;(this.$stage.children(".cloned").length!==e.length||!this.settings.loop&&0",a)||this.op(t,"<",s)&&this.op(t,">",a))&&l.push(n);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],n.prototype.initialize=function(){var e,t,n;if((this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded)&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,n=this.$element.children(t).width(),e.length&&n<=0))return this.preloadAutoWidthImages(e),!1;this.$element.addClass("owl-loading"),this.$stage=l("<"+this.settings.stageElement+' class="owl-stage"/>').wrap(''),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},n.prototype.setup=function(){var t=this.viewport(),e=this.options.responsive,n=-1,i=null;e?(l.each(e,function(e){e<=t&&n ").addClass(this.settings.itemClass).append(e)),this.trigger("prepared",{content:t.data}),t.data},n.prototype.update=function(){for(var e=0,t=this._pipe.length,n=l.proxy(function(e){return this[e]},this._invalidated),i={};e",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(o=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),r=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),s=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,o+s),r+s)),(8",r[e+1]||t-o)&&(i="left"===this.state.direction?e+1:e),-1===i},this)),this.settings.loop||(this.op(n,">",r[this.minimum()])?i=n=this.minimum():this.op(n,"<",r[this.maximum()])&&(i=n=this.maximum())),i},n.prototype.animate=function(e){this.trigger("translate"),this.state.inMotion=0=n);)t=++o}else t=this._items.length-r.items;return t},n.prototype.minimum=function(e){return e?0:this._clones.length/2},n.prototype.items=function(e){return e===a?this._items.slice():(e=this.normalize(e,!0),this._items[e])},n.prototype.mergers=function(e){return e===a?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},n.prototype.clones=function(n){function i(e){return e%2==0?o+e/2:t-(e+1)/2}var t=this._clones.length/2,o=t+this._items.length;return n===a?l.map(this._clones,function(e,t){return i(t)}):l.map(this._clones,function(e,t){return e===n?i(t):null})},n.prototype.speed=function(e){return e!==a&&(this._speed=e),this._speed},n.prototype.coordinates=function(e){var t=null;return e===a?l.map(this._coordinates,l.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(t=this._coordinates[e],t+=(this.width()-t+(this._coordinates[e-1]||0))/2*(this.settings.rtl?-1:1)):t=this._coordinates[e-1]||0,t)},n.prototype.duration=function(e,t,n){return Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},n.prototype.to=function(e,t){if(this.settings.loop){var n=e-this.relative(this.current()),i=this.current(),o=this.current(),r=this.current()+n,s=o-r<0,a=this._clones.length+this._items.length;r=a-this.settings.items&&!0==s&&(i=o-this._items.length,this.reset(i)),c.clearTimeout(this.e._goToLoop),this.e._goToLoop=c.setTimeout(l.proxy(function(){this.speed(this.duration(this.current(),i+n,t)),this.current(i+n),this.update()},this),30)}else this.speed(this.duration(this.current(),e,t)),this.current(e),this.update()},n.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},n.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},n.prototype.transitionEnd=function(e){return(e===a||(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},n.prototype.viewport=function(){var e;if(this.options.responsiveBaseElement!==c)e=l(this.options.responsiveBaseElement).width();else if(c.innerWidth)e=c.innerWidth;else{if(!r.documentElement||!r.documentElement.clientWidth)throw"Can not detect viewport width.";e=r.documentElement.clientWidth}return e},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e=e&&(e instanceof jQuery?e:l(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(l.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(l.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,t){t=t===a?this._items.length:this.normalize(t,!0),this.trigger("add",{content:e,position:t}),0===this._items.length||t===this._items.length?(this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[t].before(e),this._items.splice(t,0,e),this._mergers.splice(t,0,1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:e,position:t})},n.prototype.remove=function(e){(e=this.normalize(e,!0))!==a&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},n.prototype.addTriggerableEvents=function(){var n=l.proxy(function(t,n){return l.proxy(function(e){e.relatedTarget!==this&&(this.suppress([n]),t.apply(this,[].slice.call(arguments,1)),this.release([n]))},this)},this);l.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},l.proxy(function(e,t){this.$element.on(e+".owl.carousel",n(t,e+".owl.carousel"))},this))},n.prototype.watchVisibility=function(){function e(e){return 0=n.length&&(o.state.imagesLoaded=!0,o.initialize())},s.src=r.attr("src")||r.attr("data-src")||r.attr("data-src-retina")})},n.prototype.destroy=function(){for(var e in this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&l(c).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd),this._plugins)this._plugins[e].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),l(r).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},n.prototype.op=function(e,t,n){var i=this.settings.rtl;switch(t){case"<":return i?n":return i?e=":return i?e<=n:n<=e;case"<=":return i?n<=e:e<=n}},n.prototype.on=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on"+t,n)},n.prototype.off=function(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on"+t,n)},n.prototype.trigger=function(e,t,n){var i={item:{count:this._items.length,index:this.current()}},o=l.camelCase(l.grep(["on",e,n],function(e){return e}).join("-").toLowerCase()),r=l.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},i,t));return this._supress[e]||(l.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(r)}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].apply(this,r)),r},n.prototype.suppress=function(e){l.each(e,l.proxy(function(e,t){this._supress[t]=!0},this))},n.prototype.release=function(e){l.each(e,l.proxy(function(e,t){delete this._supress[t]},this))},n.prototype.browserSupport=function(){if(this.support3d=e(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d){this.transformVendor=e(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0];this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][e(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=c.orientation},l.fn.owlCarousel=function(e){return this.each(function(){l(this).data("owlCarousel")||l(this).data("owlCarousel",new n(this,e))})},l.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(a,r){var t=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":a.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var t=this._core.settings,n=t.center&&Math.ceil(t.items/2)||t.items,i=t.center&&-1*n||0,o=(e.property&&e.property.value||this._core.current())+i,r=this._core.clones().length,s=a.proxy(function(e,t){this.load(t)},this);i++
',i=c.lazyLoad?'
':'
',t.after(i),t.after('
')}var i,o,r=e.width&&e.height?'style="width:'+e.width+"px;height:"+e.height+'px;"':"",s=t.find("img"),a="src",l="",c=this._core.settings;return t.wrap('
"),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),s.length?(n(s.attr(a)),s.remove(),!1):void("youtube"===e.type?(o="http://img.youtube.com/vi/"+e.id+"/hqdefault.jpg",n(o)):"vimeo"===e.type&&u.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e[0].thumbnail_large,n(o)}}))},i.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},i.prototype.play=function(e){this._core.trigger("play",null,"video"),this._playing&&this.stop();var t,n,i=u(e.target||e.srcElement),o=i.closest("."+this._core.settings.itemClass),r=this._videos[o.attr("data-video")],s=r.width||"100%",a=r.height||this._core.$stage.height();"youtube"===r.type?t='VIDEO ':"vimeo"===r.type&&(t=''),o.addClass("owl-video-playing"),this._playing=o,n=u(''+t+"
"),i.after(n)},i.prototype.isInFullScreen=function(){var e=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return e&&u(e).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(e&&this._fullscreen&&this._playing)&&(this._fullscreen?this._fullscreen=!1:!this._playing||this._core.state.orientation===t.orientation||(this._core.state.orientation=t.orientation,!1))},i.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,window,document),function(s){var t=function(e){this.core=e,this.core.options=s.extend({},t.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":s.proxy(function(e){"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":s.proxy(function(e){this.swapping="translated"==e.type},this),"translate.owl.carousel":s.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};t.Defaults={animateOut:!1,animateIn:!1},t.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var e,t=s.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",t)),o&&i.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",t))}},t.prototype.clear=function(e){s(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},s.fn.owlCarousel.Constructor.Plugins.Animate=t}(window.Zepto||window.jQuery,window,document),function(t,n,e){var i=function(e){this.core=e,this.core.options=t.extend({},i.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":t.proxy(function(){this.autoplay()},this),"play.owl.autoplay":t.proxy(function(e,t,n){this.play(t,n)},this),"stop.owl.autoplay":t.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(n.clearInterval(this.interval),this.interval=n.setInterval(t.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):n.clearInterval(this.interval)},i.prototype.play=function(){return!0===e.hidden||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:!1===this.core.settings.autoplay?void n.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},i.prototype.stop=function(){n.clearInterval(this.interval)},i.prototype.pause=function(){n.clearInterval(this.interval)},i.prototype.destroy=function(){var e,t;for(e in n.clearInterval(this.interval),this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(r){"use strict";var t=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":r.proxy(function(e){this._core.settings.dotsData&&this._templates.push(r(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":r.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,r(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":r.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"change.owl.carousel":r.proxy(function(e){if("position"==e.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var t=this._core.current(),n=this._core.maximum(),i=this._core.minimum();e.data=e.property.value>n?n<=t?i:n:e.property.value").addClass(n.dotClass).append(r("")).prop("outerHTML")]),n.navContainer&&n.dotsContainer||(this._controls.$container=r("").addClass(n.controlsClass).appendTo(this.$element)),this._controls.$indicators=n.dotsContainer?r(n.dotsContainer):r("
").hide().addClass(n.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",r.proxy(function(e){var t=r(e.target).parent().is(this._controls.$indicators)?r(e.target).index():r(e.target).parent().index();e.preventDefault(),this.to(t,n.dotsSpeed)},this)),e=n.navContainer?r(n.navContainer):r("
").addClass(n.navContainerClass).prependTo(this._controls.$container),this._controls.$next=r("<"+n.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(n.navClass[0]).html(n.navText[0]).hide().prependTo(e).on("click",r.proxy(function(){this.prev(n.navSpeed)},this)),this._controls.$next.addClass(n.navClass[1]).html(n.navText[1]).hide().appendTo(e).on("click",r.proxy(function(){this.next(n.navSpeed)},this)),this._overrides)this._core[t]=r.proxy(this[t],this)},t.prototype.destroy=function(){var e,t,n,i;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)this._controls[t].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.prototype.update=function(){var e,t,n=this._core.settings,i=this._core.clones().length/2,o=i+this._core.items().length,r=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],e=i,t=0;e
=this._core.maximum())),this._controls.$previous.toggle(i.nav),this._controls.$next.toggle(i.nav),i.dots){if(e=this._pages.length-this._controls.$indicators.children().length,i.dotData&&0!=e){for(t=0;t=t}).pop()},t.prototype.getPosition=function(e){var t,n,i=this._core.settings;return"page"==i.slideBy?(t=r.inArray(this.current(),this._pages),n=this._pages.length,e?++t:--t,t=this._pages[(t%n+n)%n].start):(t=this._core.relative(this._core.current()),n=this._core.items().length,e?t+=i.slideBy:t-=i.slideBy),t},t.prototype.next=function(e){r.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},t.prototype.prev=function(e){r.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},t.prototype.to=function(e,t,n){var i;n?r.proxy(this._overrides.to,this._core)(e,t):(i=this._pages.length,r.proxy(this._overrides.to,this._core)(this._pages[(e%i+i)%i].start,t))},r.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,window,document),function(n,i){"use strict";var t=function(e){this._core=e,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":n.proxy(function(){"URLHash"==this._core.settings.startPosition&&n(i).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(e){var t=n(e.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[t]=e.content},this)},this._core.options=n.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers),n(i).on("hashchange.owl.navigation",n.proxy(function(){var e=i.location.hash.substring(1),t=this._core.$stage.children(),n=this._hashes[e]&&t.index(this._hashes[e])||0;return!!e&&void this._core.to(n,!1,!0)},this))};t.Defaults={URLhashListener:!1},t.prototype.destroy=function(){var e,t;for(e in n(i).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},n.fn.owlCarousel.Constructor.Plugins.Hash=t}(window.Zepto||window.jQuery,window,document),function(){var P,I;P=window.jQuery,I=P(window),P.fn.stick_in_parent=function(e){var w,x,t,n,k,i,T,C,S,E,A,D;for(null==e&&(e={}),D=e.sticky_class,k=e.inner_scrolling,A=e.recalc_every,E=e.parent,C=e.offset_top,T=e.spacer,x=e.bottoming,null==C&&(C=0),null==E&&(E=void 0),null==k&&(k=!0),null==D&&(D="is_stuck"),w=P(document),null==x&&(x=!0),S=function(e){var t;return window.getComputedStyle?(e=window.getComputedStyle(e[0]),t=parseFloat(e.getPropertyValue("width"))+parseFloat(e.getPropertyValue("margin-left"))+parseFloat(e.getPropertyValue("margin-right")),"border-box"!==e.getPropertyValue("box-sizing")&&(t+=parseFloat(e.getPropertyValue("border-left-width"))+parseFloat(e.getPropertyValue("border-right-width"))+parseFloat(e.getPropertyValue("padding-left"))+parseFloat(e.getPropertyValue("padding-right"))),t):e.outerWidth(!0)},t=function(o,r,s,a,l,c,u,h){var d,e,f,p,g,m,v,y,t,b,_,i;if(!o.data("sticky_kit")){if(o.data("sticky_kit",!0),g=w.height(),v=o.parent(),null!=E&&(v=v.closest(E)),!v.length)throw"failed to find stick parent";if(d=f=!1,(_=null!=T?T&&o.closest(T):P("
"))&&_.css("position",o.css("position")),(y=function(){var e,t,n;if(!h&&(g=w.height(),e=parseInt(v.css("border-top-width"),10),t=parseInt(v.css("padding-top"),10),r=parseInt(v.css("padding-bottom"),10),s=v.offset().top+e+t,a=v.height(),f&&(d=f=!1,null==T&&(o.insertAfter(_),_.detach()),o.css({position:"",top:"",width:"",bottom:""}).removeClass(D),n=!0),l=o.offset().top-(parseInt(o.css("margin-top"),10)||0)-C,c=o.outerHeight(!0),u=o.css("float"),_&&_.css({width:S(o),height:c,display:o.css("display"),"vertical-align":o.css("vertical-align"),float:u}),n))return i()})(),c!==a)return p=void 0,m=C,b=A,i=function(){var e,t,n,i;if(!h&&(n=!1,null!=b&&(--b<=0&&(b=A,y(),n=!0)),n||w.height()===g||y(),n=I.scrollTop(),null!=p&&(t=n-p),p=n,f?(x&&(i=a+s "),this.spacer[0].id=e.id,this.spacer[0].className=e.className,this.spacer[0].style.cssText=e.style.cssText,this.spacer.addClass(i),this.spacer[0].style.cssText+=";visibility: hidden !important;display: none !important",this.spacer.insertAfter(this.element),"static"==this.element.parent().css("position")&&this.element.parent().css("position","relative"),this.origWillChange=this.element.css("will-change"),"auto"==this.origWillChange&&this.element.css("will-change","transform"),"none"==n?this.element.css("transform","translateZ(0)"):-1==n.indexOf("matrix3d")&&this.element.css("transform",this.element.css("transform")+" translateZ(0)"),this.bound(),this.precalculate(),this.store()}function m(){e=window.innerHeight||document.documentElement.clientHeight,t=window.innerWidth||document.documentElement.clientWidth,v()}function v(){p=!0,o(n).each(function(){o(this).data(r).refresh()}),setTimeout(function(){p=!1})}function y(){p=!0,o(n).each(function(){o(this).data(r).locate()}),setTimeout(function(){p=!1})}function b(){var e=!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement);o(n).each(function(){o(this).data(r).enableWillChange(!e)})}function _(e){p||v()}o.expr[":"][r]=function(e){return!!o(e).data(r)},g.prototype.trigger=function(e){var t="on"+e.charAt(0).toUpperCase()+e.slice(1);this.options[t]&&this.options[t].call(this.element),this.element.trigger("stickit:"+e)},g.prototype.isActive=function(e){return(void 0===e.screenMinWidth||t>=e.screenMinWidth)&&(void 0===e.screenMaxWidth||t<=e.screenMaxWidth)},g.prototype.updateCss=function(e){this.element.hasClass(this.options.className)&&e.className!=this.options.className&&this.element.removeClass(this.options.className).addClass(e.className);var t={};this.stick==d?this.options.extraHeight!=e.extraHeight&&(t.bottom=-this.options.extraHeight+"px"):this.options.top!=e.top&&(t.top=e.top+this.offsetY+"px"),this.options.zIndex!=e.zIndex&&(t.zIndex=this.getZIndex(e)),this.element.css(t)},g.prototype.updateOptions=function(){var e=this.getActiveOptionsKey();if(this.activeKey!=e){this.activeKey=e;var t=this.getActiveOptions();this.options&&(e?this.stick!=u&&(t.scope==this.options.scope?this.updateCss(t):(this.reset(),setTimeout(this.locate.bind(this)))):this.reset()),this.options=t,this.zIndex=this.getZIndex(t)}},g.prototype.getZIndex=function(e){return void 0===e.zIndex?this.defaultZIndex:e.zIndex},g.prototype.getActiveOptionsKey=function(){for(var e=[],t=0;ti.outerHeight(!1)+this.basePadding&&this.setFixed(n+a,e.bottom,-this.offsetHeight);break;case u:default:if(0<=(t=(e=i[0].getBoundingClientRect()).top-this.baseTop)||this.isHeigher())return;var r=i.parent()[0].getBoundingClientRect();o.height(i.height()),o.show(),n=e.left-this.margin.left,this.options.scope==c.Document?this.setFixed(n,e.bottom,0):r.bottom+this.baseParentOffset+this.offsetHeight<=i.outerHeight(!1)+this.basePadding?this.setAbsolute(this.element.position().left):this.setFixed(n+a,e.bottom,0),o.width()||o.width(i.width())}}},g.prototype.refresh=function(){if(this.updateOptions(),this.bound(),this.precalculate(),this.stick!=u){var e=this.element,t=this.spacer;if(this.lastValues.width!=t.width()&&e.width(this.lastValues.width=t.width()),this.lastValues.height!=e.height()&&t.height(this.lastValues.height=e.height()),this.stick==h){var n=this.spacer[0].getBoundingClientRect().left-this.margin.left;this.lastValues.left!=n+"px"&&e.css("left",this.lastValues.left=n+"px")}this.locate()}else this.locate()},g.prototype.destroy=function(){this.reset(),this.spacer.remove(),this.element.removeData(r)},g.prototype.enableWillChange=function(e){"auto"==this.origWillChange&&this.element.css("will-change",e?"transform":this.origWillChange)};var w=["destroy","refresh"];o.fn.stickit=function(t,n){if("string"==typeof t){if(-1!=o.inArray(t,w)){var i=arguments;this.each(function(){var e=o(this).data(r);e&&e[t].apply(e,Array.prototype.slice.call(i,1))})}}else{if(!f)if(f=!0,m(),o(document).ready(function(){o(window).bind("resize",m).bind("scroll",y),o(document.body).bind("animationend webkitAnimationEnd oAnimationEnd transitionend webkitTransitionEnd oTransitionEnd",y),o(document).bind("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",b)}),l)new MutationObserver(_).observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0});n=o.isArray(t)?t:Array.prototype.slice.call(arguments,0),this.each(function(){var e=new g(this,n);o(this).data(r,e),e.locate()})}return this},o.stickit={refresh:v}}(jQuery),function(){var l,e,o,s,r={}.hasOwnProperty;function t(){this.options_index=0,this.parsed=[]}function n(e,t){this.form_field=e,this.options=null!=t?t:{},n.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}function i(){return i.__super__.constructor.apply(this,arguments)}t.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},t.prototype.add_group=function(e){var t,n,i,o,r,s;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:this.escapeExpression(e.label),title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),s=[],i=0,o=(r=e.childNodes).length;i\"\'\`]/.test(e)?(t={"<":"<",">":">",'"':""","'":"'","`":"`"},n=/&(?!\w+;)|[\<\>\"\'\`]/g,e.replace(n,function(e){return t[e]||"&"})):e},(s=t).select_to_array=function(e){var t,n,i,o,r;for(n=new s,i=0,o=(r=e.childNodes).length;i"+e.group_label+""+e.html:e.html},n.prototype.mouse_enter=function(){return this.mouse_on_container=!0},n.prototype.mouse_leave=function(){return this.mouse_on_container=!1},n.prototype.input_focus=function(e){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},n.prototype.input_blur=function(e){var t=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return t.blur_test()},100)},n.prototype.results_option_build=function(e){var t,n,i,o,r,s,a;for(t="",r=o=0,s=(a=this.results_data).length;r=this.max_shown_results));r++);return t},n.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),n.style.cssText=e.style,n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.search_text,e.title&&(n.title=e.title),this.outerHTML(n)):""},n.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&0"+t.search_text.substr(s+r.length),t.search_text=a.substr(0,s)+""+a.substr(s)),null!=o&&(o.group_match=!0)):null!=t.group_array_index&&this.results_data[t.group_array_index].search_match&&(t.search_match=!0)));return this.result_clear_highlight(),i<1&&r.length?(this.update_results_content(""),this.no_results(r)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},n.prototype.get_search_regex=function(e){var t,n;return t=this.search_contains?"":"^",n=this.case_sensitive_search?"":"i",new RegExp(t+e,n)},n.prototype.search_string_match=function(e,t){var n,i,o,r;if(t.test(e))return!0;if(this.enable_split_word_search&&(0<=e.indexOf(" ")||0===e.indexOf("["))&&(i=e.replace(/\[|\]/g,"").split(" ")).length)for(o=0,r=i.length;o ",t),this.is_multiple?this.container.html(''):this.container.html(''+this.default_text+'
'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},i.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},i.prototype.register_observers=function(){var t=this;return this.container.bind("touchstart.chosen",function(e){return t.container_mousedown(e),e.preventDefault()}),this.container.bind("touchend.chosen",function(e){return t.container_mouseup(e),e.preventDefault()}),this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("chosen:close.chosen",function(e){t.input_blur(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(e){e.preventDefault()})},i.prototype.destroy=function(){return l(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},i.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},i.prototype.container_mousedown=function(e){if(!this.is_disabled&&(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null==e||!l(e.target).hasClass("search-choice-close")))return this.active_field?this.is_multiple||!e||l(e.target)[0]!==this.selected_item[0]&&!l(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),l(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},i.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},i.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},i.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},i.prototype.close_field=function(){return l(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},i.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},i.prototype.test_active_click=function(e){var t;return(t=l(e.target).closest(".chosen-container")).length&&this.container[0]===t[0]?this.active_field=!0:this.close_field()},i.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=s.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},i.prototype.result_do_highlight=function(e){var t,n,i,o;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),(i=parseInt(this.search_results.css("maxHeight"),10))+(o=this.search_results.scrollTop())<=(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight()))return this.search_results.scrollTop(0 ",{class:"search-choice"}).html(""+this.choice_label(e)+" "),e.disabled?t.addClass("search-choice-disabled"):((n=l(" ",{class:"search-choice-close","data-option-array-index":e.array_index})).bind("click.chosen",function(e){return i.choice_destroy_link_click(e)}),t.append(n)),this.search_container.before(t)},i.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(l(e.target))},i.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.show_search_field_default(),this.is_multiple&&0'),this.selected_item.addClass("chosen-single-with-deselect")},i.prototype.get_search_text=function(){return l("
").text(l.trim(this.search_field.val())).html()},i.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},i.prototype.no_results=function(e){var t;return(t=l(''+this.results_none_found+' " " ')).find("span").first().html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},i.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},i.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},i.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(0 ",{style:i})).text(this.search_field.val()),l("body").append(e),r=e.width()+25,e.remove(),(t=this.container.outerWidth())-10 ').appendTo("body");m=e.css("backgroundColor"),e.remove()}g.fn.rippleEffect=function(e){var p=g.extend({},g.fn.rippleEffect.defaults,e);return this.each(function(){g(this).on("click",function(e){var t,n,i,o,r,s,a,l,c=g(this),u=e.type;function h(){return""!=p.inkColor?p.inkColor:function(e,t){var n,i,o,r;n=function(e,n){return function e(t){return t.css("backgroundColor")==m?t.is("body")?n||m:e(t.parent()):t.css("backgroundColor")}(e)}(e,t),i=g.fn.rippleEffect.colorToHex(n),r=(o=g.fn.rippleEffect.getLuminationValue(i))<=239?o<=70?g.fn.rippleEffect.getColorLuminance(i,.8):g.fn.rippleEffect.getColorLuminance(i,.2):g.fn.rippleEffect.getColorLuminance(i,-.15);return r}(l,p.inkDefaultColor)}if(l=c,""!=p.appendInkTo&&(l=c.closest(p.appendInkTo)),0==l.find("."+p.inkClass).length&&l.append(' '),(a=l.find("."+p.inkContainerClass+" > ."+p.inkClass)).removeClass("animate"),!a.height()&&!a.width()){if(r=Math.max(l.outerWidth(),l.outerHeight()),void 0!==c.data("ripple")&&""!=c.data("ripple"))s=c.data("ripple");else if(void 0!==c.data("ripple-getcolorfromid")&&""!=c.data("ripple-getcolorfromid")){var d=c.data("ripple-getcolorfromid");s=0>16&255)+.7152*(t>>8&255)+.0722*(t>>0&255)},g.fn.rippleEffect.getColorLuminance=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,i,o="#";for(i=0;i<3;i++)n=parseInt(e.substr(2*i,2),16),o+=("00"+(n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16))).substr(n.length);return o},g.fn.rippleEffect.colorToHex=function(e){return"#"===e.substr(0,1)?color:(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},g("[data-ripple]").rippleEffect()}(jQuery),function r(s,a,l){function c(n,e){if(!a[n]){if(!s[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var o=a[n]={exports:{}};s[n][0].call(o.exports,function(e){var t=s[n][1][e];return c(t||e)},o,o.exports,r,s,a,l)}return a[n].exports}for(var u="function"==typeof require&&require,e=0;ei.scrollbarYTop?1:-1;s(n,"top",n.scrollTop+t*i.containerHeight),r(n),e.stopPropagation()}),i.event.bind(i.scrollbarX,"click",e),i.event.bind(i.scrollbarXRail,"click",function(e){var t=e.pageX-window.pageXOffset-o(i.scrollbarXRail).left>i.scrollbarXLeft?1:-1;s(n,"left",n.scrollLeft+t*i.containerWidth),r(n),e.stopPropagation()})}(e,i.get(e))}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],11:[function(e,t,n){"use strict";function i(o,r){function t(e){(function(e){var t=s+e*r.railXRatio,n=Math.max(0,r.scrollbarXRail.getBoundingClientRect().left)+r.railXRatio*(r.railXWidth-r.scrollbarXWidth);r.scrollbarXLeft=t<0?0:n=s.contentHeight-s.containerHeight&&t<0)return!s.settings.wheelPropagation}var i=r.scrollLeft;if(0===t){if(!s.scrollbarXActive)return!1;if(0===i&&e<0||i>=s.contentWidth-s.containerWidth&&0=o.contentHeight-o.containerHeight&&t<0)return!o.settings.wheelPropagation}var i=r.scrollLeft;if(0===t){if(!o.scrollbarXActive)return!1;if(0===i&&e<0||i>=o.contentWidth-o.containerWidth&&0=n.railXWidth-n.scrollbarXWidth&&(n.scrollbarXLeft=n.railXWidth-n.scrollbarXWidth),n.scrollbarYTop>=n.railYHeight-n.scrollbarYHeight&&(n.scrollbarYTop=n.railYHeight-n.scrollbarYHeight),function(e,t){var n={width:t.railXWidth};t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-e.scrollTop:n.top=t.scrollbarXTop+e.scrollTop,s.css(t.scrollbarXRail,n);var i={top:e.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?i.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:i.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?i.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:i.left=t.scrollbarYLeft+e.scrollLeft,s.css(t.scrollbarYRail,i),s.css(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),s.css(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(e,n),n.scrollbarXActive?r.add(e,"ps-active-x"):(r.remove(e,"ps-active-x"),n.scrollbarXWidth=0,n.scrollbarXLeft=0,l(e,"left",0)),n.scrollbarYActive?r.add(e,"ps-active-y"):(r.remove(e,"ps-active-y"),n.scrollbarYHeight=0,n.scrollbarYTop=0,l(e,"top",0))}},{"../lib/class":2,"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-scroll":20}],20:[function(e,t,n){"use strict";function o(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var r,s,a=e("./instances");t.exports=function(e,t,n){if(void 0===e)throw"You must provide an element to the update-scroll function";if(void 0===t)throw"You must provide an axis to the update-scroll function";if(void 0===n)throw"You must provide a value to the update-scroll function";"top"===t&&n<=0&&(e.scrollTop=n=0,e.dispatchEvent(o("ps-y-reach-start"))),"left"===t&&n<=0&&(e.scrollLeft=n=0,e.dispatchEvent(o("ps-x-reach-start")));var i=a.get(e);"top"===t&&n>=i.contentHeight-i.containerHeight&&((n=i.contentHeight-i.containerHeight)-e.scrollTop<=1?n=e.scrollTop:e.scrollTop=n,e.dispatchEvent(o("ps-y-reach-end"))),"left"===t&&n>=i.contentWidth-i.containerWidth&&((n=i.contentWidth-i.containerWidth)-e.scrollLeft<=1?n=e.scrollLeft:e.scrollLeft=n,e.dispatchEvent(o("ps-x-reach-end"))),r=r||e.scrollTop,s=s||e.scrollLeft,"top"===t&&n',controlattrs:{offsetx:5,offsety:10},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var e=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);e="string"==typeof e&&1==jQuery("#"+e).length?jQuery("#"+e).offset().top:0,this.$body.animate({scrollTop:e},this.setting.scrollduration)},keepfixed:function(){var e=jQuery(window),t=e.scrollLeft()+e.width()-this.$control.width()-this.controlattrs.offsetx,n=e.scrollTop()+e.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:t+"px",top:n+"px"})},togglecontrol:function(){var e=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed(),this.state.shouldvisible=e>=this.setting.startline,this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):0==this.state.shouldvisible&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function(e){var t=scrolltotop,n=document.all;t.cssfixedsupport=!n||n&&"CSS1Compat"==document.compatMode&&window.XMLHttpRequest,t.$body=window.opera?"CSS1Compat"==document.compatMode?e("html"):e("body"):e("html,body"),t.$control=e(''+t.controlHTML+"
").css({position:t.cssfixedsupport?"fixed":"absolute",bottom:t.controlattrs.offsety,right:t.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Scroll Back to Top"}).click(function(){return t.scrollup(),!1}).appendTo("body"),document.all&&!window.XMLHttpRequest&&""!=t.$control.text()&&t.$control.css({width:t.$control.width()}),t.togglecontrol(),e('a[href="'+t.anchorkeyword+'"]').click(function(){return t.scrollup(),!1}),e(window).bind("scroll resize",function(e){t.togglecontrol()})})}};scrolltotop.init(),function(t){t.fn.downCount=function(e,c){var u=t.extend({date:null,offset:null},e);u.date||t.error("Date is not defined."),Date.parse(u.date)||t.error("Incorrect date format, it should look like this, 12/24/2012 12:00:00.");var h=this,d=function(){var e=new Date,t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t+36e5*u.offset)};var f=setInterval(function(){var e=new Date(u.date)-d();if(e<0)return clearInterval(f),void(c&&"function"==typeof c&&c());var t=Math.floor(e/864e5),n=Math.floor(e%864e5/36e5),i=Math.floor(e%36e5/6e4),o=Math.floor(e%6e4/1e3),r=1===(t=2<=String(t).length?t:"0"+t)?"day":"Days",s=1===(n=2<=String(n).length?n:"0"+n)?"hour":"Hours",a=1===(i=2<=String(i).length?i:"0"+i)?"minute":"Minutes",l=1===(o=2<=String(o).length?o:"0"+o)?"second":"Seconds";h.find(".days").text(t),h.find(".hours").text(n),h.find(".minutes").text(i),h.find(".seconds").text(o),h.find(".days_ref").text(r),h.find(".hours_ref").text(s),h.find(".minutes_ref").text(a),h.find(".seconds_ref").text(l)},1e3)}}(jQuery),function(n){"use strict";n.fn.counterUp=function(e){var t=n.extend({time:400,delay:10},e);return this.each(function(){var l=n(this),c=t;l.waypoint(function(){var e=[],t=c.time/c.delay,n=l.text(),i=/[0-9]+,[0-9]+/.test(n);n=n.replace(/,/g,"");/^[0-9]+$/.test(n);for(var o=/^[0-9]+\.[0-9]+$/.test(n),r=o?(n.split(".")[1]||[]).length:0,s=t;1<=s;s--){var a=parseInt(n/t*s);if(o&&(a=parseFloat(n/t*s).toFixed(r)),i)for(;/(\d+)(\d{3})/.test(a.toString());)a=a.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(a)}l.data("counterup-nums",e),l.text("0");l.data("counterup-func",function(){l.text(l.data("counterup-nums").shift()),l.data("counterup-nums").length?setTimeout(l.data("counterup-func"),c.delay):(l.data("counterup-nums"),l.data("counterup-nums",null),l.data("counterup-func",null))}),setTimeout(l.data("counterup-func"),c.delay)},{offset:"100%",triggerOnce:!0})})}}(jQuery),function(){var t,n,_=[].indexOf||function(e){for(var t=0,n=this.length;to.oldScroll,n=t?o.forward:o.backward,l.each(i.waypoints[e],function(e,t){var n,i;return o.oldScroll<(n=t.offset)&&n<=o.newScroll?r.push(t):o.newScroll<(i=t.offset)&&i<=o.oldScroll?r.push(t):void 0}),r.sort(function(e,t){return e.offset-t.offset}),t||r.reverse(),l.each(r,function(e,t){if(t.options.continuous||e===r.length-1)return t.trigger([n])})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.refresh=function(){var e,t,n,i=this;return n=l.isWindow(this.element),t=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:n?0:t.left,contextScroll:n?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:n?0:t.top,contextScroll:n?0:this.oldScroll.y,contextDimension:n?l[y]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},l.each(e,function(e,a){return l.each(i.waypoints[e],function(e,t){var n,i,o,r,s;if(n=t.options.offset,o=t.offset,i=l.isWindow(t.element)?0:t.$element.offset()[a.offsetProp],l.isFunction(n)?n=n.apply(t.element):"string"==typeof n&&(n=parseFloat(n),-1(s=a.oldScroll)&&s>=t.offset?t.trigger([a.forward]):null===o&&a.oldScroll>=t.offset?t.trigger([a.forward]):void 0})})},e.prototype.checkEmpty=function(){if(l.isEmptyObject(this.waypoints.horizontal)&&l.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([f,p].join(" ")),delete h[this.id]},s=e,b.prototype.trigger=function(e){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,e),this.options.triggerOnce?this.destroy():void 0},b.prototype.disable=function(){return this.enabled=!1},b.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},b.prototype.destroy=function(){return delete c[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},b.getWaypointsByElement=function(e){var t,n;return(n=l(e).data(m))?(t=l.extend({},c.horizontal,c.vertical),l.map(n,function(e){return t[e]})):[]},a=b,i={init:function(e,o){return null==o&&(o={}),null==o.handler&&(o.handler=e),this.each(function(){var e,t,n,i;return e=l(this),n=null!=(i=o.context)?i:l.fn[v].defaults.context,l.isWindow(n)||(n=e.closest(n)),n=l(n),t=(t=h[n.data(u)])||new s(n),new a(e,t,o)}),l[y]("refresh"),this},disable:function(){return i._invoke(this,"disable")},enable:function(){return i._invoke(this,"enable")},destroy:function(){return i._invoke(this,"destroy")},prev:function(e,t){return i._traverse.call(this,e,t,function(e,t,n){if(0e.oldScroll.y})},left:function(e){return null==e&&(e=r),d._filter(e,"horizontal",function(e,t){return t.offset<=e.oldScroll.x})},right:function(e){return null==e&&(e=r),d._filter(e,"horizontal",function(e,t){return t.offset>e.oldScroll.x})},enable:function(){return d._invoke("enable")},disable:function(){return d._invoke("disable")},destroy:function(){return d._invoke("destroy")},extendFn:function(e,t){return i[e]=t},_invoke:function(n){var e;return e=l.extend({},c.vertical,c.horizontal),l.each(e,function(e,t){return t[n](),!0})},_filter:function(e,t,n){var i,o;return(i=h[l(e).data(u)])?(o=[],l.each(i.waypoints[t],function(e,t){if(n(i,t))return o.push(t)}),o.sort(function(e,t){return e.offset-t.offset}),l.map(o,function(e){return e.element})):[]}},l[y]=function(){var e,t;return t=arguments[0],e=2<=arguments.length?w.call(arguments,1):[],d[t]?d[t].apply(null,e):d.aggregate.call(null,t)},l[y].settings={resizeThrottle:100,scrollThrottle:30},t.load(function(){return l[y]("refresh")})},"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(e){return n(e,t)}):n(t.jQuery,t)}.call(this),function(I){I.fn.datetimepicker=function(t){function n(l){var t,c=I('
'),e=I(''),o=I('
'),u=I(''),h=I('
'),n=I(''),d=n.find(".xdsoft_time_box").eq(0),f=I('
'),r=I('
'),s=I('
');c.setOptions=function(e){(P=I.extend({},P,e)).inline&&(c.addClass("xdsoft_inline"),l.after(c).hide()),(P.open||P.opened||P.inline)&&l.trigger("open.xdsoft"),P.inverseButton&&(P.next="xdsoft_prev",P.prev="xdsoft_next"),!P.datepicker&&P.timepicker&&o.removeClass("active"),P.datepicker&&!P.timepicker&&n.removeClass("active"),P.value&&l&&l.val&&l.val(P.value),isNaN(P.dayOfWeekStart)||parseInt(P.dayOfWeekStart)<0||6o&&(t=o-s[0].offsetHeight),s.css("margin-top",t),c.trigger("scroll.scrollbar",[t])})}),c.on("scroll.timebox",function(e,t){if(P.timepickerScrollbar){var n=r.height()-s[0].offsetHeight,i=d[0].offsetHeight-2,o=t/(f[0].offsetHeight-i);s.css("margin-top",n*o)}}).on("open.xdsoft",function(e){if(P.timepickerScrollbar){var t=d[0].offsetHeight-2;height=f[0].offsetHeight,percent=t/height,sh=percent*r[0].offsetHeight,1=i?f.css("marginTop","-"+(i+P.timeHeightInTimePicker)+"px"):o.hasClass(P.prev)&&0<=i-P.timeHeightInTimePicker&&f.css("marginTop","-"+(i-P.timeHeightInTimePicker)+"px"),c.trigger("scroll.timebox",[Math.abs(parseInt(f.css("marginTop")))]),a=10";for(var r=0;r<7;r++)e+=""+P.i18n[P.lang].dayOfWeek[6";for(e+=" ",e+="";n'+t.getDate()+"
",t.getDay()==P.dayOfWeekStartPrev&&(e+=" "),t.setDate(t.getDate()+1);e+=" ",h.html(e),u.find(".xdsoft_label").eq(0).text(P.i18n[P.lang].months[i.currentTime.getMonth()]),u.find(".xdsoft_label").eq(1).text(i.currentTime.getFullYear());function s(e,t){var n=new Date;n.setHours(e),e=parseInt(n.getHours()),n.setMinutes(t),t=parseInt(n.getMinutes()),a+=''+n.dateFormat(P.formatTime)+"
"}var a="";if(P.allowTimes&&I.isArray(P.allowTimes)&&P.allowTimes.length)for(n=0;n=s?(f.css("marginTop","-"+(s+P.timeHeightInTimePicker)+"px"),a=!1):0I("body").height()&&(t=e.top-c[0].offsetHeight+1),c.css({left:e.left,top:t})}c.show(),t(),I(window).on("resize.xdsoft",t),P.closeOnWithoutClick&&I([document.body,window]).on("mousedown.xdsoft",function(){c.trigger("close.xdsoft"),I([document.body,window]).off("mousedown.xdsoft",arguments.callee)})}}),c.on("close.xdsoft",function(){var e=!0;P.onClose&&P.onClose.call&&(e=P.onClose.call(c,c.data("xdsoft_datetime").currentTime,c.data("input"))),!1===e||P.opened||P.inline||c.hide()}),c.data("input",l);var i=new function(){var n=this;n.now=function(){return new Date},n.currentTime=this.now(),n.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},n.setCurrentTime=function(e){n.currentTime="string"==typeof e?n.strtodatetime(e):n.isValidDate(e)?e:n.now(),c.trigger("change.xdsoft")},n.getCurrentTime=function(e){return n.currentTime},n.nextMonth=function(){var e=n.currentTime.getMonth()+1;return 12==e&&(n.currentTime.setFullYear(n.currentTime.getFullYear()+1),e=0),n.currentTime.setMonth(e),P.onChangeMonth&&P.onChangeMonth.call&&P.onChangeMonth.call(c,c.data("xdsoft_datetime").currentTime,c.data("input")),c.trigger("change.xdsoft"),e},n.prevMonth=function(){var e=n.currentTime.getMonth()-1;return-1==e&&(n.currentTime.setFullYear(n.currentTime.getFullYear()-1),e=11),n.currentTime.setMonth(e),P.onChangeMonth&&P.onChangeMonth.call&&P.onChangeMonth.call(c,c.data("xdsoft_datetime").currentTime,c.data("input")),c.trigger("change.xdsoft"),e},this.strtodatetime=function(e){var t=e?Date.parseDate(e,P.format):new Date;return n.isValidDate(t)||(t=new Date),t},this.strtodate=function(e){var t=e?Date.parseDate(e,P.formatDate):new Date;return n.isValidDate(t)||(t=new Date),t},this.strtotime=function(e){var t=e?Date.parseDate(e,P.formatTime):new Date;return n.isValidDate(t)||(t=new Date),t},this.str=function(){return this.currentTime.dateFormat(P.format)}},p=0,g=0;c.data("xdsoft_datetime",i),c.setOptions(P),i.setCurrentTime(P.value?P.value:l&&l.val&&l.val()?l.val():new Date),l.data("xdsoft_datetimepicker",c).on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function(e){l.is(":disabled")||l.is(":hidden")||!l.is(":visible")||(clearTimeout(p),p=setTimeout(function(){l.is(":disabled")||l.is(":hidden")||!l.is(":visible")||(i.setCurrentTime(l&&l.val&&l.val()?l.val():new Date),c.trigger("open.xdsoft"))},100))}).on("focusout.xdsoft",function(e){clearTimeout(g),g=setTimeout(function(){c.trigger("close.xdsoft")},100)})}var m=17,v=13,y=27,b=37,_=38,w=39,x=40,k=9,T=116,C=65,S=67,E=86,A=90,D=89,e={i18n:{ru:{months:["Январь","Февраль","Март","Ðпрель","Май","Июнь","Июль","ÐвгуÑÑ‚","СентÑбрь","ОктÑбрь","ÐоÑбрь","Декабрь"],dayOfWeek:["Ð’Ñк","Пн","Ð’Ñ‚","Ср","Чт","Пт","Сб"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeek:["So.","Mo","Di","Mi","Do","Fr","Sa."]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeek:["zo","ma","di","wo","do","vr","za"]}},value:"",lang:"en",format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",step:60,closeOnDateSelect:0,closeOnWithoutClick:!0,timepicker:!0,datepicker:!0,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,allowTimes:[],opened:!1,inline:!1,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,timeHeightInTimePicker:25,timepickerScrollbar:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,mask:!1},P=I.isPlainObject(t)||!t?I.extend({},e,t):I.extend({},e);return this.each(function(){var e;if(e=I(this).data("xdsoft_datetimepicker")){if("string"===I.type(t))switch(t){case"show":I(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"destroy":!function(e){var t=e.data("xdsoft_datetimepicker");if(t){t.data("xdsoft_datetime");0,t.remove(),delete t,e.data("xdsoft_datetimepicker",null),e.off("open.xdsoft focusin.xdsoft focusout.xdsoft mousedown.xdsoft"),I(window).off("resize.xdsoft"),I([window,document.body]).off("mousedown.xdsoft"),e.unmousewheel&&e.unmousewheel(),delete P}}(I(this))}else I(this).data("xdsoft_datetimepicker").setOptions(P);return 0}"string"!==I.type(t)&&n(I(this))})}}(jQuery),Date.parseFunctions={count:0},Date.parseRegexes=[],Date.formatFunctions={count:0},Date.prototype.dateFormat=function(e){return null==Date.formatFunctions[e]&&Date.createNewFormat(e),this[Date.formatFunctions[e]]()},Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;for(var code="Date.prototype."+funcName+" = function(){return ",special=!1,ch="",i=0;i 0) {",regex="",special=!1,ch="",i=0;i 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}",Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$"),eval(code)},Date.formatCodeToRegex=function(e,t){switch(e){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:0,c:null,s:"(?:\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+t+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+t+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+t+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+t+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+t+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(e)}}},Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3")},Date.prototype.getGMTOffset=function(){return(0 '),this.element.appendChild(e));var a=e.getElementsByTagName("span")[0];return a&&(null!=a.textContent?a.textContent=this.options.dictFallbackMessage:null!=a.innerText&&(a.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,i){var o={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},r=e.width/e.height;null==t&&null==n?(t=o.srcWidth,n=o.srcHeight):null==t?t=n*r:null==n&&(n=t/r);var s=(t=Math.min(t,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>t||o.srcHeight>n)if("crop"===i)s
\n \n \n
\n
\n \n
\n Check \n \n \n \n \n
\n \n
\n Error \n \n \n \n \n \n \n
\n ',drop:function(){return this.element.classList.remove("dz-drag-hover")},dragstart:function(){},dragend:function(){return this.element.classList.remove("dz-drag-hover")},dragenter:function(){return this.element.classList.add("dz-drag-hover")},dragover:function(){return this.element.classList.add("dz-drag-hover")},dragleave:function(){return this.element.classList.remove("dz-drag-hover")},paste:function(){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var n=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=S.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var e=!0,i=!1,o=void 0;try{for(var r,s=t.previewElement.querySelectorAll("[data-dz-name]")[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var a=r.value;a.textContent=t.name}}catch(e){i=!0,o=e}finally{try{e||null==s.return||s.return()}finally{if(i)throw o}}var l=!0,c=!1,u=void 0;try{for(var h,d=t.previewElement.querySelectorAll("[data-dz-size]")[Symbol.iterator]();!(l=(h=d.next()).done);l=!0)(a=h.value).innerHTML=this.filesize(t.size)}catch(e){c=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}this.options.addRemoveLinks&&(t._removeLink=S.createElement('
'.concat(this.options.dictRemoveFile," ")),t.previewElement.appendChild(t._removeLink));var f=function(e){return e.preventDefault(),e.stopPropagation(),t.status===S.UPLOADING?S.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(t)}):n.options.dictRemoveFileConfirmation?S.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(t)}):n.removeFile(t)},p=!0,g=!1,m=void 0;try{for(var v,y=t.previewElement.querySelectorAll("[data-dz-remove]")[Symbol.iterator]();!(p=(v=y.next()).done);p=!0)v.value.addEventListener("click",f)}catch(e){g=!0,m=e}finally{try{p||null==y.return||y.return()}finally{if(g)throw m}}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");var n=!0,i=!1,o=void 0;try{for(var r,s=e.previewElement.querySelectorAll("[data-dz-thumbnail]")[Symbol.iterator]();!(n=(r=s.next()).done);n=!0){var a=r.value;a.alt=e.name,a.src=t}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);var n=!0,i=!1,o=void 0;try{for(var r,s=e.previewElement.querySelectorAll("[data-dz-errormessage]")[Symbol.iterator]();!(n=(r=s.next()).done);n=!0)r.value.textContent=t}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t){if(e.previewElement){var n=!0,i=!1,o=void 0;try{for(var r,s=e.previewElement.querySelectorAll("[data-dz-uploadprogress]")[Symbol.iterator]();!(n=(r=s.next()).done);n=!0){var a=r.value;"PROGRESS"===a.nodeName?a.value=t:a.style.width="".concat(t,"%")}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=new Array(1
'.concat(this.options.dictDefaultMessage," "))),this.clickableElements.length&&function a(){return l.hiddenFileInput&&l.hiddenFileInput.parentNode.removeChild(l.hiddenFileInput),l.hiddenFileInput=document.createElement("input"),l.hiddenFileInput.setAttribute("type","file"),(null===l.options.maxFiles||1".concat(this.options.dictFallbackText,"
")),n+=' ');var i=S.createElement(n);return"FORM"!==this.element.tagName?(t=S.createElement(''))).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:i}},{key:"getExistingFallback",value:function(){for(var e=function(e){var t=!0,n=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var s=o.value;if(/(^| )fallback($| )/.test(s.className))return s}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}},t=0,n=["div","form"];t".concat(t," ").concat(this.options.dictFileSizeUnits[n])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):S.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var n=this;t.upload={uuid:S.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=S.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){e?(t.accepted=!1,n._errorProcessing([t],e)):(t.accepted=!0,n.options.autoQueue&&n.enqueueFile(t)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var s=o.value;this.enqueueFile(s)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==S.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=S.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return t.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var n=this._thumbnailQueue.shift();return this.createThumbnail(n,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(e){return t.emit("thumbnail",n,e),t._processingThumbnail=!1,t._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===S.UPLOADING&&this.cancelUpload(e),this.files=without(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);var t=!0,n=!1,i=void 0;try{for(var o,r=this.files.slice()[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var s=o.value;s.status===S.UPLOADING&&!e||this.removeFile(s)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return null}},{key:"resizeImage",value:function(o,e,t,n,r){var s=this;return this.createThumbnail(o,e,t,n,!0,function(e,t){if(null==t)return r(o);var n=s.options.resizeMimeType;null==n&&(n=o.type);var i=t.toDataURL(n,s.options.resizeQuality);return"image/jpeg"!==n&&"image/jpg"!==n||(i=ExifRestore.restore(o.dataURL,i)),r(S.dataURItoBlob(i))})}},{key:"createThumbnail",value:function(e,t,n,i,o,r){var s=this,a=new FileReader;a.onload=function(){e.dataURL=a.result,"image/svg+xml"!==e.type?s.createThumbnailFromUrl(e,t,n,i,o,r):null!=r&&r(a.result)},a.readAsDataURL(e)}},{key:"displayExistingFile",value:function(t,e,n,i,o){var r=this,s=!(4c.options.chunkSize),l[0].upload.totalChunkCount=Math.ceil(t.size/c.options.chunkSize)}if(l[0].upload.chunked){var o=l[0],r=e[0];o.upload.chunks=[];var i=function(){for(var e=0;void 0!==o.upload.chunks[e];)e++;if(!(e>=o.upload.totalChunkCount)){var t=e*c.options.chunkSize,n=Math.min(t+c.options.chunkSize,o.size),i={name:c._getParamName(0),data:r.webkitSlice?r.webkitSlice(t,n):r.slice(t,n),filename:o.upload.filename,chunkIndex:e};o.upload.chunks[e]={file:o,index:e,dataBlock:i,status:S.UPLOADING,progress:0,retries:0},c._uploadData(l,[i])}};if(o.upload.finishedChunkUpload=function(e){var t=!0;e.status=S.SUCCESS,e.dataBlock=null,e.xhr=null;for(var n=0;n>1;var l=a/t;return 0==l?1:l},drawImageIOSFix=function(e,t,n,i,o,r,s,a,l,c){var u=detectVerticalSquash(t);return e.drawImage(t,n,i,o,r,s,a,l,c/u)},ExifRestore=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,i=void 0,o="",r=void 0,s=void 0,a=void 0,l="",c=0;r=(n=e[c++])>>2,s=(3&n)<<4|(i=e[c++])>>4,a=(15&i)<<2|(o=e[c++])>>6,l=63&o,isNaN(i)?a=l=64:isNaN(o)&&(l=64),t=t+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(l),n=i=o="",r=s=a=l="",ce.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,i="",o=void 0,r=void 0,s="",a=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(a++))<<2|(o=this.KEY_STR.indexOf(e.charAt(a++)))>>4,n=(15&o)<<4|(r=this.KEY_STR.indexOf(e.charAt(a++)))>>2,i=(3&r)<<6|(s=this.KEY_STR.indexOf(e.charAt(a++))),l.push(t),64!==r&&l.push(n),64!==s&&l.push(i),t=n=i="",o=r=s="",a/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`").replace(/(?:\r\n|\r|\n)/g,"\n").replace(/(\n+)/g,"$1
").replace(/\n/g," ").replace(/ <\/div>/g,""),t.shortnames&&(e=k.shortnameToUnicode(e)),p(e,t.emojiTemplate).replace(/\t/g," ").replace(/ /g," ")}function F(e,t){switch(e=e.replace(/
/g,"\n").replace(/ /g,"\t").replace(/ ]*alt="([^"]+)"[^>]*>/gi,"$1").replace(/\n|\r/g,"").replace(/ ]*>/gi,"\n").replace(/(?:<(?:div|p|ol|ul|li|pre|code|object)[^>]*>)+/gi,"").replace(/(?:<\/(?:div|p|ol|ul|li|pre|code|object)>)+/gi,"
").replace(/\n<\/div>/gi,"\n").replace(/
<\/div>\n/gi,"\n").replace(/(?:
)+<\/div>/gi,"\n").replace(/([^\n])<\/div>
/gi,"$1\n").replace(/(?:<\/div>)+/gi,"
").replace(/([^\n])<\/div>([^\n])/gi,"$1\n$2").replace(/<\/div>/gi,"").replace(/([^\n])
/gi,"$1\n").replace(/\n
').css(s.css).appendTo(a),a.addClass("fancybox-slide--"+o.contentType),o.$iframe=r=g(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(o.$content),s.preload?(t.showLoading(o),r.on("load.fb error.fb",function(e){this.isReady=1,o.$slide.trigger("refresh"),t.afterLoad(o)}),a.on("refresh.fb",function(){var e,t=o.$content,n=s.css.width,i=s.css.height;if(1===r[0].isReady){try{e=r.contents().find("body")}catch(e){}e&&e.length&&e.children().length&&(a.css("overflow","visible"),t.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===n&&(n=Math.ceil(Math.max(e[0].clientWidth,e.outerWidth(!0)))),t.css("width",n||"").css("max-width",""),void 0===i&&(i=Math.ceil(Math.max(e[0].clientHeight,e.outerHeight(!0)))),t.css("height",i||""),a.css("overflow","auto")),t.removeClass("fancybox-is-hidden")}})):t.afterLoad(o),r.attr("src",o.src),a.one("onReset",function(){try{g(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}g(this).off("refresh.fb").empty(),o.isLoaded=!1,o.isRevealed=!1})},setContent:function(e,t){this.isClosing||(this.hideLoading(e),e.$content&&g.fancybox.stop(e.$content),e.$slide.empty(),function(e){return e&&e.hasOwnProperty&&e instanceof g}(t)&&t.parent().length?((t.hasClass("fancybox-content")||t.parent().hasClass("fancybox-content"))&&t.parents(".fancybox-slide").trigger("onReset"),e.$placeholder=g("
").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===g.type(t)&&(t=g("
").append(g.trim(t)).contents()),e.opts.filter&&(t=g("
").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){g(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(g(this).empty(),e.isLoaded=!1,e.isRevealed=!1)}),g(t).appendTo(e.$slide),g(t).is("video,audio")&&(g(t).addClass("fancybox-video"),g(t).wrap("
"),e.contentType="video",e.opts.width=e.opts.width||g(t).attr("width"),e.opts.height=e.opts.height||g(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("
").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),this.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){(e=e||this.current)&&!e.$spinner&&(e.$spinner=g(this.translate(this,this.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast"))},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){this.isClosing||(e.isLoading=!1,e.isLoaded=!0,this.trigger("afterLoad",e),this.hideLoading(e),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=g(this.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&g('
').appendTo(e.$content)),this.adjustCaption(e),this.adjustLayout(e),e.pos===this.currPos&&this.updateCursor(),this.revealContent(e))},adjustCaption:function(e){var t,n=e||this.current,i=n.opts.caption,o=n.opts.preventCaptionOverlap,r=this.$refs.caption,s=!1;r.toggleClass("fancybox-caption--separate",o),o&&i&&i.length&&(n.pos!==this.currPos?((t=r.clone().appendTo(r.parent())).children().eq(0).empty().html(i),s=t.outerHeight(!0),t.empty().remove()):this.$caption&&(s=this.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",s||""))},adjustLayout:function(e){var t,n,i,o,r=e||this.current;r.isLoaded&&!0!==r.opts.disableLayoutFix&&(r.$content.css("margin-bottom",""),r.$content.outerHeight()>r.$slide.height()+.5&&(i=r.$slide[0].style["padding-bottom"],o=r.$slide.css("padding-bottom"),0
=r.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+t,s.addClass(n).removeClass("fancybox-slide--current"),e.$content.removeClass("fancybox-is-hidden"),f(s),"image"!==e.type&&e.$content.hide().show(0),void g.fancybox.animate(s,"fancybox-slide--current",i,function(){s.removeClass(n).css({transform:"",opacity:""}),e.pos===r.currPos&&r.complete()},!0)):(e.$content.removeClass("fancybox-is-hidden"),u||!c||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"),void(e.pos===r.currPos&&r.complete())))},getThumbPos:function(e){var t,n,i,o,r,s=!1,a=e.$thumb;return!(!a||!function(e){var t,n;return!(!e||e.ownerDocument!==c)&&(g(".fancybox-container").css("pointer-events","none"),t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2},n=c.elementFromPoint(t.x,t.y)===e,g(".fancybox-container").css("pointer-events",""),n)}(a[0]))&&(t=g.fancybox.getTranslate(a),n=parseFloat(a.css("border-top-width")||0),i=parseFloat(a.css("border-right-width")||0),o=parseFloat(a.css("border-bottom-width")||0),r=parseFloat(a.css("border-left-width")||0),s={top:t.top+n,left:t.left+r,width:t.width-i-r,height:t.height-n-o,scaleX:1,scaleY:1},0=n.currPos-1&&t.pos<=n.currPos+1?i[t.pos]=t:t&&(g.fancybox.stop(t.$slide),t.$slide.off().remove())}),n.slides=i),n.isAnimating=!1,n.updateCursor(),n.trigger("afterShow"),t.opts.video.autoStart&&t.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),n.next()}),t.opts.autoFocus&&"html"===t.contentType&&((e=t.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):n.focus(null,!0)),t.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t,n;this.group.length<2||(n=this.slides[this.currPos+1],(t=this.slides[this.currPos-1])&&t.type===e&&this.loadSlide(t),n&&n.type===e&&this.loadSlide(n))},focus:function(e,t){var n,i,o=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");this.isClosing||((n=(n=!e&&this.current&&this.current.isComplete?this.current.$slide.find("*:visible"+(t?":not(.fancybox-close-small)":"")):this.$refs.container.find("*:visible")).filter(o).filter(function(){return"hidden"!==g(this).css("visibility")&&!g(this).hasClass("disabled")})).length?(i=n.index(c.activeElement),e&&e.shiftKey?(i<0||0==i)&&(e.preventDefault(),n.eq(n.length-1).trigger("focus")):(i<0||i==n.length-1)&&(e&&e.preventDefault(),n.eq(0).trigger("focus"))):this.$refs.container.trigger("focus"))},activate:function(){var t=this;g(".fancybox-container").each(function(){var e=g(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(e,t){function n(){u.cleanUp(e)}var i,o,r,s,a,l,c,u=this,h=u.current;return!u.isClosing&&(!(u.isClosing=!0)===u.trigger("beforeClose",e)?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),r=h.$content,i=h.opts.animationEffect,o=g.isNumeric(t)?t:i?h.opts.animationDuration:0,h.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==e?g.fancybox.stop(h.$slide):i=!1,h.$slide.siblings().trigger("onReset").remove(),o&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms"),u.hideLoading(h),u.hideControls(!0),u.updateCursor(),"zoom"!==i||r&&o&&"image"===h.type&&!u.isMoved()&&!h.hasError&&(c=u.getThumbPos(h))||(i="fade"),"zoom"===i?(g.fancybox.stop(r),l={top:(s=g.fancybox.getTranslate(r)).top,left:s.left,scaleX:s.width/c.width,scaleY:s.height/c.height,width:c.width,height:c.height},"auto"==(a=h.opts.zoomOpacity)&&(a=.1=e.group.length-1),"image"===t.type?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",t.opts.image.src||t.src).show():t.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),g(c.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(e){var t=["infobar","toolbar","nav"];!e&&this.current.opts.preventCaptionOverlap||t.push("caption"),this.$refs.container.removeClass(t.map(function(e){return"fancybox-show-"+e}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var e=this.current?this.current.opts:this.opts,t=this.$refs.container;this.hasHiddenControls=!1,this.idleSecondsCounter=0,t.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&1n.clientHeight,s=("scroll"===o||"auto"===o)&&n.scrollWidth>n.clientWidth,!(t=r||s))&&((e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body")););var n,i,o,r,s;return t}function n(e){this.instance=e,this.$bg=e.$refs.bg,this.$stage=e.$refs.stage,this.$container=e.$refs.container,this.destroy(),this.$container.on("touchstart.fb.touch mousedown.fb.touch",m.proxy(this,"ontouchstart"))}var y=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.oRequestAnimationFrame||function(e){return g.setTimeout(e,1e3/60)},b=g.cancelAnimationFrame||g.webkitCancelAnimationFrame||g.mozCancelAnimationFrame||g.oCancelAnimationFrame||function(e){g.clearTimeout(e)};n.prototype.destroy=function(){this.$container.off(".fb.touch"),m(l).off(".fb.touch"),this.requestId&&(b(this.requestId),this.requestId=null),this.tapped&&(clearTimeout(this.tapped),this.tapped=null)},n.prototype.ontouchstart=function(e){var t=this,n=m(e.target),i=t.instance,o=i.current,r=o.$slide,s=o.$content,a="touchstart"==e.type;if(a&&t.$container.off("mousedown.fb.touch"),(!e.originalEvent||2!=e.originalEvent.button)&&r.length&&n.length&&!c(n)&&!c(n.parent())&&(n.is("img")||!(e.originalEvent.clientX>n[0].clientWidth+n.offset().left))){if(!o||i.isAnimating||o.$slide.hasClass("fancybox-animated"))return e.stopPropagation(),void e.preventDefault();t.realPoints=t.startPoints=u(e),t.startPoints.length&&(o.touch&&e.stopPropagation(),t.startEvent=e,t.canTap=!0,t.$target=n,t.$content=s,t.opts=o.opts.touch,t.isPanning=!1,t.isSwiping=!1,t.isZooming=!1,t.isScrolling=!1,t.canPan=i.canPan(),t.startTime=(new Date).getTime(),t.distanceX=t.distanceY=t.distance=0,t.canvasWidth=Math.round(r[0].clientWidth),t.canvasHeight=Math.round(r[0].clientHeight),t.contentLastPos=null,t.contentStartPos=m.fancybox.getTranslate(t.$content)||{top:0,left:0},t.sliderStartPos=m.fancybox.getTranslate(r),t.stagePos=m.fancybox.getTranslate(i.$refs.stage),t.sliderStartPos.top-=t.stagePos.top,t.sliderStartPos.left-=t.stagePos.left,t.contentStartPos.top-=t.stagePos.top,t.contentStartPos.left-=t.stagePos.left,m(l).off(".fb.touch").on(a?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",m.proxy(t,"ontouchend")).on(a?"touchmove.fb.touch":"mousemove.fb.touch",m.proxy(t,"ontouchmove")),m.fancybox.isMobile&&l.addEventListener("scroll",t.onscroll,!0),((t.opts||t.canPan)&&(n.is(t.$stage)||t.$stage.find(n).length)||(n.is(".fancybox-image")&&e.preventDefault(),m.fancybox.isMobile&&n.parents(".fancybox-caption").length))&&(t.isScrollable=h(n)||h(n.parent()),m.fancybox.isMobile&&t.isScrollable||e.preventDefault(),1!==t.startPoints.length&&!o.hasError||(t.canPan?(m.fancybox.stop(t.$content),t.isPanning=!0):t.isSwiping=!0,t.$container.addClass("fancybox-is-grabbing")),2===t.startPoints.length&&"image"===o.type&&(o.isLoaded||o.$ghost)&&(t.canTap=!1,t.isSwiping=!1,t.isPanning=!1,t.isZooming=!0,m.fancybox.stop(t.$content),t.centerPointStartX=.5*(t.startPoints[0].x+t.startPoints[1].x)-m(g).scrollLeft(),t.centerPointStartY=.5*(t.startPoints[0].y+t.startPoints[1].y)-m(g).scrollTop(),t.percentageOfImageAtPinchPointX=(t.centerPointStartX-t.contentStartPos.left)/t.contentStartPos.width,t.percentageOfImageAtPinchPointY=(t.centerPointStartY-t.contentStartPos.top)/t.contentStartPos.height,t.startDistanceBetweenFingers=v(t.startPoints[0],t.startPoints[1]))))}},n.prototype.onscroll=function(e){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},n.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=u(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=v(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=v(t.newPoints[0],t.startPoints[0],"y"),t.distance=v(t.newPoints[0],t.startPoints[0]),0r.width||a>r.height?o.instance.scaleToActual(o.centerPointStartX,o.centerPointStartY,150):(n=o.limitPosition(e,t,s,a),m.fancybox.animate(o.$content,n,150)))},n.prototype.onTap=function(n){function e(e){var t=s.opts[e];if(m.isFunction(t)&&(t=t.apply(r,[s,n])),t)switch(t){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":1o[0].clientWidth+o.offset().left))){if(o.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))t="Outside";else if(o.is(".fancybox-slide"))t="Slide";else{if(!r.current.$content||!r.current.$content.find(o).addBack().filter(o).length)return;t="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,50 '},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function n(e){this.instance=e,this.init()}a.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,t=e.instance,n=t.group[t.currIndex].opts.slideShow;e.$button=t.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),t.group.length<2||!n?e.$button.hide():n.progress&&(e.$progress=a('
').appendTo(t.$refs.inner))},set:function(e){var t=this.instance,n=t.current;n&&(!0===e||n.opts.loop||t.currIndex '},fullScreen:{autoStart:!1}}),n(r).on(i.fullscreenchange,function(){var e=o.isFullscreen(),t=n.fancybox.getInstance();t&&(t.current&&"image"===t.current.type&&t.isAnimating&&(t.isAnimating=!1,t.update(!0,!0,0),t.isComplete||t.complete()),t.trigger("onFullscreenChange",e),t.$refs.container.toggleClass("fancybox-is-fullscreen",e),t.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))})}n(r).on({"onInit.fb":function(e,t){i?t&&t.group[t.currIndex].opts.fullScreen?(t.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation(),e.preventDefault(),o.toggle()}),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&o.request(),t.FullScreen=o):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,n,i,o){t&&t.FullScreen&&70===o&&(i.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(e,r){var s="fancybox-thumbs";r.fancybox.defaults=r.extend(!0,{btnTpl:{thumbs:' '},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},r.fancybox.defaults);function i(e){this.init(e)}r.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t=this,n=e.group,i=0;t.instance=e,t.opts=n[e.currIndex].opts.thumbs,(e.Thumbs=t).$button=e.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,r=n.length;o ').appendTo(t.$refs.container.find(i).addBack().filter(i)),e.$grid.on("click","a",function(){t.jumpTo(r(this).attr("data-index"))})),e.$list||(e.$list=r('
').appendTo(e.$grid)),r.each(t.group,function(e,t){(n=t.thumb)||"image"!==t.type||(n=t.src),o.push('
")}),e.$list[0].innerHTML=o.join(""),"x"===e.opts.axis&&e.$list.width(parseInt(e.$grid.css("padding-right"),10)+t.group.length*e.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,n,i=this.$list,o=this.$grid;this.instance.current&&(n=(t=i.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===this.opts.axis&&(n.top<0||n.top>i.height()-t.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},e):"x"===this.opts.axis&&(n.left
o.scrollLeft()+(o.width()-t.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},e))},update:function(){this.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus(0)):this.$grid&&this.instance.trigger("onThumbsHide"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),r(e).on({"onInit.fb":function(e,t){var n;!t||t.Thumbs||(n=new i(t)).isActive&&!0===n.opts.autoStart&&n.show()},"beforeShow.fb":function(e,t,n,i){var o=t&&t.Thumbs;o&&o.isVisible&&o.focus(i?0:250)},"afterKeydown.fb":function(e,t,n,i,o){var r=t&&t.Thumbs;r&&r.isActive&&71===o&&(i.preventDefault(),r.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(e,o){o.extend(!0,o.fancybox.defaults,{btnTpl:{share:' '},share:{url:function(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.src)||window.location},tpl:''}}),o(e).on("click","[data-fancybox-share]",function(){var e,t,n=o.fancybox.getInstance(),i=n.current||null;i&&("function"===o.type(i.opts.share.url)&&(e=i.opts.share.url.apply(i,[n,i])),t=i.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}(e)).replace(/\{\{descr\}\}/g,n.$caption?encodeURIComponent(n.$caption.text()):""),o.fancybox.open({src:n.translate(n,t),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){n.$refs.container.one("beforeClose.fb",function(){e.close(null,0)}),t.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(r,s,o){function a(){var e=r.location.hash.substr(1),t=e.split("-"),n=1e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=Math.pow(2,32))return ge(this.elements.display.currentTime,!0),void ge(this.elements.progress,!0);Z(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=Z(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Ze.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Ze.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Ze.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){ge(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var i=this.elements.settings.panels[e],o=null,r=t;if("captions"===e)o=this.currentTrack;else{if(o=ee(n)?this[e]:n,ee(o)&&(o=this.config[e].default),!ee(this.options[e])&&!this.options[e].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(e));if(!this.config[e].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(e))}if(Z(r)||(r=i&&i.querySelector('[role="menu"]')),Z(r)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Ze.getLabel.call(this,e,o);var s=r&&r.querySelector('[value="'.concat(o,'"]'));Z(s)&&(s.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?qe("normal",this.config):"".concat(t,"×");case"quality":if(X(t)){var n=qe("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return Re(t);case"captions":return nt.getLabel.call(this);default:return null}},setQualityMenu:function(e){var i=this;if(Z(this.elements.settings.panels.quality)){var t=this.elements.settings.panels.quality.querySelector('[role="menu"]');K(e)&&(this.options.quality=Fe(e).filter(function(e){return i.config.quality.options.includes(e)}));var n=!ee(this.options.quality)&&1n.indexOf(t)?1:-1}).forEach(function(e){Ze.createMenuItem.call(i,{value:e,list:t,type:"quality",title:Ze.getLabel.call(i,"quality",e),badge:function(e){var t=qe("qualityBadge.".concat(e),i.config);return t.length?Ze.createBadge.call(i,t):null}(e)})}),Ze.updateSetting.call(this,"quality",t)}}},setCaptionsMenu:function(){var n=this;if(Z(this.elements.settings.panels.captions)){var i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),e=nt.getTracks.call(this),t=Boolean(e.length);if(Ze.toggleMenuButton.call(this,"captions",t),de(i),Ze.checkMenu.call(this),t){var o=e.map(function(e,t){return{value:t,checked:n.captions.toggled&&n.currentTrack===t,title:nt.getLabel.call(n,e),badge:e.language&&Ze.createBadge.call(n,e.language.toUpperCase()),list:i,type:"language"}});o.unshift({value:-1,checked:!this.captions.toggled,title:qe("disabled",this.config),list:i,type:"language"}),o.forEach(Ze.createMenuItem.bind(this)),Ze.updateSetting.call(this,"captions",i)}}},setSpeedMenu:function(){var t=this;if(Z(this.elements.settings.panels.speed)){var n=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed});var e=!ee(this.options.speed)&&1=r?e:t)(i)}var i=new Image;Object.assign(i,{onload:n,onerror:n,src:o})})}var ht={addStyleHook:function(){me(this.elements.container,this.config.selectors.container.replace(".",""),!0),me(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){0Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles:function(){var t=this;Object.values(_({},this.media.style)).filter(function(e){return!ee(e)&&e.startsWith("--plyr")}).forEach(function(e){t.elements.container.style.setProperty(e,t.media.style.getPropertyValue(e)),t.media.style.removeProperty(e)}),ee(this.media.style)&&this.media.removeAttribute("style")}},dt=(e(ft,[{key:"handleKey",value:function(e){var t=this.player,n=t.elements,i=e.keyCode?e.keyCode:e.which,o="keydown"===e.type,r=o&&i===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&X(i))if(o){var s=document.activeElement;if(Z(s)){var a=t.config.selectors.editable;if(s!==n.inputs.seek&&ye(s,a))return;if(32===e.which&&ye(s,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(e.preventDefault(),e.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:r||(t.currentTime=t.duration/10*(i-48));break;case 32:case 75:r||Ie(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:r||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:r||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===i&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(e){Ze.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,me(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t=this.player,n=t.elements;if(clearTimeout(this.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(this.lastKeyDown=e.timeStamp);var i,o=e.timeStamp-this.lastKeyDown<=20;"focus"===e.type&&!o||(i=t.config.classNames.tabFocus,me(be.call(t,".".concat(i)),i,!1),"focusout"!==e.type&&(this.focusTimer=setTimeout(function(){var e=document.activeElement;n.container.contains(e)&&me(document.activeElement,t.config.classNames.tabFocus,!0)},10)))}}},{key:"global",value:function(){var e=!(0Math.abs(o)?i:o);a.increaseVolume(r/50);var s=a.media.volume;(1===r&&s<1||-1===r&&0t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n}var wt={setup:function(){var t=this;if(me(this.elements.wrapper,this.config.classNames.embed,!0),U(window.YT)&&Q(window.YT.Player))wt.ready.call(this);else{var e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Q(e)&&e(),wt.ready.call(t)},mt(this.config.urls.youtube.sdk).catch(function(e){t.debug.warn("YouTube API failed to load",e)})}},getTitle:function(e){var o=this;Ue(He(this.config.urls.youtube.api,e)).then(function(e){if(U(e)){var t=e.title,n=e.height,i=e.width;o.config.title=t,ht.setTitle.call(o),o.embed.ratio=[i,n]}Ne.call(o)}).catch(function(){Ne.call(o)})},ready:function(){var r=this,e=r.media&&r.media.getAttribute("id");if(ee(e)||!e.startsWith("youtube-")){var t=r.media.getAttribute("src");ee(t)&&(t=r.media.getAttribute(this.config.attributes.embed.id));var n,i,s=ee(n=t)?null:n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:n,o=(i=r.provider,"".concat(i,"-").concat(Math.floor(1e4*Math.random()))),a=ce("div",{id:o,"data-poster":r.poster});r.media=fe(a,r.media);var l=function(e){return"https://i.ytimg.com/vi/".concat(s,"/").concat(e,"default.jpg")};ut(l("maxres"),121).catch(function(){return ut(l("sd"),121)}).catch(function(){return ut(l("hq"))}).then(function(e){return ht.setPoster.call(r,e.src)}).then(function(e){e.includes("maxres")||(r.elements.poster.style.backgroundSize="cover")}).catch(function(){});var c=r.config.youtube;r.embed=new window.YT.Player(o,{videoId:s,host:function(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}(c),playerVars:se({},{autoplay:r.config.autoplay?1:0,hl:r.config.hl,controls:r.supported.ui?0:1,disablekb:1,playsinline:r.config.fullscreen.iosNative?0:1,cc_load_policy:r.captions.active?1:0,cc_lang_pref:r.config.captions.language,widget_referrer:window?window.location.href:null},c),events:{onError:function(e){if(!r.media.error){var t=e.data,n={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[t]||"An unknown error occured";r.media.error={code:t,message:n},Pe.call(r,r.media,"error")}},onPlaybackRateChange:function(e){var t=e.target;r.media.playbackRate=t.getPlaybackRate(),Pe.call(r,r.media,"ratechange")},onReady:function(e){if(!Q(r.media.play)){var n=e.target;wt.getTitle.call(r,s),r.media.play=function(){bt.call(r,!0),n.playVideo()},r.media.pause=function(){bt.call(r,!1),n.pauseVideo()},r.media.stop=function(){n.stopVideo()},r.media.duration=n.getDuration(),r.media.paused=!0,r.media.currentTime=0,Object.defineProperty(r.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(e){r.paused&&!r.embed.hasPlayed&&r.embed.mute(),r.media.seeking=!0,Pe.call(r,r.media,"seeking"),n.seekTo(e)}}),Object.defineProperty(r.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(e){n.setPlaybackRate(e)}});var t=r.config.volume;Object.defineProperty(r.media,"volume",{get:function(){return t},set:function(e){t=e,n.setVolume(100*t),Pe.call(r,r.media,"volumechange")}});var i=r.config.muted;Object.defineProperty(r.media,"muted",{get:function(){return i},set:function(e){var t=L(e)?e:i;n[(i=t)?"mute":"unMute"](),Pe.call(r,r.media,"volumechange")}}),Object.defineProperty(r.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(r.media,"ended",{get:function(){return r.currentTime===r.duration}});var o=n.getAvailablePlaybackRates();r.options.speed=o.filter(function(e){return r.config.speed.options.includes(e)}),r.supported.ui&&r.media.setAttribute("tabindex",-1),Pe.call(r,r.media,"timeupdate"),Pe.call(r,r.media,"durationchange"),clearInterval(r.timers.buffering),r.timers.buffering=setInterval(function(){r.media.buffered=n.getVideoLoadedFraction(),(null===r.media.lastBuffered||r.media.lastBuffered ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(r.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),r.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}}),r.text&&n.push(r)}),n),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=s.substring(0,s.lastIndexOf("/")+1));var o=new Image;o.onload=function(){i.height=o.naturalHeight,i.width=o.naturalWidth,a.thumbnails.push(i),r()},o.src=i.urlPrefix+i.frames[0].text})})}},{key:"startMove",value:function(e){if(this.loaded&&N(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t=this.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=Ge(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(e){!Y(e.button)&&!1!==e.button&&0!==e.button||(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var e=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):De.call(this.player,this.player.media,"timeupdate",function(){e.mouseDown||e.toggleScrubbingContainer(!1)})}},{key:"listeners",value:function(){var e=this;this.player.on("play",function(){e.toggleThumbContainer(!1,!0)}),this.player.on("seeked",function(){e.toggleThumbContainer(!1)}),this.player.on("timeupdate",function(){e.lastTime=e.player.media.currentTime})}},{key:"render",value:function(){this.elements.thumb.container=ce("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=ce("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var e=ce("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=ce("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),Z(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=ce("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"destroy",value:function(){this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}},{key:"showImageAtCurrentTime",value:function(){var n=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var i=this.thumbnails[0].frames.findIndex(function(e){return n.seekTime>=e.startTime&&n.seekTime<=e.endTime}),e=0<=i,o=0;this.mouseDown||this.toggleThumbContainer(e),e&&(this.thumbnails.forEach(function(e,t){n.loadedImages.includes(e.frames[i].text)&&(o=t)}),i!==this.showingThumb&&(this.showingThumb=i,this.loadImage(o)))}},{key:"loadImage",value:function(){var e=this,t=0