!function(e,t){var n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,function(e,t,n){"use strict";if(e.addEventListener){var i=n.cfg,o=/\s+/g,r=/\s*\|\s+|\s+\|\s*/g,s=/^(.+?)(?:\s+\[\s*(.+?)\s*\])(?:\s+\[\s*(.+?)\s*\])?$/,a=/^\s*\(*\s*type\s*:\s*(.+?)\s*\)*\s*$/,l=/\(|\)|'/,u={contain:1,cover:1},c=function(e,t){if(t){var n=t.match(a);n&&n[1]?e.setAttribute("type",n[1]):e.setAttribute("media",i.customMedia[t]||t)}},d=function(e){if(e.target._lazybgset){var t=e.target,i=t._lazybgset,o=t.currentSrc||t.src;if(o){var r=l.test(o)?JSON.stringify(o):o,s=n.fire(i,"bgsetproxy",{src:o,useSrc:r,fullSrc:null});s.defaultPrevented||(i.style.backgroundImage=s.detail.fullSrc||"url("+s.detail.useSrc+")")}t._lazybgsetLoading&&(n.fire(i,"_lazyloaded",{},!1,!0),delete t._lazybgsetLoading)}};addEventListener("lazybeforeunveil",function(e){var a,l,u;!e.defaultPrevented&&(a=e.target.getAttribute("data-bgset"))&&(u=e.target,(l=t.createElement("img")).alt="",l._lazybgsetLoading=!0,e.detail.firesLoad=!0,function(e,n,a){var l=t.createElement("picture"),u=n.getAttribute(i.sizesAttr),d=n.getAttribute("data-ratio"),p=n.getAttribute("data-optimumx");n._lazybgset&&n._lazybgset.parentNode==n&&n.removeChild(n._lazybgset),Object.defineProperty(a,"_lazybgset",{value:n,writable:!0}),Object.defineProperty(n,"_lazybgset",{value:l,writable:!0}),e=e.replace(o," ").split(r),l.style.display="none",a.className=i.lazyClass,1!=e.length||u||(u="auto"),e.forEach(function(e){var n,o=t.createElement("source");u&&"auto"!=u&&o.setAttribute("sizes",u),(n=e.match(s))?(o.setAttribute(i.srcsetAttr,n[1]),c(o,n[2]),c(o,n[3])):o.setAttribute(i.srcsetAttr,e),l.appendChild(o)}),u&&(a.setAttribute(i.sizesAttr,u),n.removeAttribute(i.sizesAttr),n.removeAttribute("sizes")),p&&a.setAttribute("data-optimumx",p),d&&a.setAttribute("data-ratio",d),l.appendChild(a),n.appendChild(l)}(a,u,l),setTimeout(function(){n.loader.unveil(l),n.rAF(function(){n.fire(l,"_lazyloaded",{},!0,!0),l.complete&&d({target:l})})}))}),t.addEventListener("load",d,!0),e.addEventListener("lazybeforesizes",function(e){if(e.detail.instance==n&&e.target._lazybgset&&e.detail.dataAttr){var t=function(e){var t;return t=(getComputedStyle(e)||{getPropertyValue:function(){}}).getPropertyValue("background-size"),!u[t]&&u[e.style.backgroundSize]&&(t=e.style.backgroundSize),t}(e.target._lazybgset);u[t]&&(e.target._lazysizesParentFit=t,n.rAF(function(){e.target.setAttribute("data-parent-fit",t),e.target._lazysizesParentFit&&delete e.target._lazysizesParentFit}))}},!0),t.documentElement.addEventListener("lazybeforesizes",function(e){var t,i;!e.defaultPrevented&&e.target._lazybgset&&e.detail.instance==n&&(e.detail.width=(t=e.target._lazybgset,i=n.gW(t,t.parentNode),(!t._lazysizesWidth||i>t._lazysizesWidth)&&(t._lazysizesWidth=i),t._lazysizesWidth))})}}),function(e,t){if(e){var n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}}("undefined"!=typeof window?window:0,function(e,t,n){"use strict";var i,o,r,s,a,l,u,c,d,p,h,f,m,g,v,y,b=n.cfg,w=t.createElement("img"),x="sizes"in w&&"srcset"in w,_=/\s+\d+h/g,S=(o=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,r=Array.prototype.forEach,function(){var e=t.createElement("img"),i=function(e){var t,n,i=e.getAttribute(b.srcsetAttr);i&&(n=i.match(o))&&((t="w"==n[2]?n[1]/n[3]:n[3]/n[1])&&e.setAttribute("data-aspectratio",t),e.setAttribute(b.srcsetAttr,i.replace(_,"")))},s=function(e){if(e.detail.instance==n){var t=e.target.parentNode;t&&"PICTURE"==t.nodeName&&r.call(t.getElementsByTagName("source"),i),i(e.target)}},a=function(){e.currentSrc&&t.removeEventListener("lazybeforeunveil",s)};t.addEventListener("lazybeforeunveil",s),e.onload=a,e.onerror=a,e.srcset="data:,a 1w 1h",e.complete&&a()});(b.supportsType||(b.supportsType=function(e){return!e}),e.HTMLPictureElement&&x)?!n.hasHDescriptorFix&&t.msElementsFromPoint&&(n.hasHDescriptorFix=!0,S()):e.picturefill||b.pf||(b.pf=function(t){var n,o;if(!e.picturefill)for(n=0,o=t.elements.length;n<o;n++)i(t.elements[n])},c=function(e,t){return e.w-t.w},d=/^\s*\d+\.*\d*px\s*$/,a=/(([^,\s].[^\s]+)\s+(\d+)w)/g,l=/\s/,u=function(e,t,n,i){s.push({c:t,u:n,w:1*i})},h=function(){var e,n,o;h.init||(h.init=!0,addEventListener("resize",(n=t.getElementsByClassName("lazymatchmedia"),o=function(){var e,t;for(e=0,t=n.length;e<t;e++)i(n[e])},function(){clearTimeout(e),e=setTimeout(o,66)})))},f=function(t,i){var o,r=t.getAttribute("srcset")||t.getAttribute(b.srcsetAttr);!r&&i&&(r=t._lazypolyfill?t._lazypolyfill._set:t.getAttribute(b.srcAttr)||t.getAttribute("src")),t._lazypolyfill&&t._lazypolyfill._set==r||(o=p(r||""),i&&t.parentNode&&(o.isPicture="PICTURE"==t.parentNode.nodeName.toUpperCase(),o.isPicture&&e.matchMedia&&(n.aC(t,"lazymatchmedia"),h())),o._set=r,Object.defineProperty(t,"_lazypolyfill",{value:o,writable:!0}))},m=function(t){return e.matchMedia?(m=function(e){return!e||(matchMedia(e)||{}).matches})(t):!t},g=function(t){var i,o,r,s,a,l,u;if(f(s=t,!0),(a=s._lazypolyfill).isPicture)for(o=0,r=(i=t.parentNode.getElementsByTagName("source")).length;o<r;o++)if(b.supportsType(i[o].getAttribute("type"),t)&&m(i[o].getAttribute("media"))){s=i[o],f(s),a=s._lazypolyfill;break}return a.length>1?(u=s.getAttribute("sizes")||"",u=d.test(u)&&parseInt(u,10)||n.gW(t,t.parentNode),a.d=function(t){var i=e.devicePixelRatio||1,o=n.getX&&n.getX(t);return Math.min(o||i,2.5,i)}(t),!a.src||!a.w||a.w<u?(a.w=u,l=function(e){for(var t,n,i=e.length,o=e[i-1],r=0;r<i;r++)if((o=e[r]).d=o.w/e.w,o.d>=e.d){!o.cached&&(t=e[r-1])&&t.d>e.d-.13*Math.pow(e.d,2.2)&&(n=Math.pow(t.d-.6,1.6),t.cached&&(t.d+=.15*n),t.d+(o.d-e.d)*n>e.d&&(o=t));break}return o}(a.sort(c)),a.src=l):l=a.src):l=a[0],l},(v=function(e){if(!x||!e.parentNode||"PICTURE"==e.parentNode.nodeName.toUpperCase()){var t=g(e);t&&t.u&&e._lazypolyfill.cur!=t.u&&(e._lazypolyfill.cur=t.u,t.cached=!0,e.setAttribute(b.srcAttr,t.u),e.setAttribute("src",t.u))}}).parse=p=function(e){return s=[],(e=e.trim()).replace(_,"").replace(a,u),s.length||!e||l.test(e)||s.push({c:e,u:e,w:99}),s},i=v,b.loadedClass&&b.loadingClass&&(y=[],['img[sizes$="px"][srcset].',"picture > img:not([srcset])."].forEach(function(e){y.push(e+b.loadedClass),y.push(e+b.loadingClass)}),b.pf({elements:t.querySelectorAll(y.join(", "))})))}),function(e,t){var n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,function(e,t,n){"use strict";var i="loading"in HTMLImageElement.prototype,o="loading"in HTMLIFrameElement.prototype,r=!1,s=n.prematureUnveil,a=n.cfg,l={focus:1,mouseover:1,click:1,load:1,transitionend:1,animationend:1,scroll:1,resize:1};function u(){var s,u,c,d;r||(r=!0,i&&o&&a.nativeLoading.disableListeners&&(!0===a.nativeLoading.disableListeners&&(a.nativeLoading.setLoadingAttribute=!0),s=n.loader,u=s.checkElems,c=function(){setTimeout(function(){e.removeEventListener("scroll",s._aLSL,!0)},1e3)},(d="object"==typeof a.nativeLoading.disableListeners?a.nativeLoading.disableListeners:l).scroll&&(e.addEventListener("load",c),c(),e.removeEventListener("scroll",u,!0)),d.resize&&e.removeEventListener("resize",u,!0),Object.keys(d).forEach(function(e){d[e]&&t.removeEventListener(e,u,!0)})),a.nativeLoading.setLoadingAttribute&&e.addEventListener("lazybeforeunveil",function(e){var t=e.target;"loading"in t&&!t.getAttribute("loading")&&t.setAttribute("loading","lazy")},!0))}a.nativeLoading||(a.nativeLoading={}),e.addEventListener&&e.MutationObserver&&(i||o)&&(n.prematureUnveil=function(e){return r||u(),!(!("loading"in e&&(a.nativeLoading.setLoadingAttribute||e.getAttribute("loading")))||"auto"==e.getAttribute("data-sizes")&&!e.offsetWidth)||(s?s(e):void 0)})}),function(e,t){var n=function(e,t,n){"use strict";var i,o;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in o=e.lazySizesConfig||e.lazysizesConfig||{},n)t in o||(o[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var r=t.documentElement,s=e.HTMLPictureElement,a=e.addEventListener.bind(e),l=e.setTimeout,u=e.requestAnimationFrame||l,c=e.requestIdleCallback,d=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],h={},f=Array.prototype.forEach,m=function(e,t){return h[t]||(h[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),h[t].test(e.getAttribute("class")||"")&&h[t]},g=function(e,t){m(e,t)||e.setAttribute("class",(e.getAttribute("class")||"").trim()+" "+t)},v=function(e,t){var n;(n=m(e,t))&&e.setAttribute("class",(e.getAttribute("class")||"").replace(n," "))},y=function(e,t,n){var i=n?"addEventListener":"removeEventListener";n&&y(e,t),p.forEach(function(n){e[i](n,t)})},b=function(e,n,o,r,s){var a=t.createEvent("Event");return o||(o={}),o.instance=i,a.initEvent(n,!r,!s),a.detail=o,e.dispatchEvent(a),a},w=function(t,n){var i;!s&&(i=e.picturefill||o.pf)?(n&&n.src&&!t.getAttribute("srcset")&&t.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},x=function(e,t){return(getComputedStyle(e,null)||{})[t]},_=function(e,t,n){for(n=n||e.offsetWidth;n<o.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},S=(I=[],j=[],O=I,N=function(){var e=O;for(O=I.length?j:I,P=!0,L=!1;e.length;)e.shift()();P=!1},z=function(e,n){P&&!n?e.apply(this,arguments):(O.push(e),L||(L=!0,(t.hidden?l:u)(N)))},z._lsFlush=N,z),k=function(e,t){return t?function(){S(e)}:function(){var t=this,n=arguments;S(function(){e.apply(t,n)})}},T=function(e){var t,i,o=function(){t=null,e()},r=function(){var e=n.now()-i;e<99?l(r,99-e):(c||o)(o)};return function(){i=n.now(),t||(t=l(r,99))}},C=function(){var s,p,h,_,C,D,$,R,M,A,P,L,I,j,O,N,z,H,U,F=/^img$/i,q=/^iframe$/i,W="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),B=0,V=0,Q=-1,G=function(e){V--,(!e||V<0||!e.target)&&(V=0)},Y=function(e){return null==L&&(L="hidden"==x(t.body,"visibility")),L||!("hidden"==x(e.parentNode,"visibility")&&"hidden"==x(e,"visibility"))},K=function(e,n){var i,o=e,s=Y(e);for(R-=n,P+=n,M-=n,A+=n;s&&(o=o.offsetParent)&&o!=t.body&&o!=r;)(s=(x(o,"opacity")||1)>0)&&"visible"!=x(o,"overflow")&&(i=o.getBoundingClientRect(),s=A>i.left&&M<i.right&&P>i.top-1&&R<i.bottom+1);return s},Z=function(){var e,n,a,l,u,c,d,h,f,m,g,v,y=i.elements;if((_=o.loadMode)&&V<8&&(e=y.length)){for(n=0,Q++;n<e;n++)if(y[n]&&!y[n]._lazyRace)if(!W||i.prematureUnveil&&i.prematureUnveil(y[n]))oe(y[n]);else if((h=y[n].getAttribute("data-expand"))&&(c=1*h)||(c=B),m||(m=!o.expand||o.expand<1?r.clientHeight>500&&r.clientWidth>500?500:370:o.expand,i._defEx=m,g=m*o.expFactor,v=o.hFac,L=null,B<g&&V<1&&Q>2&&_>2&&!t.hidden?(B=g,Q=0):B=_>1&&Q>1&&V<6?m:0),f!==c&&(D=innerWidth+c*v,$=innerHeight+c,d=-1*c,f=c),a=y[n].getBoundingClientRect(),(P=a.bottom)>=d&&(R=a.top)<=$&&(A=a.right)>=d*v&&(M=a.left)<=D&&(P||A||M||R)&&(o.loadHidden||Y(y[n]))&&(p&&V<3&&!h&&(_<3||Q<4)||K(y[n],c))){if(oe(y[n]),u=!0,V>9)break}else!u&&p&&!l&&V<4&&Q<4&&_>2&&(s[0]||o.preloadAfterLoad)&&(s[0]||!h&&(P||A||M||R||"auto"!=y[n].getAttribute(o.sizesAttr)))&&(l=s[0]||y[n]);l&&!u&&oe(l)}},X=(I=Z,O=0,N=o.throttleDelay,z=o.ricTimeout,H=function(){j=!1,O=n.now(),I()},U=c&&z>49?function(){c(H,{timeout:z}),z!==o.ricTimeout&&(z=o.ricTimeout)}:k(function(){l(H)},!0),function(e){var t;(e=!0===e)&&(z=33),j||(j=!0,(t=N-(n.now()-O))<0&&(t=0),e||t<9?U():l(U,t))}),J=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(G(e),g(t,o.loadedClass),v(t,o.loadingClass),y(t,te),b(t,"lazyloaded"))},ee=k(J),te=function(e){ee({target:e.target})},ne=function(e){var t,n=e.getAttribute(o.srcsetAttr);(t=o.customMedia[e.getAttribute("data-media")||e.getAttribute("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},ie=k(function(e,t,n,i,r){var s,a,u,c,p,m;(p=b(e,"lazybeforeunveil",t)).defaultPrevented||(i&&(n?g(e,o.autosizesClass):e.setAttribute("sizes",i)),a=e.getAttribute(o.srcsetAttr),s=e.getAttribute(o.srcAttr),r&&(u=e.parentNode,c=u&&d.test(u.nodeName||"")),m=t.firesLoad||"src"in e&&(a||s||c),p={target:e},g(e,o.loadingClass),m&&(clearTimeout(h),h=l(G,2500),y(e,te,!0)),c&&f.call(u.getElementsByTagName("source"),ne),a?e.setAttribute("srcset",a):s&&!c&&(q.test(e.nodeName)?function(e,t){var n=e.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)}(e,s):e.src=s),r&&(a||c)&&w(e,{src:s})),e._lazyRace&&delete e._lazyRace,v(e,o.lazyClass),S(function(){var t=e.complete&&e.naturalWidth>1;m&&!t||(t&&g(e,o.fastLoadedClass),J(p),e._lazyCache=!0,l(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&V--},!0)}),oe=function(e){if(!e._lazyRace){var t,n=F.test(e.nodeName),i=n&&(e.getAttribute(o.sizesAttr)||e.getAttribute("sizes")),r="auto"==i;(!r&&p||!n||!e.getAttribute("src")&&!e.srcset||e.complete||m(e,o.errorClass)||!m(e,o.lazyClass))&&(t=b(e,"lazyunveilread").detail,r&&E.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,V++,ie(e,t,r,i,n))}},re=T(function(){o.loadMode=3,X()}),se=function(){3==o.loadMode&&(o.loadMode=2),re()},ae=function(){p||(n.now()-C<999?l(ae,999):(p=!0,o.loadMode=3,X(),a("scroll",se,!0)))};return{_:function(){C=n.now(),i.elements=t.getElementsByClassName(o.lazyClass),s=t.getElementsByClassName(o.lazyClass+" "+o.preloadClass),a("scroll",X,!0),a("resize",X,!0),a("pageshow",function(e){if(e.persisted){var n=t.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&u(function(){n.forEach(function(e){e.complete&&oe(e)})})}}),e.MutationObserver?new MutationObserver(X).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r.addEventListener("DOMNodeInserted",X,!0),r.addEventListener("DOMAttrModified",X,!0),setInterval(X,999)),a("hashchange",X,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t.addEventListener(e,X,!0)}),/d$|^c/.test(t.readyState)?ae():(a("load",ae),t.addEventListener("DOMContentLoaded",X),l(ae,2e4)),i.elements.length?(Z(),S._lsFlush()):X()},checkElems:X,unveil:oe,_aLSL:se}}(),E=(R=k(function(e,t,n,i){var o,r,s;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),d.test(t.nodeName||""))for(o=t.getElementsByTagName("source"),r=0,s=o.length;r<s;r++)o[r].setAttribute("sizes",i);n.detail.dataAttr||w(e,n.detail)}),M=function(e,t,n){var i,o=e.parentNode;o&&(n=_(e,o,n),(i=b(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=i.detail.width)&&n!==e._lazysizesWidth&&R(e,o,i,n))},A=T(function(){var e,t=$.length;if(t)for(e=0;e<t;e++)M($[e])}),{_:function(){$=t.getElementsByClassName(o.autosizesClass),a("resize",A)},checkElems:A,updateElem:M}),D=function(){!D.i&&t.getElementsByClassName&&(D.i=!0,E._(),C._())};var $,R,M,A;var P,L,I,j,O,N,z;return l(function(){o.init&&D()}),i={cfg:o,autoSizer:E,loader:C,init:D,uP:w,aC:g,rC:v,hC:m,fire:b,gW:_,rAF:S}}(e,e.document,Date);e.lazySizes=n,"object"==typeof module&&module.exports&&(module.exports=n)}("undefined"!=typeof window?window:{}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AOS=t():e.AOS=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=(i(n(1)),n(6)),s=i(r),a=i(n(7)),l=i(n(8)),u=i(n(9)),c=i(n(10)),d=i(n(11)),p=i(n(14)),h=[],f=!1,m={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},g=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(f=!0),f)return h=(0,d.default)(h,m),(0,c.default)(h,m.once),h},v=function(){h=(0,p.default)(),g()};e.exports={init:function(e){m=o(m,e),h=(0,p.default)();var t=document.all&&!window.atob;return function(e){return!0===e||"mobile"===e&&u.default.mobile()||"phone"===e&&u.default.phone()||"tablet"===e&&u.default.tablet()||"function"==typeof e&&!0===e()}(m.disable)||t?void h.forEach(function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")}):(m.disableMutationObserver||l.default.isSupported()||(console.info('\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call "refreshHard()" by yourself.\n    '),m.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",m.easing),document.querySelector("body").setAttribute("data-aos-duration",m.duration),document.querySelector("body").setAttribute("data-aos-delay",m.delay),"DOMContentLoaded"===m.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?g(!0):"load"===m.startEvent?window.addEventListener(m.startEvent,function(){g(!0)}):document.addEventListener(m.startEvent,function(){g(!0)}),window.addEventListener("resize",(0,a.default)(g,m.debounceDelay,!0)),window.addEventListener("orientationchange",(0,a.default)(g,m.debounceDelay,!0)),window.addEventListener("scroll",(0,s.default)(function(){(0,c.default)(h,m.once)},m.throttleDelay)),m.disableMutationObserver||l.default.ready("[data-aos]",v),h)},refresh:g,refreshHard:v}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function o(t){var n=d,i=p;return d=p=void 0,v=t,f=e.apply(i,n)}function s(e){var n=e-g;return void 0===g||n>=t||n<0||_&&e-v>=h}function l(){var e=x();return s(e)?u(e):void(m=setTimeout(l,function(e){var n=t-(e-g);return _?w(n,h-(e-v)):n}(e)))}function u(e){return m=void 0,S&&d?o(e):(d=p=void 0,f)}function c(){var e=x(),n=s(e);if(d=arguments,p=this,g=e,n){if(void 0===m)return function(e){return v=e,m=setTimeout(l,t),y?o(e):f}(g);if(_)return m=setTimeout(l,t),o(g)}return void 0===m&&(m=setTimeout(l,t)),f}var d,p,h,f,m,g,v=0,y=!1,_=!1,S=!0;if("function"!=typeof e)throw new TypeError(a);return t=r(t)||0,i(n)&&(y=!!n.leading,h=(_="maxWait"in n)?b(r(n.maxWait)||0,t):h,S="trailing"in n?!!n.trailing:S),c.cancel=function(){void 0!==m&&clearTimeout(m),v=0,d=g=p=m=void 0},c.flush=function(){return void 0===m?f:u(x())},c}function i(e){var t=void 0===e?"undefined":s(e);return!!e&&("object"==t||"function"==t)}function o(e){return"symbol"==(void 0===e?"undefined":s(e))||function(e){return!!e&&"object"==(void 0===e?"undefined":s(e))}(e)&&y.call(e)==u}function r(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var n=p.test(e);return n||h.test(e)?f(e.slice(2),n?2:8):d.test(e)?l:+e}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a="Expected a function",l=NaN,u="[object Symbol]",c=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=parseInt,m="object"==(void 0===t?"undefined":s(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),y=Object.prototype.toString,b=Math.max,w=Math.min,x=function(){return v.Date.now()};e.exports=function(e,t,o){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(a);return i(o)&&(r="leading"in o?!!o.leading:r,s="trailing"in o?!!o.trailing:s),n(e,t,{leading:r,maxWait:t,trailing:s})}}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e){var t=void 0===e?"undefined":r(e);return!!e&&("object"==t||"function"==t)}function i(e){return"symbol"==(void 0===e?"undefined":r(e))||function(e){return!!e&&"object"==(void 0===e?"undefined":r(e))}(e)&&v.call(e)==l}function o(e){if("number"==typeof e)return e;if(i(e))return a;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var o=d.test(e);return o||p.test(e)?h(e.slice(2),o?2:8):c.test(e)?a:+e}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="Expected a function",a=NaN,l="[object Symbol]",u=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,h=parseInt,f="object"==(void 0===t?"undefined":r(t))&&t&&t.Object===Object&&t,m="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,g=f||m||Function("return this")(),v=Object.prototype.toString,y=Math.max,b=Math.min,w=function(){return g.Date.now()};e.exports=function(e,t,i){function r(t){var n=d,i=p;return d=p=void 0,v=t,f=e.apply(i,n)}function a(e){var n=e-g;return void 0===g||n>=t||n<0||_&&e-v>=h}function l(){var e=w();return a(e)?u(e):void(m=setTimeout(l,function(e){var n=t-(e-g);return _?b(n,h-(e-v)):n}(e)))}function u(e){return m=void 0,S&&d?r(e):(d=p=void 0,f)}function c(){var e=w(),n=a(e);if(d=arguments,p=this,g=e,n){if(void 0===m)return function(e){return v=e,m=setTimeout(l,t),x?r(e):f}(g);if(_)return m=setTimeout(l,t),r(g)}return void 0===m&&(m=setTimeout(l,t)),f}var d,p,h,f,m,g,v=0,x=!1,_=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=o(t)||0,n(i)&&(x=!!i.leading,h=(_="maxWait"in i)?y(o(i.maxWait)||0,t):h,S="trailing"in i?!!i.trailing:S),c.cancel=function(){void 0!==m&&clearTimeout(m),v=0,d=g=p=m=void 0},c.flush=function(){return void 0===m?f:u(w())},c}}).call(t,function(){return this}())},function(e,t){"use strict";function n(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function i(e){e&&e.forEach(function(e){var t=Array.prototype.slice.call(e.addedNodes),n=Array.prototype.slice.call(e.removedNodes);if(function e(t){var n=void 0,i=void 0;for(n=0;n<t.length;n+=1){if((i=t[n]).dataset&&i.dataset.aos)return!0;if(i.children&&e(i.children))return!0}return!1}(t.concat(n)))return o()})}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){};t.default={isSupported:function(){return!!n()},ready:function(e,t){var r=window.document,s=new(n())(i);o=t,s.observe(r.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}}},function(e,t){"use strict";function n(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,r=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,a=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,[{key:"phone",value:function(){var e=n();return!(!o.test(e)&&!r.test(e.substr(0,4)))}},{key:"mobile",value:function(){var e=n();return!(!s.test(e)&&!a.test(e.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),e}();t.default=new l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n=window.pageYOffset,i=window.innerHeight;e.forEach(function(e,o){!function(e,t,n){var i=e.node.getAttribute("data-aos-once");t>e.position?e.node.classList.add("aos-animate"):void 0!==i&&("false"===i||!n&&"true"!==i)&&e.node.classList.remove("aos-animate")}(e,i+n,t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(12));t.default=function(e,t){return e.forEach(function(e,n){e.node.classList.add("aos-init"),e.position=(0,i.default)(e.node,t.offset)}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(13));t.default=function(e,t){var n=0,o=0,r=window.innerHeight,s={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(s.offset&&!isNaN(s.offset)&&(o=parseInt(s.offset)),s.anchor&&document.querySelectorAll(s.anchor)&&(e=document.querySelectorAll(s.anchor)[0]),n=(0,i.default)(e).top,s.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=r/2;break;case"bottom-center":n+=r/2+e.offsetHeight;break;case"center-center":n+=r/2+e.offsetHeight/2;break;case"top-top":n+=r;break;case"bottom-top":n+=e.offsetHeight+r;break;case"center-top":n+=e.offsetHeight/2+r}return s.anchorPlacement||s.offset||isNaN(t)||(o=t),n+o}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,function(e){return{node:e}})}}])}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(e){var t,n,i,o,r,s,a=function(){},l=!!window.jQuery,u=e(window),c=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},p=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},h=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},f=function(){e.magnificPopup.instance||((t=new a).init(),e.magnificPopup.instance=t)};a.prototype={constructor:a,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var s,a=n.items;for(o=0;o<a.length;o++)if((s=a[o]).parsed&&(s=s.el[0]),s===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",function(){t.close()}),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var f=l[o];f=f.charAt(0).toUpperCase()+f.slice(1),t["init"+f].call(t)}p("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(c("MarkupParse",function(e,t,n,i){n.close_replaceWith=h(i.type)}),r+=" mfp-close-btn-in"):t.wrap.append(h())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:u.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),u.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var m=t.wH=u.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(m)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),p("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(m),p("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(p("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){p("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,p("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||u.height();t.fixedContentPos||t.wrap.css("height",t.wH),p("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(p("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;p("FirstMarkupParse",r),t.currTemplate[i]=!r||e(r)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var s=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(s,i),n.preloaded=!0,p("Change",n),o=n.type,t.container.prepend(t.contentContainer),p("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(h()):t.content=e:t.content="",p("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,s=0;s<r.length;s++)if(o.el.hasClass("mfp-"+r[s])){i=r[s];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,p("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(u.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};p("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||u.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),p("MarkupParse",[t,n,i]),e.each(n,function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var r=t.find(".mfp-"+o[0]);if(r.length>0){var s=o[1];"replaceWith"===s?r[0]!==i[0]&&r.replaceWith(i):"img"===s?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(".mfp-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:a.prototype,modules:[],open:function(t,n){return f(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){f();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=l?i.data("magnificPopup"):i[0].magnificPopup,s=parseInt(arguments[1],10)||0;r.items?o=r.items[s]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(s)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var m,g,v,y=function(){v&&(g.after(v.addClass(m)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),c("Close.inline",function(){y()})},getInline:function(n,i){if(y(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var s=r[0].parentNode;s&&s.tagName&&(g||(m=o.hiddenClass,g=d(m),m="mfp-"+m),v=r.after(g).detach().removeClass(m)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var b,w=function(){b&&e(document.body).removeClass(b)},x=function(){w(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,c("Close.ajax",x),c("BeforeChange.ajax",x)},getAjax:function(n){b&&e(document.body).addClass(b),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var s={data:i,xhr:r};p("ParseAjax",s),t.appendContent(e(s.data),"ajax"),n.finished=!0,w(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),p("AjaxContentAdded")},error:function(){w(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var _,S=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),c("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),c("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),u.off("resize.mfp")}),c("Resize"+i,t.resizeImage),t.isLowIE&&c("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,_&&clearInterval(_),e.isCheckingImgSize=!1,p("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){_&&clearInterval(_),_=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(_),3===++n?o(10):40===n?o(50):100===n&&o(500))},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,p("ImageLoadComplete")):++o<200?setTimeout(r,100):s())},s=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",a.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},a=t.st.image,l=i.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",n.el&&n.el.find("img").length&&(u.alt=n.el.find("img").attr("alt")),n.img=e(u).on("load.mfploader",r).on("error.mfploader",s),u.src=n.src,l.is("img")&&(n.img=n.img.clone()),(u=n.img[0]).naturalWidth>0?n.hasSize=!0:u.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:S(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(_&&clearInterval(_),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",a.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var k;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,s=n.duration,a=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};c("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(r=a(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){r.remove(),e=r=null,p("ZoomAnimationEnded")},16)},s)},16)}}),c("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=s,!e){if(!(e=t._getItemToZoom()))return;r=a(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),c("Close"+i,function(){t._allowZoom()&&(l(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(i.css("padding-top"),10),s=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var a={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-s-r};return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k?a["-moz-transform"]=a.transform="translate("+o.left+"px,"+o.top+"px)":(a.left=o.left,a.top=o.top),a}}});var T=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),c("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?T():"iframe"===n&&T(!0))}),c("Close.iframe",function(){T()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var s={};return r.srcAction&&(s[r.srcAction]=o),t._parseMarkup(i,s,n),t.updateStatus("ready"),i}}});var C=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},E=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;r+=" mfp-gallery",c("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),c("UpdateStatus"+o,function(e,n){n.text&&(n.text=E(n.text,t.currItem.index,t.items.length))}),c("MarkupParse"+o,function(e,i,o,r){var s=t.items.length;o.counter=s>1?E(n.tCounter,r.index,s):""}),c("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click(function(){t.prev()}),r.click(function(){t.next()}),t.container.append(o.add(r))}}),c("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),c("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=C(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=C(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=C(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),p("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,p("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(c("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),c("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),f()}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,i,o,r;return t&&t.requirejs||(t?i=t:t={},function(e){var t,r,s,a,l={},u={},c={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function m(e,t){return p.call(e,t)}function g(e,t){var n,i,o,r,s,a,l,u,d,p,h,m=t&&t.split("/"),g=c.map,v=g&&g["*"]||{};if(e){for(s=(e=e.split("/")).length-1,c.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),d=0;d<e.length;d++)if("."===(h=e[d]))e.splice(d,1),d-=1;else if(".."===h){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((m||v)&&g){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),m)for(p=m.length;p>0;p-=1)if((o=g[m.slice(0,p).join("/")])&&(o=o[i])){r=o,a=d;break}if(r)break;!l&&v&&v[i]&&(l=v[i],u=d)}!r&&l&&(r=l,a=u),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function v(t,n){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),r.apply(e,i.concat([t,n]))}}function y(e){return function(t){l[e]=t}}function b(n){if(m(u,n)){var i=u[n];delete u[n],d[n]=!0,t.apply(e,i)}if(!m(l,n)&&!m(d,n))throw new Error("No "+n);return l[n]}function w(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function x(e){return e?w(e):[]}function _(e){return function(){return c&&c.config&&c.config[e]||{}}}s=function(e,t){var n,i,o=w(e),r=o[0],s=t[1];return e=o[1],r&&(n=b(r=g(r,s))),r?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return g(e,i)})):g(e,s):(r=(o=w(e=g(e,s)))[0],e=o[1],r&&(n=b(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},a={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:_(e)}}},t=function(t,n,i,o){var r,c,p,h,f,g,w,_=[],S=typeof i;if(g=x(o=o||t),"undefined"===S||"function"===S){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(c=(h=s(n[f],g)).f))_[f]=a.require(t);else if("exports"===c)_[f]=a.exports(t),w=!0;else if("module"===c)r=_[f]=a.module(t);else if(m(l,c)||m(u,c)||m(d,c))_[f]=b(c);else{if(!h.p)throw new Error(t+" missing "+c);h.p.load(h.n,v(o,!0),y(c),{}),_[f]=l[c]}p=i?i.apply(l[t],_):void 0,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:p===e&&w||(l[t]=p))}else t&&(l[t]=i)},n=i=r=function(n,i,o,l,u){if("string"==typeof n)return a[n]?a[n](i):b(s(n,x(i)).f);if(!n.splice){if((c=n).deps&&r(c.deps,c.callback),!i)return;i.splice?(n=i,i=o,o=null):n=e}return i=i||function(){},"function"==typeof o&&(o=l,l=u),l?t(e,n,i,o):setTimeout(function(){t(e,n,i,o)},4),r},r.config=function(e){return r(e)},n._defined=l,(o=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),m(l,e)||m(u,e)||(u[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=i,t.define=o),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&("constructor"!==i&&n.push(i))}return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),o=n(e);function r(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,o=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),o=t.prototype.constructor),o.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var s=0;s<o.length;s++){var a=o[s];r.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},u=0;u<i.length;u++){var c=i[u];r.prototype[c]=l(c)}return r};var i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},t.__cache={};var o=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++o),t=o.toString())),t},t.StoreData=function(e,n,i){var o=t.GetUniqueElementId(e);t.__cache[o]||(t.__cache[o]={}),t.__cache[o][n]=i},t.GetData=function(n,i){var o=t.GetUniqueElementId(n);return i?t.__cache[o]&&null!=t.__cache[o][i]?t.__cache[o][i]:e(n).data(i):t.__cache[o]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(i){var o=e.map(i,function(e){return e.id.toString()});n.$results.find(".select2-results__option[aria-selected]").each(function(){var n=e(this),i=t.GetData(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(r,o)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var o={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&r.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete o["aria-selected"],o["aria-disabled"]="true"),null==n.id&&delete o["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,delete o["aria-selected"]),o){var a=o[s];i.setAttribute(s,a)}if(n.children){var l=e(i),u=document.createElement("strong");u.className="select2-results__group";e(u);this.template(n,u);for(var c=[],d=0;d<n.children.length;d++){var p=n.children[d],h=this.option(p);c.push(h)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(c),l.append(u),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var o=this,r=n.id+"-results";this.$results.attr("id",r),n.on("results:all",function(e){o.clear(),o.append(e.data),n.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),n.on("results:append",function(e){o.append(e.data),n.isOpen()&&o.setClasses()}),n.on("query",function(e){o.hideMessages(),o.showLoading(e)}),n.on("select",function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())}),n.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()}),n.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=o.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?o.trigger("close",{}):o.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=o.getHighlightedResults(),t=o.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var s=o.$results.offset().top,a=r.offset().top,l=o.$results.scrollTop()+(a-s);0===i?o.$results.scrollTop(0):a-s<0&&o.$results.scrollTop(l)}}),n.on("results:next",function(){var e=o.getHighlightedResults(),t=o.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=o.$results.offset().top+o.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),a=o.$results.scrollTop()+s-r;0===n?o.$results.scrollTop(0):s>r&&o.$results.scrollTop(a)}}),n.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(e){o.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=o.$results.height();i?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var i=e(this),r=t.GetData(this,"data");"true"!==i.attr("aria-selected")?o.trigger("select",{originalEvent:n,data:r}):o.options.get("multiple")?o.trigger("unselect",{originalEvent:n,data:r}):o.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var i=t.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted"),o.trigger("results:focus",{data:i,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,o=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")}),e.on("disable",function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each(function(){this!=i[0]&&t.GetData(this,"element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.trigger("focus")})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var o=t.title||t.text;o?n.attr("title",o):n.removeAttr("title")}else this.clear()},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,o){var r=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!r.isDisabled()){var i=e(this).parent(),o=n.GetData(i[0],"data");r.trigger("unselect",{originalEvent:t,data:o})}})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var o=e[i],r=this.selectionContainer(),s=this.display(o,r);r.append(s);var a=o.title||o.text;a&&r.attr("title",a),n.StoreData(r[0],"data",o),t.push(r)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var o=n.GetData(i[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var s={data:o};if(this.trigger("clear",s),s.prevented)this.$element.val(r);else{for(var a=0;a<o.length;a++)if(s={data:o[a]},this.trigger("unselect",s),s.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var o=this.options.get("translations").get("removeAllItems"),r=e('<span class="select2-selection__clear" title="'+o()+'">&times;</span>');n.StoreData(r[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(r)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,i,o){var r=this,s=i.id+"-results";e.call(this,i,o),i.on("open",function(){r.$search.attr("aria-controls",s),r.$search.trigger("focus")}),i.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),i.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),i.on("disable",function(){r.$search.prop("disabled",!0)}),i.on("focus",function(e){r.$search.trigger("focus")}),i.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===r.$search.val()){var i=r.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var o=t.GetData(i[0],"data");r.searchRemoveChoice(o),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var a=document.documentMode,l=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){l?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(l&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.handleSearch(e)}})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var o=[];(e=[e]).push.apply(e,i);for(var r=0;r<e.length;r++){var s=e[r].id;-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger("input").trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(i){for(var o=[],r=0;r<i.length;r++){var s=i[r].id;s!==e.id&&-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger("input").trigger("change")})}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var r=o.item(t),s=o.matches(e,r);null!==s&&i.push(s)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var o=n(i),r=this._normalizeItem(e);return r.element=i,t.StoreData(i,"data",r),o},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;if(e.is("option"))i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var o=e.children("option"),r=[],s=0;s<o.length;s++){var a=n(o[s]),l=this.item(a);r.push(l)}i.children=r}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var i=this,o=this.$element.find("option"),r=o.map(function(){return i.item(n(this)).id}).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var u=this._normalizeItem(e[l]);if(n.inArray(u.id,r)>=0){var c=o.filter(a(u)),d=this.item(c),p=n.extend(!0,{},u,d),h=this.option(p);c.replaceWith(h)}else{var f=this.option(u);if(u.children){var m=this.convertToOptions(u.children);t.appendMany(f,m)}s.push(f)}}return s},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);function r(){var r=o.transport(o,function(o){var r=i.processResults(o,e);i.options.get("debug")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)},function(){"status"in r&&(0===r.status||"0"===r.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=r}"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var o=i.get("tags"),r=i.get("createTag");void 0!==r&&(this.createTag=r);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,i),e.isArray(o))for(var a=0;a<o.length;a++){var l=o[a],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function e(o,r){for(var s=o.results,a=0;a<s.length;a++){var l=s[a],u=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||u)return!r&&(o.data=s,void n(o))}if(r)return!0;var c=i.createTag(t);if(null!=c){var d=i.option(c);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(s,c)}o.results=s,n(o)}):e.call(this,t,n)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var o=this;n.term=n.term||"";var r=this.tokenizer(n,this.options,function(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}!function(e){o.trigger("select",{data:e})}(n)});r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),n.term=r.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var u=s[a];if(-1!==e.inArray(u,r)){var c=s.substr(0,a),d=l(e.extend({},n,{term:c}));null!=d?(o(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var o=this,r=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.attr("aria-controls",r),o.$search.trigger("focus"),window.setTimeout(function(){o.$search.trigger("focus")},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.val(""),o.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||o.$search.trigger("focus")}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide"))}),n.on("results:focus",function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)}),e(window).on(r+" "+s+" "+a,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+r+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),u=t.scrollTop()+t.height(),c=l<r.top-a,d=u>r.bottom+a,p={left:r.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f={top:0,left:0};(e.contains(document.body,h[0])||h[0].isConnected)&&(f=h.offset()),p.top-=f.top,p.left-=f.left,n||i||(o="below"),d||!c||n?!c&&d&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(p.top=s.top-f.top-a),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(p)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var r=e.GetData(o[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,i,o,r,s,a,l,u,c,d,p,h,f,m,g,v,y,b,w,x,_,S,k,T,C,E,D){function $(){this.reset()}return $.prototype.apply=function(c){if(null==(c=e.extend(!0,{},this.defaults,c)).dataAdapter){if(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=h:c.dataAdapter=p,c.minimumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,y)),c.maximumSelectionLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,b)),c.tags&&(c.dataAdapter=u.Decorate(c.dataAdapter,m)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,g)),null!=c.query){var d=t(c.amdBase+"compat/query");c.dataAdapter=u.Decorate(c.dataAdapter,d)}if(null!=c.initSelection){var D=t(c.amdBase+"compat/initSelection");c.dataAdapter=u.Decorate(c.dataAdapter,D)}}if(null==c.resultsAdapter&&(c.resultsAdapter=n,null!=c.ajax&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,S)),null!=c.placeholder&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,_)),c.selectOnClose&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,C))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=w;else{var $=u.Decorate(w,x);c.dropdownAdapter=$}if(0!==c.minimumResultsForSearch&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,T)),c.closeOnSelect&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,E)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var R=t(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=u.Decorate(c.dropdownAdapter,R)}c.dropdownAdapter=u.Decorate(c.dropdownAdapter,k)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=o:c.selectionAdapter=i,null!=c.placeholder&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,r)),c.allowClear&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,s)),c.multiple&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,a)),null!=c.containerCssClass||null!=c.containerCss||null!=c.adaptContainerCssClass){var M=t(c.amdBase+"compat/containerCss");c.selectionAdapter=u.Decorate(c.selectionAdapter,M)}c.selectionAdapter=u.Decorate(c.selectionAdapter,l)}c.language=this._resolveLanguage(c.language),c.language.push("en");for(var A=[],P=0;P<c.language.length;P++){var L=c.language[P];-1===A.indexOf(L)&&A.push(L)}return c.language=A,c.translations=this._processTranslations(c.language,c.debug),c},$.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return d[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:{},matcher:function n(i,o){if(""===e.trim(i.term))return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),s=o.children.length-1;s>=0;s--)null==n(i,o.children[s])&&r.children.splice(s,1);return r.children.length>0?r:n(i,r)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},$.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,o=t.prop("lang"),r=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(r));return e.language=s,e},$.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=e.isArray(t)?t:[t];for(var i=[],o=0;o<n.length;o++)if(i.push(n[o]),"string"==typeof n[o]&&n[o].indexOf("-")>0){var r=n[o].split("-")[0];i.push(r)}return i},$.prototype._processTranslations=function(t,n){for(var i=new c,o=0;o<t.length;o++){var r=new c,s=t[o];if("string"==typeof s)try{r=c.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,r=c.loadPath(s)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else r=e.isPlainObject(s)?new c(s):s;i.extend(r)}return i},$.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=u._convertData(i);e.extend(!0,this.defaults,o)},new $}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),null!=o&&(this.options=n.applyFromElement(this.options,o)),this.options=n.apply(this.options),o&&o.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var o={};function r(e,t){return t.toUpperCase()}for(var s=0;s<e[0].attributes.length;s++){var a=e[0].attributes[s].name;if("data-"==a.substr(0,"data-".length)){var l=a.substring("data-".length),u=i.GetData(e[0],l);o[l.replace(/-([a-z])/g,r)]=u}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(o=t.extend(!0,{},e[0].dataset,o));var c=t.extend(!0,{},i.GetData(e[0]),o);for(var d in c=i._convertData(c))t.inArray(d,n)>-1||(t.isPlainObject(this.options[d])?t.extend(this.options[d],c[d]):this.options[d]=c[d]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),o.__super__.constructor.call(this);var r=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var u=this.options.get("dropdownAdapter");this.dropdown=new u(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){d.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),a=0,l=s.length;a<l;a+=1){var u=s[a].replace(/\s/g,"").match(n);if(null!==u&&u.length>=1)return u[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t(function(t){e._syncA(),e._syncS(null,t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._isChangeMutation=function(t,n){var i=!1,o=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(n)if(n.addedNodes&&n.addedNodes.length>0)for(var r=0;r<n.addedNodes.length;r++){n.addedNodes[r].selected&&(i=!0)}else n.removedNodes&&n.removedNodes.length>0?i=!0:e.isArray(n)&&e.each(n,function(e,t){if(o._isChangeMutation(e,t))return i=!0,!1});else i=!0;return i}},o.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),i=this;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},o.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("input").trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},o}),t.define("select2/compat/utils",["jquery"],function(e){return{syncCssClasses:function(t,n,i){var o,r,s=[];(o=e.trim(t.attr("class")))&&e((o=""+o).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&s.push(this)}),(o=e.trim(n.attr("class")))&&e((o=""+o).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=i(this))&&s.push(r)}),t.attr("class",s.join(" "))}}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get("containerCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||n,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("containerCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get("dropdownCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||n,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("dropdownCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define("select2/compat/initSelection",["jquery"],function(e){function t(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return t.prototype.current=function(t,n){var i=this;this._isInitialized?t.call(this,n):this.initSelection.call(null,this.$element,function(t){i._isInitialized=!0,e.isArray(t)||(t=[t]),n(t)})},t}),t.define("select2/compat/inputData",["jquery","../utils"],function(e,t){function n(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return n.prototype.current=function(t,n){function i(t,n){var o=[];return t.selected||-1!==e.inArray(t.id,n)?(t.selected=!0,o.push(t)):t.selected=!1,t.children&&o.push.apply(o,i(t.children,n)),o}for(var o=[],r=0;r<this._currentData.length;r++){var s=this._currentData[r];o.push.apply(o,i(s,this.$element.val().split(this._valueSeparator)))}n(o)},n.prototype.select=function(t,n){if(this.options.get("multiple")){var i=this.$element.val();i+=this._valueSeparator+n.id,this.$element.val(i),this.$element.trigger("input").trigger("change")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(n.id),this.$element.trigger("input").trigger("change")},n.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current(function(e){for(var i=[],o=0;o<e.length;o++){var r=e[o];t.id!=r.id&&i.push(r.id)}n.$element.val(i.join(n._valueSeparator)),n.$element.trigger("input").trigger("change")})},n.prototype.query=function(e,t,n){for(var i=[],o=0;o<this._currentData.length;o++){var r=this._currentData[o],s=this.matches(t,r);null!==s&&i.push(s)}n({results:i})},n.prototype.addOptions=function(n,i){var o=e.map(i,function(e){return t.GetData(e[0],"data")});this._currentData.push.apply(this._currentData,o)},n}),t.define("select2/compat/matcher",["jquery"],function(e){return function(t){return function(n,i){var o=e.extend(!0,{},i);if(null==n.term||""===e.trim(n.term))return o;if(i.children){for(var r=i.children.length-1;r>=0;r--){var s=i.children[r];t(n.term,s.text,s)||o.children.splice(r,1)}if(o.children.length>0)return o}return t(n.term,i.text,i)?o:null}}}),t.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),t.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),t.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),t.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),r=function(e){var t,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(e.event.fixHooks)for(var s=i.length;s;)e.event.fixHooks[i[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var o,s=i||window.event,l=r.call(arguments,1),d=0,p=0,h=0,f=0,m=0;if((i=e.event.fix(s)).type="mousewheel","detail"in s&&(h=-1*s.detail),"wheelDelta"in s&&(h=s.wheelDelta),"wheelDeltaY"in s&&(h=s.wheelDeltaY),"wheelDeltaX"in s&&(p=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(p=-1*h,h=0),d=0===h?p:h,"deltaY"in s&&(d=h=-1*s.deltaY),"deltaX"in s&&(p=s.deltaX,0===h&&(d=-1*p)),0!==h||0!==p){if(1===s.deltaMode){var g=e.data(this,"mousewheel-line-height");d*=g,h*=g,p*=g}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");d*=v,h*=v,p*=v}if(o=Math.max(Math.abs(h),Math.abs(p)),(!n||o<n)&&(n=o,c(s,o)&&(n/=40)),c(s,o)&&(d/=40,p/=40,h/=40),d=Math[d>=1?"floor":"ceil"](d/n),p=Math[p>=1?"floor":"ceil"](p/n),h=Math[h>=1?"floor":"ceil"](h/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=i.clientX-y.left,m=i.clientY-y.top}return i.deltaX=p,i.deltaY=h,i.deltaFactor=n,i.offsetX=f,i.offsetY=m,i.deltaMode=0,l.unshift(i,d,p,h),t&&clearTimeout(t),t=setTimeout(u,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function u(){n=null}function c(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],r):"object"==typeof exports?module.exports=r:r(e),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,i,o){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,s)}),e.inArray(t,r)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n}),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/af",[],function(){return{errorLoading:function(){return"Die resultate kon nie gelaai word nie."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Verwyders asseblief "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Voer asseblief "+(e.minimum-e.input.length)+" of meer karakters"},loadingMore:function(){return"Meer resultate word gelaai…"},maximumSelected:function(e){var t="Kies asseblief net "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"Geen resultate gevind"},searching:function(){return"Besig…"},removeAllItems:function(){return"Verwyder alle items"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(e){return"الرجاء حذف "+(e.input.length-e.maximum)+" عناصر"},inputTooShort:function(e){return"الرجاء إضافة "+(e.minimum-e.input.length)+" عناصر"},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(e){return"تستطيع إختيار "+e.maximum+" بنود فقط"},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"},removeAllItems:function(){return"قم بإزالة كل العناصر"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/az",[],function(){return{inputTooLong:function(e){return e.input.length-e.maximum+" simvol silin"},inputTooShort:function(e){return e.minimum-e.input.length+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(e){return"Sadəcə "+e.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"},removeAllItems:function(){return"Bütün elementləri sil"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/bg",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Моля въведете с "+t+" по-малко символ";return t>1&&(n+="a"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Моля въведете още "+t+" символ";return t>1&&(n+="a"),n},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(e){var t="Можете да направите до "+e.maximum+" ";return e.maximum>1?t+="избора":t+="избор",t},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"},removeAllItems:function(){return"Премахнете всички елементи"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/bn",[],function(){return{errorLoading:function(){return"ফলাফলগুলি লোড করা যায়নি।"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="অনুগ্রহ করে "+t+" টি অক্ষর মুছে দিন।";return 1!=t&&(n="অনুগ্রহ করে "+t+" টি অক্ষর মুছে দিন।"),n},inputTooShort:function(e){return e.minimum-e.input.length+" টি অক্ষর অথবা অধিক অক্ষর লিখুন।"},loadingMore:function(){return"আরো ফলাফল লোড হচ্ছে ..."},maximumSelected:function(e){var t=e.maximum+" টি আইটেম নির্বাচন করতে পারবেন।";return 1!=e.maximum&&(t=e.maximum+" টি আইটেম নির্বাচন করতে পারবেন।"),t},noResults:function(){return"কোন ফলাফল পাওয়া যায়নি।"},searching:function(){return"অনুসন্ধান করা হচ্ছে ..."}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/bs",[],function(){function e(e,t,n,i){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?n:i}return{errorLoading:function(){return"Preuzimanje nije uspijelo."},inputTooLong:function(t){var n=t.input.length-t.maximum;return"Obrišite "+n+" simbol"+e(n,"","a","a")},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Ukucajte bar još "+n+" simbol"+e(n,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(t){return"Možete izabrati samo "+t.maximum+" stavk"+e(t.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Uklonite sve stavke"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Si us plau, elimina "+t+" car"+(1==t?"àcter":"àcters")},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Si us plau, introdueix "+t+" car"+(1==t?"àcter":"àcters")},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var t="Només es pot seleccionar "+e.maximum+" element";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"},removeAllItems:function(){return"Treu tots els elements"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/cs",[],function(){function e(e,t){switch(e){case 2:return t?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(t){var n=t.input.length-t.maximum;return 1==n?"Prosím, zadejte o jeden znak méně.":n<=4?"Prosím, zadejte o "+e(n,!0)+" znaky méně.":"Prosím, zadejte o "+n+" znaků méně."},inputTooShort:function(t){var n=t.minimum-t.input.length;return 1==n?"Prosím, zadejte ještě jeden znak.":n<=4?"Prosím, zadejte ještě další "+e(n,!0)+" znaky.":"Prosím, zadejte ještě dalších "+n+" znaků."},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(t){var n=t.maximum;return 1==n?"Můžete zvolit jen jednu položku.":n<=4?"Můžete zvolit maximálně "+e(n,!1)+" položky.":"Můžete zvolit maximálně "+n+" položek."},noResults:function(){return"Nenalezeny žádné položky."},searching:function(){return"Vyhledávání…"},removeAllItems:function(){return"Odstraňte všechny položky"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"Resultaterne kunne ikke indlæses."},inputTooLong:function(e){return"Angiv venligst "+(e.input.length-e.maximum)+" tegn mindre"},inputTooShort:function(e){return"Angiv venligst "+(e.minimum-e.input.length)+" tegn mere"},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var t="Du kan kun vælge "+e.maximum+" emne";return 1!=e.maximum&&(t+="r"),t},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(e){return"Bitte "+(e.input.length-e.maximum)+" Zeichen weniger eingeben"},inputTooShort:function(e){return"Bitte "+(e.minimum-e.input.length)+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var t="Sie können nur "+e.maximum+" Element";return 1!=e.maximum&&(t+="e"),t+" auswählen"},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"},removeAllItems:function(){return"Entferne alle Elemente"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/dsb",[],function(){var e=["znamuško","znamušce","znamuška","znamuškow"],t=["zapisk","zapiska","zapiski","zapiskow"],n=function(e,t){return 1===e?t[0]:2===e?t[1]:e>2&&e<=4?t[2]:e>=5?t[3]:void 0};return{errorLoading:function(){return"Wuslědki njejsu se dali zacytaś."},inputTooLong:function(t){var i=t.input.length-t.maximum;return"Pšosym lašuj "+i+" "+n(i,e)},inputTooShort:function(t){var i=t.minimum-t.input.length;return"Pšosym zapódaj nanejmjenjej "+i+" "+n(i,e)},loadingMore:function(){return"Dalšne wuslědki se zacytaju…"},maximumSelected:function(e){return"Móžoš jano "+e.maximum+" "+n(e.maximum,t)+"wubraś."},noResults:function(){return"Žedne wuslědki namakane"},searching:function(){return"Pyta se…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Παρακαλώ διαγράψτε "+t+" χαρακτήρ";return 1==t&&(n+="α"),1!=t&&(n+="ες"),n},inputTooShort:function(e){return"Παρακαλώ συμπληρώστε "+(e.minimum-e.input.length)+" ή περισσότερους χαρακτήρες"},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(e){var t="Μπορείτε να επιλέξετε μόνο "+e.maximum+" επιλογ";return 1==e.maximum&&(t+="ή"),1!=e.maximum&&(t+="ές"),t},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"},removeAllItems:function(){return"Καταργήστε όλα τα στοιχεία"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"No se pudieron cargar los resultados"},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Por favor, elimine "+t+" car"+(1==t?"ácter":"acteres")},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Por favor, introduzca "+t+" car"+(1==t?"ácter":"acteres")},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var t="Sólo puede seleccionar "+e.maximum+" elemento";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Eliminar todos los elementos"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Sisesta "+t+" täht";return 1!=t&&(n+="e"),n+" vähem"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Sisesta "+t+" täht";return 1!=t&&(n+="e"),n+" rohkem"},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var t="Saad vaid "+e.maximum+" tulemus";return 1==e.maximum?t+="e":t+="t",t+" valida"},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"},removeAllItems:function(){return"Eemalda kõik esemed"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return(n+=1==t?"karaktere bat":t+" karaktere")+" gutxiago"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return(n+=1==t?"karaktere bat":t+" karaktere")+" gehiago"},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return 1===e.maximum?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"},removeAllItems:function(){return"Kendu elementu guztiak"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(e){return"لطفاً "+(e.input.length-e.maximum)+" کاراکتر را حذف نمایید"},inputTooShort:function(e){return"لطفاً تعداد "+(e.minimum-e.input.length)+" کاراکتر یا بیشتر وارد نمایید"},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(e){return"شما تنها می‌توانید "+e.maximum+" آیتم را انتخاب نمایید"},noResults:function(){return"هیچ نتیجه‌ای یافت نشد"},searching:function(){return"در حال جستجو..."},removeAllItems:function(){return"همه موارد را حذف کنید"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fi",[],function(){return{errorLoading:function(){return"Tuloksia ei saatu ladattua."},inputTooLong:function(e){return"Ole hyvä ja anna "+(e.input.length-e.maximum)+" merkkiä vähemmän"},inputTooShort:function(e){return"Ole hyvä ja anna "+(e.minimum-e.input.length)+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(e){return"Voit valita ainoastaan "+e.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){return"Haetaan…"},removeAllItems:function(){return"Poista kaikki kohteet"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Supprimez "+t+" caractère"+(t>1?"s":"")},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Saisissez au moins "+t+" caractère"+(t>1?"s":"")},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){return"Vous pouvez seulement sélectionner "+e.maximum+" élément"+(e.maximum>1?"s":"")},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"},removeAllItems:function(){return"Supprimer tous les éléments"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/gl",[],function(){return{errorLoading:function(){return"Non foi posíbel cargar os resultados."},inputTooLong:function(e){var t=e.input.length-e.maximum;return 1===t?"Elimine un carácter":"Elimine "+t+" caracteres"},inputTooShort:function(e){var t=e.minimum-e.input.length;return 1===t?"Engada un carácter":"Engada "+t+" caracteres"},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){return 1===e.maximum?"Só pode seleccionar un elemento":"Só pode seleccionar "+e.maximum+" elementos"},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Elimina todos os elementos"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(e){var t=e.input.length-e.maximum;return"נא למחוק "+(1===t?"תו אחד":t+" תווים")},inputTooShort:function(e){var t=e.minimum-e.input.length,n="נא להכניס ";return(n+=1===t?"תו אחד":t+" תווים")+" או יותר"},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(e){var t="באפשרותך לבחור עד ";return 1===e.maximum?t+="פריט אחד":t+=e.maximum+" פריטים",t},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"},removeAllItems:function(){return"הסר את כל הפריטים"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" अक्षर को हटा दें";return t>1&&(n=t+" अक्षरों को हटा दें "),n},inputTooShort:function(e){return"कृपया "+(e.minimum-e.input.length)+" या अधिक अक्षर दर्ज करें"},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(e){return"आप केवल "+e.maximum+" आइटम का चयन कर सकते हैं"},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."},removeAllItems:function(){return"सभी वस्तुओं को हटा दें"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hr",[],function(){function e(e){var t=" "+e+" znak";return e%10<5&&e%10>0&&(e%100<5||e%100>19)?e%10>1&&(t+="a"):t+="ova",t}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(t){return"Unesite "+e(t.input.length-t.maximum)},inputTooShort:function(t){return"Unesite još "+e(t.minimum-t.input.length)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(e){return"Maksimalan broj odabranih stavki je "+e.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Ukloni sve stavke"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hsb",[],function(){var e=["znamješko","znamješce","znamješka","znamješkow"],t=["zapisk","zapiskaj","zapiski","zapiskow"],n=function(e,t){return 1===e?t[0]:2===e?t[1]:e>2&&e<=4?t[2]:e>=5?t[3]:void 0};return{errorLoading:function(){return"Wuslědki njedachu so začitać."},inputTooLong:function(t){var i=t.input.length-t.maximum;return"Prošu zhašej "+i+" "+n(i,e)},inputTooShort:function(t){var i=t.minimum-t.input.length;return"Prošu zapodaj znajmjeńša "+i+" "+n(i,e)},loadingMore:function(){return"Dalše wuslědki so začitaja…"},maximumSelected:function(e){return"Móžeš jenož "+e.maximum+" "+n(e.maximum,t)+"wubrać"},noResults:function(){return"Žane wuslědki namakane"},searching:function(){return"Pyta so…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hu",[],function(){return{errorLoading:function(){return"Az eredmények betöltése nem sikerült."},inputTooLong:function(e){return"Túl hosszú. "+(e.input.length-e.maximum)+" karakterrel több, mint kellene."},inputTooShort:function(e){return"Túl rövid. Még "+(e.minimum-e.input.length)+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"},removeAllItems:function(){return"Távolítson el minden elemet"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hy",[],function(){return{errorLoading:function(){return"Արդյունքները հնարավոր չէ բեռնել։"},inputTooLong:function(e){return"Խնդրում ենք հեռացնել "+(e.input.length-e.maximum)+" նշան"},inputTooShort:function(e){return"Խնդրում ենք մուտքագրել "+(e.minimum-e.input.length)+" կամ ավել նշաններ"},loadingMore:function(){return"Բեռնվում են նոր արդյունքներ․․․"},maximumSelected:function(e){return"Դուք կարող եք ընտրել առավելագույնը "+e.maximum+" կետ"},noResults:function(){return"Արդյունքներ չեն գտնվել"},searching:function(){return"Որոնում․․․"},removeAllItems:function(){return"Հեռացնել բոլոր տարրերը"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/id",[],function(){return{errorLoading:function(){return"Data tidak boleh diambil."},inputTooLong:function(e){return"Hapuskan "+(e.input.length-e.maximum)+" huruf"},inputTooShort:function(e){return"Masukkan "+(e.minimum-e.input.length)+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(e){return"Anda hanya dapat memilih "+e.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Hapus semua item"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/is",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vinsamlegast styttið texta um "+t+" staf";return t<=1?n:n+"i"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vinsamlegast skrifið "+t+" staf";return t>1&&(n+="i"),n+" í viðbót"},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(e){return"Þú getur aðeins valið "+e.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"},removeAllItems:function(){return"Fjarlægðu öll atriði"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Per favore cancella "+t+" caratter"+(1!==t?"i":"e")},inputTooShort:function(e){return"Per favore inserisci "+(e.minimum-e.input.length)+" o più caratteri"},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var t="Puoi selezionare solo "+e.maximum+" element";return 1!==e.maximum?t+="i":t+="o",t},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"},removeAllItems:function(){return"Rimuovi tutti gli oggetti"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(e){return e.input.length-e.maximum+" 文字を削除してください"},inputTooShort:function(e){return"少なくとも "+(e.minimum-e.input.length)+" 文字を入力してください"},loadingMore:function(){return"読み込み中…"},maximumSelected:function(e){return e.maximum+" 件しか選択できません"},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"},removeAllItems:function(){return"すべてのアイテムを削除"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ka",[],function(){return{errorLoading:function(){return"მონაცემების ჩატვირთვა შეუძლებელია."},inputTooLong:function(e){return"გთხოვთ აკრიფეთ "+(e.input.length-e.maximum)+" სიმბოლოთი ნაკლები"},inputTooShort:function(e){return"გთხოვთ აკრიფეთ "+(e.minimum-e.input.length)+" სიმბოლო ან მეტი"},loadingMore:function(){return"მონაცემების ჩატვირთვა…"},maximumSelected:function(e){return"თქვენ შეგიძლიათ აირჩიოთ არაუმეტეს "+e.maximum+" ელემენტი"},noResults:function(){return"რეზულტატი არ მოიძებნა"},searching:function(){return"ძიება…"},removeAllItems:function(){return"ამოიღე ყველა ელემენტი"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(e){return"សូមលុបចេញ  "+(e.input.length-e.maximum)+" អក្សរ"},inputTooShort:function(e){return"សូមបញ្ចូល"+(e.minimum-e.input.length)+" អក្សរ រឺ ច្រើនជាងនេះ"},loadingMore:function(){return"កំពុងទាញយកទិន្នន័យបន្ថែម..."},maximumSelected:function(e){return"អ្នកអាចជ្រើសរើសបានតែ "+e.maximum+" ជម្រើសប៉ុណ្ណោះ"},noResults:function(){return"មិនមានលទ្ធផល"},searching:function(){return"កំពុងស្វែងរក..."},removeAllItems:function(){return"លុបធាតុទាំងអស់"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(e){return"너무 깁니다. "+(e.input.length-e.maximum)+" 글자 지워주세요."},inputTooShort:function(e){return"너무 짧습니다. "+(e.minimum-e.input.length)+" 글자 더 입력해주세요."},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(e){return"최대 "+e.maximum+"개까지만 선택 가능합니다."},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"},removeAllItems:function(){return"모든 항목 삭제"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/lt",[],function(){function e(e,t,n,i){return e%10==1&&(e%100<11||e%100>19)?t:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?n:i}return{inputTooLong:function(t){var n=t.input.length-t.maximum;return"Pašalinkite "+n+" simbol"+e(n,"į","ius","ių")},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Įrašykite dar "+n+" simbol"+e(n,"į","ius","ių")},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(t){return"Jūs galite pasirinkti tik "+t.maximum+" element"+e(t.maximum,"ą","us","ų")},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"},removeAllItems:function(){return"Pašalinti visus elementus"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/lv",[],function(){function e(e,t,n,i){return 11===e?t:e%10==1?n:i}return{inputTooLong:function(t){var n=t.input.length-t.maximum,i="Lūdzu ievadiet par  "+n;return(i+=" simbol"+e(n,"iem","u","iem"))+" mazāk"},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Lūdzu ievadiet vēl "+n+" simbol"+e(n,"us","u","us")},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(t){return"Jūs varat izvēlēties ne vairāk kā "+t.maximum+" element"+e(t.maximum,"us","u","us")},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"},removeAllItems:function(){return"Noņemt visus vienumus"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/mk",[],function(){return{inputTooLong:function(e){var t=(e.input.length,e.maximum,"Ве молиме внесете "+e.maximum+" помалку карактер");return 1!==e.maximum&&(t+="и"),t},inputTooShort:function(e){var t=(e.minimum,e.input.length,"Ве молиме внесете уште "+e.maximum+" карактер");return 1!==e.maximum&&(t+="и"),t},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(e){var t="Можете да изберете само "+e.maximum+" ставк";return 1===e.maximum?t+="а":t+="и",t},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"},removeAllItems:function(){return"Отстрани ги сите предмети"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ms",[],function(){return{errorLoading:function(){return"Keputusan tidak berjaya dimuatkan."},inputTooLong:function(e){return"Sila hapuskan "+(e.input.length-e.maximum)+" aksara"},inputTooShort:function(e){return"Sila masukkan "+(e.minimum-e.input.length)+" atau lebih aksara"},loadingMore:function(){return"Sedang memuatkan keputusan…"},maximumSelected:function(e){return"Anda hanya boleh memilih "+e.maximum+" pilihan"},noResults:function(){return"Tiada padanan yang ditemui"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Keluarkan semua item"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nb",[],function(){return{errorLoading:function(){return"Kunne ikke hente resultater."},inputTooLong:function(e){return"Vennligst fjern "+(e.input.length-e.maximum)+" tegn"},inputTooShort:function(e){return"Vennligst skriv inn "+(e.minimum-e.input.length)+" tegn til"},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ne",[],function(){return{errorLoading:function(){return"नतिजाहरु देखाउन सकिएन।"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="कृपया "+t+" अक्षर मेटाउनुहोस्।";return 1!=t&&(n+="कृपया "+t+" अक्षरहरु मेटाउनुहोस्।"),n},inputTooShort:function(e){return"कृपया बाँकी रहेका "+(e.minimum-e.input.length)+" वा अरु धेरै अक्षरहरु भर्नुहोस्।"},loadingMore:function(){return"अरु नतिजाहरु भरिँदैछन् …"},maximumSelected:function(e){var t="तँपाई "+e.maximum+" वस्तु मात्र छान्न पाउँनुहुन्छ।";return 1!=e.maximum&&(t="तँपाई "+e.maximum+" वस्तुहरु मात्र छान्न पाउँनुहुन्छ।"),t},noResults:function(){return"कुनै पनि नतिजा भेटिएन।"},searching:function(){return"खोजि हुँदैछ…"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){return"Gelieve "+(e.input.length-e.maximum)+" karakters te verwijderen"},inputTooShort:function(e){return"Gelieve "+(e.minimum-e.input.length)+" of meer karakters in te voeren"},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var t="Er "+(1==e.maximum?"kan":"kunnen")+" maar "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t+" worden geselecteerd"},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"},removeAllItems:function(){return"Verwijder alle items"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pl",[],function(){var e=["znak","znaki","znaków"],t=["element","elementy","elementów"],n=function(e,t){return 1===e?t[0]:e>1&&e<=4?t[1]:e>=5?t[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(t){var i=t.input.length-t.maximum;return"Usuń "+i+" "+n(i,e)},inputTooShort:function(t){var i=t.minimum-t.input.length;return"Podaj przynajmniej "+i+" "+n(i,e)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+n(e.maximum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"},removeAllItems:function(){return"Usuń wszystkie przedmioty"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ps",[],function(){return{errorLoading:function(){return"پايلي نه سي ترلاسه کېدای"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="د مهربانۍ لمخي "+t+" توری ړنګ کړئ";return 1!=t&&(n=n.replace("توری","توري")),n},inputTooShort:function(e){return"لږ تر لږه "+(e.minimum-e.input.length)+" يا ډېر توري وليکئ"},loadingMore:function(){return"نوري پايلي ترلاسه کيږي..."},maximumSelected:function(e){var t="تاسو يوازي "+e.maximum+" قلم په نښه کولای سی";return 1!=e.maximum&&(t=t.replace("قلم","قلمونه")),t},noResults:function(){return"پايلي و نه موندل سوې"},searching:function(){return"لټول کيږي..."},removeAllItems:function(){return"ټول توکي لرې کړئ"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Apague "+t+" caracter";return 1!=t&&(n+="es"),n},inputTooShort:function(e){return"Digite "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var t="Você só pode selecionar "+e.maximum+" ite";return 1==e.maximum?t+="m":t+="ns",t},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Por favor apague "+t+" "+(1!=t?"caracteres":"caractere")},inputTooShort:function(e){return"Introduza "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){return"Apenas pode seleccionar "+e.maximum+" "+(1!=e.maximum?"itens":"item")},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ro",[],function(){return{errorLoading:function(){return"Rezultatele nu au putut fi incărcate."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să ștergeți"+t+" caracter";return 1!==t&&(n+="e"),n},inputTooShort:function(e){return"Vă rugăm să introduceți "+(e.minimum-e.input.length)+" sau mai multe caractere"},loadingMore:function(){return"Se încarcă mai multe rezultate…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",1!==e.maximum&&(t+="e"),t},noResults:function(){return"Nu au fost găsite rezultate"},searching:function(){return"Căutare…"},removeAllItems:function(){return"Eliminați toate elementele"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ru",[],function(){function e(e,t,n,i){return e%10<5&&e%10>0&&e%100<5||e%100>20?e%10>1?n:t:i}return{errorLoading:function(){return"Невозможно загрузить результаты"},inputTooLong:function(t){var n=t.input.length-t.maximum,i="Пожалуйста, введите на "+n+" символ";return(i+=e(n,"","a","ов"))+" меньше"},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Пожалуйста, введите ещё хотя бы "+n+" символ"+e(n,"","a","ов")},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(t){return"Вы можете выбрать не более "+t.maximum+" элемент"+e(t.maximum,"","a","ов")},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"},removeAllItems:function(){return"Удалить все элементы"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{errorLoading:function(){return"Výsledky sa nepodarilo načítať."},inputTooLong:function(t){var n=t.input.length-t.maximum;return 1==n?"Prosím, zadajte o jeden znak menej":n>=2&&n<=4?"Prosím, zadajte o "+e[n](!0)+" znaky menej":"Prosím, zadajte o "+n+" znakov menej"},inputTooShort:function(t){var n=t.minimum-t.input.length;return 1==n?"Prosím, zadajte ešte jeden znak":n<=4?"Prosím, zadajte ešte ďalšie "+e[n](!0)+" znaky":"Prosím, zadajte ešte ďalších "+n+" znakov"},loadingMore:function(){return"Načítanie ďalších výsledkov…"},maximumSelected:function(t){return 1==t.maximum?"Môžete zvoliť len jednu položku":t.maximum>=2&&t.maximum<=4?"Môžete zvoliť najviac "+e[t.maximum](!1)+" položky":"Môžete zvoliť najviac "+t.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"},removeAllItems:function(){return"Odstráňte všetky položky"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Prosim zbrišite "+t+" znak";return 2==t?n+="a":1!=t&&(n+="e"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Prosim vpišite še "+t+" znak";return 2==t?n+="a":1!=t&&(n+="e"),n},loadingMore:function(){return"Nalagam več zadetkov…"},maximumSelected:function(e){var t="Označite lahko največ "+e.maximum+" predmet";return 2==e.maximum?t+="a":1!=e.maximum&&(t+="e"),t},noResults:function(){return"Ni zadetkov."},searching:function(){return"Iščem…"},removeAllItems:function(){return"Odstranite vse elemente"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sq",[],function(){return{errorLoading:function(){return"Rezultatet nuk mund të ngarkoheshin."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Të lutem fshi "+t+" karakter";return 1!=t&&(n+="e"),n},inputTooShort:function(e){return"Të lutem shkruaj "+(e.minimum-e.input.length)+" ose më shumë karaktere"},loadingMore:function(){return"Duke ngarkuar më shumë rezultate…"},maximumSelected:function(e){var t="Mund të zgjedhësh vetëm "+e.maximum+" element";return 1!=e.maximum&&(t+="e"),t},noResults:function(){return"Nuk u gjet asnjë rezultat"},searching:function(){return"Duke kërkuar…"},removeAllItems:function(){return"Hiq të gjitha sendet"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sr-Cyrl",[],function(){function e(e,t,n,i){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?n:i}return{errorLoading:function(){return"Преузимање није успело."},inputTooLong:function(t){var n=t.input.length-t.maximum;return"Обришите "+n+" симбол"+e(n,"","а","а")},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Укуцајте бар још "+n+" симбол"+e(n,"","а","а")},loadingMore:function(){return"Преузимање још резултата…"},maximumSelected:function(t){return"Можете изабрати само "+t.maximum+" ставк"+e(t.maximum,"у","е","и")},noResults:function(){return"Ништа није пронађено"},searching:function(){return"Претрага…"},removeAllItems:function(){return"Уклоните све ставке"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sr",[],function(){function e(e,t,n,i){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?n:i}return{errorLoading:function(){return"Preuzimanje nije uspelo."},inputTooLong:function(t){var n=t.input.length-t.maximum;return"Obrišite "+n+" simbol"+e(n,"","a","a")},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Ukucajte bar još "+n+" simbol"+e(n,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(t){return"Možete izabrati samo "+t.maximum+" stavk"+e(t.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Уклоните све ставке"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(e){return"Vänligen sudda ut "+(e.input.length-e.maximum)+" tecken"},inputTooShort:function(e){return"Vänligen skriv in "+(e.minimum-e.input.length)+" eller fler tecken"},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(e){return"Du kan max välja "+e.maximum+" element"},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"},removeAllItems:function(){return"Ta bort alla objekt"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/th",[],function(){return{errorLoading:function(){return"ไม่สามารถค้นข้อมูลได้"},inputTooLong:function(e){return"โปรดลบออก "+(e.input.length-e.maximum)+" ตัวอักษร"},inputTooShort:function(e){return"โปรดพิมพ์เพิ่มอีก "+(e.minimum-e.input.length)+" ตัวอักษร"},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(e){return"คุณสามารถเลือกได้ไม่เกิน "+e.maximum+" รายการ"},noResults:function(){return"ไม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"},removeAllItems:function(){return"ลบรายการทั้งหมด"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/tk",[],function(){return{errorLoading:function(){return"Netije ýüklenmedi."},inputTooLong:function(e){return e.input.length-e.maximum+" harp bozuň."},inputTooShort:function(e){return"Ýene-de iň az "+(e.minimum-e.input.length)+" harp ýazyň."},loadingMore:function(){return"Köpräk netije görkezilýär…"},maximumSelected:function(e){return"Diňe "+e.maximum+" sanysyny saýlaň."},noResults:function(){return"Netije tapylmady."},searching:function(){return"Gözlenýär…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/tr",[],function(){return{errorLoading:function(){return"Sonuç yüklenemedi"},inputTooLong:function(e){return e.input.length-e.maximum+" karakter daha girmelisiniz"},inputTooShort:function(e){return"En az "+(e.minimum-e.input.length)+" karakter daha girmelisiniz"},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(e){return"Sadece "+e.maximum+" seçim yapabilirsiniz"},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"},removeAllItems:function(){return"Tüm öğeleri kaldır"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/uk",[],function(){function e(e,t,n,i){return e%100>10&&e%100<15?i:e%10==1?t:e%10>1&&e%10<5?n:i}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(t){return"Будь ласка, видаліть "+(t.input.length-t.maximum)+" "+e(t.maximum,"літеру","літери","літер")},inputTooShort:function(e){return"Будь ласка, введіть "+(e.minimum-e.input.length)+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(t){return"Ви можете вибрати лише "+t.maximum+" "+e(t.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"},removeAllItems:function(){return"Видалити всі елементи"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/vi",[],function(){return{inputTooLong:function(e){return"Vui lòng xóa bớt "+(e.input.length-e.maximum)+" ký tự"},inputTooShort:function(e){return"Vui lòng nhập thêm từ "+(e.minimum-e.input.length)+" ký tự trở lên"},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(e){return"Chỉ có thể chọn được "+e.maximum+" lựa chọn"},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"},removeAllItems:function(){return"Xóa tất cả các mục"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(e){return"请删除"+(e.input.length-e.maximum)+"个字符"},inputTooShort:function(e){return"请再输入至少"+(e.minimum-e.input.length)+"个字符"},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(e){return"最多只能选择"+e.maximum+"个项目"},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"},removeAllItems:function(){return"删除所有项目"}}}),e.define,e.require}(),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(e){return"請刪掉"+(e.input.length-e.maximum)+"個字元"},inputTooShort:function(e){return"請再輸入"+(e.minimum-e.input.length)+"個字元"},loadingMore:function(){return"載入中…"},maximumSelected:function(e){return"你只能選擇最多"+e.maximum+"項"},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"},removeAllItems:function(){return"刪除所有項目"}}}),e.define,e.require}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).bsCustomFileInput=t()}(this,function(){"use strict";var e={CUSTOMFILE:'.custom-file input[type="file"]',CUSTOMFILELABEL:".custom-file-label",FORM:"form",INPUT:"input"},t=function(t){var n="",i=t.parentNode.querySelector(e.CUSTOMFILELABEL);return i&&(n=i.textContent),n},n=function(e){if(e.childNodes.length>0)for(var t=[].slice.call(e.childNodes),n=0;n<t.length;n++){var i=t[n];if(3!==i.nodeType)return i}return e},i=function(t){var i=t.bsCustomFileInput.defaultText,o=t.parentNode.querySelector(e.CUSTOMFILELABEL);o&&(n(o).textContent=i)},o=!!window.File,r=function(e){if(e.hasAttribute("multiple")&&o)return[].slice.call(e.files).map(function(e){return e.name}).join(", ");if(-1!==e.value.indexOf("fakepath")){var t=e.value.split("\\");return t[t.length-1]}return e.value};function s(){var t=this.parentNode.querySelector(e.CUSTOMFILELABEL);if(t){var o=n(t),s=r(this);s.length?o.textContent=s:i(this)}}function a(){for(var t=[].slice.call(this.querySelectorAll(e.INPUT)).filter(function(e){return!!e.bsCustomFileInput}),n=0,o=t.length;n<o;n++)i(t[n])}var l="reset",u="change";return{init:function(n,i){void 0===n&&(n=e.CUSTOMFILE),void 0===i&&(i=e.FORM);for(var o=[].slice.call(document.querySelectorAll(n)),r=[].slice.call(document.querySelectorAll(i)),c=0,d=o.length;c<d;c++){var p=o[c];Object.defineProperty(p,"bsCustomFileInput",{value:{defaultText:t(p)},writable:!0}),s.call(p),p.addEventListener(u,s)}for(var h=0,f=r.length;h<f;h++)r[h].addEventListener(l,a),Object.defineProperty(r[h],"bsCustomFileInput",{value:!0,writable:!0})},destroy:function(){for(var t=[].slice.call(document.querySelectorAll(e.FORM)).filter(function(e){return!!e.bsCustomFileInput}),n=[].slice.call(document.querySelectorAll(e.INPUT)).filter(function(e){return!!e.bsCustomFileInput}),o=0,r=n.length;o<r;o++){var c=n[o];i(c),c.bsCustomFileInput=void 0,c.removeEventListener(u,s)}for(var d=0,p=t.length;d<p;d++)t[d].removeEventListener(l,a),t[d].bsCustomFileInput=void 0}}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(t,n){this.settings=n,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=n.border>=0?n.border:n.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:e('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t};t.prototype.getSuffix=function(e,t){var n,i;for(n=e>t?e:t,i=0;i<this.suffixRanges.length;i++)if(n<=this.suffixRanges[i])return this.settings.sizeRangeSuffixes[this.suffixRanges[i]];return this.settings.sizeRangeSuffixes[this.suffixRanges[i-1]]},t.prototype.removeSuffix=function(e,t){return e.substring(0,e.length-t.length)},t.prototype.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},t.prototype.getUsedSuffix=function(e){for(var t in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(t)){if(0===this.settings.sizeRangeSuffixes[t].length)continue;if(this.endsWith(e,this.settings.sizeRangeSuffixes[t]))return this.settings.sizeRangeSuffixes[t]}return""},t.prototype.newSrc=function(e,t,n,i){var o;if(this.settings.thumbnailPath)o=this.settings.thumbnailPath(e,t,n,i);else{var r=e.match(this.settings.extension),s=null!==r?r[0]:"";o=e.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(t,n)+s}return o},t.prototype.showImg=function(e,t){this.settings.cssAnimation?(e.addClass("jg-entry-visible"),t&&t()):(e.stop().fadeTo(this.settings.imagesAnimationDuration,1,t),e.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,t))},t.prototype.extractImgSrcFromImage=function(e){var t=e.data("safe-src"),n="data-safe-src";return void 0===t&&(t=e.attr("src"),n="src"),e.data("jg.originalSrc",t),e.data("jg.src",t),e.data("jg.originalSrcLoc",n),t},t.prototype.imgFromEntry=function(e){var t=e.find(this.settings.imgSelector);return 0===t.length?null:t},t.prototype.captionFromEntry=function(e){var t=e.find("> .jg-caption");return 0===t.length?null:t},t.prototype.displayEntry=function(e,t,n,i,o,r){e.width(i),e.height(r),e.css("top",n),e.css("left",t);var s=this.imgFromEntry(e);if(null!==s){s.css("width",i),s.css("height",o),s.css("margin-left",-i/2),s.css("margin-top",-o/2);var a=s.data("jg.src");if(a){a=this.newSrc(a,i,o,s[0]),s.one("error",function(){this.resetImgSrc(s)});var l=function(){s.attr("src",a)};"skipped"===e.data("jg.loaded")&&a?this.onImageEvent(a,function(){this.showImg(e,l),e.data("jg.loaded",!0)}.bind(this)):this.showImg(e,l)}}else this.showImg(e);this.displayEntryCaption(e)},t.prototype.displayEntryCaption=function(t){var n=this.imgFromEntry(t);if(null!==n&&this.settings.captions){var i=this.captionFromEntry(t);if(null===i){var o=n.attr("alt");this.isValidCaption(o)||(o=t.attr("title")),this.isValidCaption(o)&&(i=e('<div class="jg-caption">'+o+"</div>"),t.append(i),t.data("jg.createdCaption",!0))}null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))}else this.removeCaptionEventsHandlers(t)},t.prototype.isValidCaption=function(e){return void 0!==e&&e.length>0},t.prototype.onEntryMouseEnterForCaption=function(t){var n=this.captionFromEntry(e(t.currentTarget));this.settings.cssAnimation?n.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):n.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},t.prototype.onEntryMouseLeaveForCaption=function(t){var n=this.captionFromEntry(e(t.currentTarget));this.settings.cssAnimation?n.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):n.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},t.prototype.addCaptionEventsHandlers=function(t){var n=t.data("jg.captionMouseEvents");void 0===n&&(n={mouseenter:e.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:e.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,n.mouseenter),t.on("mouseleave",void 0,void 0,n.mouseleave),t.data("jg.captionMouseEvents",n))},t.prototype.removeCaptionEventsHandlers=function(e){var t=e.data("jg.captionMouseEvents");void 0!==t&&(e.off("mouseenter",void 0,t.mouseenter),e.off("mouseleave",void 0,t.mouseleave),e.removeData("jg.captionMouseEvents"))},t.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},t.prototype.prepareBuildingRow=function(e,t){var n,i,o,r,s,a=!0,l=0,u=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,c=u/this.buildingRow.aspectRatio,d=this.settings.rowHeight,p=this.buildingRow.width/u>this.settings.justifyThreshold;if(t||e&&"hide"===this.settings.lastRow&&!p){for(n=0;n<this.buildingRow.entriesBuff.length;n++)i=this.buildingRow.entriesBuff[n],this.settings.cssAnimation?i.removeClass("jg-entry-visible"):(i.stop().fadeTo(0,.1),i.find("> img, > a > img").fadeTo(0,0));return-1}for(e&&!p&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(a=!1,this.rows>0&&(a=(d=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/u>this.settings.justifyThreshold)),n=0;n<this.buildingRow.entriesBuff.length;n++)o=(i=this.buildingRow.entriesBuff[n]).data("jg.width")/i.data("jg.height"),a?(r=n===this.buildingRow.entriesBuff.length-1?u:c*o,s=c):(r=d*o,s=d),u-=Math.round(r),i.data("jg.jwidth",Math.round(r)),i.data("jg.jheight",Math.ceil(s)),(0===n||l>s)&&(l=s);return this.buildingRow.height=l,a},t.prototype.flushRow=function(e,t){var n,i,o,r=this.settings,s=this.border;if(i=this.prepareBuildingRow(e,t),t||e&&"hide"===r.lastRow&&-1===i)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),e&&("center"===r.lastRow||"right"===r.lastRow)){var a=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*r.margins;for(o=0;o<this.buildingRow.entriesBuff.length;o++)a-=(n=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===r.lastRow?s+=Math.round(a/2):"right"===r.lastRow&&(s+=a)}var l=this.buildingRow.entriesBuff.length-1;for(o=0;o<=l;o++)n=this.buildingRow.entriesBuff[this.settings.rtl?l-o:o],this.displayEntry(n,s,this.offY,n.data("jg.jwidth"),n.data("jg.jheight"),this.buildingRow.height),s+=n.data("jg.jwidth")+r.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!e||this.buildingRow.height<=r.rowHeight&&i)&&(this.offY+=this.buildingRow.height+r.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var n=0;t.prototype.rememberGalleryHeight=function(){n=this.$gallery.height(),this.$gallery.height(n)},t.prototype.setGalleryTempHeight=function(e){n=Math.max(e,n),this.$gallery.height(n)},t.prototype.setGalleryFinalHeight=function(e){n=e,this.$gallery.height(e)},t.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(e.proxy(function(){if(this.$gallery.is(":visible")){var e=parseFloat(this.$gallery.width());Math.abs(e-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=e,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0))}},this),this.settings.refreshTime)},t.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},t.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},t.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},t.prototype.startLoadingSpinnerAnimation=function(){var e=this.spinner,t=e.$el.find("span");clearInterval(e.intervalId),this.$gallery.append(e.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),e.intervalId=setInterval(function(){e.phase<t.length?t.eq(e.phase).fadeTo(e.timeSlot,1):t.eq(e.phase-t.length).fadeTo(e.timeSlot,0),e.phase=(e.phase+1)%(2*t.length)},e.timeSlot)},t.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},t.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},t.prototype.getAllEntries=function(){var e=this.getSelectorWithoutSpinner();return this.$gallery.children(e).toArray()},t.prototype.updateEntries=function(t){var n;if(t&&null!=this.lastFetchedEntry){var i=this.getSelectorWithoutSpinner();n=e(this.lastFetchedEntry).nextAll(i).toArray()}else this.entries=[],n=this.getAllEntries();return n.length>0&&(e.isFunction(this.settings.sort)?n=this.sortArray(n):this.settings.randomize&&(n=this.shuffleArray(n)),this.lastFetchedEntry=n[n.length-1],this.settings.filter?n=this.filterArray(n):this.resetFilters(n)),this.entries=this.entries.concat(n),!0},t.prototype.insertToGallery=function(t){var n=this;e.each(t,function(){e(this).appendTo(n.$gallery)})},t.prototype.shuffleArray=function(e){var t,n,i;for(t=e.length-1;t>0;t--)n=Math.floor(Math.random()*(t+1)),i=e[t],e[t]=e[n],e[n]=i;return this.insertToGallery(e),e},t.prototype.sortArray=function(e){return e.sort(this.settings.sort),this.insertToGallery(e),e},t.prototype.resetFilters=function(t){for(var n=0;n<t.length;n++)e(t[n]).removeClass("jg-filtered")},t.prototype.filterArray=function(t){var n=this.settings;if("string"===e.type(n.filter))return t.filter(function(t){var i=e(t);return i.is(n.filter)?(i.removeClass("jg-filtered"),!0):(i.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(e.isFunction(n.filter)){for(var i=t.filter(n.filter),o=0;o<t.length;o++)-1===i.indexOf(t[o])?e(t[o]).addClass("jg-filtered").removeClass("jg-visible"):e(t[o]).removeClass("jg-filtered");return i}},t.prototype.resetImgSrc=function(e){"src"===e.data("jg.originalSrcLoc")?e.attr("src",e.data("jg.originalSrc")):e.attr("src","")},t.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),e.each(this.getAllEntries(),e.proxy(function(t,n){var i=e(n);i.css("width",""),i.css("height",""),i.css("top",""),i.css("left",""),i.data("jg.loaded",void 0),i.removeClass("jg-entry jg-filtered jg-entry-visible");var o=this.imgFromEntry(i);o&&(o.css("width",""),o.css("height",""),o.css("margin-left",""),o.css("margin-top",""),this.resetImgSrc(o),o.data("jg.originalSrc",void 0),o.data("jg.originalSrcLoc",void 0),o.data("jg.src",void 0)),this.removeCaptionEventsHandlers(i);var r=this.captionFromEntry(i);i.data("jg.createdCaption")?(i.data("jg.createdCaption",void 0),null!==r&&r.remove()):null!==r&&r.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},t.prototype.analyzeImages=function(t){for(var n=this.lastAnalyzedIndex+1;n<this.entries.length;n++){var i=e(this.entries[n]);if(!0===i.data("jg.loaded")||"skipped"===i.data("jg.loaded")){var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,r=i.data("jg.width")/i.data("jg.height");if(this.buildingRow.entriesBuff.push(i),this.buildingRow.aspectRatio+=r,this.buildingRow.width+=r*this.settings.rowHeight,this.lastAnalyzedIndex=n,o/(this.buildingRow.aspectRatio+r)<this.settings.rowHeight&&(this.flushRow(!1,this.settings.maxRowsCount>0&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==i.data("jg.loaded"))return}this.buildingRow.entriesBuff.length>0&&this.flushRow(!0,this.settings.maxRowsCount>0&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},t.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},t.prototype.startImgAnalyzer=function(e){var t=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){t.analyzeImages(e)},.001)},t.prototype.onImageEvent=function(t,n,i){if(n||i){var o=new Image,r=e(o);n&&r.one("load",function(){r.off("load error"),n(o)}),i&&r.one("error",function(){r.off("load error"),i(o)}),o.src=t}},t.prototype.init=function(){var t=!1,n=!1,i=this;e.each(this.entries,function(o,r){var s=e(r),a=i.imgFromEntry(s);if(s.addClass("jg-entry"),!0!==s.data("jg.loaded")&&"skipped"!==s.data("jg.loaded"))if(null!==i.settings.rel&&s.attr("rel",i.settings.rel),null!==i.settings.target&&s.attr("target",i.settings.target),null!==a){var l=i.extractImgSrcFromImage(a);if(!1===i.settings.waitThumbnailsLoad||!l){var u=parseFloat(a.attr("width")),c=parseFloat(a.attr("height"));if("svg"===a.prop("tagName")&&(u=parseFloat(a[0].getBBox().width),c=parseFloat(a[0].getBBox().height)),!isNaN(u)&&!isNaN(c))return s.data("jg.width",u),s.data("jg.height",c),s.data("jg.loaded","skipped"),n=!0,i.startImgAnalyzer(!1),!0}s.data("jg.loaded",!1),t=!0,i.isSpinnerActive()||i.startLoadingSpinnerAnimation(),i.onImageEvent(l,function(e){s.data("jg.width",e.width),s.data("jg.height",e.height),s.data("jg.loaded",!0),i.startImgAnalyzer(!1)},function(){s.data("jg.loaded","error"),i.startImgAnalyzer(!1)})}else s.data("jg.loaded",!0),s.data("jg.width",s.width()|parseFloat(s.css("width"))|1),s.data("jg.height",s.height()|parseFloat(s.css("height"))|1)}),t||n||this.startImgAnalyzer(!1),this.checkWidth()},t.prototype.checkOrConvertNumber=function(t,n){if("string"===e.type(t[n])&&(t[n]=parseFloat(t[n])),"number"!==e.type(t[n]))throw n+" must be a number";if(isNaN(t[n]))throw"invalid number for "+n},t.prototype.checkSizeRangesSuffixes=function(){if("object"!==e.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var n in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(n)&&t.push(n);for(var i={0:""},o=0;o<t.length;o++)if("string"===e.type(t[o]))try{i[parseInt(t[o].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[o]]}catch(e){throw"sizeRangeSuffixes keys must contains correct numbers ("+e+")"}else i[t[o]]=this.settings.sizeRangeSuffixes[t[o]];this.settings.sizeRangeSuffixes=i},t.prototype.retrieveMaxRowHeight=function(){var t=null,n=this.settings.rowHeight;if("string"===e.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?n*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==e.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<n&&(t=n),t},t.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||this.settings.justifyThreshold>1)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==e.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==e.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||this.settings.captionSettings.visibleOpacity>1)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||this.settings.captionSettings.nonVisibleOpacity>1)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==e.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==e.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!e.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!e.isFunction(this.settings.filter)&&"string"!==e.type(this.settings.filter))throw"filter must be false, a string or a filter function"},t.prototype.retrieveSuffixRanges=function(){var e=[];for(var t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(parseInt(t,10));return e.sort(function(e,t){return e>t?1:e<t?-1:0}),e},t.prototype.updateSettings=function(t){this.settings=e.extend({},this.settings,t),this.checkSettings(),this.border=this.settings.border>=0?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},t.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(e){this.$gallery.trigger(e)}},e.fn.justifiedGallery=function(n){return this.each(function(i,o){var r=e(o);r.addClass("justified-gallery");var s=r.data("jg.controller");if(void 0===s){if(null!=n&&"object"!==e.type(n)){if("destroy"===n)return;throw"The argument must be an object"}s=new t(r,e.extend({},t.prototype.defaults,n)),r.data("jg.controller",s)}else if("norewind"===n);else{if("destroy"===n)return void s.destroy();s.updateSettings(n),s.rewind()}s.updateEntries("norewind"===n)&&s.init()})}}),function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var i={hooks:{},extensions:[],wrappers:[],navbar:{add:!0,sticky:!0,title:"Menu",titleLink:"parent"},onClick:{close:null,preventDefault:null,setSelected:!0},slidingSubmenus:!0},o={classNames:{inset:"Inset",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",vertical:"Vertical"},language:null,openingInterval:25,panelNodetype:["ul","ol","div"],transitionDuration:400};function r(e,t){for(var n in"object"!=s(e)&&(e={}),"object"!=s(t)&&(t={}),t)t.hasOwnProperty(n)&&(void 0===e[n]?e[n]=t[n]:"object"==s(e[n])&&r(e[n],t[n]));return e}function s(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function a(e,t,n){if("function"==typeof t){var i=t.call(e);if(void 0!==i)return i}return null!==t&&"function"!=typeof t&&void 0!==t||void 0===n?t:n}function l(e,t,n){var i=!1,o=function(n){void 0!==n&&n.target!==e||(i||(e.removeEventListener("transitionend",o),e.removeEventListener("webkitTransitionEnd",o),t.call(e)),i=!0)};e.addEventListener("transitionend",o),e.addEventListener("webkitTransitionEnd",o),setTimeout(o,1.1*n)}function u(){return"mm-"+c++}var c=0;function d(e){return"mm-"==e.slice(0,3)?e.slice(3):e}var p={};function h(e,t){void 0===p[t]&&(p[t]={}),r(p[t],e)}function f(e){var t=e.split("."),n=document.createElement(t.shift());return t.forEach(function(e){n.classList.add(e)}),n}function m(e,t){return Array.prototype.slice.call(e.querySelectorAll(t))}function g(e,t){var n=Array.prototype.slice.call(e.children);return t?n.filter(function(e){return e.matches(t)}):n}function v(e,t){for(var n=[],i=e.parentElement;i;)n.push(i),i=i.parentElement;return t?n.filter(function(e){return e.matches(t)}):n}function y(e){return e.filter(function(e){return!e.matches(".mm-hidden")})}function b(e){var t=[];return y(e).forEach(function(e){t.push.apply(t,g(e,"a.mm-listitem__text"))}),t.filter(function(e){return!e.matches(".mm-btn_next")})}function w(e,t,n){e.matches("."+t)&&(e.classList.remove(t),e.classList.add(n))}var x={};function _(e,t,n){"number"==typeof e&&(e="(min-width: "+e+"px)"),x[e]=x[e]||[],x[e].push({yes:t,no:n})}function S(e,t){for(var n=t.matches?"yes":"no",i=0;i<x[e].length;i++)x[e][i][n]()}h({Menu:"Menu"},"nl"),h({Menu:"منو"},"fa"),h({Menu:"Menü"},"de"),h({Menu:"Меню"},"ru");var k=function(){function e(t,n,i){return this.opts=r(n,e.options),this.conf=r(i,e.configs),this._api=["bind","initPanel","initListview","openPanel","closePanel","closeAllPanels","setSelected"],this.node={},this.vars={},this.hook={},this.clck=[],this.node.menu="string"==typeof t?document.querySelector(t):t,"function"==typeof this._deprecatedWarnings&&this._deprecatedWarnings(),this._initWrappers(),this._initAddons(),this._initExtensions(),this._initHooks(),this._initAPI(),this._initMenu(),this._initPanels(),this._initOpened(),this._initAnchors(),function(){var e=function(e){var t=window.matchMedia(e);S(e,t),t.onchange=function(n){S(e,t)}};for(var t in x)e(t)}(),this}return e.prototype.openPanel=function(e,t){var n=this;if(this.trigger("openPanel:before",[e]),e&&(e.matches(".mm-panel")||(e=e.closest(".mm-panel")),e)){if("boolean"!=typeof t&&(t=!0),e.parentElement.matches(".mm-listitem_vertical")){v(e,".mm-listitem_vertical").forEach(function(e){e.classList.add("mm-listitem_opened"),g(e,".mm-panel").forEach(function(e){e.classList.remove("mm-hidden")})});var i=v(e,".mm-panel").filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")});this.trigger("openPanel:start",[e]),i.length&&this.openPanel(i[0]),this.trigger("openPanel:finish",[e])}else{if(e.matches(".mm-panel_opened"))return;var o=g(this.node.pnls,".mm-panel"),r=g(this.node.pnls,".mm-panel_opened")[0];o.filter(function(t){return t!==e}).forEach(function(e){e.classList.remove("mm-panel_opened-parent")});for(var s=e.mmParent;s;)(s=s.closest(".mm-panel"))&&(s.parentElement.matches(".mm-listitem_vertical")||s.classList.add("mm-panel_opened-parent"),s=s.mmParent);o.forEach(function(e){e.classList.remove("mm-panel_highest")}),o.filter(function(e){return e!==r}).filter(function(t){return t!==e}).forEach(function(e){e.classList.add("mm-hidden")}),e.classList.remove("mm-hidden");var a=function(){r&&r.classList.remove("mm-panel_opened"),e.classList.add("mm-panel_opened"),e.matches(".mm-panel_opened-parent")?(r&&r.classList.add("mm-panel_highest"),e.classList.remove("mm-panel_opened-parent")):(r&&r.classList.add("mm-panel_opened-parent"),e.classList.add("mm-panel_highest")),n.trigger("openPanel:start",[e])},u=function(){r&&(r.classList.remove("mm-panel_highest"),r.classList.add("mm-hidden")),e.classList.remove("mm-panel_highest"),n.trigger("openPanel:finish",[e])};t&&!e.matches(".mm-panel_noanimation")?setTimeout(function(){l(e,function(){u()},n.conf.transitionDuration),a()},this.conf.openingInterval):(a(),u())}this.trigger("openPanel:after",[e])}},e.prototype.closePanel=function(e){this.trigger("closePanel:before",[e]);var t=e.parentElement;t.matches(".mm-listitem_vertical")&&(t.classList.remove("mm-listitem_opened"),e.classList.add("mm-hidden"),this.trigger("closePanel",[e])),this.trigger("closePanel:after",[e])},e.prototype.closeAllPanels=function(e){this.trigger("closeAllPanels:before"),this.node.pnls.querySelectorAll(".mm-listitem").forEach(function(e){e.classList.remove("mm-listitem_selected"),e.classList.remove("mm-listitem_opened")});var t=g(this.node.pnls,".mm-panel"),n=e||t[0];g(this.node.pnls,".mm-panel").forEach(function(e){e!==n&&(e.classList.remove("mm-panel_opened"),e.classList.remove("mm-panel_opened-parent"),e.classList.remove("mm-panel_highest"),e.classList.add("mm-hidden"))}),this.openPanel(n,!1),this.trigger("closeAllPanels:after")},e.prototype.togglePanel=function(e){var t=e.parentElement;t.matches(".mm-listitem_vertical")&&this[t.matches(".mm-listitem_opened")?"closePanel":"openPanel"](e)},e.prototype.setSelected=function(e){this.trigger("setSelected:before",[e]),m(this.node.menu,".mm-listitem_selected").forEach(function(e){e.classList.remove("mm-listitem_selected")}),e.classList.add("mm-listitem_selected"),this.trigger("setSelected:after",[e])},e.prototype.bind=function(e,t){this.hook[e]=this.hook[e]||[],this.hook[e].push(t)},e.prototype.trigger=function(e,t){if(this.hook[e])for(var n=0,i=this.hook[e].length;n<i;n++)this.hook[e][n].apply(this,t)},e.prototype._initAPI=function(){var e=this,t=this;this.API={},this._api.forEach(function(n){e.API[n]=function(){var e=t[n].apply(t,arguments);return void 0===e?t.API:e}}),this.node.menu.mmApi=this.API},e.prototype._initHooks=function(){for(var e in this.opts.hooks)this.bind(e,this.opts.hooks[e])},e.prototype._initWrappers=function(){this.trigger("initWrappers:before");for(var t=0;t<this.opts.wrappers.length;t++){var n=e.wrappers[this.opts.wrappers[t]];"function"==typeof n&&n.call(this)}this.trigger("initWrappers:after")},e.prototype._initAddons=function(){for(var t in this.trigger("initAddons:before"),e.addons)e.addons[t].call(this);this.trigger("initAddons:after")},e.prototype._initExtensions=function(){var e=this;this.trigger("initExtensions:before"),"array"==s(this.opts.extensions)&&(this.opts.extensions={all:this.opts.extensions}),Object.keys(this.opts.extensions).forEach(function(t){var n=e.opts.extensions[t].map(function(e){return"mm-menu_"+e});n.length&&_(t,function(){n.forEach(function(t){e.node.menu.classList.add(t)})},function(){n.forEach(function(t){e.node.menu.classList.remove(t)})})}),this.trigger("initExtensions:after")},e.prototype._initMenu=function(){var e=this;this.trigger("initMenu:before"),this.node.wrpr=this.node.wrpr||this.node.menu.parentElement,this.node.wrpr.classList.add("mm-wrapper"),this.node.menu.id=this.node.menu.id||u();var t=f("div.mm-panels");g(this.node.menu).forEach(function(n){e.conf.panelNodetype.indexOf(n.nodeName.toLowerCase())>-1&&t.append(n)}),this.node.menu.append(t),this.node.pnls=t,this.node.menu.classList.add("mm-menu"),this.trigger("initMenu:after")},e.prototype._initPanels=function(){var e=this;this.trigger("initPanels:before"),this.clck.push(function(t,n){if(n.inMenu){var i=t.getAttribute("href");if(i&&i.length>1&&"#"==i.slice(0,1))try{var o=m(e.node.menu,i)[0];if(o&&o.matches(".mm-panel"))return t.parentElement.matches(".mm-listitem_vertical")?e.togglePanel(o):e.openPanel(o),!0}catch(e){}}}),g(this.node.pnls).forEach(function(t){e.initPanel(t)}),this.trigger("initPanels:after")},e.prototype.initPanel=function(e){var t=this,n=this.conf.panelNodetype.join(", ");if(e.matches(n)&&(e.matches(".mm-panel")||(e=this._initPanel(e)),e)){var i=[];i.push.apply(i,g(e,"."+this.conf.classNames.panel)),g(e,".mm-listview").forEach(function(e){g(e,".mm-listitem").forEach(function(e){i.push.apply(i,g(e,n))})}),i.forEach(function(e){t.initPanel(e)})}},e.prototype._initPanel=function(e){var t=this;if(this.trigger("initPanel:before",[e]),w(e,this.conf.classNames.panel,"mm-panel"),w(e,this.conf.classNames.nopanel,"mm-nopanel"),w(e,this.conf.classNames.inset,"mm-listview_inset"),e.matches(".mm-listview_inset")&&e.classList.add("mm-nopanel"),e.matches(".mm-nopanel"))return null;var n=e.id||u(),i=e.matches("."+this.conf.classNames.vertical)||!this.opts.slidingSubmenus;if(e.classList.remove(this.conf.classNames.vertical),e.matches("ul, ol")){e.removeAttribute("id");var o=f("div");e.before(o),o.append(e),e=o}e.id=n,e.classList.add("mm-panel"),e.classList.add("mm-hidden");var r=[e.parentElement].filter(function(e){return e.matches("li")})[0];if(i?r&&r.classList.add("mm-listitem_vertical"):this.node.pnls.append(e),r&&(r.mmChild=e,e.mmParent=r,r&&r.matches(".mm-listitem")&&!g(r,".mm-btn").length)){var s=g(r,".mm-listitem__text")[0];if(s){var a=f("a.mm-btn.mm-btn_next.mm-listitem__btn");a.setAttribute("href","#"+e.id),s.matches("span")?(a.classList.add("mm-listitem__text"),a.innerHTML=s.innerHTML,r.insertBefore(a,s.nextElementSibling),s.remove()):r.insertBefore(a,g(r,".mm-panel")[0])}}return this._initNavbar(e),g(e,"ul, ol").forEach(function(e){t.initListview(e)}),this.trigger("initPanel:after",[e]),e},e.prototype._initNavbar=function(e){if(this.trigger("initNavbar:before",[e]),!g(e,".mm-navbar").length){var t=null,n=null;if(e.getAttribute("data-mm-parent")?n=m(this.node.pnls,e.getAttribute("data-mm-parent"))[0]:(t=e.mmParent)&&(n=t.closest(".mm-panel")),!t||!t.matches(".mm-listitem_vertical")){var i=f("div.mm-navbar");if(this.opts.navbar.add?this.opts.navbar.sticky&&i.classList.add("mm-navbar_sticky"):i.classList.add("mm-hidden"),n){var o=f("a.mm-btn.mm-btn_prev.mm-navbar__btn");o.setAttribute("href","#"+n.id),i.append(o)}var r=null;t?r=g(t,".mm-listitem__text")[0]:n&&(r=m(n,'a[href="#'+e.id+'"]')[0]);var s=f("a.mm-navbar__title"),a=f("span");switch(s.append(a),a.innerHTML=e.getAttribute("data-mm-title")||(r?r.textContent:"")||this.i18n(this.opts.navbar.title)||this.i18n("Menu"),this.opts.navbar.titleLink){case"anchor":r&&s.setAttribute("href",r.getAttribute("href"));break;case"parent":n&&s.setAttribute("href","#"+n.id)}i.append(s),e.prepend(i),this.trigger("initNavbar:after",[e])}}},e.prototype.initListview=function(e){var t=this;this.trigger("initListview:before",[e]),w(e,this.conf.classNames.nolistview,"mm-nolistview"),e.matches(".mm-nolistview")||(e.classList.add("mm-listview"),g(e).forEach(function(e){e.classList.add("mm-listitem"),w(e,t.conf.classNames.selected,"mm-listitem_selected"),g(e,"a, span").forEach(function(e){e.matches(".mm-btn")||e.classList.add("mm-listitem__text")})})),this.trigger("initListview:after",[e])},e.prototype._initOpened=function(){this.trigger("initOpened:before");var e=this.node.pnls.querySelectorAll(".mm-listitem_selected"),t=null;e.forEach(function(e){t=e,e.classList.remove("mm-listitem_selected")}),t&&t.classList.add("mm-listitem_selected");var n=t?t.closest(".mm-panel"):g(this.node.pnls,".mm-panel")[0];this.openPanel(n,!1),this.trigger("initOpened:after")},e.prototype._initAnchors=function(){var e=this;this.trigger("initAnchors:before"),document.addEventListener("click",function(t){var n=t.target.closest("a[href]");if(n){for(var i={inMenu:n.closest(".mm-menu")===e.node.menu,inListview:n.matches(".mm-listitem > a"),toExternal:n.matches('[rel="external"]')||n.matches('[target="_blank"]')},o={close:null,setSelected:null,preventDefault:"#"==n.getAttribute("href").slice(0,1)},l=0;l<e.clck.length;l++){var u=e.clck[l].call(e,n,i);if(u){if("boolean"==typeof u)return void t.preventDefault();"object"==s(u)&&(o=r(u,o))}}i.inMenu&&i.inListview&&!i.toExternal&&(a(n,e.opts.onClick.setSelected,o.setSelected)&&e.setSelected(n.parentElement),a(n,e.opts.onClick.preventDefault,o.preventDefault)&&t.preventDefault(),a(n,e.opts.onClick.close,o.close)&&e.opts.offCanvas&&"function"==typeof e.close&&e.close())}},!0),this.trigger("initAnchors:after")},e.prototype.i18n=function(e){return function(e,t){return"string"==typeof t&&void 0!==p[t]&&p[t][e]||e}(e,this.conf.language)},e.options=i,e.configs=o,e.addons={},e.wrappers={},e.node={},e.vars={},e}();function T(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function C(e,t,n){var i=t.split(".");e[t="mmEvent"+T(i[0])+T(i[1])]=e[t]||[],e[t].push(n),e.addEventListener(i[0],n)}function E(e,t){var n=t.split(".");t="mmEvent"+T(n[0])+T(n[1]),(e[t]||[]).forEach(function(t){e.removeEventListener(n[0],t)})}k.options.offCanvas={blockUI:!0,moveBackground:!0},k.configs.offCanvas={clone:!1,menu:{insertMethod:"prepend",insertSelector:"body"},page:{nodetype:"div",selector:null,noSelector:[]}},k.prototype.open=function(){var e=this;this.trigger("open:before"),this.vars.opened||(this._openSetup(),setTimeout(function(){e._openStart()},this.conf.openingInterval),this.trigger("open:after"))},k.prototype._openSetup=function(){var e=this,t=this.opts.offCanvas;this.closeAllOthers(),function(e,t,n){var i=t.split(".");(e[t="mmEvent"+T(i[0])+T(i[1])]||[]).forEach(function(e){e(n||{})})}(window,"resize.page",{force:!0});var n=["mm-wrapper_opened"];t.blockUI&&n.push("mm-wrapper_blocking"),"modal"==t.blockUI&&n.push("mm-wrapper_modal"),t.moveBackground&&n.push("mm-wrapper_background"),n.forEach(function(t){e.node.wrpr.classList.add(t)}),setTimeout(function(){e.vars.opened=!0},this.conf.openingInterval),this.node.menu.classList.add("mm-menu_opened")},k.prototype._openStart=function(){var e=this;l(k.node.page,function(){e.trigger("open:finish")},this.conf.transitionDuration),this.trigger("open:start"),this.node.wrpr.classList.add("mm-wrapper_opening")},k.prototype.close=function(){var e=this;this.trigger("close:before"),this.vars.opened&&(l(k.node.page,function(){e.node.menu.classList.remove("mm-menu_opened"),["mm-wrapper_opened","mm-wrapper_blocking","mm-wrapper_modal","mm-wrapper_background"].forEach(function(t){e.node.wrpr.classList.remove(t)}),e.vars.opened=!1,e.trigger("close:finish")},this.conf.transitionDuration),this.trigger("close:start"),this.node.wrpr.classList.remove("mm-wrapper_opening"),this.trigger("close:after"))},k.prototype.closeAllOthers=function(){var e=this;m(document.body,".mm-menu_offcanvas").forEach(function(t){if(t!==e.node.menu){var n=t.mmApi;n&&n.close&&n.close()}})},k.prototype.setPage=function(e){this.trigger("setPage:before",[e]);var t=this.conf.offCanvas;if(!e){var n="string"==typeof t.page.selector?m(document.body,t.page.selector):g(document.body,t.page.nodetype);if(n=n.filter(function(e){return!e.matches(".mm-menu, .mm-wrapper__blocker")}),t.page.noSelector.length&&(n=n.filter(function(e){return!e.matches(t.page.noSelector.join(", "))})),n.length>1){var i=f("div");n[0].before(i),n.forEach(function(e){i.append(e)}),n=[i]}e=n[0]}e.classList.add("mm-page"),e.classList.add("mm-slideout"),e.id=e.id||u(),k.node.page=e,this.trigger("setPage:after",[e])};var D;h({"Close menu":"Menu sluiten","Close submenu":"Submenu sluiten","Open submenu":"Submenu openen","Toggle submenu":"Submenu wisselen"},"nl"),h({"Close menu":"بستن منو","Close submenu":"بستن زیرمنو","Open submenu":"بازکردن زیرمنو","Toggle submenu":"سوییچ زیرمنو"},"fa"),h({"Close menu":"Menü schließen","Close submenu":"Untermenü schließen","Open submenu":"Untermenü öffnen","Toggle submenu":"Untermenü wechseln"},"de"),h({"Close menu":"Закрыть меню","Close submenu":"Закрыть подменю","Open submenu":"Открыть подменю","Toggle submenu":"Переключить подменю"},"ru"),k.options.screenReader={aria:!0,text:!0},k.configs.screenReader={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},D=function(e,t,n){e[t]=n,n?e.setAttribute(t,n.toString()):e.removeAttribute(t)},k.sr_aria=function(e,t,n){D(e,"aria-"+t,n)},k.sr_role=function(e,t){D(e,"role",t)},k.sr_text=function(e){return'<span class="mm-sronly">'+e+"</span>"};var $="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1;k.options.scrollBugFix={fix:!0};k.options.autoHeight={height:"default"};k.options.backButton={close:!1,open:!1};k.options.columns={add:!1,visible:{min:1,max:3}};k.options.counters={add:!1,addTo:"panels",count:!1},k.configs.classNames.counters={counter:"Counter"};k.options.dividers={add:!1,addTo:"panels"},k.configs.classNames.divider="Divider";var R="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1,M={top:0,right:0,bottom:0,left:0},A={start:15,swipe:15},P={x:["Right","Left"],y:["Down","Up"]},L=function(e,t){return"string"==typeof e&&"%"==e.slice(-1)&&(e=t*((e=parseInt(e.slice(0,-1),10))/100)),e},I=function(){function e(e,t,n){this.surface=e,this.area=r(t,M),this.treshold=r(n,A),this.surface.mmHasDragEvents||(this.surface.addEventListener(R?"touchstart":"mousedown",this.start.bind(this)),this.surface.addEventListener(R?"touchend":"mouseup",this.stop.bind(this)),this.surface.addEventListener(R?"touchleave":"mouseleave",this.stop.bind(this)),this.surface.addEventListener(R?"touchmove":"mousemove",this.move.bind(this))),this.surface.mmHasDragEvents=!0}return e.prototype.start=function(e){this.currentPosition={x:e.touches?e.touches[0].pageX:e.pageX||0,y:e.touches?e.touches[0].pageY:e.pageY||0};var t=this.surface.clientWidth,n=this.surface.clientHeight,i=L(this.area.top,n);if(!("number"==typeof i&&this.currentPosition.y<i)){var o=L(this.area.right,t);if(!("number"==typeof o&&(o=t-o,this.currentPosition.x>o))){var r=L(this.area.bottom,n);if(!("number"==typeof r&&(r=n-r,this.currentPosition.y>r))){var s=L(this.area.left,t);"number"==typeof s&&this.currentPosition.x<s||(this.startPosition={x:this.currentPosition.x,y:this.currentPosition.y},this.state=1)}}}},e.prototype.stop=function(e){if(2==this.state){var t=this._dragDirection(),n=this._eventDetail(t);if(this._dispatchEvents("drag*End",n),Math.abs(this.movement[this.axis])>this.treshold.swipe){var i=this._swipeDirection();n.direction=i,this._dispatchEvents("swipe*",n)}}this.state=0},e.prototype.move=function(e){switch(this.state){case 1:case 2:var t={x:e.changedTouches?e.touches[0].pageX:e.pageX||0,y:e.changedTouches?e.touches[0].pageY:e.pageY||0};this.movement={x:t.x-this.currentPosition.x,y:t.y-this.currentPosition.y},this.distance={x:t.x-this.startPosition.x,y:t.y-this.startPosition.y},this.currentPosition={x:t.x,y:t.y},this.axis=Math.abs(this.distance.x)>Math.abs(this.distance.y)?"x":"y";var n=this._dragDirection(),i=this._eventDetail(n);1==this.state&&Math.abs(this.distance[this.axis])>this.treshold.start&&(this._dispatchEvents("drag*Start",i),this.state=2),2==this.state&&this._dispatchEvents("drag*Move",i)}},e.prototype._eventDetail=function(e){var t=this.distance.x,n=this.distance.y;return"x"==this.axis&&(t-=t>0?this.treshold.start:0-this.treshold.start),"y"==this.axis&&(n-=n>0?this.treshold.start:0-this.treshold.start),{axis:this.axis,direction:e,movementX:this.movement.x,movementY:this.movement.y,distanceX:t,distanceY:n}},e.prototype._dispatchEvents=function(e,t){var n=new CustomEvent(e.replace("*",""),{detail:t});this.surface.dispatchEvent(n);var i=new CustomEvent(e.replace("*",this.axis.toUpperCase()),{detail:t});this.surface.dispatchEvent(i);var o=new CustomEvent(e.replace("*",t.direction),{detail:t});this.surface.dispatchEvent(o)},e.prototype._dragDirection=function(){return P[this.axis][this.distance[this.axis]>0?0:1]},e.prototype._swipeDirection=function(){return P[this.axis][this.movement[this.axis]>0?0:1]},e}(),j=null,O=null,N=0,z=function(e,t,n){switch(e.position="left",e.zposition="back",["right","top","bottom"].forEach(function(n){t.indexOf("position-"+n)>-1&&(e.position=n)}),["front","top","bottom"].forEach(function(n){t.indexOf("position-"+n)>-1&&(e.zposition="front")}),j.area={top:"bottom"==e.position?"75%":0,right:"left"==e.position?"75%":0,bottom:"top"==e.position?"75%":0,left:"right"==e.position?"75%":0},e.position){case"top":case"bottom":e.axis="y";break;default:e.axis="x"}switch(e.position){case"top":e.direction="Down";break;case"right":e.direction="Left";break;case"bottom":e.direction="Up";break;default:e.direction="Right"}switch(e.zposition){case"front":e.slideOutNodes=[n];break;default:e.slideOutNodes=m(document.body,".mm-slideout")}return e};k.options.drag={open:!1,node:null};k.options.dropdown={drop:!1,fitViewport:!0,event:"click",position:{},tip:!0},k.configs.dropdown={offset:{button:{x:-5,y:5},viewport:{x:20,y:20}},height:{max:880},width:{max:440}};k.configs.fixedElements={insertMethod:"append",insertSelector:"body"},k.configs.classNames.fixedElements={fixed:"Fixed"};k.options.iconbar={use:!1,top:[],bottom:[],position:"left",type:"default"};k.options.iconPanels={add:!1,blockPanel:!0,hideDivider:!1,hideNavbar:!0,visible:3};k.options.keyboardNavigation={enable:!1,enhance:!1};k.options.lazySubmenus={load:!1};function H(){var e=this,t=this.opts.navbars;if(void 0!==t){t instanceof Array||(t=[t]);var n={};t.length&&(t.forEach(function(t){if(!(t=function(e){return"boolean"==typeof e&&e&&(e={}),"object"!=typeof e&&(e={}),void 0===e.content&&(e.content=["prev","title"]),e.content instanceof Array||(e.content=[e.content]),void 0===e.use&&(e.use=!0),"boolean"==typeof e.use&&e.use&&(e.use=!0),e}(t)).use)return!1;var i=f("div.mm-navbar"),o=t.position;"bottom"!==o&&(o="top"),n[o]||(n[o]=f("div.mm-navbars_"+o)),n[o].append(i);for(var r=0,s=t.content.length;r<s;r++){var a,l=t.content[r];if("string"==typeof l)if("function"==typeof(a=H.navbarContents[l]))a.call(e,i);else{var u=f("span");u.innerHTML=l;var c=g(u);1==c.length&&(u=c[0]),i.append(u)}else i.append(l)}"string"==typeof t.type&&"function"==typeof(a=H.navbarTypes[t.type])&&a.call(e,i),"boolean"!=typeof t.use&&_(t.use,function(){i.classList.remove("mm-hidden"),k.sr_aria(i,"hidden",!1)},function(){i.classList.add("mm-hidden"),k.sr_aria(i,"hidden",!0)})}),this.bind("initMenu:after",function(){for(var t in n)e.node.menu["bottom"==t?"append":"prepend"](n[t])}))}}k.options.navbars=[],k.configs.navbars={breadcrumbs:{separator:"/",removeFirst:!1}},k.configs.classNames.navbars={panelPrev:"Prev",panelTitle:"Title"},H.navbarContents={breadcrumbs:function(e){var t=this,n=f("div.mm-navbar__breadcrumbs");e.append(n),this.bind("initNavbar:after",function(e){if(!e.querySelector(".mm-navbar__breadcrumbs")){g(e,".mm-navbar")[0].classList.add("mm-hidden");for(var n=[],i=f("span.mm-navbar__breadcrumbs"),o=e,r=!0;o;){if(!(o=o.closest(".mm-panel")).parentElement.matches(".mm-listitem_vertical")){var s=m(o,".mm-navbar__title span")[0];if(s){var a=s.textContent;a.length&&n.unshift(r?"<span>"+a+"</span>":'<a href="#'+o.id+'">'+a+"</a>")}r=!1}o=o.mmParent}t.conf.navbars.breadcrumbs.removeFirst&&n.shift(),i.innerHTML=n.join('<span class="mm-separator">'+t.conf.navbars.breadcrumbs.separator+"</span>"),g(e,".mm-navbar")[0].append(i)}}),this.bind("openPanel:start",function(e){var t=e.querySelector(".mm-navbar__breadcrumbs");n.innerHTML=t?t.innerHTML:""}),this.bind("initNavbar:after:sr-aria",function(e){m(e,".mm-breadcrumbs a").forEach(function(e){k.sr_aria(e,"owns",e.getAttribute("href").slice(1))})})},close:function(e){var t=this,n=f("a.mm-btn.mm-btn_close.mm-navbar__btn");e.append(n),this.bind("setPage:after",function(e){n.setAttribute("href","#"+e.id)}),this.bind("setPage:after:sr-text",function(){n.innerHTML=k.sr_text(t.i18n(t.conf.screenReader.text.closeMenu))})},prev:function(e){var t,n,i,o=this,r=f("a.mm-btn.mm-btn_prev.mm-navbar__btn");e.append(r),this.bind("initNavbar:after",function(e){g(e,".mm-navbar")[0].classList.add("mm-hidden")}),this.bind("openPanel:start",function(e){e.parentElement.matches(".mm-listitem_vertical")||((t=e.querySelector("."+o.conf.classNames.navbars.panelPrev))||(t=e.querySelector(".mm-navbar__btn.mm-btn_prev")),n=t?t.getAttribute("href"):"",i=t?t.innerHTML:"",n?r.setAttribute("href",n):r.removeAttribute("href"),r.classList[n||i?"remove":"add"]("mm-hidden"),r.innerHTML=i)}),this.bind("initNavbar:after:sr-aria",function(e){k.sr_aria(e.querySelector(".mm-navbar"),"hidden",!0)}),this.bind("openPanel:start:sr-aria",function(e){k.sr_aria(r,"hidden",r.matches(".mm-hidden")),k.sr_aria(r,"owns",(r.getAttribute("href")||"").slice(1))})},searchfield:function(e){"object"!=s(this.opts.searchfield)&&(this.opts.searchfield={});var t=f("div.mm-navbar__searchfield");e.append(t),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=[t]},title:function(e){var t,n,i,o,r=this,s=f("a.mm-navbar__title"),a=f("span");s.append(a),e.append(s),this.bind("openPanel:start",function(e){e.parentElement.matches(".mm-listitem_vertical")||((i=e.querySelector("."+r.conf.classNames.navbars.panelTitle))||(i=e.querySelector(".mm-navbar__title span")),(t=i&&i.closest("a")?i.closest("a").getAttribute("href"):"")?s.setAttribute("href",t):s.removeAttribute("href"),n=i?i.innerHTML:"",a.innerHTML=n)}),this.bind("openPanel:start:sr-aria",function(e){if(r.opts.screenReader.text&&(o||g(r.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach(function(e){var t=e.querySelector(".mm-btn_prev");t&&(o=t)}),o)){var t=!0;"parent"==r.opts.navbar.titleLink&&(t=!o.matches(".mm-hidden")),k.sr_aria(s,"hidden",t)}})}},H.navbarTypes={tabs:function(e){var t=this;e.classList.add("mm-navbar_tabs"),e.parentElement.classList.add("mm-navbars_has-tabs");var n=g(e,"a");e.addEventListener("click",function(e){var n=e.target;if(n.matches("a"))if(n.matches(".mm-navbar__tab_selected"))e.stopImmediatePropagation();else try{t.openPanel(t.node.menu.querySelector(n.getAttribute("href")),!1),e.stopImmediatePropagation()}catch(e){}}),this.bind("openPanel:start",function e(t){n.forEach(function(e){e.classList.remove("mm-navbar__tab_selected")});var i=n.filter(function(e){return e.matches('[href="#'+t.id+'"]')})[0];if(i)i.classList.add("mm-navbar__tab_selected");else{var o=t.mmParent;o&&e.call(this,o.closest(".mm-panel"))}})}};k.options.pageScroll={scroll:!1,update:!1},k.configs.pageScroll={scrollOffset:0,updateOffset:50};h({Search:"Zoeken","No results found.":"Geen resultaten gevonden.",cancel:"annuleren"},"nl"),h({Search:"جستجو","No results found.":"نتیجه‌ای یافت نشد.",cancel:"انصراف"},"fa"),h({Search:"Suche","No results found.":"Keine Ergebnisse gefunden.",cancel:"beenden"},"de"),h({Search:"Найти","No results found.":"Ничего не найдено.",cancel:"отменить"},"ru"),k.options.searchfield={add:!1,addTo:"panels",cancel:!1,noResults:"No results found.",placeholder:"Search",panel:{add:!1,dividers:!0,fx:"none",id:null,splash:null,title:"Search"},search:!0,showTextItems:!1,showSubPanels:!0},k.configs.searchfield={clear:!1,form:!1,input:!1,submit:!1};k.prototype.search=function(e,t){var n,i=this,o=this.opts.searchfield;this.conf.searchfield,t=(t=t||""+e.value).toLowerCase().trim();var r=e.mmSearchfield,s=m(e.closest(".mm-searchfield"),".mm-btn"),a=g(this.node.pnls,".mm-panel_search")[0],l=r.panels,u=r.noresults,c=r.listitems,d=r.dividers;if(c.forEach(function(e){e.classList.remove("mm-listitem_nosubitems"),e.classList.remove("mm-listitem_onlysubitems"),e.classList.remove("mm-hidden")}),a&&(g(a,".mm-listview")[0].innerHTML=""),l.forEach(function(e){e.scrollTop=0}),t.length){d.forEach(function(e){e.classList.add("mm-hidden")}),c.forEach(function(e){var n,i=g(e,".mm-listitem__text")[0],r=!1;i&&(n=i,Array.prototype.slice.call(n.childNodes).filter(function(e){return 3==e.nodeType}).map(function(e){return e.textContent}).join(" ")).toLowerCase().indexOf(t)>-1&&(i.matches(".mm-listitem__btn")?o.showSubPanels&&(r=!0):(i.matches("a")||o.showTextItems)&&(r=!0)),r||e.classList.add("mm-hidden")});var p=c.filter(function(e){return!e.matches(".mm-hidden")}).length;if(o.panel.add){var h=[];l.forEach(function(e){var t=y(m(e,".mm-listitem"));if((t=t.filter(function(e){return!e.matches(".mm-hidden")})).length){if(o.panel.dividers){var n=f("li.mm-divider"),i=m(e,".mm-navbar__title")[0];i&&(n.innerHTML=i.innerHTML,h.push(n))}t.forEach(function(e){h.push(e.cloneNode(!0))})}}),h.forEach(function(e){e.querySelectorAll(".mm-toggle, .mm-check").forEach(function(e){e.remove()})}),(n=g(a,".mm-listview")[0]).append.apply(n,h),this.openPanel(a)}else o.showSubPanels&&l.forEach(function(e){y(m(e,".mm-listitem")).forEach(function(e){var t=e.mmChild;t&&m(t,".mm-listitem").forEach(function(e){e.classList.remove("mm-hidden")})})}),function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(l).reverse().forEach(function(t,n){var o=t.mmParent;o&&(y(m(t,".mm-listitem")).length?(o.matches(".mm-hidden")&&o.classList.remove("mm-hidden"),o.classList.add("mm-listitem_onlysubitems")):e.closest(".mm-panel")||((t.matches(".mm-panel_opened")||t.matches(".mm-panel_opened-parent"))&&setTimeout(function(){i.openPanel(o.closest(".mm-panel"))},(n+1)*(1.5*i.conf.openingInterval)),o.classList.add("mm-listitem_nosubitems")))}),l.forEach(function(e){y(m(e,".mm-listitem")).forEach(function(e){v(e,".mm-listitem_vertical").forEach(function(e){e.matches(".mm-hidden")&&(e.classList.remove("mm-hidden"),e.classList.add("mm-listitem_onlysubitems"))})})}),l.forEach(function(e){y(m(e,".mm-listitem")).forEach(function(e){var t=function(e,t){for(var n=[],i=e.previousElementSibling;i;)!i.matches(t)||n.push(i),i=i.previousElementSibling;return n}(e,".mm-divider")[0];t&&t.classList.remove("mm-hidden")})});s.forEach(function(e){return e.classList.remove("mm-hidden")}),u.forEach(function(e){m(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList[p?"add":"remove"]("mm-hidden")})}),o.panel.add&&(o.panel.splash&&m(a,".mm-panel__content").forEach(function(e){return e.classList.add("mm-hidden")}),c.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}))}else if(c.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}),s.forEach(function(e){return e.classList.add("mm-hidden")}),u.forEach(function(e){m(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList.add("mm-hidden")})}),o.panel.add)if(o.panel.splash)m(a,".mm-panel__content").forEach(function(e){return e.classList.remove("mm-hidden")});else if(!e.closest(".mm-panel_search")){var b=g(this.node.pnls,".mm-panel_opened-parent");this.openPanel(b.slice(-1)[0])}this.trigger("updateListview")};k.options.sectionIndexer={add:!1,addTo:"panels"};k.options.setSelected={current:!0,hover:!1,parent:!1};var U;k.options.sidebar={collapsed:{use:!1,blockMenu:!0,hideDivider:!1,hideNavbar:!0},expanded:{use:!1,initial:"open"}},k.configs.classNames.toggles={toggle:"Toggle",check:"Check"},k.addons={offcanvas:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return"object"!=typeof e&&(e={}),e}(this.opts.offCanvas);this.opts.offCanvas=r(t,k.options.offCanvas);var n=this.conf.offCanvas;this._api.push("open","close","setPage"),this.vars.opened=!1,this.bind("initMenu:before",function(){n.clone&&(e.node.menu=e.node.menu.cloneNode(!0),e.node.menu.id&&(e.node.menu.id="mm-"+e.node.menu.id),m(e.node.menu,"[id]").forEach(function(e){e.id="mm-"+e.id})),e.node.wrpr=document.body,document.querySelector(n.menu.insertSelector)[n.menu.insertMethod](e.node.menu)}),this.bind("initMenu:after",function(){(function(){var e=this;this.trigger("initBlocker:before");var t=this.opts.offCanvas,n=this.conf.offCanvas;if(t.blockUI){if(!k.node.blck){var i=f("div.mm-wrapper__blocker.mm-slideout");i.innerHTML="<a></a>",document.querySelector(n.menu.insertSelector).append(i),k.node.blck=i}var o=function(t){t.preventDefault(),t.stopPropagation(),e.node.wrpr.matches(".mm-wrapper_modal")||e.close()};k.node.blck.addEventListener("mousedown",o),k.node.blck.addEventListener("touchstart",o),k.node.blck.addEventListener("touchmove",o),this.trigger("initBlocker:after")}}).call(e),e.setPage(k.node.page),function(){var e=this;E(document.body,"keydown.tabguard"),C(document.body,"keydown.tabguard",function(t){9==t.keyCode&&e.node.wrpr.matches(".mm-wrapper_opened")&&t.preventDefault()})}.call(e),e.node.menu.classList.add("mm-menu_offcanvas");var t=window.location.hash;if(t){var n=d(e.node.menu.id);n&&n==t.slice(1)&&setTimeout(function(){e.open()},1e3)}}),this.bind("setPage:after",function(e){k.node.blck&&g(k.node.blck,"a").forEach(function(t){t.setAttribute("href","#"+e.id)})}),this.bind("open:start:sr-aria",function(){k.sr_aria(e.node.menu,"hidden",!1)}),this.bind("close:finish:sr-aria",function(){k.sr_aria(e.node.menu,"hidden",!0)}),this.bind("initMenu:after:sr-aria",function(){k.sr_aria(e.node.menu,"hidden",!0)}),this.bind("initBlocker:after:sr-text",function(){g(k.node.blck,"a").forEach(function(t){t.innerHTML=k.sr_text(e.i18n(e.conf.screenReader.text.closeMenu))})}),this.clck.push(function(t,n){var i=d(e.node.menu.id);if(i&&t.matches('[href="#'+i+'"]')){if(n.inMenu)return e.open(),!0;var o=t.closest(".mm-menu");if(o){var r=o.mmApi;if(r&&r.close)return r.close(),l(o,function(){e.open()},e.conf.transitionDuration),!0}return e.open(),!0}if((i=k.node.page.id)&&t.matches('[href="#'+i+'"]'))return e.close(),!0})}},screenReader:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={aria:e,text:e}),"object"!=typeof e&&(e={}),e}(this.opts.screenReader);this.opts.screenReader=r(t,k.options.screenReader);var n=this.conf.screenReader;t.aria&&(this.bind("initAddons:after",function(){e.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria",[].slice.call(arguments))}),e.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",[].slice.call(arguments))}),e.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",[].slice.call(arguments))}),e.bind("close:start",function(){this.trigger("close:start:sr-aria",[].slice.call(arguments))}),e.bind("close:finish",function(){this.trigger("close:finish:sr-aria",[].slice.call(arguments))}),e.bind("open:start",function(){this.trigger("open:start:sr-aria",[].slice.call(arguments))}),e.bind("initOpened:after",function(){this.trigger("initOpened:after:sr-aria",[].slice.call(arguments))})}),this.bind("updateListview",function(){e.node.pnls.querySelectorAll(".mm-listitem").forEach(function(e){k.sr_aria(e,"hidden",e.matches(".mm-hidden"))})}),this.bind("openPanel:start",function(t){var n=m(e.node.pnls,".mm-panel").filter(function(e){return e!==t}).filter(function(e){return!e.parentElement.matches(".mm-panel")}),i=[t];m(t,".mm-listitem_vertical .mm-listitem_opened").forEach(function(e){i.push.apply(i,g(e,".mm-panel"))}),n.forEach(function(e){k.sr_aria(e,"hidden",!0)}),i.forEach(function(e){k.sr_aria(e,"hidden",!1)})}),this.bind("closePanel",function(e){k.sr_aria(e,"hidden",!0)}),this.bind("initNavbar:after",function(e){var t=g(e,".mm-navbar")[0],n=t.matches(".mm-hidden");k.sr_aria(t,"hidden",n)}),t.text&&"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(e){var t=g(e,".mm-navbar")[0],n=!!t.querySelector(".mm-btn_prev");k.sr_aria(m(t,".mm-navbar__title")[0],"hidden",n)})),t.text&&(this.bind("initAddons:after",function(){e.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",[].slice.call(arguments))}),e.bind("initBlocker:after",function(){this.trigger("initBlocker:after:sr-text",[].slice.call(arguments))})}),this.bind("initNavbar:after",function(t){var i=g(t,".mm-navbar")[0];if(i){var o=g(i,".mm-btn_prev")[0];o&&(o.innerHTML=k.sr_text(e.i18n(n.text.closeSubmenu)))}}),this.bind("initListview:after",function(t){var i=t.closest(".mm-panel").mmParent;if(i){var o=g(i,".mm-btn_next")[0];if(o){var r=e.i18n(n.text[o.parentElement.matches(".mm-listitem_vertical")?"toggleSubmenu":"openSubmenu"]);o.innerHTML+=k.sr_text(r)}}}))},scrollBugFix:function(){var e=this;if($&&this.opts.offCanvas&&this.opts.offCanvas.blockUI){var t=function(e){return"boolean"==typeof e&&(e={fix:e}),"object"!=typeof e&&(e={}),e}(this.opts.scrollBugFix);if(this.opts.scrollBugFix=r(t,k.options.scrollBugFix),t.fix){var n,i,o=(n=this.node.menu,i="",n.addEventListener("touchmove",function(e){i="",e.movementY>0?i="down":e.movementY<0&&(i="up")}),{get:function(){return i}});this.node.menu.addEventListener("scroll",s,{passive:!1}),this.node.menu.addEventListener("touchmove",function(e){var t=e.target.closest(".mm-panel, .mm-iconbar__top, .mm-iconbar__bottom");t&&t.closest(".mm-listitem_vertical")&&(t=v(t,".mm-panel").pop()),t?(t.scrollHeight===t.offsetHeight||0==t.scrollTop&&"down"==o.get()||t.scrollHeight==t.scrollTop+t.offsetHeight&&"up"==o.get())&&s(e):s(e)},{passive:!1}),this.bind("open:start",function(){var t=g(e.node.pnls,".mm-panel_opened")[0];t&&(t.scrollTop=0)}),window.addEventListener("orientationchange",function(t){var n=g(e.node.pnls,".mm-panel_opened")[0];n&&(n.scrollTop=0,n.style["-webkit-overflow-scrolling"]="auto",n.style["-webkit-overflow-scrolling"]="touch")})}}function s(e){e.preventDefault(),e.stopPropagation()}},autoHeight:function(){var e=this,t=function(e){return"boolean"==typeof e&&e&&(e={height:"auto"}),"string"==typeof e&&(e={height:e}),"object"!=typeof e&&(e={}),e}(this.opts.autoHeight);if(this.opts.autoHeight=r(t,k.options.autoHeight),"auto"==t.height||"highest"==t.height){var n,i=(n=function(e){return e.parentElement.matches(".mm-listitem_vertical")&&(e=v(e,".mm-panel").filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")})[0]),e},function(){if(!e.opts.offCanvas||e.vars.opened){var i,o,r=0,s=e.node.menu.offsetHeight-e.node.pnls.offsetHeight;e.node.menu.classList.add("mm-menu_autoheight-measuring"),"auto"==t.height?((o=g(e.node.pnls,".mm-panel_opened")[0])&&(o=n(o)),o||(o=g(e.node.pnls,".mm-panel")[0]),r=o.scrollHeight):"highest"==t.height&&(i=0,g(e.node.pnls,".mm-panel").forEach(function(e){e=n(e),i=Math.max(i,e.scrollHeight)}),r=i),e.node.menu.style.height=r+s+"px",e.node.menu.classList.remove("mm-menu_autoheight-measuring")}});this.bind("initMenu:after",function(){e.node.menu.classList.add("mm-menu_autoheight")}),this.opts.offCanvas&&this.bind("open:start",i),"highest"==t.height&&this.bind("initPanels:after",i),"auto"==t.height&&(this.bind("updateListview",i),this.bind("openPanel:start",i))}},backButton:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return"boolean"==typeof e&&(e={close:e}),"object"!=typeof e&&(e={}),e}(this.opts.backButton);this.opts.backButton=r(t,k.options.backButton);var n="#"+this.node.menu.id;if(t.close){var i=[],o=function(){i=[n],g(e.node.pnls,".mm-panel_opened, .mm-panel_opened-parent").forEach(function(e){i.push("#"+e.id)})};this.bind("open:finish",function(){history.pushState(null,document.title,n)}),this.bind("open:finish",o),this.bind("openPanel:finish",o),this.bind("close:finish",function(){i=[],history.back(),history.pushState(null,document.title,location.pathname+location.search)}),window.addEventListener("popstate",function(t){if(e.vars.opened&&i.length){var o=(i=i.slice(0,-1))[i.length-1];o==n?e.close():(e.openPanel(e.node.menu.querySelector(o)),history.pushState(null,document.title,n))}})}t.open&&window.addEventListener("popstate",function(t){e.vars.opened||location.hash!=n||e.open()})}},columns:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={add:e}),"number"==typeof e&&(e={add:!0,visible:e}),"object"!=typeof e&&(e={}),"number"==typeof e.visible&&(e.visible={min:e.visible,max:e.visible}),e}(this.opts.columns);if(this.opts.columns=r(t,k.options.columns),t.add){t.visible.min=Math.max(1,Math.min(6,t.visible.min)),t.visible.max=Math.max(t.visible.min,Math.min(6,t.visible.max));for(var n=[],i=[],o=["mm-panel_opened","mm-panel_opened-parent","mm-panel_highest"],s=0;s<=t.visible.max;s++)n.push("mm-menu_columns-"+s),i.push("mm-panel_columns-"+s);o.push.apply(o,i),this.bind("openPanel:before",function(t){var n;if(t&&(n=t.mmParent),n&&!n.classList.contains("mm-listitem_vertical")&&(n=n.closest(".mm-panel"))){var i=n.className;if(i.length&&(i=i.split("mm-panel_columns-")[1]))for(var r=parseInt(i.split(" ")[0],10)+1;r>0;){if(!(t=g(e.node.pnls,".mm-panel_columns-"+r)[0])){r=-1;break}r++,t.classList.add("mm-hidden"),o.forEach(function(e){t.classList.remove(e)})}}}),this.bind("openPanel:start",function(o){if(o){var r=o.mmParent;if(r&&r.classList.contains("mm-listitem_vertical"))return}var s=g(e.node.pnls,".mm-panel_opened-parent").length;o.matches(".mm-panel_opened-parent")||s++,s=Math.min(t.visible.max,Math.max(t.visible.min,s)),n.forEach(function(t){e.node.menu.classList.remove(t)}),e.node.menu.classList.add("mm-menu_columns-"+s);var a=[];g(e.node.pnls,".mm-panel").forEach(function(e){i.forEach(function(t){e.classList.remove(t)}),e.matches(".mm-panel_opened-parent")&&a.push(e)}),a.push(o),a.slice(-t.visible.max).forEach(function(e,t){e.classList.add("mm-panel_columns-"+t)})})}},counters:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={add:e,addTo:"panels",count:e}),"object"!=typeof e&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-listview"),e}(this.opts.counters);if(this.opts.counters=r(t,k.options.counters),this.bind("initListview:after",function(t){var n=e.conf.classNames.counters.counter;m(t,"."+n).forEach(function(e){w(e,n,"mm-counter")})}),t.add&&this.bind("initListview:after",function(e){if(e.matches(t.addTo)){var n=e.closest(".mm-panel").mmParent;if(n&&!m(n,".mm-counter").length){var i=g(n,".mm-btn")[0];i&&i.prepend(f("span.mm-counter"))}}}),t.count){var n=function(t){(t?[t.closest(".mm-panel")]:g(e.node.pnls,".mm-panel")).forEach(function(e){var t=e.mmParent;if(t){var n=m(t,".mm-counter")[0];if(n){var i=[];g(e,".mm-listview").forEach(function(e){i.push.apply(i,g(e))}),n.innerHTML=y(i).length.toString()}}})};this.bind("initListview:after",n),this.bind("updateListview",n)}},dividers:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={add:e}),"object"!=typeof e&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-listview"),e}(this.opts.dividers);this.opts.dividers=r(t,k.options.dividers),this.bind("initListview:after",function(t){g(t).forEach(function(t){w(t,e.conf.classNames.divider,"mm-divider"),t.matches(".mm-divider")&&t.classList.remove("mm-listitem")})}),t.add&&this.bind("initListview:after",function(e){if(e.matches(t.addTo)){m(e,".mm-divider").forEach(function(e){e.remove()});var n="";y(g(e)).forEach(function(t){var i=g(t,".mm-listitem__text")[0].textContent.trim().toLowerCase()[0];if(i.length&&i!=n){n=i;var o=f("li.mm-divider");o.textContent=i,e.insertBefore(o,t)}})}})},drag:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return"boolean"==typeof e&&(e={open:e}),"object"!=typeof e&&(e={}),e}(this.opts.drag);this.opts.drag=r(t,k.options.drag),t.open&&this.bind("setPage:after",function(n){(function(e){var t=this,n={},i=!1,o=function(){var e=Object.keys(t.opts.extensions);e.length?(_(e.join(", "),function(){},function(){n=z(n,[],t.node.menu)}),e.forEach(function(e){_(e,function(){n=z(n,t.opts.extensions[e],t.node.menu)},function(){})})):n=z(n,[],t.node.menu)};O&&(E(O,"dragStart"),E(O,"dragMove"),E(O,"dragEnd")),j=new I(O=e),o(),o=function(){},O&&(C(O,"dragStart",function(e){e.detail.direction==n.direction&&(i=!0,t.node.wrpr.classList.add("mm-wrapper_dragging"),t._openSetup(),t.trigger("open:start"),N=t.node.menu["x"==n.axis?"clientWidth":"clientHeight"])}),C(O,"dragMove",function(e){if(e.detail.axis==n.axis&&i){var t=e.detail["distance"+n.axis.toUpperCase()];switch(n.position){case"right":case"bottom":t=Math.min(Math.max(t,-N),0);break;default:t=Math.max(Math.min(t,N),0)}if("front"==n.zposition)switch(n.position){case"right":case"bottom":t+=N;break;default:t-=N}n.slideOutNodes.forEach(function(e){e.style.transform="translate"+n.axis.toUpperCase()+"("+t+"px)"})}}),C(O,"dragEnd",function(e){if(e.detail.axis==n.axis&&i){i=!1,t.node.wrpr.classList.remove("mm-wrapper_dragging"),n.slideOutNodes.forEach(function(e){e.style.transform=""});var o=Math.abs(e.detail["distance"+n.axis.toUpperCase()])>=.75*N;if(!o){var r=e.detail["movement"+n.axis.toUpperCase()];switch(n.position){case"right":case"bottom":o=r<=0;break;default:o=r>=0}}o?t._openStart():t.close()}}))}).call(e,t.node||n)})}},dropdown:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return"boolean"==typeof e&&e&&(e={drop:e}),"object"!=typeof e&&(e={}),"string"==typeof e.position&&(e.position={of:e.position}),e}(this.opts.dropdown);this.opts.dropdown=r(t,k.options.dropdown);var n=this.conf.dropdown;if(t.drop){var i;this.bind("initMenu:after",function(){if(e.node.menu.classList.add("mm-menu_dropdown"),"string"!=typeof t.position.of){var n=d(e.node.menu.id);n&&(t.position.of='[href="#'+n+'"]')}if("string"==typeof t.position.of){i=m(document.body,t.position.of)[0];var o=t.event.split(" ");1==o.length&&(o[1]=o[0]),"hover"==o[0]&&i.addEventListener("mouseenter",function(){e.open()},{passive:!0}),"hover"==o[1]&&e.node.menu.addEventListener("mouseleave",function(){e.close()},{passive:!0})}}),this.bind("open:start",function(){e.node.menu.mmStyle=e.node.menu.getAttribute("style"),e.node.wrpr.classList.add("mm-wrapper_dropdown")}),this.bind("close:finish",function(){e.node.menu.setAttribute("style",e.node.menu.mmStyle),e.node.wrpr.classList.remove("mm-wrapper_dropdown")});var o=function(e,o){var r,s,a,l=o[0],u=o[1],c="x"==e?"offsetWidth":"offsetHeight",d="x"==e?"left":"top",p="x"==e?"right":"bottom",h="x"==e?"width":"height",f="x"==e?"innerWidth":"innerHeight",m="x"==e?"maxWidth":"maxHeight",g=null,v=(r=d,i.getBoundingClientRect()[r]+document.body["left"===r?"scrollLeft":"scrollTop"]),y=v+i[c],b=window[f],w=n.offset.button[e]+n.offset.viewport[e];if(t.position[e])switch(t.position[e]){case"left":case"bottom":g="after";break;case"right":case"top":g="before"}return null===g&&(g=v+(y-v)/2<b/2?"after":"before"),"after"==g?(a=b-((s="x"==e?v:y)+w),l[d]=s+n.offset.button[e]+"px",l[p]="auto",t.tip&&u.push("mm-menu_tip-"+("x"==e?"left":"top"))):(a=(s="x"==e?y:v)-w,l[p]="calc( 100% - "+(s-n.offset.button[e])+"px )",l[d]="auto",t.tip&&u.push("mm-menu_tip-"+("x"==e?"right":"bottom"))),t.fitViewport&&(l[m]=Math.min(n[h].max,a)+"px"),[l,u]};this.bind("open:start",s),window.addEventListener("resize",function(t){s.call(e)},{passive:!0}),this.opts.offCanvas.blockUI||window.addEventListener("scroll",function(t){s.call(e)},{passive:!0})}}function s(){var e=this;if(this.vars.opened){this.node.menu.setAttribute("style",this.node.menu.mmStyle);var n=[{},[]];for(var i in n=o.call(this,"y",n),(n=o.call(this,"x",n))[0])this.node.menu.style[i]=n[0][i];t.tip&&(["mm-menu_tip-left","mm-menu_tip-right","mm-menu_tip-top","mm-menu_tip-bottom"].forEach(function(t){e.node.menu.classList.remove(t)}),n[1].forEach(function(t){e.node.menu.classList.add(t)}))}}},fixedElements:function(){var e=this;if(this.opts.offCanvas){var t,n,i=this.conf.fixedElements;this.bind("setPage:after",function(o){t=e.conf.classNames.fixedElements.fixed,n=m(document,i.insertSelector)[0],m(o,"."+t).forEach(function(e){w(e,t,"mm-slideout"),n[i.insertMethod](e)})})}},iconbar:function(){var e,t=this,n=function(e){return"array"==s(e)&&(e={use:!0,top:e}),"object"!=s(e)&&(e={}),void 0===e.use&&(e.use=!0),"boolean"==typeof e.use&&e.use&&(e.use=!0),e}(this.opts.iconbar);if(this.opts.iconbar=r(n,k.options.iconbar),n.use&&(["top","bottom"].forEach(function(t,i){var o=n[t];"array"!=s(o)&&(o=[o]);for(var r=f("div.mm-iconbar__"+t),a=0,l=o.length;a<l;a++)"string"==typeof o[a]?r.innerHTML+=o[a]:r.append(o[a]);r.children.length&&(e||(e=f("div.mm-iconbar")),e.append(r))}),e)){this.bind("initMenu:after",function(){t.node.menu.prepend(e)});var i="mm-menu_iconbar-"+n.position,o=function(){t.node.menu.classList.add(i),k.sr_aria(e,"hidden",!1)};if("boolean"==typeof n.use?this.bind("initMenu:after",o):_(n.use,o,function(){t.node.menu.classList.remove(i),k.sr_aria(e,"hidden",!0)}),"tabs"==n.type){e.classList.add("mm-iconbar_tabs"),e.addEventListener("click",function(e){var n=e.target;if(n.matches("a"))if(n.matches(".mm-iconbar__tab_selected"))e.stopImmediatePropagation();else try{var i=t.node.menu.querySelector(n.getAttribute("href"))[0];i&&i.matches(".mm-panel")&&(e.preventDefault(),e.stopImmediatePropagation(),t.openPanel(i,!1))}catch(e){}});var a=function(t){m(e,"a").forEach(function(e){e.classList.remove("mm-iconbar__tab_selected")});var n=m(e,'[href="#'+t.id+'"]')[0];if(n)n.classList.add("mm-iconbar__tab_selected");else{var i=t.mmParent;i&&a(i.closest(".mm-panel"))}};this.bind("openPanel:start",a)}}},iconPanels:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={add:e}),"number"!=typeof e&&"string"!=typeof e||(e={add:!0,visible:e}),"object"!=typeof e&&(e={}),e}(this.opts.iconPanels);this.opts.iconPanels=r(t,k.options.iconPanels);var n=!1;if("first"==t.visible&&(n=!0,t.visible=1),t.visible=Math.min(3,Math.max(1,t.visible)),t.visible++,t.add){this.bind("initMenu:after",function(){var n=["mm-menu_iconpanel"];t.hideNavbar&&n.push("mm-menu_hidenavbar"),t.hideDivider&&n.push("mm-menu_hidedivider"),n.forEach(function(t){e.node.menu.classList.add(t)})});var i=[];if(!n)for(var o=0;o<=t.visible;o++)i.push("mm-panel_iconpanel-"+o);this.bind("openPanel:start",function(o){var r=g(e.node.pnls,".mm-panel");if(!(o=o||r[0]).parentElement.matches(".mm-listitem_vertical"))if(n)r.forEach(function(e,t){e.classList[0==t?"add":"remove"]("mm-panel_iconpanel-first")});else{r.forEach(function(e){i.forEach(function(t){e.classList.remove(t)})}),r=r.filter(function(e){return e.matches(".mm-panel_opened-parent")});var s=!1;r.forEach(function(e){o===e&&(s=!0)}),s||r.push(o),r.forEach(function(e){e.classList.remove("mm-hidden")}),(r=r.slice(-t.visible)).forEach(function(e,t){e.classList.add("mm-panel_iconpanel-"+t)})}}),this.bind("initPanel:after",function(e){if(t.blockPanel&&!e.parentElement.matches(".mm-listitem_vertical")&&!g(e,".mm-panel__blocker")[0]){var n=f("a.mm-panel__blocker");n.setAttribute("href","#"+e.closest(".mm-panel").id),e.prepend(n)}})}},keyboardNavigation:function(){var e=this;if(!$){var t=function(e){return"boolean"!=typeof e&&"string"!=typeof e||(e={enable:e}),"object"!=typeof e&&(e={}),e}(this.opts.keyboardNavigation);if(this.opts.keyboardNavigation=r(t,k.options.keyboardNavigation),t.enable){var n=f("button.mm-tabstart.mm-sronly"),i=f("button.mm-tabend.mm-sronly"),o=f("button.mm-tabend.mm-sronly");this.bind("initMenu:after",function(){t.enhance&&e.node.menu.classList.add("mm-menu_keyboardfocus"),function(e){var t=this;E(document.body,"keydown.tabguard"),E(document.body,"focusin.tabguard"),C(document.body,"focusin.tabguard",function(e){if(t.node.wrpr.matches(".mm-wrapper_opened")){var n=e.target;if(n.matches(".mm-tabend")){var i=void 0;n.parentElement.matches(".mm-menu")&&k.node.blck&&(i=k.node.blck),n.parentElement.matches(".mm-wrapper__blocker")&&(i=m(document.body,".mm-menu_offcanvas.mm-menu_opened")[0]),i||(i=n.parentElement),i&&g(i,".mm-tabstart")[0].focus()}}}),E(document.body,"keydown.navigate"),C(document.body,"keydown.navigate",function(t){var n=t.target,i=n.closest(".mm-menu");if(i){if(i.mmApi,!n.matches("input, textarea"))switch(t.keyCode){case 13:(n.matches(".mm-toggle")||n.matches(".mm-check"))&&n.dispatchEvent(new Event("click"));break;case 32:case 37:case 38:case 39:case 40:t.preventDefault()}if(e)if(n.matches("input"))switch(t.keyCode){case 27:n.value=""}else{var o=i.mmApi;switch(t.keyCode){case 8:var r=m(i,".mm-panel_opened")[0].mmParent;r&&o.openPanel(r.closest(".mm-panel"));break;case 27:i.matches(".mm-menu_offcanvas")&&o.close()}}}})}.call(e,t.enhance)}),this.bind("initOpened:before",function(){e.node.menu.prepend(n),e.node.menu.append(i),g(e.node.menu,".mm-navbars-top, .mm-navbars-bottom").forEach(function(e){e.querySelectorAll(".mm-navbar__title").forEach(function(e){e.setAttribute("tabindex","-1")})})}),this.bind("initBlocker:after",function(){k.node.blck.append(o),g(k.node.blck,"a")[0].classList.add("mm-tabstart")});var s="input, select, textarea, button, label, a[href]",a=function(n){n=n||g(e.node.pnls,".mm-panel_opened")[0];var i=null,o=document.activeElement.closest(".mm-navbar");if(!o||o.closest(".mm-menu")!=e.node.menu){if("default"==t.enable&&((i=m(n,".mm-listview a[href]:not(.mm-hidden)")[0])||(i=m(n,s+":not(.mm-hidden)")[0]),!i)){var r=[];g(e.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach(function(e){r.push.apply(r,m(e,s+":not(.mm-hidden)"))}),i=r[0]}i||(i=g(e.node.menu,".mm-tabstart")[0]),i&&i.focus()}};this.bind("open:finish",a),this.bind("openPanel:finish",a),this.bind("initOpened:after:sr-aria",function(){[e.node.menu,k.node.blck].forEach(function(e){g(e,".mm-tabstart, .mm-tabend").forEach(function(e){k.sr_aria(e,"hidden",!0),k.sr_role(e,"presentation")})})})}}},lazySubmenus:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={load:e}),"object"!=typeof e&&(e={}),e}(this.opts.lazySubmenus);this.opts.lazySubmenus=r(t,k.options.lazySubmenus),t.load&&(this.bind("initPanels:before",function(){var t=[];m(e.node.pnls,"li").forEach(function(n){t.push.apply(t,g(n,e.conf.panelNodetype.join(", ")))}),t.filter(function(e){return!e.matches(".mm-listview_inset")}).filter(function(e){return!e.matches(".mm-nolistview")}).filter(function(e){return!e.matches(".mm-nopanel")}).forEach(function(e){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(t){e.classList.add(t)})})}),this.bind("initPanels:before",function(){var t=[];m(e.node.pnls,"."+e.conf.classNames.selected).forEach(function(e){t.push.apply(t,v(e,".mm-panel_lazysubmenu"))}),t.length&&t.forEach(function(e){console.log(e),["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(t){e.classList.remove(t)})})}),this.bind("openPanel:before",function(t){var n=m(t,".mm-panel_lazysubmenu").filter(function(e){return!e.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu")});t.matches(".mm-panel_lazysubmenu")&&n.unshift(t),n.forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.remove(e)}),e.initPanel(t)})}))},navbars:H,pageScroll:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={scroll:e}),"object"!=typeof e&&(e={}),e}(this.opts.pageScroll);this.opts.pageScroll=r(t,k.options.pageScroll);var n,i=this.conf.pageScroll;function o(){n&&window.scrollTo({top:n.getBoundingClientRect().top+document.scrollingElement.scrollTop-i.scrollOffset,behavior:"smooth"}),n=null}function s(e){try{return"#"!=e&&"#"==e.slice(0,1)?k.node.page.querySelector(e):null}catch(e){return null}}if(t.scroll&&this.bind("close:finish",function(){o()}),this.opts.offCanvas&&t.scroll&&this.clck.push(function(t,i){if(n=null,i.inMenu){var r=t.getAttribute("href");if(n=s(r))return e.node.menu.matches(".mm-menu_sidebar-expanded")&&e.node.wrpr.matches(".mm-wrapper_sidebar-expanded")?void o():{close:!0}}}),t.update){var a=[];this.bind("initListview:after",function(e){b(g(e,".mm-listitem")).forEach(function(e){var t=s(e.getAttribute("href"));t&&a.unshift(t)})});var l=-1;window.addEventListener("scroll",function(t){for(var n=window.scrollY,o=0;o<a.length;o++)if(a[o].offsetTop<n+i.updateOffset){if(l!==o){l=o;var r=b(m(g(e.node.pnls,".mm-panel_opened")[0],".mm-listitem"));(r=r.filter(function(e){return e.matches('[href="#'+a[o].id+'"]')})).length&&e.setSelected(r[0].parentElement)}break}})}},searchfield:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={add:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.panel&&(e.panel={add:e.panel}),"object"!=typeof e.panel&&(e.panel={}),"panel"==e.addTo&&(e.panel.add=!0),e.panel.add&&(e.showSubPanels=!1,e.panel.splash&&(e.cancel=!0)),e}(this.opts.searchfield);this.opts.searchfield=r(t,k.options.searchfield),this.conf.searchfield,t.add&&(this.bind("close:start",function(){m(e.node.menu,".mm-searchfield").forEach(function(e){e.blur()})}),this.bind("initPanel:after",function(n){var i=null;t.panel.add&&(i=function(){var e=this.opts.searchfield,t=(this.conf.searchfield,g(this.node.pnls,".mm-panel_search")[0]);if(t)return t;t=f("div.mm-panel.mm-panel_search.mm-hidden"),e.panel.id&&(t.id=e.panel.id),e.panel.title&&t.setAttribute("data-mm-title",e.panel.title);var n=f("ul");switch(t.append(n),this.node.pnls.append(t),this.initListview(n),this._initNavbar(t),e.panel.fx){case!1:break;case"none":t.classList.add("mm-panel_noanimation");break;default:t.classList.add("mm-panel_fx-"+e.panel.fx)}if(e.panel.splash){var i=f("div.mm-panel__content");i.innerHTML=e.panel.splash,t.append(i)}return t.classList.add("mm-panel"),t.classList.add("mm-hidden"),this.node.pnls.append(t),t}.call(e));var o=null;switch(t.addTo){case"panels":o=[n];break;case"panel":o=[i];break;default:"string"==typeof t.addTo?o=m(e.node.menu,t.addTo):"array"==s(t.addTo)&&(o=t.addTo)}o.forEach(function(n){n=function(e){var t=this.opts.searchfield,n=this.conf.searchfield;if(e.parentElement.matches(".mm-listitem_vertical"))return null;if(r=m(e,".mm-searchfield")[0])return r;function i(e,t){if(t)for(var n in t)e.setAttribute(n,t[n])}var o,r=f((n.form?"form":"div")+".mm-searchfield"),s=f("div.mm-searchfield__input"),a=f("input");return a.type="text",a.autocomplete="off",a.placeholder=this.i18n(t.placeholder),s.append(a),r.append(s),e.prepend(r),i(a,n.input),n.clear&&((o=f("a.mm-btn.mm-btn_close.mm-searchfield__btn")).setAttribute("href","#"),s.append(o)),i(r,n.form),n.form&&n.submit&&!n.clear&&((o=f("a.mm-btn.mm-btn_next.mm-searchfield__btn")).setAttribute("href","#"),s.append(o)),t.cancel&&((o=f("a.mm-searchfield__cancel")).setAttribute("href","#"),o.textContent=this.i18n("cancel"),r.append(o)),r}.call(e,n),t.search&&n&&function(e){var t=this,n=this.opts.searchfield,i=(this.conf.searchfield,{});e.closest(".mm-panel_search")?(i.panels=m(this.node.pnls,".mm-panel"),i.noresults=[e.closest(".mm-panel")]):e.closest(".mm-panel")?(i.panels=[e.closest(".mm-panel")],i.noresults=i.panels):(i.panels=m(this.node.pnls,".mm-panel"),i.noresults=[this.node.menu]),i.panels=i.panels.filter(function(e){return!e.matches(".mm-panel_search")}),i.panels=i.panels.filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")}),i.listitems=[],i.dividers=[],i.panels.forEach(function(e){var t,n;(t=i.listitems).push.apply(t,m(e,".mm-listitem")),(n=i.dividers).push.apply(n,m(e,".mm-divider"))});var o=g(this.node.pnls,".mm-panel_search")[0],r=m(e,"input")[0],s=m(e,".mm-searchfield__cancel")[0];r.mmSearchfield=i,n.panel.add&&n.panel.splash&&(E(r,"focus.splash"),C(r,"focus.splash",function(e){t.openPanel(o)})),n.cancel&&(E(r,"focus.cancel"),C(r,"focus.cancel",function(e){s.classList.add("mm-searchfield__cancel-active")}),E(s,"click.splash"),C(s,"click.splash",function(e){if(e.preventDefault(),s.classList.remove("mm-searchfield__cancel-active"),o.matches(".mm-panel_opened")){var n=g(t.node.pnls,".mm-panel_opened-parent");n.length&&t.openPanel(n[n.length-1])}})),n.panel.add&&"panel"==n.addTo&&this.bind("openPanel:finish",function(e){e===o&&r.focus()}),E(r,"input.search"),C(r,"input.search",function(e){switch(e.keyCode){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:break;default:t.search(r)}}),this.search(r)}.call(e,n)}),t.noResults&&function(e){if(e){var t=this.opts.searchfield;if(this.conf.searchfield,e.closest(".mm-panel")||(e=g(this.node.pnls,".mm-panel")[0]),!g(e,".mm-panel__noresultsmsg").length){var n=f("div.mm-panel__noresultsmsg.mm-hidden");n.innerHTML=this.i18n(t.noResults),e.append(n)}}}.call(e,t.panel.add?i:n)}),this.clck.push(function(t,n){if(n.inMenu&&t.matches(".mm-searchfield__btn")){if(t.matches(".mm-btn_close")){var i=m(o=t.closest(".mm-searchfield"),"input")[0];return i.value="",e.search(i),!0}var o;if(t.matches(".mm-btn_next"))return(o=t.closest("form"))&&o.submit(),!0}}))},sectionIndexer:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={add:e}),"object"!=typeof e&&(e={}),e}(this.opts.sectionIndexer);this.opts.sectionIndexer=r(t,k.options.sectionIndexer),t.add&&this.bind("initPanels:after",function(){if(!e.node.indx){var t="";"abcdefghijklmnopqrstuvwxyz".split("").forEach(function(e){t+='<a href="#">'+e+"</a>"});var n=f("div.mm-sectionindexer");n.innerHTML=t,e.node.pnls.prepend(n),e.node.indx=n,e.node.indx.addEventListener("click",function(e){e.target.matches("a")&&e.preventDefault()});var i=function(t){if(t.target.matches("a")){var n=t.target.textContent,i=g(e.node.pnls,".mm-panel_opened")[0],o=-1,r=i.scrollTop;i.scrollTop=0,m(i,".mm-divider").filter(function(e){return!e.matches(".mm-hidden")}).forEach(function(e){o<0&&n==e.textContent.trim().slice(0,1).toLowerCase()&&(o=e.offsetTop)}),i.scrollTop=o>-1?o:r}};$?(e.node.indx.addEventListener("touchstart",i),e.node.indx.addEventListener("touchmove",i)):e.node.indx.addEventListener("mouseover",i)}e.bind("openPanel:start",function(t){var n=m(t,".mm-divider").filter(function(e){return!e.matches(".mm-hidden")}).length;e.node.indx.classList[n?"add":"remove"]("mm-sectionindexer_active")})})},setSelected:function(){var e=this,t=function(e){return"boolean"==typeof e&&(e={hover:e,parent:e}),"object"!=typeof e&&(e={}),e}(this.opts.setSelected);if(this.opts.setSelected=r(t,k.options.setSelected),"detect"==t.current){var n=function(t){t=t.split("?")[0].split("#")[0];var i=e.node.menu.querySelector('a[href="'+t+'"], a[href="'+t+'/"]');if(i)e.setSelected(i.parentElement);else{var o=t.split("/").slice(0,-1);o.length&&n(o.join("/"))}};this.bind("initMenu:after",function(){n.call(e,window.location.href)})}else t.current||this.bind("initListview:after",function(e){g(e,".mm-listitem_selected").forEach(function(e){e.classList.remove("mm-listitem_selected")})});t.hover&&this.bind("initMenu:after",function(){e.node.menu.classList.add("mm-menu_selected-hover")}),t.parent&&(this.bind("openPanel:finish",function(t){m(e.node.pnls,".mm-listitem_selected-parent").forEach(function(e){e.classList.remove("mm-listitem_selected-parent")});for(var n=t.mmParent;n;)n.matches(".mm-listitem_vertical")||n.classList.add("mm-listitem_selected-parent"),n=(n=n.closest(".mm-panel")).mmParent}),this.bind("initMenu:after",function(){e.node.menu.classList.add("mm-menu_selected-parent")}))},sidebar:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return("string"==typeof e||"boolean"==typeof e&&e||"number"==typeof e)&&(e={expanded:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.collapsed&&e.collapsed&&(e.collapsed={use:!0}),"string"!=typeof e.collapsed&&"number"!=typeof e.collapsed||(e.collapsed={use:e.collapsed}),"object"!=typeof e.collapsed&&(e.collapsed={}),"boolean"==typeof e.expanded&&e.expanded&&(e.expanded={use:!0}),"string"!=typeof e.expanded&&"number"!=typeof e.expanded||(e.expanded={use:e.expanded}),"object"!=typeof e.expanded&&(e.expanded={}),e}(this.opts.sidebar);if(this.opts.sidebar=r(t,k.options.sidebar),t.collapsed.use){this.bind("initMenu:after",function(){if(e.node.menu.classList.add("mm-menu_sidebar-collapsed"),t.collapsed.blockMenu&&e.opts.offCanvas&&!g(e.node.menu,".mm-menu__blocker")[0]){var n=f("a.mm-menu__blocker");n.setAttribute("href","#"+e.node.menu.id),e.node.menu.prepend(n)}t.collapsed.hideNavbar&&e.node.menu.classList.add("mm-menu_hidenavbar"),t.collapsed.hideDivider&&e.node.menu.classList.add("mm-menu_hidedivider")});var n=function(){e.node.wrpr.classList.add("mm-wrapper_sidebar-collapsed")},i=function(){e.node.wrpr.classList.remove("mm-wrapper_sidebar-collapsed")};"boolean"==typeof t.collapsed.use?this.bind("initMenu:after",n):_(t.collapsed.use,n,i)}if(t.expanded.use){this.bind("initMenu:after",function(){e.node.menu.classList.add("mm-menu_sidebar-expanded")}),n=function(){e.node.wrpr.classList.add("mm-wrapper_sidebar-expanded"),e.node.wrpr.matches(".mm-wrapper_sidebar-closed")||e.open()},i=function(){e.node.wrpr.classList.remove("mm-wrapper_sidebar-expanded"),e.close()},"boolean"==typeof t.expanded.use?this.bind("initMenu:after",n):_(t.expanded.use,n,i),this.bind("close:start",function(){e.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(e.node.wrpr.classList.add("mm-wrapper_sidebar-closed"),"remember"==t.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","closed"))}),this.bind("open:start",function(){e.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(e.node.wrpr.classList.remove("mm-wrapper_sidebar-closed"),"remember"==t.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","open"))});var o=t.expanded.initial;if("remember"==t.expanded.initial){var s=window.localStorage.getItem("mmenuExpandedState");switch(s){case"open":case"closed":o=s}}"closed"==o&&this.bind("initMenu:after",function(){e.node.wrpr.classList.add("mm-wrapper_sidebar-closed")}),this.clck.push(function(n,i){if(i.inMenu&&i.inListview&&e.node.wrpr.matches(".mm-wrapper_sidebar-expanded"))return{close:"closed"==t.expanded.initial}})}}},toggles:function(){var e=this;this.bind("initPanel:after",function(t){m(t,"input").forEach(function(t){w(t,e.conf.classNames.toggles.toggle,"mm-toggle"),w(t,e.conf.classNames.toggles.check,"mm-check")})})}},k.wrappers={angular:function(){this.opts.onClick={close:!0,preventDefault:!1,setSelected:!0}},bootstrap:function(){var e=this;if(this.node.menu.matches(".navbar-collapse")){this.conf.offCanvas&&(this.conf.offCanvas.clone=!1);var t=f("nav"),n=f("div");t.append(n),g(this.node.menu).forEach(function(t){switch(!0){case t.matches(".navbar-nav"):n.append(function(e){var t=f("ul");return m(e,".nav-item").forEach(function(e){var n=f("li");if(e.matches(".active")&&n.classList.add("Selected"),!e.matches(".nav-link")){var i=g(e,".dropdown-menu")[0];i&&n.append(s(i)),e=g(e,".nav-link")[0]}n.prepend(r(e)),t.append(n)}),t}(t));break;case t.matches(".dropdown-menu"):n.append(s(t));break;case t.matches(".form-inline"):e.conf.searchfield.form={action:t.getAttribute("action")||null,method:t.getAttribute("method")||null},e.conf.searchfield.input={name:t.querySelector("input").getAttribute("name")||null},e.conf.searchfield.clear=!1,e.conf.searchfield.submit=!0;break;default:n.append(t.cloneNode(!0))}}),this.bind("initMenu:before",function(){document.body.prepend(t),e.node.menu=t});var i=this.node.menu.parentElement;if(i){var o=i.querySelector(".navbar-toggler");o&&(o.removeAttribute("data-target"),o.removeAttribute("aria-controls"),o.outerHTML=o.outerHTML,(o=i.querySelector(".navbar-toggler")).addEventListener("click",function(t){t.preventDefault(),t.stopImmediatePropagation(),e[e.vars.opened?"close":"open"]()}))}}function r(e){for(var t=f(e.matches("a")?"a":"span"),n=["href","title","target"],i=0;i<n.length;i++)e.getAttribute(n[i])&&t.setAttribute(n[i],e.getAttribute(n[i]));return t.innerHTML=e.innerHTML,m(t,".sr-only").forEach(function(e){e.remove()}),t}function s(e){var t=f("ul");return g(e).forEach(function(e){var n=f("li");e.matches(".dropdown-divider")?n.classList.add("Divider"):e.matches(".dropdown-item")&&n.append(r(e)),t.append(n)}),t}},olark:function(){this.conf.offCanvas.page.noSelector.push("#olark")},turbolinks:function(){var e;document.addEventListener("turbolinks:before-visit",function(t){e=document.querySelector(".mm-wrapper").className.split(" ").filter(function(e){return/mm-/.test(e)})}),document.addEventListener("turbolinks:load",function(t){void 0!==e&&(document.querySelector(".mm-wrapper").className=e)})},wordpress:function(){this.conf.classNames.selected="current-menu-item";var e=document.getElementById("wpadminbar");e&&(e.style.position="fixed",e.classList.add("mm-slideout"))}},t.default=k,window&&(window.Mmenu=k),(U=window.jQuery||window.Zepto||null)&&(U.fn.mmenu=function(e,t){var n=U();return this.each(function(i,o){if(!o.mmApi){var r=new k(o,e,t),s=U(r.node.menu);s.data("mmenu",r.API),n=n.add(s)}}),n})}]),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.counterUp=t():e.counterUp=t()}(self,function(){return(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n,divideNumbers:()=>o});const n=(e,t={})=>{const{action:n="start",duration:r=1e3,delay:s=16}=t;if("stop"===n)return void i(e);if(i(e),!/[0-9]/.test(e.innerHTML))return;const a=o(e.innerHTML,{duration:r||e.getAttribute("data-duration"),delay:s||e.getAttribute("data-delay")});e._countUpOrigInnerHTML=e.innerHTML,e.innerHTML=a[0]||"&nbsp;",e.style.visibility="visible";const l=function(){e.innerHTML=a.shift()||"&nbsp;",a.length?(clearTimeout(e.countUpTimeout),e.countUpTimeout=setTimeout(l,s)):e._countUpOrigInnerHTML=void 0};e.countUpTimeout=setTimeout(l,s)},i=e=>{clearTimeout(e.countUpTimeout),e._countUpOrigInnerHTML&&(e.innerHTML=e._countUpOrigInnerHTML,e._countUpOrigInnerHTML=void 0),e.style.visibility=""},o=(e,t={})=>{const{duration:n=1e3,delay:i=16}=t,o=n/i,r=e.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),s=[];for(let e=0;e<o;e++)s.push("");for(let e=0;e<r.length;e++)if(/([0-9.][,.0-9]*[0-9]*)/.test(r[e])&&!/<[^>]+>/.test(r[e])){let t=r[e];const n=[...t.matchAll(/[.,]/g)].map(e=>({char:e[0],i:t.length-e.index-1})).sort((e,t)=>e.i-t.i);t=t.replace(/[.,]/g,"");let i=s.length-1;for(let e=o;e>=1;e--){let r=parseInt(t/o*e,10);r=n.reduce((e,{char:t,i:n})=>e.length<=n?e:e.slice(0,-n)+t+e.slice(-n),r.toString()),s[i--]+=r}}else for(let t=0;t<o;t++)s[t]+=r[e];return s[s.length]=e.toString(),s};return t})()}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}(function(e){"use strict";var t={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},n=27,i=9,o=13,r=38,s=39,a=40,l=e.noop;function u(t,n){this.element=t,this.el=e(t),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.noSuggestionsContainer=null,this.options=e.extend(!0,{},u.defaults,n),this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},this.hint=null,this.hintValue="",this.selection=null,this.initialize(),this.setOptions(n)}u.utils=t,e.Autocomplete=u,u.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(e,n){if(!n)return e.value;var i="("+t.escapeRegExChars(n)+")";return e.value.replace(new RegExp(i,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},formatGroup:function(e,t){return'<div class="autocomplete-group">'+t+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:l,onSearchComplete:l,onSearchError:l,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(t){return"string"==typeof t?e.parseJSON(t):t},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},u.prototype={initialize:function(){var t,n=this,i="."+n.classes.suggestion,o=n.classes.selected,r=n.options;n.element.setAttribute("autocomplete","off"),n.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),n.suggestionsContainer=u.utils.createNode(r.containerClass),(t=e(n.suggestionsContainer)).appendTo(r.appendTo||"body"),"auto"!==r.width&&t.css("width",r.width),t.on("mouseover.autocomplete",i,function(){n.activate(e(this).data("index"))}),t.on("mouseout.autocomplete",function(){n.selectedIndex=-1,t.children("."+o).removeClass(o)}),t.on("click.autocomplete",i,function(){n.select(e(this).data("index"))}),t.on("click.autocomplete",function(){clearTimeout(n.blurTimeoutId)}),n.fixPositionCapture=function(){n.visible&&n.fixPosition()},e(window).on("resize.autocomplete",n.fixPositionCapture),n.el.on("keydown.autocomplete",function(e){n.onKeyPress(e)}),n.el.on("keyup.autocomplete",function(e){n.onKeyUp(e)}),n.el.on("blur.autocomplete",function(){n.onBlur()}),n.el.on("focus.autocomplete",function(){n.onFocus()}),n.el.on("change.autocomplete",function(e){n.onKeyUp(e)}),n.el.on("input.autocomplete",function(e){n.onKeyUp(e)})},onFocus:function(){this.disabled||(this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange())},onBlur:function(){var t=this,n=t.options,i=t.el.val(),o=t.getQuery(i);t.blurTimeoutId=setTimeout(function(){t.hide(),t.selection&&t.currentValue!==o&&(n.onInvalidateSelection||e.noop).call(t.element)},200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(t){var n=e.extend({},this.options,t);this.isLocal=Array.isArray(n.lookup),this.isLocal&&(n.lookup=this.verifySuggestionsFormat(n.lookup)),n.orientation=this.validateOrientation(n.orientation,"bottom"),e(this.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex}),this.options=n},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=e(this.suggestionsContainer),n=t.parent().get(0);if(n===document.body||this.options.forceFixPosition){var i=this.options.orientation,o=t.outerHeight(),r=this.el.outerHeight(),s=this.el.offset(),a={top:s.top,left:s.left};if("auto"===i){var l=e(window).height(),u=e(window).scrollTop(),c=-u+s.top-o,d=u+l-(s.top+r+o);i=Math.max(c,d)===c?"top":"bottom"}if(a.top+="top"===i?-o:r,n!==document.body){var p,h=t.css("opacity");this.visible||t.css("opacity",0).show(),p=t.offsetParent().offset(),a.top-=p.top,a.top+=n.scrollTop,a.left-=p.left,this.visible||t.css("opacity",h).hide()}"auto"===this.options.width&&(a.width=this.el.outerWidth()+"px"),t.css(a)}},isCursorAtEnd:function(){var e,t=this.el.val().length,n=this.element.selectionStart;return"number"==typeof n?n===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){if(this.disabled||this.visible||e.which!==a||!this.currentValue){if(!this.disabled&&this.visible){switch(e.which){case n:this.el.val(this.currentValue),this.hide();break;case s:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case i:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case o:if(-1===this.selectedIndex)return void this.hide();this.select(this.selectedIndex);break;case r:this.moveUp();break;case a:this.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else this.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case r:case a:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var t=this.options,n=this.el.val(),i=this.getQuery(n);this.selection&&this.currentValue!==i&&(this.selection=null,(t.onInvalidateSelection||e.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=n,this.selectedIndex=-1,t.triggerSelectOnValidInput&&this.isExactMatch(i)?this.select(0):i.length<t.minChars?this.hide():this.getSuggestions(i)}},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(t){var n,i=this.options.delimiter;return i?(n=t.split(i),e.trim(n[n.length-1])):t},getSuggestionsLocal:function(t){var n,i=this.options,o=t.toLowerCase(),r=i.lookupFilter,s=parseInt(i.lookupLimit,10);return n={suggestions:e.grep(i.lookup,function(e){return r(e,t,o)})},s&&n.suggestions.length>s&&(n.suggestions=n.suggestions.slice(0,s)),n},getSuggestions:function(t){var n,i,o,r,s=this,a=s.options,l=a.serviceUrl;a.params[a.paramName]=t,!1!==a.onSearchStart.call(s.element,a.params)&&(i=a.ignoreParams?null:a.params,e.isFunction(a.lookup)?a.lookup(t,function(e){s.suggestions=e.suggestions,s.suggest(),a.onSearchComplete.call(s.element,t,e.suggestions)}):(s.isLocal?n=s.getSuggestionsLocal(t):(e.isFunction(l)&&(l=l.call(s.element,t)),o=l+"?"+e.param(i||{}),n=s.cachedResponse[o]),n&&Array.isArray(n.suggestions)?(s.suggestions=n.suggestions,s.suggest(),a.onSearchComplete.call(s.element,t,n.suggestions)):s.isBadQuery(t)?a.onSearchComplete.call(s.element,t,[]):(s.abortAjax(),r={url:l,data:i,type:a.type,dataType:a.dataType},e.extend(r,a.ajaxSettings),s.currentRequest=e.ajax(r).done(function(e){var n;s.currentRequest=null,n=a.transformResult(e,t),s.processResponse(n,t,o),a.onSearchComplete.call(s.element,t,n.suggestions)}).fail(function(e,n,i){a.onSearchError.call(s.element,t,e,n,i)}))))},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=e(this.suggestionsContainer);e.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,t),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),e(this.suggestionsContainer).hide(),this.signalHint(null)},suggest:function(){if(this.suggestions.length){var t,n=this.options,i=n.groupBy,o=n.formatResult,r=this.getQuery(this.currentValue),s=this.classes.suggestion,a=this.classes.selected,l=e(this.suggestionsContainer),u=e(this.noSuggestionsContainer),c=n.beforeRender,d="";n.triggerSelectOnValidInput&&this.isExactMatch(r)?this.select(0):(e.each(this.suggestions,function(e,a){i&&(d+=function(e,o){var r=e.data[i];return t===r?"":(t=r,n.formatGroup(e,t))}(a,0)),d+='<div class="'+s+'" data-index="'+e+'">'+o(a,r,e)+"</div>"}),this.adjustContainerWidth(),u.detach(),l.html(d),e.isFunction(c)&&c.call(this.element,l,this.suggestions),this.fixPosition(),l.show(),n.autoSelectFirst&&(this.selectedIndex=0,l.scrollTop(0),l.children("."+s).first().addClass(a)),this.visible=!0,this.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var t=this.options.beforeRender,n=e(this.suggestionsContainer),i=e(this.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),n.empty(),n.append(i),e.isFunction(t)&&t.call(this.element,n,this.suggestions),this.fixPosition(),n.show(),this.visible=!0},adjustContainerWidth:function(){var t,n=this.options,i=e(this.suggestionsContainer);"auto"===n.width?(t=this.el.outerWidth(),i.css("width",t>0?t:300)):"flex"===n.width&&i.css("width","")},findBestHint:function(){var t=this.el.val().toLowerCase(),n=null;t&&(e.each(this.suggestions,function(e,i){var o=0===i.value.toLowerCase().indexOf(t);return o&&(n=i),!o}),this.signalHint(n))},signalHint:function(t){var n="";t&&(n=this.currentValue+t.value.substr(this.currentValue.length)),this.hintValue!==n&&(this.hintValue=n,this.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},validateOrientation:function(t,n){return t=e.trim(t||"").toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var i=this.options;e.suggestions=this.verifySuggestionsFormat(e.suggestions),i.noCache||(this.cachedResponse[n]=e,i.preventBadQueries&&!e.suggestions.length&&this.badQueries.push(t)),t===this.getQuery(this.currentValue)&&(this.suggestions=e.suggestions,this.suggest())},activate:function(t){var n,i=this.classes.selected,o=e(this.suggestionsContainer),r=o.find("."+this.classes.suggestion);return o.find("."+i).removeClass(i),this.selectedIndex=t,-1!==this.selectedIndex&&r.length>this.selectedIndex?(n=r.get(this.selectedIndex),e(n).addClass(i),n):null},selectHint:function(){var t=e.inArray(this.hint,this.suggestions);this.select(t)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){if(-1!==this.selectedIndex)return 0===this.selectedIndex?(e(this.suggestionsContainer).children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint()):void this.adjustScroll(this.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(t){var n=this.activate(t);if(n){var i,o,r,s=e(n).outerHeight();i=n.offsetTop,r=(o=e(this.suggestionsContainer).scrollTop())+this.options.maxHeight-s,i<o?e(this.suggestionsContainer).scrollTop(i):i>r&&e(this.suggestionsContainer).scrollTop(i-this.options.maxHeight+s),this.options.preserveInput||(this.ignoreValueChange=!0,this.el.val(this.getValue(this.suggestions[t].value))),this.signalHint(null)}},onSelect:function(t){var n=this.options.onSelect,i=this.suggestions[t];this.currentValue=this.getValue(i.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.signalHint(null),this.suggestions=[],this.selection=i,e.isFunction(n)&&n.call(this.element,i)},getValue:function(e){var t,n,i=this.options.delimiter;return i?1===(n=(t=this.currentValue).split(i)).length?e:t.substr(0,t.length-n[n.length-1].length)+e:e},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),e(window).off("resize.autocomplete",this.fixPositionCapture),e(this.suggestionsContainer).remove()}},e.fn.devbridgeAutocomplete=function(t,n){return arguments.length?this.each(function(){var i=e(this),o=i.data("autocomplete");"string"==typeof t?o&&"function"==typeof o[t]&&o[t](n):(o&&o.dispose&&o.dispose(),o=new u(this,t),i.data("autocomplete",o))}):this.first().data("autocomplete")},e.fn.autocomplete||(e.fn.autocomplete=e.fn.devbridgeAutocomplete)}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=window.Slick||{};(t=function(){var t=0;return function(n,i){var o,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(n),appendDots:e(n),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=e(n),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,o=e(n).data("slick")||{},r.options=e.extend({},r.defaults,i,o),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,void 0!==document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=e.proxy(r.autoPlay,r),r.autoPlayClear=e.proxy(r.autoPlayClear,r),r.autoPlayIterator=e.proxy(r.autoPlayIterator,r),r.changeSlide=e.proxy(r.changeSlide,r),r.clickHandler=e.proxy(r.clickHandler,r),r.selectHandler=e.proxy(r.selectHandler,r),r.setPosition=e.proxy(r.setPosition,r),r.swipeHandler=e.proxy(r.swipeHandler,r),r.dragHandler=e.proxy(r.dragHandler,r),r.keyHandler=e.proxy(r.keyHandler,r),r.instanceUid=t++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,n,i){var o=this;if("boolean"==typeof n)i=n,n=null;else if(n<0||n>=o.slideCount)return!1;o.unload(),"number"==typeof n?0===n&&0===o.$slides.length?e(t).appendTo(o.$slideTrack):i?e(t).insertBefore(o.$slides.eq(n)):e(t).insertAfter(o.$slides.eq(n)):!0===i?e(t).prependTo(o.$slideTrack):e(t).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(t,n){e(n).attr("data-slick-index",t)}),o.$slidesCache=o.$slides,o.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,n){var i={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(t=-t),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:t},o.options.speed,o.options.easing,n):o.$slideTrack.animate({top:t},o.options.speed,o.options.easing,n):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),e({animStart:o.currentLeft}).animate({animStart:t},{duration:o.options.speed,easing:o.options.easing,step:function(e){e=Math.ceil(e),!1===o.options.vertical?(i[o.animType]="translate("+e+"px, 0px)",o.$slideTrack.css(i)):(i[o.animType]="translate(0px,"+e+"px)",o.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(o.applyTransition(),t=Math.ceil(t),!1===o.options.vertical?i[o.animType]="translate3d("+t+"px, 0px, 0px)":i[o.animType]="translate3d(0px,"+t+"px, 0px)",o.$slideTrack.css(i),n&&setTimeout(function(){o.disableTransition(),n.call()},o.options.speed))},t.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},t.prototype.asNavFor=function(t){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,n,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)n.append(e("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=n.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,n,i,o,r,s,a=this;if(i=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>0){for(s=a.options.slidesPerRow*a.options.rows,o=Math.ceil(r.length/s),e=0;e<o;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var u=document.createElement("div");for(n=0;n<a.options.slidesPerRow;n++){var c=e*s+(t*a.options.slidesPerRow+n);r.get(c)&&u.appendChild(r.get(c))}l.appendChild(u)}i.appendChild(l)}a.$slider.empty().append(i),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,n){var i,o,r,s=this,a=!1,l=s.$slider.width(),u=window.innerWidth||e(window).width();if("window"===s.respondTo?r=u:"slider"===s.respondTo?r=l:"min"===s.respondTo&&(r=Math.min(u,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(i in o=null,s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(!1===s.originalSettings.mobileFirst?r<s.breakpoints[i]&&(o=s.breakpoints[i]):r>s.breakpoints[i]&&(o=s.breakpoints[i]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||n)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t),a=o),t||!1===a||s.$slider.trigger("breakpoint",[s,a])}},t.prototype.changeSlide=function(t,n){var i,o,r=this,s=e(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),i=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":o=0===i?r.options.slidesToScroll:r.options.slidesToShow-i,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-o,!1,n);break;case"next":o=0===i?r.options.slidesToScroll:i,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+o,!1,n);break;case"index":var a=0===t.data.index?0:t.data.index||s.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(a),!1,n),s.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,n;if(n=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var i=e(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=i.is(":focus"),t.autoPlay())},0)})},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++i;else for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},t.prototype.getLeft=function(e){var t,n,i,o,r=this,s=0;return r.slideOffset=0,n=r.$slides.first().outerHeight(!0),!0===r.options.infinite?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,o=-1,!0===r.options.vertical&&!0===r.options.centerMode&&(2===r.options.slidesToShow?o=-1.5:1===r.options.slidesToShow&&(o=-2)),s=n*r.options.slidesToShow*o),r.slideCount%r.options.slidesToScroll!=0&&e+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(e>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(e-r.slideCount))*r.slideWidth*-1,s=(r.options.slidesToShow-(e-r.slideCount))*n*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,s=r.slideCount%r.options.slidesToScroll*n*-1))):e+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(e+r.options.slidesToShow-r.slideCount)*r.slideWidth,s=(e+r.options.slidesToShow-r.slideCount)*n),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,s=0),!0===r.options.centerMode&&r.slideCount<=r.options.slidesToShow?r.slideOffset=r.slideWidth*Math.floor(r.options.slidesToShow)/2-r.slideWidth*r.slideCount/2:!0===r.options.centerMode&&!0===r.options.infinite?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:!0===r.options.centerMode&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),t=!1===r.options.vertical?e*r.slideWidth*-1+r.slideOffset:e*n*-1+s,!0===r.options.variableWidth&&(i=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(e):r.$slideTrack.children(".slick-slide").eq(e+r.options.slidesToShow),t=!0===r.options.rtl?i[0]?-1*(r.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===r.options.centerMode&&(i=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(e):r.$slideTrack.children(".slick-slide").eq(e+r.options.slidesToShow+1),t=!0===r.options.rtl?i[0]?-1*(r.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(r.$list.width()-i.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,o=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);n<e;)o.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return o},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,n,i=this;return n=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0,!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each(function(o,r){if(r.offsetLeft-n+e(r).outerWidth()/2>-1*i.swipeLeft)return t=r,!1}),Math.abs(e(t).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},t.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),i=t.getNavigableIndexes().filter(function(e){return e>=0&&e<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(n){var o=i.indexOf(n);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+n,tabindex:-1}),-1!==o){var r="slick-slide-control"+t.instanceUid+o;e("#"+r).length&&e(this).attr({"aria-describedby":r})}}),t.$dots.attr("role","tablist").find("li").each(function(o){var r=i[o];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+o,"aria-controls":"slick-slide"+t.instanceUid+r,"aria-label":o+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=t.currentSlide,r=o+t.options.slidesToShow;o<r;o++)t.options.focusOnChange?t.$slides.eq(o).attr({tabindex:"0"}):t.$slides.eq(o).removeAttr("tabindex");t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){var t,n,i,o=this;function r(t){e("img[data-lazy]",t).each(function(){var t=e(this),n=e(this).attr("data-lazy"),i=e(this).attr("data-srcset"),r=e(this).attr("data-sizes")||o.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){t.animate({opacity:0},100,function(){i&&(t.attr("srcset",i),r&&t.attr("sizes",r)),t.attr("src",n).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,t,n])})},s.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,n])},s.src=n})}if(!0===o.options.centerMode?!0===o.options.infinite?i=(n=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(n=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),i=o.options.slidesToShow/2+1+2+o.currentSlide):(n=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,i=Math.ceil(n+o.options.slidesToShow),!0===o.options.fade&&(n>0&&n--,i<=o.slideCount&&i++)),t=o.$slider.find(".slick-slide").slice(n,i),"anticipated"===o.options.lazyLoad)for(var s=n-1,a=i,l=o.$slider.find(".slick-slide"),u=0;u<o.options.slidesToScroll;u++)s<0&&(s=o.slideCount-1),t=(t=t.add(l.eq(s))).add(l.eq(a)),s--,a++;r(t),o.slideCount<=o.options.slidesToShow?r(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?r(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&r(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var n=this;n.unslicked||(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange&&e(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var n,i,o,r,s,a=this,l=e("img[data-lazy]",a.$slider);l.length?(n=l.first(),i=n.attr("data-lazy"),o=n.attr("data-srcset"),r=n.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){o&&(n.attr("srcset",o),r&&n.attr("sizes",r)),n.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,n,i]),a.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout(function(){a.progressiveLazyLoad(t+1)},500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,n,i]),a.progressiveLazyLoad())},s.src=i):a.$slider.trigger("allImagesLoaded",[a])},t.prototype.refresh=function(t){var n,i,o=this;i=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>i&&(o.currentSlide=i),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),n=o.currentSlide,o.destroy(!0),e.extend(o,o.initials,{currentSlide:n}),o.init(),t||o.changeSlide({data:{message:"index",index:n}},!1)},t.prototype.registerBreakpoints=function(){var t,n,i,o=this,r=o.options.responsive||null;if("array"===e.type(r)&&r.length){for(t in o.respondTo=o.options.respondTo||"window",r)if(i=o.breakpoints.length-1,r.hasOwnProperty(t)){for(n=r[t].breakpoint;i>=0;)o.breakpoints[i]&&o.breakpoints[i]===n&&o.breakpoints.splice(i,1),i--;o.breakpoints.push(n),o.breakpointSettings[n]=r[t].settings}o.breakpoints.sort(function(e,t){return o.options.mobileFirst?e-t:t-e})}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,n){var i=this;if(e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,i.slideCount<1||e<0||e>i.slideCount-1)return!1;i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},t.prototype.setCSS=function(e){var t,n,i=this,o={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",o[i.positionProp]=e,!1===i.transformsEnabled?i.$slideTrack.css(o):(o={},!1===i.cssTransitions?(o[i.animType]="translate("+t+", "+n+")",i.$slideTrack.css(o)):(o[i.animType]="translate3d("+t+", "+n+", 0px)",i.$slideTrack.css(o)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,n=this;n.$slides.each(function(i,o){t=n.slideWidth*i*-1,!0===n.options.rtl?e(o).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}):e(o).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,n,i,o,r,s=this,a=!1;if("object"===e.type(arguments[0])?(i=arguments[0],a=arguments[1],r="multiple"):"string"===e.type(arguments[0])&&(i=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)s.options[i]=o;else if("multiple"===r)e.each(i,function(e,t){s.options[e]=t});else if("responsive"===r)for(n in o)if("array"!==e.type(s.options.responsive))s.options.responsive=[o[n]];else{for(t=s.options.responsive.length-1;t>=0;)s.options.responsive[t].breakpoint===o[n].breakpoint&&s.options.responsive.splice(t,1),t--;s.options.responsive.push(o[n])}a&&(s.unload(),s.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,n,i,o,r=this;if(n=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(e).addClass("slick-current"),!0===r.options.centerMode){var s=r.options.slidesToShow%2==0?1:0;t=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(e>=t&&e<=r.slideCount-1-t?r.$slides.slice(e-t+s,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=r.options.slidesToShow+e,n.slice(i-t+1+s,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-r.options.slidesToShow).addClass("slick-center"):e===r.slideCount-1&&n.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=r.slideCount-r.options.slidesToShow?r.$slides.slice(e,e+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=r.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(o=r.slideCount%r.options.slidesToShow,i=!0===r.options.infinite?r.options.slidesToShow+e:e,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-e<r.options.slidesToShow?n.slice(i-(r.options.slidesToShow-o),i+o).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},t.prototype.setupInfinite=function(){var t,n,i,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(n=null,o.slideCount>o.options.slidesToShow)){for(i=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,t=o.slideCount;t>o.slideCount-i;t-=1)n=t-1,e(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(t=0;t<i+o.slideCount;t+=1)n=t,e(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},t.prototype.selectHandler=function(t){var n=this,i=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),o=parseInt(i.attr("data-slick-index"));o||(o=0),n.slideCount<=n.options.slidesToShow?n.slideHandler(o,!1,!0):n.slideHandler(o)},t.prototype.slideHandler=function(e,t,n){var i,o,r,s,a,l,u=this;if(t=t||!1,!(!0===u.animating&&!0===u.options.waitForAnimate||!0===u.options.fade&&u.currentSlide===e))if(!1===t&&u.asNavFor(e),i=e,a=u.getLeft(i),s=u.getLeft(u.currentSlide),u.currentLeft=null===u.swipeLeft?s:u.swipeLeft,!1===u.options.infinite&&!1===u.options.centerMode&&(e<0||e>u.getDotCount()*u.options.slidesToScroll))!1===u.options.fade&&(i=u.currentSlide,!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,function(){u.postSlide(i)}):u.postSlide(i));else if(!1===u.options.infinite&&!0===u.options.centerMode&&(e<0||e>u.slideCount-u.options.slidesToScroll))!1===u.options.fade&&(i=u.currentSlide,!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(s,function(){u.postSlide(i)}):u.postSlide(i));else{if(u.options.autoplay&&clearInterval(u.autoPlayTimer),o=i<0?u.slideCount%u.options.slidesToScroll!=0?u.slideCount-u.slideCount%u.options.slidesToScroll:u.slideCount+i:i>=u.slideCount?u.slideCount%u.options.slidesToScroll!=0?0:i-u.slideCount:i,u.animating=!0,u.$slider.trigger("beforeChange",[u,u.currentSlide,o]),r=u.currentSlide,u.currentSlide=o,u.setSlideClasses(u.currentSlide),u.options.asNavFor&&(l=(l=u.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(u.currentSlide),u.updateDots(),u.updateArrows(),!0===u.options.fade)return!0!==n?(u.fadeSlideOut(r),u.fadeSlide(o,function(){u.postSlide(o)})):u.postSlide(o),void u.animateHeight();!0!==n&&u.slideCount>u.options.slidesToShow?u.animateSlide(a,function(){u.postSlide(o)}):u.postSlide(o)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,n,i,o=this;return e=o.touchObject.startX-o.touchObject.curX,t=o.touchObject.startY-o.touchObject.curY,n=Math.atan2(t,e),(i=Math.round(180*n/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0?!1===o.options.rtl?"left":"right":i<=360&&i>=315?!1===o.options.rtl?"left":"right":i>=135&&i<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?i>=35&&i<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(e){var t,n,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1,!1;if(i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(t),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,n,i,o,r,s,a=this;return r=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!a.dragging||a.scrolling||r&&1!==r.length)&&(t=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==r?r[0].pageX:e.clientX,a.touchObject.curY=void 0!==r?r[0].pageY:e.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),n=a.swipeDirection(),void 0!==e.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,e.preventDefault()),o=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),i=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===n||a.currentSlide>=a.getDotCount()&&"left"===n)&&(i=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=t+i*o:a.swipeLeft=t+i*(a.$list.height()/a.listWidth)*o,!0===a.options.verticalSwiping&&(a.swipeLeft=t+i*o),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},t.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,n.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,n,i=this,o=arguments[0],r=Array.prototype.slice.call(arguments,1),s=i.length;for(e=0;e<s;e++)if("object"==typeof o||void 0===o?i[e].slick=new t(i[e],o):n=i[e].slick[o].apply(i[e].slick,r),void 0!==n)return n;return i}}),function(e){"use strict";var t="readmore",n={speed:100,collapsedHeight:200,heightMargin:16,moreLink:'<a href="#">Read More</a>',lessLink:'<a href="#">Close</a>',embedCSS:!0,blockCSS:"display: block; width: 100%;",startOpen:!1,beforeToggle:function(){},afterToggle:function(){}},i={},o=0;function r(e){var t=e.clone().css({height:"auto",width:e.width(),maxHeight:"none",overflow:"hidden"}).insertAfter(e),n=t.outerHeight(),i=parseInt(t.css({maxHeight:""}).css("max-height").replace(/[^-\d\.]/g,""),10),o=e.data("defaultHeight");t.remove();var r=i||e.data("collapsedHeight")||o;e.data({expandedHeight:n,maxHeight:i,collapsedHeight:r}).css({maxHeight:"none"})}var s,a,l,u,c=(s=function(){e("[data-readmore]").each(function(){var t=e(this),n="true"===t.attr("aria-expanded");r(t),t.css({height:t.data(n?"expandedHeight":"collapsedHeight")})})},a=100,function(){var e=this,t=arguments,n=l&&!u;clearTimeout(u),u=setTimeout(function(){u=null,l||s.apply(e,t)},a),n&&s.apply(e,t)});function d(o,r){this.element=o,this.options=e.extend({},n,r),function(e){if(!i[e.selector]){var t=" ";e.embedCSS&&""!==e.blockCSS&&(t+=e.selector+" + [data-readmore-toggle], "+e.selector+"[data-readmore]{"+e.blockCSS+"}"),t+=e.selector+"[data-readmore]{transition: height "+e.speed+"ms;overflow: hidden;}",n=document,o=t,(r=n.createElement("style")).type="text/css",r.styleSheet?r.styleSheet.cssText=o:r.appendChild(n.createTextNode(o)),n.getElementsByTagName("head")[0].appendChild(r),i[e.selector]=!0}var n,o,r}(this.options),this._defaults=n,this._name=t,this.init(),window.addEventListener?(window.addEventListener("load",c),window.addEventListener("resize",c)):(window.attachEvent("load",c),window.attachEvent("resize",c))}d.prototype={init:function(){var t=this,n=e(this.element);n.data({defaultHeight:this.options.collapsedHeight,heightMargin:this.options.heightMargin}),r(n);var i=n.data("collapsedHeight"),s=n.data("heightMargin");if(n.outerHeight(!0)<=i+s)return!0;var a=n.attr("id")||function(e){var t=++o;return String(null==e?"rmjs-":e)+t}(),l=t.options.startOpen?t.options.lessLink:t.options.moreLink;n.attr({"data-readmore":"","aria-expanded":!1,id:a}),n.after(e(l).on("click",function(e){t.toggle(this,n[0],e)}).attr({"data-readmore-toggle":"","aria-controls":a})),t.options.startOpen||n.css({height:i})},toggle:function(t,n,i){i&&i.preventDefault(),t||(t=e('[aria-controls="'+this.element.id+'"]')[0]),n||(n=this.element);var o=this,r=e(n),s="",a="",l=!1,u=r.data("collapsedHeight");r.height()<=u?(s=r.data("expandedHeight")+"px",a="lessLink",l=!0):(s=u,a="moreLink"),o.options.beforeToggle(t,r,!l),r.css({height:s}),r.on("transitionend",function(){o.options.afterToggle(t,r,l),e(this).attr({"aria-expanded":l}).off("transitionend")}),e(t).replaceWith(e(o.options[a]).on("click",function(e){o.toggle(this,n,e)}).attr({"data-readmore-toggle":"","aria-controls":r.attr("id")}))},destroy:function(){e(this.element).each(function(){var t=e(this);t.attr({"data-readmore":null,"aria-expanded":null}).css({maxHeight:"",height:""}).next("[data-readmore-toggle]").remove(),t.removeData()})}},e.fn.readmore=function(n){var i=arguments,o=this.selector;return"object"==typeof(n=n||{})?this.each(function(){if(e.data(this,"plugin_"+t)){var i=e.data(this,"plugin_"+t);i.destroy.apply(i)}n.selector=o,e.data(this,"plugin_"+t,new d(this,n))}):"string"==typeof n&&"_"!==n[0]&&"init"!==n?this.each(function(){var o=e.data(this,"plugin_"+t);o instanceof d&&"function"==typeof o[n]&&o[n].apply(o,Array.prototype.slice.call(i,1))}):void 0}}(jQuery),function(e,t,n,i){var o="stellar",r={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(e){e.hide()},showElement:function(e){e.show()}},s={scroll:{getLeft:function(e){return e.scrollLeft()},setLeft:function(e,t){e.scrollLeft(t)},getTop:function(e){return e.scrollTop()},setTop:function(e,t){e.scrollTop(t)}},position:{getLeft:function(e){return-1*parseInt(e.css("left"),10)},getTop:function(e){return-1*parseInt(e.css("top"),10)}},margin:{getLeft:function(e){return-1*parseInt(e.css("margin-left"),10)},getTop:function(e){return-1*parseInt(e.css("margin-top"),10)}},transform:{getLeft:function(e){var t=getComputedStyle(e[0])[l];return"none"!==t?-1*parseInt(t.match(/(-?[0-9]+)/g)[4],10):0},getTop:function(e){var t=getComputedStyle(e[0])[l];return"none"!==t?-1*parseInt(t.match(/(-?[0-9]+)/g)[5],10):0}}},a={position:{setLeft:function(e,t){e.css("left",t)},setTop:function(e,t){e.css("top",t)}},transform:{setPosition:function(e,t,n,i,o){e[0].style[l]="translate3d("+(t-n)+"px, "+(i-o)+"px, 0)"}}},l=function(){var t,n=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=e("script")[0].style,o="";for(t in i)if(n.test(t)){o=t.match(n)[0];break}return"WebkitOpacity"in i&&(o="Webkit"),"KhtmlOpacity"in i&&(o="Khtml"),function(e){return o+(o.length>0?e.charAt(0).toUpperCase()+e.slice(1):e)}}()("transform"),u=void 0!==e("<div />",{style:"background:#fff"}).css("background-position-x"),c=u?function(e,t,n){e.css({"background-position-x":t,"background-position-y":n})}:function(e,t,n){e.css("background-position",t+" "+n)},d=u?function(e){return[e.css("background-position-x"),e.css("background-position-y")]}:function(e){return e.css("background-position").split(" ")},p=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)};function h(t,n){this.element=t,this.options=e.extend({},r,n),this._defaults=r,this._name=o,this.init()}h.prototype={init:function(){this.options.name=o+"_"+Math.floor(1e9*Math.random()),this._defineElements(),this._defineGetters(),this._defineSetters(),this._handleWindowLoadAndResize(),this._detectViewport(),this.refresh({firstLoad:!0}),"scroll"===this.options.scrollProperty?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===n.body&&(this.element=t),this.$scrollElement=e(this.element),this.$element=this.element===t?e("body"):this.$scrollElement,this.$viewportElement=void 0!==this.options.viewportElement?e(this.options.viewportElement):this.$scrollElement[0]===t||"scroll"===this.options.scrollProperty?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var e=this,t=s[e.options.scrollProperty];this._getScrollLeft=function(){return t.getLeft(e.$scrollElement)},this._getScrollTop=function(){return t.getTop(e.$scrollElement)}},_defineSetters:function(){var t=this,n=s[t.options.scrollProperty],i=a[t.options.positionProperty],o=n.setLeft,r=n.setTop;this._setScrollLeft="function"==typeof o?function(e){o(t.$scrollElement,e)}:e.noop,this._setScrollTop="function"==typeof r?function(e){r(t.$scrollElement,e)}:e.noop,this._setPosition=i.setPosition||function(e,n,o,r,s){t.options.horizontalScrolling&&i.setLeft(e,n,o),t.options.verticalScrolling&&i.setTop(e,r,s)}},_handleWindowLoadAndResize:function(){var n=this,i=e(t);n.options.responsive&&i.bind("load."+this.name,function(){n.refresh()}),i.bind("resize."+this.name,function(){n._detectViewport(),n.options.responsive&&n.refresh()})},refresh:function(n){var i=this,o=i._getScrollLeft(),r=i._getScrollTop();n&&n.firstLoad||this._reset(),this._setScrollLeft(0),this._setScrollTop(0),this._setOffsets(),this._findParticles(),this._findBackgrounds(),n&&n.firstLoad&&/WebKit/.test(navigator.userAgent)&&e(t).load(function(){var e=i._getScrollLeft(),t=i._getScrollTop();i._setScrollLeft(e+1),i._setScrollTop(t+1),i._setScrollLeft(e),i._setScrollTop(t)}),this._setScrollLeft(o),this._setScrollTop(r)},_detectViewport:function(){var e=this.$viewportElement.offset(),t=null!=e;this.viewportWidth=this.$viewportElement.width(),this.viewportHeight=this.$viewportElement.height(),this.viewportOffsetTop=t?e.top:0,this.viewportOffsetLeft=t?e.left:0},_findParticles:function(){var t=this;this._getScrollLeft(),this._getScrollTop();if(void 0!==this.particles)for(var n=this.particles.length-1;n>=0;n--)this.particles[n].$element.data("stellar-elementIsActive",void 0);this.particles=[],this.options.parallaxElements&&this.$element.find("[data-stellar-ratio]").each(function(n){var i,o,r,s,a,l,u,c,d,p=e(this),h=0,f=0,m=0,g=0;if(p.data("stellar-elementIsActive")){if(p.data("stellar-elementIsActive")!==this)return}else p.data("stellar-elementIsActive",this);t.options.showElement(p),p.data("stellar-startingLeft")?(p.css("left",p.data("stellar-startingLeft")),p.css("top",p.data("stellar-startingTop"))):(p.data("stellar-startingLeft",p.css("left")),p.data("stellar-startingTop",p.css("top"))),r=p.position().left,s=p.position().top,a="auto"===p.css("margin-left")?0:parseInt(p.css("margin-left"),10),l="auto"===p.css("margin-top")?0:parseInt(p.css("margin-top"),10),c=p.offset().left-a,d=p.offset().top-l,p.parents().each(function(){var t=e(this);if(!0===t.data("stellar-offset-parent"))return h=m,f=g,u=t,!1;m+=t.position().left,g+=t.position().top}),i=void 0!==p.data("stellar-horizontal-offset")?p.data("stellar-horizontal-offset"):void 0!==u&&void 0!==u.data("stellar-horizontal-offset")?u.data("stellar-horizontal-offset"):t.horizontalOffset,o=void 0!==p.data("stellar-vertical-offset")?p.data("stellar-vertical-offset"):void 0!==u&&void 0!==u.data("stellar-vertical-offset")?u.data("stellar-vertical-offset"):t.verticalOffset,t.particles.push({$element:p,$offsetParent:u,isFixed:"fixed"===p.css("position"),horizontalOffset:i,verticalOffset:o,startingPositionLeft:r,startingPositionTop:s,startingOffsetLeft:c,startingOffsetTop:d,parentOffsetLeft:h,parentOffsetTop:f,stellarRatio:void 0!==p.data("stellar-ratio")?p.data("stellar-ratio"):1,width:p.outerWidth(!0),height:p.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var t,n=this,i=this._getScrollLeft(),o=this._getScrollTop();this.backgrounds=[],this.options.parallaxBackgrounds&&(t=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(t=t.add(this.$element)),t.each(function(){var t,r,s,a,l,u,p,h=e(this),f=d(h),m=0,g=0,v=0,y=0;if(h.data("stellar-backgroundIsActive")){if(h.data("stellar-backgroundIsActive")!==this)return}else h.data("stellar-backgroundIsActive",this);h.data("stellar-backgroundStartingLeft")?c(h,h.data("stellar-backgroundStartingLeft"),h.data("stellar-backgroundStartingTop")):(h.data("stellar-backgroundStartingLeft",f[0]),h.data("stellar-backgroundStartingTop",f[1])),s="auto"===h.css("margin-left")?0:parseInt(h.css("margin-left"),10),a="auto"===h.css("margin-top")?0:parseInt(h.css("margin-top"),10),l=h.offset().left-s-i,u=h.offset().top-a-o,h.parents().each(function(){var t=e(this);if(!0===t.data("stellar-offset-parent"))return m=v,g=y,p=t,!1;v+=t.position().left,y+=t.position().top}),t=void 0!==h.data("stellar-horizontal-offset")?h.data("stellar-horizontal-offset"):void 0!==p&&void 0!==p.data("stellar-horizontal-offset")?p.data("stellar-horizontal-offset"):n.horizontalOffset,r=void 0!==h.data("stellar-vertical-offset")?h.data("stellar-vertical-offset"):void 0!==p&&void 0!==p.data("stellar-vertical-offset")?p.data("stellar-vertical-offset"):n.verticalOffset,n.backgrounds.push({$element:h,$offsetParent:p,isFixed:"fixed"===h.css("background-attachment"),horizontalOffset:t,verticalOffset:r,startingValueLeft:f[0],startingValueTop:f[1],startingBackgroundPositionLeft:isNaN(parseInt(f[0],10))?0:parseInt(f[0],10),startingBackgroundPositionTop:isNaN(parseInt(f[1],10))?0:parseInt(f[1],10),startingPositionLeft:h.position().left,startingPositionTop:h.position().top,startingOffsetLeft:l,startingOffsetTop:u,parentOffsetLeft:m,parentOffsetTop:g,stellarRatio:void 0===h.data("stellar-background-ratio")?1:h.data("stellar-background-ratio")})}))},_reset:function(){var e,t,n,i,o;for(o=this.particles.length-1;o>=0;o--)t=(e=this.particles[o]).$element.data("stellar-startingLeft"),n=e.$element.data("stellar-startingTop"),this._setPosition(e.$element,t,t,n,n),this.options.showElement(e.$element),e.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null);for(o=this.backgrounds.length-1;o>=0;o--)(i=this.backgrounds[o]).$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null),c(i.$element,i.startingValueLeft,i.startingValueTop)},destroy:function(){this._reset(),this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name),this._animationLoop=e.noop,e(t).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var n=this,i=e(t);i.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name),"function"==typeof this.options.horizontalOffset?(this.horizontalOffset=this.options.horizontalOffset(),i.bind("resize.horizontal-"+this.name,function(){n.horizontalOffset=n.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset,"function"==typeof this.options.verticalOffset?(this.verticalOffset=this.options.verticalOffset(),i.bind("resize.vertical-"+this.name,function(){n.verticalOffset=n.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var e,t,n,i,o,r,s,a,l,u,d=this._getScrollLeft(),p=this._getScrollTop(),h=!0,f=!0;if(this.currentScrollLeft!==d||this.currentScrollTop!==p||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=d,this.currentScrollTop=p,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,u=this.particles.length-1;u>=0;u--)t=(e=this.particles[u]).isFixed?1:0,this.options.horizontalScrolling?a=(r=(d+e.horizontalOffset+this.viewportOffsetLeft+e.startingPositionLeft-e.startingOffsetLeft+e.parentOffsetLeft)*-(e.stellarRatio+t-1)+e.startingPositionLeft)-e.startingPositionLeft+e.startingOffsetLeft:(r=e.startingPositionLeft,a=e.startingOffsetLeft),this.options.verticalScrolling?l=(s=(p+e.verticalOffset+this.viewportOffsetTop+e.startingPositionTop-e.startingOffsetTop+e.parentOffsetTop)*-(e.stellarRatio+t-1)+e.startingPositionTop)-e.startingPositionTop+e.startingOffsetTop:(s=e.startingPositionTop,l=e.startingOffsetTop),this.options.hideDistantElements&&(f=!this.options.horizontalScrolling||a+e.width>(e.isFixed?0:d)&&a<(e.isFixed?0:d)+this.viewportWidth+this.viewportOffsetLeft,h=!this.options.verticalScrolling||l+e.height>(e.isFixed?0:p)&&l<(e.isFixed?0:p)+this.viewportHeight+this.viewportOffsetTop),f&&h?(e.isHidden&&(this.options.showElement(e.$element),e.isHidden=!1),this._setPosition(e.$element,r,e.startingPositionLeft,s,e.startingPositionTop)):e.isHidden||(this.options.hideElement(e.$element),e.isHidden=!0);for(u=this.backgrounds.length-1;u>=0;u--)t=(n=this.backgrounds[u]).isFixed?0:1,i=this.options.horizontalScrolling?(d+n.horizontalOffset-this.viewportOffsetLeft-n.startingOffsetLeft+n.parentOffsetLeft-n.startingBackgroundPositionLeft)*(t-n.stellarRatio)+"px":n.startingValueLeft,o=this.options.verticalScrolling?(p+n.verticalOffset-this.viewportOffsetTop-n.startingOffsetTop+n.parentOffsetTop-n.startingBackgroundPositionTop)*(t-n.stellarRatio)+"px":n.startingValueTop,c(n.$element,i,o)}},_handleScrollEvent:function(){var e=this,t=!1,n=function(){e._repositionElements(),t=!1},i=function(){t||(p(n),t=!0)};this.$scrollElement.bind("scroll."+this.name,i),i()},_startAnimationLoop:function(){var e=this;this._animationLoop=function(){p(e._animationLoop),e._repositionElements()},this._animationLoop()}},e.fn[o]=function(t){var n=arguments;return void 0===t||"object"==typeof t?this.each(function(){e.data(this,"plugin_"+o)||e.data(this,"plugin_"+o,new h(this,t))}):"string"==typeof t&&"_"!==t[0]&&"init"!==t?this.each(function(){var i=e.data(this,"plugin_"+o);i instanceof h&&"function"==typeof i[t]&&i[t].apply(i,Array.prototype.slice.call(n,1)),"destroy"===t&&e.data(this,"plugin_"+o,null)}):void 0},e[o]=function(n){var i=e(t);return i.stellar.apply(i,Array.prototype.slice.call(arguments,0))},e[o].scrollProperty=s,e[o].positionProperty=a,t.Stellar=h}(jQuery,this,document),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=e.scrollTo=function(t,n,i){return e(window).scrollTo(t,n,i)};function n(t){return!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function i(e){return"function"==typeof e}function o(t){return i(t)||e.isPlainObject(t)?t:{top:t,left:t}}return t.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(r,s,a){"object"==typeof s&&(a=s,s=0),"function"==typeof a&&(a={onAfter:a}),"max"===r&&(r=9e9),a=e.extend({},t.defaults,a),s=s||a.duration;var l=a.queue&&a.axis.length>1;return l&&(s/=2),a.offset=o(a.offset),a.over=o(a.over),this.each(function(){if(null!==r){var u,c=n(this),d=c?this.contentWindow||window:this,p=e(d),h=r,f={};switch(typeof h){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(h)){h=o(h);break}h=c?e(h):e(h,d);case"object":if(0===h.length)return;(h.is||h.style)&&(u=(h=e(h)).offset())}var m=i(a.offset)&&a.offset(d,h)||a.offset;e.each(a.axis.split(""),function(e,n){var i="x"===n?"Left":"Top",o=i.toLowerCase(),r="scroll"+i,s=p[r](),v=t.max(d,n);if(u)f[r]=u[o]+(c?0:s-p.offset()[o]),a.margin&&(f[r]-=parseInt(h.css("margin"+i),10)||0,f[r]-=parseInt(h.css("border"+i+"Width"),10)||0),f[r]+=m[o]||0,a.over[o]&&(f[r]+=h["x"===n?"width":"height"]()*a.over[o]);else{var y=h[o];f[r]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*v:y}a.limit&&/^\d+$/.test(f[r])&&(f[r]=f[r]<=0?0:Math.min(f[r],v)),!e&&a.axis.length>1&&(s===f[r]?f={}:l&&(g(a.onAfterFirst),f={}))}),g(a.onAfter)}function g(t){var n=e.extend({},a,{queue:!0,duration:s,complete:t&&function(){t.call(d,h,a)}});p.animate(f,n)}})},t.max=function(t,i){var o="x"===i?"Width":"Height",r="scroll"+o;if(!n(t))return t[r]-e(t)[o.toLowerCase()]();var s="client"+o,a=t.ownerDocument||t.document,l=a.documentElement,u=a.body;return Math.max(l[r],u[r])-Math.min(l[s],u[s])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var i=Math.round(t.now);n!==i&&(e(t.elem)[t.prop](i),t._last=this.get(t))}},t}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.bootbox=t(e.jQuery)}(this,function e(t,n){"use strict";var i,o,r,s;Object.keys||(Object.keys=(i=Object.prototype.hasOwnProperty,o=!{toString:null}.propertyIsEnumerable("toString"),s=(r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("function"!=typeof e&&("object"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,n,a=[];for(t in e)i.call(e,t)&&a.push(t);if(o)for(n=0;n<s;n++)i.call(e,r[n])&&a.push(r[n]);return a}));var a={};a.VERSION="5.5.3";var l={ar:{OK:"موافق",CANCEL:"الغاء",CONFIRM:"تأكيد"},bg_BG:{OK:"Ок",CANCEL:"Отказ",CONFIRM:"Потвърждавам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},eu:{OK:"OK",CANCEL:"Ezeztatu",CONFIRM:"Onartu"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"قبول",CANCEL:"لغو",CONFIRM:"تایید"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"Confirmer"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},hu:{OK:"OK",CANCEL:"Mégsem",CONFIRM:"Megerősít"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},ka:{OK:"OK",CANCEL:"გაუქმება",CONFIRM:"დადასტურება"},ko:{OK:"OK",CANCEL:"취소",CONFIRM:"확인"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sk:{OK:"OK",CANCEL:"Zrušiť",CONFIRM:"Potvrdiť"},sl:{OK:"OK",CANCEL:"Prekliči",CONFIRM:"Potrdi"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},sw:{OK:"Sawa",CANCEL:"Ghairi",CONFIRM:"Thibitisha"},ta:{OK:"சரி",CANCEL:"ரத்து செய்",CONFIRM:"உறுதி செய்"},th:{OK:"ตกลง",CANCEL:"ยกเลิก",CONFIRM:"ยืนยัน"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},uk:{OK:"OK",CANCEL:"Відміна",CONFIRM:"Прийняти"},vi:{OK:"OK",CANCEL:"Hủy bỏ",CONFIRM:"Xác nhận"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}},u={dialog:'<div class="bootbox modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><div class="bootbox-body"></div></div></div></div></div>',header:'<div class="modal-header"><h5 class="modal-title"></h5></div>',footer:'<div class="modal-footer"></div>',closeButton:'<button type="button" class="bootbox-close-button close" aria-hidden="true">&times;</button>',form:'<form class="bootbox-form"></form>',button:'<button type="button" class="btn"></button>',option:"<option></option>",promptMessage:'<div class="bootbox-prompt-message"></div>',inputs:{text:'<input class="bootbox-input bootbox-input-text form-control" autocomplete="off" type="text" />',textarea:'<textarea class="bootbox-input bootbox-input-textarea form-control"></textarea>',email:'<input class="bootbox-input bootbox-input-email form-control" autocomplete="off" type="email" />',select:'<select class="bootbox-input bootbox-input-select form-control"></select>',checkbox:'<div class="form-check checkbox"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-checkbox" type="checkbox" /></label></div>',radio:'<div class="form-check radio"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-radio" type="radio" name="bootbox-radio" /></label></div>',date:'<input class="bootbox-input bootbox-input-date form-control" autocomplete="off" type="date" />',time:'<input class="bootbox-input bootbox-input-time form-control" autocomplete="off" type="time" />',number:'<input class="bootbox-input bootbox-input-number form-control" autocomplete="off" type="number" />',password:'<input class="bootbox-input bootbox-input-password form-control" autocomplete="off" type="password" />',range:'<input class="bootbox-input bootbox-input-range form-control-range" autocomplete="off" type="range" />'}},c={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null};function d(e,n,i){return t.extend(!0,{},e,function(e,t){var n=e.length,i={};if(n<1||n>2)throw new Error("Invalid argument length");return 2===n||"string"==typeof e[0]?(i[t[0]]=e[0],i[t[1]]=e[1]):i=e[0],i}(n,i))}function p(e,t,i,o){var r;o&&o[0]&&(r=o[0].locale||c.locale,(o[0].swapButtonOrder||c.swapButtonOrder)&&(t=t.reverse()));var s,a,l,u={className:"bootbox-"+e,buttons:h(t,r)};return s=d(u,o,i),l={},g(a=t,function(e,t){l[t]=!0}),g(s.buttons,function(e){if(l[e]===n)throw new Error('button key "'+e+'" is not allowed (options are '+a.join(" ")+")")}),s}function h(e,t){for(var n={},i=0,o=e.length;i<o;i++){var r=e[i],s=r.toLowerCase(),a=r.toUpperCase();n[s]={label:f(a,t)}}return n}function f(e,t){var n=l[t];return n?n[e]:l.en[e]}function m(e){return Object.keys(e).length}function g(e,n){var i=0;t.each(e,function(e,t){n(e,t,i++)})}function v(e){e.data.dialog.find(".bootbox-accept").first().trigger("focus")}function y(e){e.target===e.data.dialog[0]&&e.data.dialog.remove()}function b(e){e.target===e.data.dialog[0]&&(e.data.dialog.off("escape.close.bb"),e.data.dialog.off("click"))}function w(e,n,i){e.stopPropagation(),e.preventDefault(),t.isFunction(i)&&!1===i.call(n,e)||n.modal("hide")}function x(e){return/([01][0-9]|2[0-3]):[0-5][0-9]?:[0-5][0-9]/.test(e)}function _(e){return/(\d{4})-(\d{2})-(\d{2})/.test(e)}return a.locales=function(e){return e?l[e]:l},a.addLocale=function(e,n){return t.each(["OK","CANCEL","CONFIRM"],function(e,t){if(!n[t])throw new Error('Please supply a translation for "'+t+'"')}),l[e]={OK:n.OK,CANCEL:n.CANCEL,CONFIRM:n.CONFIRM},a},a.removeLocale=function(e){if("en"===e)throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return delete l[e],a},a.setLocale=function(e){return a.setDefaults("locale",e)},a.setDefaults=function(){var e={};return 2===arguments.length?e[arguments[0]]=arguments[1]:e=arguments[0],t.extend(c,e),a},a.hideAll=function(){return t(".bootbox").modal("hide"),a},a.init=function(n){return e(n||t)},a.dialog=function(e){if(t.fn.modal===n)throw new Error('"$.fn.modal" is not defined; please double check you have included the Bootstrap JavaScript library. See https://getbootstrap.com/docs/4.4/getting-started/javascript/ for more details.');if(e=function(e){var n,i;if("object"!=typeof e)throw new Error("Please supply an object of options");if(!e.message)throw new Error('"message" option must not be null or an empty string.');(e=t.extend({},c,e)).backdrop?e.backdrop="string"!=typeof e.backdrop||"static"!==e.backdrop.toLowerCase()||"static":e.backdrop=!1!==e.backdrop&&0!==e.backdrop&&"static";e.buttons||(e.buttons={});return n=e.buttons,i=m(n),g(n,function(o,r,s){if(t.isFunction(r)&&(r=n[o]={callback:r}),"object"!==t.type(r))throw new Error('button with key "'+o+'" must be an object');if(r.label||(r.label=o),!r.className){var a=!1;a=e.swapButtonOrder?0===s:s===i-1,r.className=i<=2&&a?"btn-primary":"btn-secondary btn-default"}}),e}(e),t.fn.modal.Constructor.VERSION){e.fullBootstrapVersion=t.fn.modal.Constructor.VERSION;var i=e.fullBootstrapVersion.indexOf(".");e.bootstrap=e.fullBootstrapVersion.substring(0,i)}else e.bootstrap="2",e.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible.");var o=t(u.dialog),r=o.find(".modal-dialog"),s=o.find(".modal-body"),a=t(u.header),l=t(u.footer),d=e.buttons,p={onEscape:e.onEscape};if(s.find(".bootbox-body").html(e.message),m(e.buttons)>0&&(g(d,function(e,n){var i=t(u.button);switch(i.data("bb-handler",e),i.addClass(n.className),e){case"ok":case"confirm":i.addClass("bootbox-accept");break;case"cancel":i.addClass("bootbox-cancel")}i.html(n.label),l.append(i),p[e]=n.callback}),s.after(l)),!0===e.animate&&o.addClass("fade"),e.className&&o.addClass(e.className),e.size)switch(e.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn('"size" requires Bootstrap 3.1.0 or higher. You appear to be using '+e.fullBootstrapVersion+". Please upgrade to use this option."),e.size){case"small":case"sm":r.addClass("modal-sm");break;case"large":case"lg":r.addClass("modal-lg");break;case"extra-large":case"xl":r.addClass("modal-xl"),e.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn('Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using '+e.fullBootstrapVersion+". Please upgrade to use this option.")}if(e.scrollable&&(r.addClass("modal-dialog-scrollable"),e.fullBootstrapVersion.substring(0,3)<"4.3"&&console.warn('Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using '+e.fullBootstrapVersion+". Please upgrade to use this option.")),e.title&&(s.before(a),o.find(".modal-title").html(e.title)),e.closeButton){var h=t(u.closeButton);e.title?e.bootstrap>3?o.find(".modal-header").append(h):o.find(".modal-header").prepend(h):h.prependTo(s)}if(e.centerVertical&&(r.addClass("modal-dialog-centered"),e.fullBootstrapVersion<"4.0.0"&&console.warn('"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using '+e.fullBootstrapVersion+". Please upgrade to use this option.")),e.reusable||o.one("hide.bs.modal",{dialog:o},b),e.onHide){if(!t.isFunction(e.onHide))throw new Error('Argument supplied to "onHide" must be a function');o.on("hide.bs.modal",e.onHide)}if(e.reusable||o.one("hidden.bs.modal",{dialog:o},y),e.onHidden){if(!t.isFunction(e.onHidden))throw new Error('Argument supplied to "onHidden" must be a function');o.on("hidden.bs.modal",e.onHidden)}if(e.onShow){if(!t.isFunction(e.onShow))throw new Error('Argument supplied to "onShow" must be a function');o.on("show.bs.modal",e.onShow)}if(o.one("shown.bs.modal",{dialog:o},v),e.onShown){if(!t.isFunction(e.onShown))throw new Error('Argument supplied to "onShown" must be a function');o.on("shown.bs.modal",e.onShown)}return!0===e.backdrop&&o.on("click.dismiss.bs.modal",function(e){o.children(".modal-backdrop").length&&(e.currentTarget=o.children(".modal-backdrop").get(0)),e.target===e.currentTarget&&o.trigger("escape.close.bb")}),o.on("escape.close.bb",function(e){p.onEscape&&w(e,o,p.onEscape)}),o.on("click",".modal-footer button:not(.disabled)",function(e){var i=t(this).data("bb-handler");i!==n&&w(e,o,p[i])}),o.on("click",".bootbox-close-button",function(e){w(e,o,p.onEscape)}),o.on("keyup",function(e){27===e.which&&o.trigger("escape.close.bb")}),t(e.container).append(o),o.modal({backdrop:e.backdrop,keyboard:!1,show:!1}),e.show&&o.modal("show",e.relatedTarget),o},a.alert=function(){var e;if((e=p("alert",["ok"],["message","callback"],arguments)).callback&&!t.isFunction(e.callback))throw new Error('alert requires the "callback" property to be a function when provided');return e.buttons.ok.callback=e.onEscape=function(){return!t.isFunction(e.callback)||e.callback.call(this)},a.dialog(e)},a.confirm=function(){var e;if(e=p("confirm",["cancel","confirm"],["message","callback"],arguments),!t.isFunction(e.callback))throw new Error("confirm requires a callback");return e.buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,!1)},e.buttons.confirm.callback=function(){return e.callback.call(this,!0)},a.dialog(e)},a.prompt=function(){var e,i,o,r,s,l;if(o=t(u.form),(e=p("prompt",["cancel","confirm"],["title","callback"],arguments)).value||(e.value=c.value),e.inputType||(e.inputType=c.inputType),s=e.show===n?c.show:e.show,e.show=!1,e.buttons.cancel.callback=e.onEscape=function(){return e.callback.call(this,null)},e.buttons.confirm.callback=function(){var n;if("checkbox"===e.inputType)n=r.find("input:checked").map(function(){return t(this).val()}).get();else if("radio"===e.inputType)n=r.find("input:checked").val();else{if(r[0].checkValidity&&!r[0].checkValidity())return!1;n="select"===e.inputType&&!0===e.multiple?r.find("option:selected").map(function(){return t(this).val()}).get():r.val()}return e.callback.call(this,n)},!e.title)throw new Error("prompt requires a title");if(!t.isFunction(e.callback))throw new Error("prompt requires a callback");if(!u.inputs[e.inputType])throw new Error("Invalid prompt type");switch(r=t(u.inputs[e.inputType]),e.inputType){case"text":case"textarea":case"email":case"password":r.val(e.value),e.placeholder&&r.attr("placeholder",e.placeholder),e.pattern&&r.attr("pattern",e.pattern),e.maxlength&&r.attr("maxlength",e.maxlength),e.required&&r.prop({required:!0}),e.rows&&!isNaN(parseInt(e.rows))&&"textarea"===e.inputType&&r.attr({rows:e.rows});break;case"date":case"time":case"number":case"range":if(r.val(e.value),e.placeholder&&r.attr("placeholder",e.placeholder),e.pattern&&r.attr("pattern",e.pattern),e.required&&r.prop({required:!0}),"date"!==e.inputType&&e.step){if(!("any"===e.step||!isNaN(e.step)&&parseFloat(e.step)>0))throw new Error('"step" must be a valid positive number or the value "any". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step for more information.');r.attr("step",e.step)}(function(e,t,i){var o=!1,r=!0,s=!0;if("date"===e)t===n||(r=_(t))?i===n||(s=_(i))||console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your max value may not be enforced by this browser.'):console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your min value may not be enforced by this browser.');else if("time"===e){if(t!==n&&!(r=x(t)))throw new Error('"min" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.');if(i!==n&&!(s=x(i)))throw new Error('"max" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.')}else{if(t!==n&&isNaN(t))throw r=!1,new Error('"min" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-min for more information.');if(i!==n&&isNaN(i))throw s=!1,new Error('"max" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.')}if(r&&s){if(i<=t)throw new Error('"max" must be greater than "min". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.');o=!0}return o})(e.inputType,e.min,e.max)&&(e.min!==n&&r.attr("min",e.min),e.max!==n&&r.attr("max",e.max));break;case"select":var d={};if(l=e.inputOptions||[],!t.isArray(l))throw new Error("Please pass an array of input options");if(!l.length)throw new Error('prompt with "inputType" set to "select" requires at least one option');e.placeholder&&r.attr("placeholder",e.placeholder),e.required&&r.prop({required:!0}),e.multiple&&r.prop({multiple:!0}),g(l,function(e,i){var o=r;if(i.value===n||i.text===n)throw new Error('each option needs a "value" property and a "text" property');i.group&&(d[i.group]||(d[i.group]=t("<optgroup />").attr("label",i.group)),o=d[i.group]);var s=t(u.option);s.attr("value",i.value).text(i.text),o.append(s)}),g(d,function(e,t){r.append(t)}),r.val(e.value);break;case"checkbox":var h=t.isArray(e.value)?e.value:[e.value];if(!(l=e.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');r=t('<div class="bootbox-checkbox-list"></div>'),g(l,function(i,o){if(o.value===n||o.text===n)throw new Error('each option needs a "value" property and a "text" property');var s=t(u.inputs[e.inputType]);s.find("input").attr("value",o.value),s.find("label").append("\n"+o.text),g(h,function(e,t){t===o.value&&s.find("input").prop("checked",!0)}),r.append(s)});break;case"radio":if(e.value!==n&&t.isArray(e.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(!(l=e.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');r=t('<div class="bootbox-radiobutton-list"></div>');var f=!0;g(l,function(i,o){if(o.value===n||o.text===n)throw new Error('each option needs a "value" property and a "text" property');var s=t(u.inputs[e.inputType]);s.find("input").attr("value",o.value),s.find("label").append("\n"+o.text),e.value!==n&&o.value===e.value&&(s.find("input").prop("checked",!0),f=!1),r.append(s)}),f&&r.find('input[type="radio"]').first().prop("checked",!0)}if(o.append(r),o.on("submit",function(e){e.preventDefault(),e.stopPropagation(),i.find(".bootbox-accept").trigger("click")}),""!==t.trim(e.message)){var m=t(u.promptMessage).html(e.message);o.prepend(m),e.message=o}else e.message=o;return(i=a.dialog(e)).off("shown.bs.modal",v),i.on("shown.bs.modal",function(){r.focus()}),!0===s&&i.modal("show"),i},a}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";var t={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,ariaLabelledby:"",ariaDescribedby:"",closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1,supportLegacyBrowser:!0};function n(n,i){if(this.el=n,this.$el=e(n),this.s=e.extend({},t,i),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBarTimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=e(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(e(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}n.prototype.init=function(){var t=this;t.s.preload>t.$items.length&&(t.s.preload=t.$items.length);var n=window.location.hash;n.indexOf("lg="+this.s.galleryId)>0&&(t.index=parseInt(n.split("&slide=")[1],10),e("body").addClass("lg-from-hash"),e("body").hasClass("lg-on")||(setTimeout(function(){t.build(t.index)}),e("body").addClass("lg-on"))),t.s.dynamic?(t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||0,e("body").hasClass("lg-on")||setTimeout(function(){t.build(t.index),e("body").addClass("lg-on")})):t.$items.on("click.lgcustom",function(n){try{n.preventDefault(),n.preventDefault()}catch(e){n.returnValue=!1}t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||t.$items.index(this),e("body").hasClass("lg-on")||(t.build(t.index),e("body").addClass("lg-on"))})},n.prototype.build=function(t){var n=this;n.structure(),e.each(e.fn.lightGallery.modules,function(t){n.modules[t]=new e.fn.lightGallery.modules[t](n.el)}),n.slide(t,!1,!1,!1),n.s.keyPress&&n.keyPress(),n.$items.length>1?(n.arrow(),setTimeout(function(){n.enableDrag(),n.enableSwipe()},50),n.s.mousewheel&&n.mousewheel()):n.$slide.on("click.lg",function(){n.$el.trigger("onSlideClick.lg")}),n.counter(),n.closeGallery(),n.$el.trigger("onAfterOpen.lg"),n.s.hideBarsDelay>0&&n.$outer.on("mousemove.lg click.lg touchstart.lg",function(){n.$outer.removeClass("lg-hide-items"),clearTimeout(n.hideBarTimeout),n.hideBarTimeout=setTimeout(function(){n.$outer.addClass("lg-hide-items")},n.s.hideBarsDelay)}),n.$outer.trigger("mousemove.lg")},n.prototype.structure=function(){var t,n="",i="",o=0,r="",s=this;for(e("body").append('<div class="lg-backdrop"></div>'),e(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),o=0;o<this.$items.length;o++)n+='<div class="lg-item"></div>';if(this.s.controls&&this.$items.length>1&&(i='<div class="lg-actions"><button type="button" aria-label="Previous slide" class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button type="button" aria-label="Next slide" class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(r='<div role="status" aria-live="polite" class="lg-sub-html"></div>'),t='<div tabindex="-1" aria-modal="true" '+(this.s.ariaLabelledby?'aria-labelledby="'+this.s.ariaLabelledby+'"':"")+" "+(this.s.ariaDescribedby?'aria-describedby="'+this.s.ariaDescribedby+'"':"")+' role="dialog" class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+n+'</div><div class="lg-toolbar lg-group"><button type="button" aria-label="Close gallery" class="lg-close lg-icon"></button></div>'+i+r+"</div></div>",e("body").append(t),this.$outer=e(".lg-outer"),this.$outer.focus(),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),s.setTop(),e(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){s.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var a=this.$outer.find(".lg-inner");a.css("transition-timing-function",this.s.cssEasing),a.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){e(".lg-backdrop").addClass("in")}),setTimeout(function(){s.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" aria-label="Download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=e(window).scrollTop()},n.prototype.setTop=function(){if("100%"!==this.s.height){var t=e(window).height(),n=(t-parseInt(this.s.height,10))/2,i=this.$outer.find(".lg");t>=parseInt(this.s.height,10)?i.css("top",n+"px"):i.css("top","0px")}},n.prototype.doCss=function(){return!!function(){var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,n=0;for(n=0;n<e.length;n++)if(e[n]in t.style)return!0}()},n.prototype.isVideo=function(e,t){var n;if(n=this.s.dynamic?this.s.dynamicEl[t].html:this.$items.eq(t).attr("data-html"),!e)return n?{html5:!0}:(console.error("lightGallery :- data-src is not provided on slide item "+(t+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var i=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),o=e.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)/i),r=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),s=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return i?{youtube:i}:o?{vimeo:o}:r?{dailymotion:r}:s?{vk:s}:void 0},n.prototype.counter=function(){this.s.counter&&e(this.s.appendCounterTo).append('<div id="lg-counter" role="status" aria-live="polite"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},n.prototype.addHtml=function(t){var n,i,o=null;if(this.s.dynamic?this.s.dynamicEl[t].subHtmlUrl?n=this.s.dynamicEl[t].subHtmlUrl:o=this.s.dynamicEl[t].subHtml:(i=this.$items.eq(t)).attr("data-sub-html-url")?n=i.attr("data-sub-html-url"):(o=i.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!o&&(o=i.attr("title")||i.find("img").first().attr("alt"))),!n)if(null!=o){var r=o.substring(0,1);"."!==r&&"#"!==r||(o=this.s.subHtmlSelectorRelative&&!this.s.dynamic?i.find(o).html():e(o).html())}else o="";".lg-sub-html"===this.s.appendSubHtmlTo?n?this.$outer.find(this.s.appendSubHtmlTo).load(n):this.$outer.find(this.s.appendSubHtmlTo).html(o):n?this.$slide.eq(t).load(n):this.$slide.eq(t).append(o),null!=o&&(""===o?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[t])},n.prototype.preload=function(e){var t=1,n=1;for(t=1;t<=this.s.preload&&!(t>=this.$items.length-e);t++)this.loadContent(e+t,!1,0);for(n=1;n<=this.s.preload&&!(e-n<0);n++)this.loadContent(e-n,!1,0)},n.prototype.loadContent=function(t,n,i){var o,r,s,a,l,u,c,d=this,p=!1,h=function(t){for(var n=[],i=[],o=0;o<t.length;o++){var s=t[o].split(" ");""===s[0]&&s.splice(0,1),i.push(s[0]),n.push(s[1])}for(var a=e(window).width(),l=0;l<n.length;l++)if(parseInt(n[l],10)>a){r=i[l];break}};if(d.s.dynamic){if(d.s.dynamicEl[t].poster&&(p=!0,s=d.s.dynamicEl[t].poster),u=d.s.dynamicEl[t].html,r=d.s.dynamicEl[t].src,c=d.s.dynamicEl[t].alt,d.s.dynamicEl[t].responsive)h(d.s.dynamicEl[t].responsive.split(","));a=d.s.dynamicEl[t].srcset,l=d.s.dynamicEl[t].sizes}else{var f=d.$items.eq(t);if(f.attr("data-poster")&&(p=!0,s=f.attr("data-poster")),u=f.attr("data-html"),r=f.attr("href")||f.attr("data-src"),c=f.attr("title")||f.find("img").first().attr("alt"),f.attr("data-responsive"))h(f.attr("data-responsive").split(","));a=f.attr("data-srcset"),l=f.attr("data-sizes")}var m=!1;d.s.dynamic?d.s.dynamicEl[t].iframe&&(m=!0):"true"===d.$items.eq(t).attr("data-iframe")&&(m=!0);var g=d.isVideo(r,t);if(!d.$slide.eq(t).hasClass("lg-loaded")){if(m)d.$slide.eq(t).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+d.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+r+'"  allowfullscreen="true"></iframe></div></div>');else if(p){var v="";v=g&&g.youtube?"lg-has-youtube":g&&g.vimeo?"lg-has-vimeo":"lg-has-html5",d.$slide.eq(t).prepend('<div class="lg-video-cont '+v+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+s+'" /></div></div>')}else g?(d.$slide.eq(t).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),d.$el.trigger("hasVideo.lg",[t,r,u])):(c=c?'alt="'+c+'"':"",d.$slide.eq(t).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" '+c+' src="'+r+'" /></div>'));if(d.$el.trigger("onAferAppendSlide.lg",[t]),o=d.$slide.eq(t).find(".lg-object"),l&&o.attr("sizes",l),a&&(o.attr("srcset",a),this.s.supportLegacyBrowser))try{picturefill({elements:[o[0]]})}catch(e){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}".lg-sub-html"!==this.s.appendSubHtmlTo&&d.addHtml(t),d.$slide.eq(t).addClass("lg-loaded")}d.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){var n=0;i&&!e("body").hasClass("lg-from-hash")&&(n=i),setTimeout(function(){d.$slide.eq(t).addClass("lg-complete"),d.$el.trigger("onSlideItemLoad.lg",[t,i||0])},n)}),g&&g.html5&&!p&&d.$slide.eq(t).addClass("lg-complete"),!0===n&&(d.$slide.eq(t).hasClass("lg-complete")?d.preload(t):d.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){d.preload(t)}))},n.prototype.slide=function(t,n,i,o){var r=this.$outer.find(".lg-current").index(),s=this;if(!s.lGalleryOn||r!==t){var a=this.$slide.length,l=s.lGalleryOn?this.s.speed:0;if(!s.lgBusy){var u,c,d;if(this.s.download)(u=s.s.dynamic?!1!==s.s.dynamicEl[t].downloadUrl&&(s.s.dynamicEl[t].downloadUrl||s.s.dynamicEl[t].src):"false"!==s.$items.eq(t).attr("data-download-url")&&(s.$items.eq(t).attr("data-download-url")||s.$items.eq(t).attr("href")||s.$items.eq(t).attr("data-src")))?(e("#lg-download").attr("href",u),s.$outer.removeClass("lg-hide-download")):s.$outer.addClass("lg-hide-download");if(this.$el.trigger("onBeforeSlide.lg",[r,t,n,i]),s.lgBusy=!0,clearTimeout(s.hideBarTimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){s.addHtml(t)},l),this.arrowDisable(t),o||(t<r?o="prev":t>r&&(o="next")),n)this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),a>2?(c=t-1,d=t+1,0===t&&r===a-1?(d=0,c=a-1):t===a-1&&0===r&&(d=0,c=a-1)):(c=0,d=1),"prev"===o?s.$slide.eq(d).addClass("lg-next-slide"):s.$slide.eq(c).addClass("lg-prev-slide"),s.$slide.eq(t).addClass("lg-current");else s.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===o?(this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(r).addClass("lg-next-slide")):(this.$slide.eq(t).addClass("lg-next-slide"),this.$slide.eq(r).addClass("lg-prev-slide")),setTimeout(function(){s.$slide.removeClass("lg-current"),s.$slide.eq(t).addClass("lg-current"),s.$outer.removeClass("lg-no-trans")},50);s.lGalleryOn?(setTimeout(function(){s.loadContent(t,!0,0)},this.s.speed+50),setTimeout(function(){s.lgBusy=!1,s.$el.trigger("onAfterSlide.lg",[r,t,n,i])},this.s.speed)):(s.loadContent(t,!0,s.s.backdropDuration),s.lgBusy=!1,s.$el.trigger("onAfterSlide.lg",[r,t,n,i])),s.lGalleryOn=!0,this.s.counter&&e("#lg-counter-current").text(t+1)}s.index=t}},n.prototype.goToNextSlide=function(e){var t=this,n=t.s.loop;e&&t.$slide.length<3&&(n=!1),t.lgBusy||(t.index+1<t.$slide.length?(t.index++,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):n?(t.index=0,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-right-end"),setTimeout(function(){t.$outer.removeClass("lg-right-end")},400)))},n.prototype.goToPrevSlide=function(e){var t=this,n=t.s.loop;e&&t.$slide.length<3&&(n=!1),t.lgBusy||(t.index>0?(t.index--,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):n?(t.index=t.$items.length-1,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-left-end"),setTimeout(function(){t.$outer.removeClass("lg-left-end")},400)))},n.prototype.keyPress=function(){var t=this;this.$items.length>1&&e(window).on("keyup.lg",function(e){t.$items.length>1&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))}),e(window).on("keydown.lg",function(e){!0===t.s.escKey&&27===e.keyCode&&(e.preventDefault(),t.$outer.hasClass("lg-thumb-open")?t.$outer.removeClass("lg-thumb-open"):t.destroy())})},n.prototype.arrow=function(){var e=this;this.$outer.find(".lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){e.goToNextSlide()})},n.prototype.arrowDisable=function(e){!this.s.loop&&this.s.hideControlOnEnd&&(e+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),e>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},n.prototype.setTranslate=function(e,t,n){this.s.useLeft?e.css("left",t):e.css({transform:"translate3d("+t+"px, "+n+"px, 0px)"})},n.prototype.touchMove=function(t,n){var i=n-t;Math.abs(i)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),i,0),this.setTranslate(e(".lg-prev-slide"),-this.$slide.eq(this.index).width()+i,0),this.setTranslate(e(".lg-next-slide"),this.$slide.eq(this.index).width()+i,0))},n.prototype.touchEnd=function(e){var t=this;"lg-slide"!==t.s.mode&&t.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){t.$outer.removeClass("lg-dragging"),e<0&&Math.abs(e)>t.s.swipeThreshold?t.goToNextSlide(!0):e>0&&Math.abs(e)>t.s.swipeThreshold?t.goToPrevSlide(!0):Math.abs(e)<5&&t.$el.trigger("onSlideClick.lg"),t.$slide.removeAttr("style")}),setTimeout(function(){t.$outer.hasClass("lg-dragging")||"lg-slide"===t.s.mode||t.$outer.removeClass("lg-slide")},t.s.speed+100)},n.prototype.enableSwipe=function(){var e=this,t=0,n=0,i=!1;e.s.enableSwipe&&e.doCss()&&(e.$slide.on("touchstart.lg",function(n){e.$outer.hasClass("lg-zoomed")||e.lgBusy||(n.preventDefault(),e.manageSwipeClass(),t=n.originalEvent.targetTouches[0].pageX)}),e.$slide.on("touchmove.lg",function(o){e.$outer.hasClass("lg-zoomed")||(o.preventDefault(),n=o.originalEvent.targetTouches[0].pageX,e.touchMove(t,n),i=!0)}),e.$slide.on("touchend.lg",function(){e.$outer.hasClass("lg-zoomed")||(i?(i=!1,e.touchEnd(n-t)):e.$el.trigger("onSlideClick.lg"))}))},n.prototype.enableDrag=function(){var t=this,n=0,i=0,o=!1,r=!1;t.s.enableDrag&&t.doCss()&&(t.$slide.on("mousedown.lg",function(i){t.$outer.hasClass("lg-zoomed")||t.lgBusy||e(i.target).text().trim()||(i.preventDefault(),t.manageSwipeClass(),n=i.pageX,o=!0,t.$outer.scrollLeft+=1,t.$outer.scrollLeft-=1,t.$outer.removeClass("lg-grab").addClass("lg-grabbing"),t.$el.trigger("onDragstart.lg"))}),e(window).on("mousemove.lg",function(e){o&&(r=!0,i=e.pageX,t.touchMove(n,i),t.$el.trigger("onDragmove.lg"))}),e(window).on("mouseup.lg",function(s){r?(r=!1,t.touchEnd(i-n),t.$el.trigger("onDragend.lg")):(e(s.target).hasClass("lg-object")||e(s.target).hasClass("lg-video-play"))&&t.$el.trigger("onSlideClick.lg"),o&&(o=!1,t.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},n.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?t=this.$slide.length-1:this.index===this.$slide.length-1&&(e=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(e).addClass("lg-next-slide")},n.prototype.mousewheel=function(){var e=this;e.$outer.on("mousewheel.lg",function(t){t.deltaY&&(t.deltaY>0?e.goToPrevSlide():e.goToNextSlide(),t.preventDefault())})},n.prototype.closeGallery=function(){var t=this,n=!1;this.$outer.find(".lg-close").on("click.lg",function(){t.destroy()}),t.s.closable&&(t.$outer.on("mousedown.lg",function(t){n=!!(e(t.target).is(".lg-outer")||e(t.target).is(".lg-item ")||e(t.target).is(".lg-img-wrap"))}),t.$outer.on("mousemove.lg",function(){n=!1}),t.$outer.on("mouseup.lg",function(i){(e(i.target).is(".lg-outer")||e(i.target).is(".lg-item ")||e(i.target).is(".lg-img-wrap")&&n)&&(t.$outer.hasClass("lg-dragging")||t.destroy())}))},n.prototype.destroy=function(t){var n=this;t||(n.$el.trigger("onBeforeClose.lg"),e(window).scrollTop(n.prevScrollTop)),t&&(n.s.dynamic||this.$items.off("click.lg click.lgcustom"),e.removeData(n.el,"lightGallery")),this.$el.off(".lg.tm"),e.each(e.fn.lightGallery.modules,function(e){n.modules[e]&&n.modules[e].destroy()}),this.lGalleryOn=!1,clearTimeout(n.hideBarTimeout),this.hideBarTimeout=!1,e(window).off(".lg"),e("body").removeClass("lg-on lg-from-hash"),n.$outer&&n.$outer.removeClass("lg-visible"),e(".lg-backdrop").removeClass("in"),setTimeout(function(){n.$outer&&n.$outer.remove(),e(".lg-backdrop").remove(),t||n.$el.trigger("onCloseAfter.lg"),n.$el.focus()},n.s.backdropDuration+50)},e.fn.lightGallery=function(t){return this.each(function(){if(e.data(this,"lightGallery"))try{e(this).data("lightGallery").init()}catch(e){console.error("lightGallery has not initiated properly",e)}else e.data(this,"lightGallery",new n(this,t))})},e.fn.lightGallery.modules={}}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";var t={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"},n=function(n){return this.core=e(n).data("lightGallery"),this.$el=e(n),!(this.core.$items.length<2)&&(this.core.s=e.extend({},t,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)};n.prototype.init=function(){var e=this;e.core.s.autoplayControls&&e.controls(),e.core.s.progressBar&&e.core.$outer.find(".lg").append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>'),e.progress(),e.core.s.autoplay&&e.$el.one("onSlideItemLoad.lg.tm",function(){e.startlAuto()}),e.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){e.interval&&(e.cancelAuto(),e.canceledOnTouch=!0)}),e.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!e.interval&&e.canceledOnTouch&&(e.startlAuto(),e.canceledOnTouch=!1)})},n.prototype.progress=function(){var e,t,n=this;n.$el.on("onBeforeSlide.lg.tm",function(){n.core.s.progressBar&&n.fromAuto&&(e=n.core.$outer.find(".lg-progress-bar"),t=n.core.$outer.find(".lg-progress"),n.interval&&(t.removeAttr("style"),e.removeClass("lg-start"),setTimeout(function(){t.css("transition","width "+(n.core.s.speed+n.core.s.pause)+"ms ease 0s"),e.addClass("lg-start")},20))),n.fromAuto||n.core.s.fourceAutoplay||n.cancelAuto(),n.fromAuto=!1})},n.prototype.controls=function(){var t=this;e(this.core.s.appendAutoplayControlsTo).append('<button type="button" aria-label="Toggle autoplay" class="lg-autoplay-button lg-icon"></button>'),t.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){e(t.core.$outer).hasClass("lg-show-autoplay")?(t.cancelAuto(),t.core.s.fourceAutoplay=!1):t.interval||(t.startlAuto(),t.core.s.fourceAutoplay=t.fourceAutoplayTemp)})},n.prototype.startlAuto=function(){var e=this;e.core.$outer.find(".lg-progress").css("transition","width "+(e.core.s.speed+e.core.s.pause)+"ms ease 0s"),e.core.$outer.addClass("lg-show-autoplay"),e.core.$outer.find(".lg-progress-bar").addClass("lg-start"),e.interval=setInterval(function(){e.core.index+1<e.core.$items.length?e.core.index++:e.core.index=0,e.fromAuto=!0,e.core.slide(e.core.index,!1,!1,"next")},e.core.s.speed+e.core.s.pause)},n.prototype.cancelAuto=function(){clearInterval(this.interval),this.interval=!1,this.core.$outer.find(".lg-progress").removeAttr("style"),this.core.$outer.removeClass("lg-show-autoplay"),this.core.$outer.find(".lg-progress-bar").removeClass("lg-start")},n.prototype.destroy=function(){this.cancelAuto(),this.core.$outer.find(".lg-progress-bar").remove()},e.fn.lightGallery.modules.autoplay=n}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";var t={fullScreen:!0};function n(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}var i=function(n){return this.core=e(n).data("lightGallery"),this.$el=e(n),this.core.s=e.extend({},t,this.core.s),this.init(),this};i.prototype.init=function(){var e="";if(this.core.s.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;e='<button type="button" aria-label="Toggle fullscreen" class="lg-fullscreen lg-icon"></button>',this.core.$outer.find(".lg-toolbar").append(e),this.fullScreen()}},i.prototype.requestFullscreen=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()},i.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},i.prototype.fullScreen=function(){var t=this;e(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){t.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){n()?t.exitFullscreen():t.requestFullscreen()})},i.prototype.destroy=function(){n()&&this.exitFullscreen(),e(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},e.fn.lightGallery.modules.fullscreen=i}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(e){!function(){"use strict";var t={pager:!1},n=function(n){return this.core=e(n).data("lightGallery"),this.$el=e(n),this.core.s=e.extend({},t,this.core.s),this.core.s.pager&&this.core.$items.length>1&&this.init(),this};n.prototype.init=function(){var t,n,i,o=this,r="";if(o.core.$outer.find(".lg").append('<div class="lg-pager-outer"></div>'),o.core.s.dynamic)for(var s=0;s<o.core.s.dynamicEl.length;s++)r+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+o.core.s.dynamicEl[s].thumb+'" /></div></span>';else o.core.$items.each(function(){o.core.s.exThumbImage?r+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+e(this).attr(o.core.s.exThumbImage)+'" /></div></span>':r+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+e(this).find("img").attr("src")+'" /></div></span>'});(n=o.core.$outer.find(".lg-pager-outer")).html(r),(t=o.core.$outer.find(".lg-pager-cont")).on("click.lg touchend.lg",function(){var t=e(this);o.core.index=t.index(),o.core.slide(o.core.index,!1,!0,!1)}),n.on("mouseover.lg",function(){clearTimeout(i),n.addClass("lg-pager-hover")}),n.on("mouseout.lg",function(){i=setTimeout(function(){n.removeClass("lg-pager-hover")})}),o.core.$el.on("onBeforeSlide.lg.tm",function(e,n,i){t.removeClass("lg-pager-active"),t.eq(i).addClass("lg-pager-active")})},n.prototype.destroy=function(){},e.fn.lightGallery.modules.pager=n}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";var t={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbHeight:"80px",thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toogleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0},n=function(n){return this.core=e(n).data("lightGallery"),this.core.s=e.extend({},t,this.core.s),this.$el=e(n),this.$thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.core.s.animateThumb&&(this.core.s.thumbHeight="100%"),this.left=0,this.init(),this};n.prototype.init=function(){var e=this;this.core.s.thumbnail&&this.core.$items.length>1&&(this.core.s.showThumbByDefault&&setTimeout(function(){e.core.$outer.addClass("lg-thumb-open")},700),this.core.s.pullCaptionUp&&this.core.$outer.addClass("lg-pull-caption-up"),this.build(),this.core.s.animateThumb&&this.core.doCss()?(this.core.s.enableThumbDrag&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toogle(),this.thumbkeyPress())},n.prototype.build=function(){var t,n=this,i="",o="";switch(this.core.s.vimeoThumbSize){case"thumbnail_large":o="640";break;case"thumbnail_medium":o="200x150";break;case"thumbnail_small":o="100x75"}function r(e,t,r){var s,a=n.core.isVideo(e,r)||{},l="";a.youtube||a.vimeo||a.dailymotion?a.youtube?s=n.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+a.youtube[1]+"/"+n.core.s.youtubeThumbSize+".jpg":t:a.vimeo?n.core.s.loadVimeoThumbnail?(s="//i.vimeocdn.com/video/error_"+o+".jpg",l=a.vimeo[1]):s=t:a.dailymotion&&(s=n.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+a.dailymotion[1]:t):s=t,i+='<div data-vimeo-id="'+l+'" class="lg-thumb-item" style="width:'+n.core.s.thumbWidth+"px; height: "+n.core.s.thumbHeight+"; margin-right: "+n.core.s.thumbMargin+'px"><img src="'+s+'" /></div>',l=""}if(n.core.$outer.addClass("lg-has-thumb"),n.core.$outer.find(".lg").append('<div class="lg-thumb-outer"><div class="lg-thumb lg-group"></div></div>'),n.$thumbOuter=n.core.$outer.find(".lg-thumb-outer"),n.thumbOuterWidth=n.$thumbOuter.width(),n.core.s.animateThumb&&n.core.$outer.find(".lg-thumb").css({width:n.thumbTotalWidth+"px",position:"relative"}),this.core.s.animateThumb&&n.$thumbOuter.css("height",n.core.s.thumbContHeight+"px"),n.core.s.dynamic)for(var s=0;s<n.core.s.dynamicEl.length;s++)r(n.core.s.dynamicEl[s].src,n.core.s.dynamicEl[s].thumb,s);else n.core.$items.each(function(t){n.core.s.exThumbImage?r(e(this).attr("href")||e(this).attr("data-src"),e(this).attr(n.core.s.exThumbImage),t):r(e(this).attr("href")||e(this).attr("data-src"),e(this).find("img").attr("src"),t)});n.core.$outer.find(".lg-thumb").html(i),(t=n.core.$outer.find(".lg-thumb-item")).each(function(){var t=e(this),i=t.attr("data-vimeo-id");i&&e.getJSON("//www.vimeo.com/api/v2/video/"+i+".json?callback=?",{format:"json"},function(e){t.find("img").attr("src",e[0][n.core.s.vimeoThumbSize])})}),t.eq(n.core.index).addClass("active"),n.core.$el.on("onBeforeSlide.lg.tm",function(){t.removeClass("active"),t.eq(n.core.index).addClass("active")}),t.on("click.lg touchend.lg",function(){var t=e(this);setTimeout(function(){(n.thumbClickable&&!n.core.lgBusy||!n.core.doCss())&&(n.core.index=t.index(),n.core.slide(n.core.index,!1,!0,!1))},50)}),n.core.$el.on("onBeforeSlide.lg.tm",function(){n.animateThumb(n.core.index)}),e(window).on("resize.lg.thumb orientationchange.lg.thumb",function(){setTimeout(function(){n.animateThumb(n.core.index),n.thumbOuterWidth=n.$thumbOuter.width()},200)})},n.prototype.setTranslate=function(e){this.core.$outer.find(".lg-thumb").css({transform:"translate3d(-"+e+"px, 0px, 0px)"})},n.prototype.animateThumb=function(e){var t=this.core.$outer.find(".lg-thumb");if(this.core.s.animateThumb){var n;switch(this.core.s.currentPagerPosition){case"left":n=0;break;case"middle":n=this.thumbOuterWidth/2-this.core.s.thumbWidth/2;break;case"right":n=this.thumbOuterWidth-this.core.s.thumbWidth}this.left=(this.core.s.thumbWidth+this.core.s.thumbMargin)*e-1-n,this.left>this.thumbTotalWidth-this.thumbOuterWidth&&(this.left=this.thumbTotalWidth-this.thumbOuterWidth),this.left<0&&(this.left=0),this.core.lGalleryOn?(t.hasClass("on")||this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms"),this.core.doCss()||t.animate({left:-this.left+"px"},this.core.s.speed)):this.core.doCss()||t.css("left",-this.left+"px"),this.setTranslate(this.left)}},n.prototype.enableThumbDrag=function(){var t=this,n=0,i=0,o=!1,r=!1,s=0;t.$thumbOuter.addClass("lg-grab"),t.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",function(e){t.thumbTotalWidth>t.thumbOuterWidth&&(e.preventDefault(),n=e.pageX,o=!0,t.core.$outer.scrollLeft+=1,t.core.$outer.scrollLeft-=1,t.thumbClickable=!1,t.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),e(window).on("mousemove.lg.thumb",function(e){o&&(s=t.left,r=!0,i=e.pageX,t.$thumbOuter.addClass("lg-dragging"),(s-=i-n)>t.thumbTotalWidth-t.thumbOuterWidth&&(s=t.thumbTotalWidth-t.thumbOuterWidth),s<0&&(s=0),t.setTranslate(s))}),e(window).on("mouseup.lg.thumb",function(){r?(r=!1,t.$thumbOuter.removeClass("lg-dragging"),t.left=s,Math.abs(i-n)<t.core.s.swipeThreshold&&(t.thumbClickable=!0)):t.thumbClickable=!0,o&&(o=!1,t.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab"))})},n.prototype.enableThumbSwipe=function(){var e=this,t=0,n=0,i=!1,o=0;e.core.$outer.find(".lg-thumb").on("touchstart.lg",function(n){e.thumbTotalWidth>e.thumbOuterWidth&&(n.preventDefault(),t=n.originalEvent.targetTouches[0].pageX,e.thumbClickable=!1)}),e.core.$outer.find(".lg-thumb").on("touchmove.lg",function(r){e.thumbTotalWidth>e.thumbOuterWidth&&(r.preventDefault(),n=r.originalEvent.targetTouches[0].pageX,i=!0,e.$thumbOuter.addClass("lg-dragging"),o=e.left,(o-=n-t)>e.thumbTotalWidth-e.thumbOuterWidth&&(o=e.thumbTotalWidth-e.thumbOuterWidth),o<0&&(o=0),e.setTranslate(o))}),e.core.$outer.find(".lg-thumb").on("touchend.lg",function(){e.thumbTotalWidth>e.thumbOuterWidth&&i?(i=!1,e.$thumbOuter.removeClass("lg-dragging"),Math.abs(n-t)<e.core.s.swipeThreshold&&(e.thumbClickable=!0),e.left=o):e.thumbClickable=!0})},n.prototype.toogle=function(){var e=this;e.core.s.toogleThumb&&(e.core.$outer.addClass("lg-can-toggle"),e.$thumbOuter.append('<button type="button" aria-label="Toggle thumbnails" class="lg-toogle-thumb lg-icon"></button>'),e.core.$outer.find(".lg-toogle-thumb").on("click.lg",function(){e.core.$outer.toggleClass("lg-thumb-open")}))},n.prototype.thumbkeyPress=function(){var t=this;e(window).on("keydown.lg.thumb",function(e){38===e.keyCode?(e.preventDefault(),t.core.$outer.addClass("lg-thumb-open")):40===e.keyCode&&(e.preventDefault(),t.core.$outer.removeClass("lg-thumb-open"))})},n.prototype.destroy=function(){this.core.s.thumbnail&&this.core.$items.length>1&&(e(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"),this.$thumbOuter.remove(),this.core.$outer.removeClass("lg-has-thumb"))},e.fn.lightGallery.modules.Thumbnail=n}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";var t={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},n=function(n){return this.core=e(n).data("lightGallery"),this.$el=e(n),this.core.s=e.extend({},t,this.core.s),this.videoLoaded=!1,this.init(),this};n.prototype.init=function(){var t=this;t.core.$el.on("hasVideo.lg.tm",function(e,t,n,i){var o=this;if(o.core.$slide.eq(t).find(".lg-video").append(o.loadVideo(n,"lg-object",!0,t,i)),i)if(o.core.s.videojs)try{videojs(o.core.$slide.eq(t).find(".lg-html5").get(0),o.core.s.videojsOptions,function(){!o.videoLoaded&&o.core.s.autoplayFirstVideo&&this.play()})}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else!o.videoLoaded&&o.core.s.autoplayFirstVideo&&o.core.$slide.eq(t).find(".lg-html5").get(0).play()}.bind(this)),t.core.$el.on("onAferAppendSlide.lg.tm",function(e,t){var n=this.core.$slide.eq(t).find(".lg-video-cont");n.hasClass("lg-has-iframe")||(n.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}.bind(this)),t.core.doCss()&&t.core.$items.length>1&&(t.core.s.enableSwipe||t.core.s.enableDrag)?t.core.$el.on("onSlideClick.lg.tm",function(){var e=t.core.$slide.eq(t.core.index);t.loadVideoOnclick(e)}):t.core.$slide.on("click.lg",function(){t.loadVideoOnclick(e(this))}),t.core.$el.on("onBeforeSlide.lg.tm",function(t,n,i){var o,r=this.core.$slide.eq(n),s=r.find(".lg-youtube").get(0),a=r.find(".lg-vimeo").get(0),l=r.find(".lg-dailymotion").get(0),u=r.find(".lg-vk").get(0),c=r.find(".lg-html5").get(0);if(s)s.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(a)try{new Vimeo.Player(a).pause().catch(function(e){console.error("Unable to pause the video:",e.name)})}catch(e){console.warn("lightGallery:- Make sure you have included https://github.com/vimeo/player.js")}else if(l)l.contentWindow.postMessage("pause","*");else if(c)if(this.core.s.videojs)try{videojs(c).pause()}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else c.pause();u&&e(u).attr("src",e(u).attr("src").replace("&autoplay","&noplay"));o=this.core.s.dynamic?this.core.s.dynamicEl[i].src:this.core.$items.eq(i).attr("href")||this.core.$items.eq(i).attr("data-src");var d=this.core.isVideo(o,i)||{};(d.youtube||d.vimeo||d.dailymotion||d.vk)&&this.core.$outer.addClass("lg-hide-download")}.bind(this)),t.core.$el.on("onAfterSlide.lg.tm",function(e,n){t.core.$slide.eq(n).removeClass("lg-video-playing")}),t.core.s.autoplayFirstVideo&&t.core.$el.on("onAferAppendSlide.lg.tm",function(e,n){if(!t.core.lGalleryOn){var i=t.core.$slide.eq(n);setTimeout(function(){t.loadVideoOnclick(i)},100)}})},n.prototype.loadVideo=function(t,n,i,o,r){var s,a="",l=1,u="",c=this.core.isVideo(t,o)||{};if(s=(s=this.core.s.dynamic?this.core.s.dynamicEl[this.core.index].title:this.core.$items.eq(this.core.index).attr("title")||this.core.$items.eq(this.core.index).find("img").first().attr("alt"))?'title="'+s+'"':"",i&&(l=this.videoLoaded?0:this.core.s.autoplayFirstVideo?1:0),c.youtube)u="?wmode=opaque&autoplay="+l+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(u=u+"&"+e.param(this.core.s.youtubePlayerParams)),a='<iframe allow="autoplay" class="lg-video-object lg-youtube '+n+'" '+s+' width="560" height="315" src="//www.youtube.com/embed/'+c.youtube[1]+u+'" frameborder="0" allowfullscreen></iframe>';else if(c.vimeo)u="?autoplay="+l,this.core.s.vimeoPlayerParams&&(u=u+"&"+e.param(this.core.s.vimeoPlayerParams)),a='<iframe allow="autoplay" class="lg-video-object lg-vimeo '+n+'" '+s+' width="560" height="315"  src="//player.vimeo.com/video/'+c.vimeo[1]+u+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(c.dailymotion)u="?wmode=opaque&autoplay="+l+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(u=u+"&"+e.param(this.core.s.dailymotionPlayerParams)),a='<iframe allow="autoplay" class="lg-video-object lg-dailymotion '+n+'" '+s+' width="560" height="315" src="//www.dailymotion.com/embed/video/'+c.dailymotion[1]+u+'" frameborder="0" allowfullscreen></iframe>';else if(c.html5){var d=r.substring(0,1);"."!==d&&"#"!==d||(r=e(r).html()),a=r}else c.vk&&(u="&autoplay="+l,this.core.s.vkPlayerParams&&(u=u+"&"+e.param(this.core.s.vkPlayerParams)),a='<iframe allow="autoplay" class="lg-video-object lg-vk '+n+'" '+s+' width="560" height="315" src="//vk.com/video_ext.php?'+c.vk[1]+u+'" frameborder="0" allowfullscreen></iframe>');return a},n.prototype.loadVideoOnclick=function(e){var t=this;if(e.find(".lg-object").hasClass("lg-has-poster")&&e.find(".lg-object").is(":visible"))if(e.hasClass("lg-has-video")){var n=e.find(".lg-youtube").get(0),i=e.find(".lg-vimeo").get(0),o=e.find(".lg-dailymotion").get(0),r=e.find(".lg-html5").get(0);if(n)n.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(i)try{new Vimeo.Player(i).play().catch(function(e){console.error("error playing the video:",e.name)})}catch(e){console.warn("lightGallery:- Make sure you have included https://github.com/vimeo/player.js")}else if(o)o.contentWindow.postMessage("play","*");else if(r)if(t.core.s.videojs)try{videojs(r).play()}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else r.play();e.addClass("lg-video-playing")}else{e.addClass("lg-video-playing lg-has-video");var s=function(n,i){if(e.find(".lg-video").append(t.loadVideo(n,"",!1,t.core.index,i)),i)if(t.core.s.videojs)try{videojs(t.core.$slide.eq(t.core.index).find(".lg-html5").get(0),t.core.s.videojsOptions,function(){this.play()})}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else t.core.$slide.eq(t.core.index).find(".lg-html5").get(0).play()};t.core.s.dynamic?s(t.core.s.dynamicEl[t.core.index].src,t.core.s.dynamicEl[t.core.index].html):s(t.core.$items.eq(t.core.index).attr("href")||t.core.$items.eq(t.core.index).attr("data-src"),t.core.$items.eq(t.core.index).attr("data-html"));var a=e.find(".lg-object");e.find(".lg-video").append(a),e.find(".lg-video-object").hasClass("lg-html5")||(e.removeClass("lg-complete"),e.find(".lg-video-object").on("load.lg error.lg",function(){e.addClass("lg-complete")}))}},n.prototype.destroy=function(){this.videoLoaded=!1},e.fn.lightGallery.modules.video=n}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";var t,n,i={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:(t=!1,n=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./),n&&parseInt(n[2],10)<54&&(t=!0),t)},o=function(t){return this.core=e(t).data("lightGallery"),this.core.s=e.extend({},i,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=e(window).width()/2,this.pageY=e(window).height()/2+e(window).scrollTop()),this};o.prototype.init=function(){var t=this,n='<button type="button" aria-label="Zoom in" id="lg-zoom-in" class="lg-icon"></button><button type="button" aria-label="Zoom out" id="lg-zoom-out" class="lg-icon"></button>';t.core.s.actualSize&&(n+='<button type="button" aria-label="Actual size" id="lg-actual-size" class="lg-icon"></button>'),t.core.s.useLeftForZoom?t.core.$outer.addClass("lg-use-left-for-zoom"):t.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(n),t.core.$el.on("onSlideItemLoad.lg.tm.zoom",function(n,i,o){var r=t.core.s.enableZoomAfter+o;e("body").hasClass("lg-from-hash")&&o?r=0:e("body").removeClass("lg-from-hash"),t.zoomabletimeout=setTimeout(function(){t.core.$slide.eq(i).addClass("lg-zoomable")},r+30)});var i=1,o=function(n){var i=t.core.$outer.find(".lg-current .lg-image"),o=(e(window).width()-i.prop("offsetWidth"))/2,r=(e(window).height()-i.prop("offsetHeight"))/2+e(window).scrollTop(),s=(n-1)*(t.pageX-o),a=(n-1)*(t.pageY-r);i.css("transform","scale3d("+n+", "+n+", 1)").attr("data-scale",n),t.core.s.useLeftForZoom?i.parent().css({left:-s+"px",top:-a+"px"}).attr("data-x",s).attr("data-y",a):i.parent().css("transform","translate3d(-"+s+"px, -"+a+"px, 0)").attr("data-x",s).attr("data-y",a)},r=function(){i>1?t.core.$outer.addClass("lg-zoomed"):t.resetZoom(),i<1&&(i=1),o(i)},s=function(n,o,s,a){var l,u=o.prop("offsetWidth");l=t.core.s.dynamic?t.core.s.dynamicEl[s].width||o[0].naturalWidth||u:t.core.$items.eq(s).attr("data-width")||o[0].naturalWidth||u,t.core.$outer.hasClass("lg-zoomed")?i=1:l>u&&(i=l/u||2),a?(t.pageX=e(window).width()/2,t.pageY=e(window).height()/2+e(window).scrollTop()):(t.pageX=n.pageX||n.originalEvent.targetTouches[0].pageX,t.pageY=n.pageY||n.originalEvent.targetTouches[0].pageY),r(),setTimeout(function(){t.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")},10)},a=!1;t.core.$el.on("onAferAppendSlide.lg.tm.zoom",function(e,n){var i=t.core.$slide.eq(n).find(".lg-image");i.on("dblclick",function(e){s(e,i,n)}),i.on("touchstart",function(e){a?(clearTimeout(a),a=null,s(e,i,n)):a=setTimeout(function(){a=null},300),e.preventDefault()})}),e(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",function(){t.pageX=e(window).width()/2,t.pageY=e(window).height()/2+e(window).scrollTop(),o(i)}),e("#lg-zoom-out").on("click.lg",function(){t.core.$outer.find(".lg-current .lg-image").length&&(i-=t.core.s.scale,r())}),e("#lg-zoom-in").on("click.lg",function(){t.core.$outer.find(".lg-current .lg-image").length&&(i+=t.core.s.scale,r())}),e("#lg-actual-size").on("click.lg",function(e){s(e,t.core.$slide.eq(t.core.index).find(".lg-image"),t.core.index,!0)}),t.core.$el.on("onBeforeSlide.lg.tm",function(){i=1,t.resetZoom()}),t.zoomDrag(),t.zoomSwipe()},o.prototype.getCurrentTransform=function(e){if(!e)return 0;var t=window.getComputedStyle(e,null),n=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform")||"none";return"none"!==n?n.split("(")[1].split(")")[0].split(","):0},o.prototype.getCurrentRotation=function(e){if(!e)return 0;var t=this.getCurrentTransform(e);return t?Math.round(Math.atan2(t[1],t[0])*(180/Math.PI)):0},o.prototype.getModifier=function(e,t,n){var i=e;e=Math.abs(e);var o=this.getCurrentTransform(n);if(!o)return 1;var r=1;if("X"===t){var s=Math.sign(parseFloat(o[0]));0===e||180===e?r=1:90===e&&(r=-90===i&&1===s||90===i&&-1===s?-1:1),r*=s}else{var a=Math.sign(parseFloat(o[3]));if(0===e||180===e)r=1;else if(90===e){var l=parseFloat(o[1]),u=parseFloat(o[2]);r=Math.sign(l*u*i*a)}r*=a}return r},o.prototype.getImageSize=function(e,t,n){return 90===t&&(n="x"===n?"y":"x"),e.prop({y:"offsetHeight",x:"offsetWidth"}[n])},o.prototype.getDragCords=function(e,t){return 90===t?{x:e.pageY,y:e.pageX}:{x:e.pageX,y:e.pageY}},o.prototype.getSwipeCords=function(e,t){var n=e.originalEvent.targetTouches[0].pageX,i=e.originalEvent.targetTouches[0].pageY;return 90===t?{x:i,y:n}:{x:n,y:i}},o.prototype.getPossibleDragCords=function(e,t){var n=(this.core.$outer.find(".lg").height()-this.getImageSize(e,t,"y"))/2,i=Math.abs(this.getImageSize(e,t,"y")*Math.abs(e.attr("data-scale"))-this.core.$outer.find(".lg").height()+n),o=(this.core.$outer.find(".lg").width()-this.getImageSize(e,t,"x"))/2,r=Math.abs(this.getImageSize(e,t,"x")*Math.abs(e.attr("data-scale"))-this.core.$outer.find(".lg").width()+o);return 90===t?{minY:o,maxY:r,minX:n,maxX:i}:{minY:n,maxY:i,minX:o,maxX:r}},o.prototype.getDragAllowedAxises=function(e,t){var n=this.getImageSize(e,t,"y")*e.attr("data-scale")>this.core.$outer.find(".lg").height(),i=this.getImageSize(e,t,"x")*e.attr("data-scale")>this.core.$outer.find(".lg").width();return 90===t?{allowX:n,allowY:i}:{allowX:i,allowY:n}},o.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=e(window).width()/2,this.pageY=e(window).height()/2+e(window).scrollTop()},o.prototype.zoomSwipe=function(){var e,t=this,n={},i={},o=!1,r=!1,s=!1,a=0;t.core.$slide.on("touchstart.lg",function(i){if(t.core.$outer.hasClass("lg-zoomed")){var o=t.core.$slide.eq(t.core.index).find(".lg-object");e=t.core.$slide.eq(t.core.index).find(".lg-img-rotate")[0],a=t.getCurrentRotation(e);var l=t.getDragAllowedAxises(o,Math.abs(a));s=l.allowY,((r=l.allowX)||s)&&(i.preventDefault(),n=t.getSwipeCords(i,Math.abs(a)))}}),t.core.$slide.on("touchmove.lg",function(l){if(t.core.$outer.hasClass("lg-zoomed")){var u,c,d=t.core.$slide.eq(t.core.index).find(".lg-img-wrap");l.preventDefault(),o=!0,i=t.getSwipeCords(l,Math.abs(a)),t.core.$outer.addClass("lg-zoom-dragging"),c=s?-Math.abs(d.attr("data-y"))+(i.y-n.y)*t.getModifier(a,"Y",e):-Math.abs(d.attr("data-y")),u=r?-Math.abs(d.attr("data-x"))+(i.x-n.x)*t.getModifier(a,"X",e):-Math.abs(d.attr("data-x")),(Math.abs(i.x-n.x)>15||Math.abs(i.y-n.y)>15)&&(t.core.s.useLeftForZoom?d.css({left:u+"px",top:c+"px"}):d.css("transform","translate3d("+u+"px, "+c+"px, 0)"))}}),t.core.$slide.on("touchend.lg",function(){t.core.$outer.hasClass("lg-zoomed")&&o&&(o=!1,t.core.$outer.removeClass("lg-zoom-dragging"),t.touchendZoom(n,i,r,s,a))})},o.prototype.zoomDrag=function(){var t,n=this,i={},o={},r=!1,s=!1,a=!1,l=!1,u=0;n.core.$slide.on("mousedown.lg.zoom",function(o){t=n.core.$slide.eq(n.core.index).find(".lg-img-rotate")[0],u=n.getCurrentRotation(t);var s=n.core.$slide.eq(n.core.index).find(".lg-object"),c=n.getDragAllowedAxises(s,Math.abs(u));l=c.allowY,a=c.allowX,n.core.$outer.hasClass("lg-zoomed")&&e(o.target).hasClass("lg-object")&&(a||l)&&(o.preventDefault(),i=n.getDragCords(o,Math.abs(u)),r=!0,n.core.$outer.scrollLeft+=1,n.core.$outer.scrollLeft-=1,n.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))}),e(window).on("mousemove.lg.zoom",function(e){if(r){var c,d,p=n.core.$slide.eq(n.core.index).find(".lg-img-wrap");s=!0,o=n.getDragCords(e,Math.abs(u)),n.core.$outer.addClass("lg-zoom-dragging"),d=l?-Math.abs(p.attr("data-y"))+(o.y-i.y)*n.getModifier(u,"Y",t):-Math.abs(p.attr("data-y")),c=a?-Math.abs(p.attr("data-x"))+(o.x-i.x)*n.getModifier(u,"X",t):-Math.abs(p.attr("data-x")),n.core.s.useLeftForZoom?p.css({left:c+"px",top:d+"px"}):p.css("transform","translate3d("+c+"px, "+d+"px, 0)")}}),e(window).on("mouseup.lg.zoom",function(e){r&&(r=!1,n.core.$outer.removeClass("lg-zoom-dragging"),!s||i.x===o.x&&i.y===o.y||(o=n.getDragCords(e,Math.abs(u)),n.touchendZoom(i,o,a,l,u)),s=!1),n.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")})},o.prototype.touchendZoom=function(e,t,n,i,o){var r=this.core.$slide.eq(this.core.index).find(".lg-img-wrap"),s=this.core.$slide.eq(this.core.index).find(".lg-object"),a=this.core.$slide.eq(this.core.index).find(".lg-img-rotate")[0],l=-Math.abs(r.attr("data-x"))+(t.x-e.x)*this.getModifier(o,"X",a),u=-Math.abs(r.attr("data-y"))+(t.y-e.y)*this.getModifier(o,"Y",a),c=this.getPossibleDragCords(s,Math.abs(o));(Math.abs(t.x-e.x)>15||Math.abs(t.y-e.y)>15)&&(i&&(u<=-c.maxY?u=-c.maxY:u>=-c.minY&&(u=-c.minY)),n&&(l<=-c.maxX?l=-c.maxX:l>=-c.minX&&(l=-c.minX)),i?r.attr("data-y",Math.abs(u)):u=-Math.abs(r.attr("data-y")),n?r.attr("data-x",Math.abs(l)):l=-Math.abs(r.attr("data-x")),this.core.s.useLeftForZoom?r.css({left:l+"px",top:u+"px"}):r.css("transform","translate3d("+l+"px, "+u+"px, 0)"))},o.prototype.destroy=function(){this.core.$el.off(".lg.zoom"),e(window).off(".lg.zoom"),this.core.$slide.off(".lg.zoom"),this.core.$el.off(".lg.tm.zoom"),this.resetZoom(),clearTimeout(this.zoomabletimeout),this.zoomabletimeout=!1},e.fn.lightGallery.modules.zoom=o}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(e){!function(){"use strict";var t={hash:!0},n=function(n){return this.core=e(n).data("lightGallery"),this.core.s=e.extend({},t,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this};n.prototype.init=function(){var t,n=this;n.core.$el.on("onAfterSlide.lg.tm",function(e,t,i){history.replaceState?history.replaceState(null,null,window.location.pathname+window.location.search+"#lg="+n.core.s.galleryId+"&slide="+i):window.location.hash="lg="+n.core.s.galleryId+"&slide="+i}),e(window).on("hashchange.lg.hash",function(){t=window.location.hash;var e=parseInt(t.split("&slide=")[1],10);t.indexOf("lg="+n.core.s.galleryId)>-1?n.core.slide(e,!1,!1):n.core.lGalleryOn&&n.core.destroy()})},n.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},e.fn.lightGallery.modules.hash=n}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";var t={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",googlePlus:!0,googlePlusDropdownText:"GooglePlus",pinterest:!0,pinterestDropdownText:"Pinterest"},n=function(n){return this.core=e(n).data("lightGallery"),this.core.s=e.extend({},t,this.core.s),this.core.s.share&&this.init(),this};n.prototype.init=function(){var t=this,n='<button type="button" aria-label="Share" id="lg-share" class="lg-icon" aria-haspopup="true" aria-expanded="false"><ul class="lg-dropdown" style="position: absolute;">';n+=t.core.s.facebook?'<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.facebookDropdownText+"</span></a></li>":"",n+=t.core.s.twitter?'<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.twitterDropdownText+"</span></a></li>":"",n+=t.core.s.googlePlus?'<li><a id="lg-share-googleplus" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.googlePlusDropdownText+"</span></a></li>":"",n+=t.core.s.pinterest?'<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.pinterestDropdownText+"</span></a></li>":"",n+="</ul></button>",this.core.$outer.find(".lg-toolbar").append(n),this.core.$outer.find(".lg").append('<div id="lg-dropdown-overlay"></div>'),e("#lg-share").on("click.lg",function(){t.core.$outer.toggleClass("lg-dropdown-active");var n=e("#lg-share").attr("aria-expanded");e("#lg-share").attr("aria-expanded","true"!==n)}),e("#lg-dropdown-overlay").on("click.lg",function(){t.core.$outer.removeClass("lg-dropdown-active"),e("#lg-share").attr("aria-expanded",!1)}),t.core.$el.on("onAfterSlide.lg.tm",function(n,i,o){setTimeout(function(){e("#lg-share-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(t.getSahreProps(o,"facebookShareUrl")||window.location.href)),e("#lg-share-twitter").attr("href","https://twitter.com/intent/tweet?text="+t.getSahreProps(o,"tweetText")+"&url="+encodeURIComponent(t.getSahreProps(o,"twitterShareUrl")||window.location.href)),e("#lg-share-googleplus").attr("href","https://plus.google.com/share?url="+encodeURIComponent(t.getSahreProps(o,"googleplusShareUrl")||window.location.href)),e("#lg-share-pinterest").attr("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(t.getSahreProps(o,"pinterestShareUrl")||window.location.href)+"&media="+encodeURIComponent(t.getSahreProps(o,"src"))+"&description="+t.getSahreProps(o,"pinterestText"))},100)})},n.prototype.getSahreProps=function(e,t){var n="";if(this.core.s.dynamic)n=this.core.s.dynamicEl[e][t];else{var i=this.core.$items.eq(e).attr("href"),o=this.core.$items.eq(e).data(t);n="src"===t&&i||o}return n},n.prototype.destroy=function(){},e.fn.lightGallery.modules.share=n}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";var t={rotate:!0,rotateLeft:!0,rotateRight:!0,flipHorizontal:!0,flipVertical:!0},n=function(n){return this.core=e(n).data("lightGallery"),this.core.s=e.extend({},t,this.core.s),this.core.s.rotate&&this.core.doCss()&&this.init(),this};n.prototype.buildTemplates=function(){var e="";this.core.s.flipVertical&&(e+='<button aria-label="Flip vertical" class="lg-flip-ver lg-icon"></button>'),this.core.s.flipHorizontal&&(e+='<button aria-label="flip horizontal" class="lg-flip-hor lg-icon"></button>'),this.core.s.rotateLeft&&(e+='<button aria-label="Rotate left" class="lg-rotate-left lg-icon"></button>'),this.core.s.rotateRight&&(e+='<button aria-label="Rotate right" class="lg-rotate-right lg-icon"></button>'),this.core.$outer.find(".lg-toolbar").append(e)},n.prototype.init=function(){var e=this;this.buildTemplates(),this.rotateValuesList={},this.core.$el.on("onAferAppendSlide.lg.tm.rotate",function(t,n){e.core.$slide.eq(n).find(".lg-img-wrap").wrap('<div class="lg-img-rotate"></div>')}),this.core.$outer.find(".lg-rotate-left").on("click.lg",this.rotateLeft.bind(this)),this.core.$outer.find(".lg-rotate-right").on("click.lg",this.rotateRight.bind(this)),this.core.$outer.find(".lg-flip-hor").on("click.lg",this.flipHorizontal.bind(this)),this.core.$outer.find(".lg-flip-ver").on("click.lg",this.flipVertical.bind(this)),this.core.$el.on("onBeforeSlide.lg.tm.rotate",function(t,n,i){e.rotateValuesList[i]||(e.rotateValuesList[i]={rotate:0,flipHorizontal:1,flipVertical:1})})},n.prototype.applyStyles=function(){this.core.$slide.eq(this.core.index).find(".lg-img-rotate").css("transform","rotate("+this.rotateValuesList[this.core.index].rotate+"deg) scale3d("+this.rotateValuesList[this.core.index].flipHorizontal+", "+this.rotateValuesList[this.core.index].flipVertical+", 1)")},n.prototype.getCurrentRotation=function(e){if(!e)return 0;var t=window.getComputedStyle(e,null),n=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform")||"none";if("none"!==n){var i=n.split("(")[1].split(")")[0].split(",");if(i){var o=Math.round(Math.atan2(i[1],i[0])*(180/Math.PI));return o<0?o+360:o}}return 0},n.prototype.rotateLeft=function(){this.rotateValuesList[this.core.index].rotate-=90,this.applyStyles()},n.prototype.rotateRight=function(){this.rotateValuesList[this.core.index].rotate+=90,this.applyStyles()},n.prototype.flipHorizontal=function(){var e=this.core.$slide.eq(this.core.index).find(".lg-img-rotate")[0],t=this.getCurrentRotation(e),n="flipHorizontal";90!==t&&270!==t||(n="flipVertical"),this.rotateValuesList[this.core.index][n]*=-1,this.applyStyles()},n.prototype.flipVertical=function(){var e=this.core.$slide.eq(this.core.index).find(".lg-img-rotate")[0],t=this.getCurrentRotation(e),n="flipVertical";90!==t&&270!==t||(n="flipHorizontal"),this.rotateValuesList[this.core.index][n]*=-1,this.applyStyles()},n.prototype.destroy=function(){this.core.$el.off(".lg.tm.rotate"),this.rotateValuesList={}},e.fn.lightGallery.modules.rotate=n}()}),function(e,t){void 0===t&&o("Pagination requires jQuery.");var n="__pagination-";t.fn.pagination&&o('plugin conflicted, the name "pagination" has been taken by another jQuery plugin.'),t.fn.pagination=function(s){if(void 0===s)return this;var a,l=t(this),u=t.extend({},t.fn.pagination.defaults,s),c={initialize:function(){var e=this;if(l.data("pagination")||l.data("pagination",{}),!1!==e.callHook("beforeInit")){l.data("pagination").initialized&&t(".paginationjs",l).remove(),e.disabled=!!u.disabled;var n=e.model={pageRange:u.pageRange,pageSize:u.pageSize};e.parseDataSource(u.dataSource,function(t){e.isAsync=i.isString(t),i.isArray(t)&&(n.totalNumber=u.totalNumber=t.length),e.isDynamicTotalNumber=e.isAsync&&u.totalNumberLocator;var o=e.render(!0);u.className&&o.addClass(u.className),n.el=o,l["bottom"===u.position?"append":"prepend"](o),e.observer(),l.data("pagination").initialized=!0,e.callHook("afterInit",o)})}},render:function(e){var n=this.model,i=n.el||t('<div class="paginationjs"></div>'),o=!0!==e;this.callHook("beforeRender",o);var r=n.pageNumber||u.pageNumber,s=u.pageRange||0,a=this.getTotalPage(),l=r-s,c=r+s;return c>a&&(c=a,l=(l=a-2*s)<1?1:l),l<=1&&(l=1,c=Math.min(2*s+1,a)),i.html(this.generateHTML({currentPage:r,pageRange:s,rangeStart:l,rangeEnd:c})),u.hideOnlyOnePage&&i[a<=1?"hide":"show"](),this.callHook("afterRender",o),i},getPageLinkTag:function(e){var t=u.pageLink;return t?`<a href="${t}">${e}</a>`:`<a>${e}</a>`},generatePageNumbersHTML:function(e){var t,n=e.currentPage,i=this.getTotalPage(),o=this.getPageLinkTag,r=e.rangeStart,s=e.rangeEnd,a="",l=u.ellipsisText,c=u.classPrefix,d=u.pageClassName||"",p=u.activeClassName||"",h=u.disableClassName||"";if(null===u.pageRange){for(t=1;t<=i;t++)a+=t==n?`<li class="${c}-page J-paginationjs-page ${d} ${p}" data-num="${t}"><a>${t}</a></li>`:`<li class="${c}-page J-paginationjs-page ${d}" data-num="${t}">${o(t)}</li>`;return a}if(r<=3)for(t=1;t<r;t++)a+=t==n?`<li class="${c}-page J-paginationjs-page ${d} ${p}" data-num="${t}"><a>${t}</a></li>`:`<li class="${c}-page J-paginationjs-page ${d}" data-num="${t}">${o(t)}</li>`;else u.hideFirstOnEllipsisShow||(a+=`<li class="${c}-page ${c}-first J-paginationjs-page ${d}" data-num="1">${o(1)}</li>`),a+=`<li class="${c}-ellipsis ${h}"><a>${l}</a></li>`;for(t=r;t<=s;t++)a+=t==n?`<li class="${c}-page J-paginationjs-page ${d} ${p}" data-num="${t}"><a>${t}</a></li>`:`<li class="${c}-page J-paginationjs-page ${d}" data-num="${t}">${o(t)}</li>`;if(s>=i-2)for(t=s+1;t<=i;t++)a+=`<li class="${c}-page J-paginationjs-page ${d}" data-num="${t}">${o(t)}</li>`;else a+=`<li class="${c}-ellipsis ${h}"><a>${l}</a></li>`,u.hideLastOnEllipsisShow||(a+=`<li class="${c}-page ${c}-last J-paginationjs-page ${d}" data-num="${i}">${o(i)}</li>`);return a},generateHTML:function(e){var t,n=e.currentPage,o=this.getTotalPage(),r=this.getPageLinkTag,s=this.getTotalNumber(),a=u.pageSize,l=u.showPrevious,c=u.showNext,d=u.showPageNumbers,p=u.showNavigator,h=u.showSizeChanger,f=u.sizeChangerOptions,m=u.showGoInput,g=u.showGoButton,v=u.prevText,y=u.nextText,b=u.goButtonText,w=u.classPrefix,x=u.disableClassName||"",_=u.ulClassName||"",S=u.prevClassName||"",k=u.nextClassName||"",T="",C='<select class="J-paginationjs-size-select">',E='<input type="text" class="J-paginationjs-go-pagenumber">',D=`<input type="button" class="J-paginationjs-go-button" value="${b}">`,$="function"==typeof u.formatSizeChanger?u.formatSizeChanger(n,o,s):u.formatSizeChanger,R="function"==typeof u.formatNavigator?u.formatNavigator(n,o,s):u.formatNavigator,M="function"==typeof u.formatGoInput?u.formatGoInput(E,n,o,s):u.formatGoInput,A="function"==typeof u.formatGoButton?u.formatGoButton(D,n,o,s):u.formatGoButton,P="function"==typeof u.autoHidePrevious?u.autoHidePrevious():u.autoHidePrevious,L="function"==typeof u.autoHideNext?u.autoHideNext():u.autoHideNext,I="function"==typeof u.header?u.header(n,o,s):u.header,j="function"==typeof u.footer?u.footer(n,o,s):u.footer;if(I&&(T+=t=this.replaceVariables(I,{currentPage:n,totalPage:o,totalNumber:s})),p&&R&&(T+=`<div class="${w}-nav J-paginationjs-nav">${t=this.replaceVariables(R,{currentPage:n,totalPage:o,totalNumber:s,rangeStart:(n-1)*a+1,rangeEnd:Math.min(n*a,s)})}</div>`),(l||d||c)&&(T+='<div class="paginationjs-pages">',T+=_?`<ul class="${_}">`:"<ul>",l&&(n<=1?P||(T+=`<li class="${w}-prev ${x} ${S}"><a>${v}</a></li>`):T+=`<li class="${w}-prev J-paginationjs-previous ${S}" data-num="${n-1}" title="Previous page">${r(v)}</li>`),d&&(T+=this.generatePageNumbersHTML(e)),c&&(n>=o?L||(T+=`<li class="${w}-next ${x} ${k}"><a>${y}</a></li>`):T+=`<li class="${w}-next J-paginationjs-next ${k}" data-num="${n+1}" title="Next page">${r(y)}</li>`),T+="</ul></div>"),h&&i.isArray(f)){-1===f.indexOf(a)&&(f.unshift(a),f.sort((e,t)=>e-t));for(let e=0;e<f.length;e++)C+=`<option value="${f[e]}"${f[e]===a?" selected":""}>${f[e]} / page</option>`;t=C+="</select>",$&&(t=this.replaceVariables($,{length:C,total:s})),T+=`<div class="paginationjs-size-changer">${t}</div>`}return m&&M&&(T+=`<div class="${w}-go-input">${t=this.replaceVariables(M,{currentPage:n,totalPage:o,totalNumber:s,input:E})}</div>`),g&&A&&(T+=`<div class="${w}-go-button">${t=this.replaceVariables(A,{currentPage:n,totalPage:o,totalNumber:s,button:D})}</div>`),j&&(T+=t=this.replaceVariables(j,{currentPage:n,totalPage:o,totalNumber:s})),T},findTotalNumberFromRemoteResponse:function(e){this.model.totalNumber=u.totalNumberLocator(e)},go:function(e,n){var o=this,r=o.model;if(!o.disabled){var s=e;if((s=parseInt(s))&&!(s<1)){var a=u.pageSize,c=o.getTotalNumber(),d=o.getTotalPage();if(!(c>0&&s>d))if(o.isAsync){var p={},h=u.alias||{},f=h.pageSize?h.pageSize:"pageSize",m=h.pageNumber?h.pageNumber:"pageNumber";p[f]=a,p[m]=s;var g="function"==typeof u.ajax?u.ajax():u.ajax;g&&g.pageNumberStartWithZero&&(p[m]=s-1);var v={type:"get",cache:!1,data:{},contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:"json",async:!0};t.extend(!0,v,g),t.extend(v.data,p),v.url=u.dataSource,v.success=function(e){try{o.model.originalResponse=e,o.isDynamicTotalNumber?o.findTotalNumberFromRemoteResponse(e):o.model.totalNumber=u.totalNumber,y(o.filterDataWithLocator(e))}catch(e){if("function"!=typeof u.onError)throw e;u.onError(e,"ajaxSuccessHandlerError")}},v.error=function(e,t,n){u.formatAjaxError&&u.formatAjaxError(e,t,n),o.enable()},o.disable(),u.ajaxFunction?u.ajaxFunction(v):t.ajax(v)}else y(o.getPagingData(s))}}function y(e){if(!1===o.callHook("beforePaging",s))return!1;if(r.direction=void 0===r.pageNumber?0:s>r.pageNumber?1:-1,r.pageNumber=s,o.render(),o.disabled&&o.isAsync&&o.enable(),l.data("pagination").model=r,u.formatResult){var a=t.extend(!0,[],e);i.isArray(e=u.formatResult(a))||(e=a)}l.data("pagination").currentPageData=e,o.doCallback(e,n),o.callHook("afterPaging",s),1==s?o.callHook("afterIsFirstPage"):s==o.getTotalPage()&&o.callHook("afterIsLastPage")}},doCallback:function(e,t){var n=this.model;"function"==typeof t?t(e,n):"function"==typeof u.callback&&u.callback(e,n)},destroy:function(){!1!==this.callHook("beforeDestroy")&&(this.model.el.remove(),l.off(),t("#paginationjs-style").remove(),this.callHook("afterDestroy"))},previous:function(e){this.go(this.model.pageNumber-1,e)},next:function(e){this.go(this.model.pageNumber+1,e)},disable:function(){var e=this.isAsync?"async":"sync";!1!==this.callHook("beforeDisable",e)&&(this.disabled=!0,this.model.disabled=!0,this.callHook("afterDisable",e))},enable:function(){var e=this.isAsync?"async":"sync";!1!==this.callHook("beforeEnable",e)&&(this.disabled=!1,this.model.disabled=!1,this.callHook("afterEnable",e))},refresh:function(e){this.go(this.model.pageNumber,e)},show:function(){this.model.el.is(":visible")||this.model.el.show()},hide:function(){this.model.el.is(":visible")&&this.model.el.hide()},replaceVariables:function(e,t){var n;for(var i in t){var o=t[i],r=new RegExp("<%=\\s*"+i+"\\s*%>","img");n=(n||e).replace(r,o)}return n},getPagingData:function(e){var t=u.pageSize,n=u.dataSource,i=this.getTotalNumber(),o=t*(e-1)+1,r=Math.min(e*t,i);return n.slice(o-1,r)},getTotalNumber:function(){return this.model.totalNumber||u.totalNumber||0},getTotalPage:function(){return Math.ceil(this.getTotalNumber()/u.pageSize)},getLocator:function(e){var t;return"string"==typeof e?t=e:"function"==typeof e?t=e():o('"locator" is incorrect. Expect string or function type.'),t},filterDataWithLocator:function(e){var n,r=this.getLocator(u.locator);if(i.isObject(e)){try{t.each(r.split("."),function(t,i){n=(n||e)[i]})}catch(e){}n?i.isArray(n)||o("dataSource."+r+" should be an Array."):o("dataSource."+r+" is undefined.")}return n||e},parseDataSource:function(e,t){var n=this;i.isObject(e)?t(u.dataSource=n.filterDataWithLocator(e)):i.isArray(e)?t(u.dataSource=e):"function"==typeof e?u.dataSource(function(e){i.isArray(e)||o('The parameter of "done" Function should be an Array.'),n.parseDataSource.call(n,e,t)}):"string"==typeof e?(/^https?|file:/.test(e)&&(u.ajaxDataType="jsonp"),t(e)):o("Unexpected dataSource type")},callHook:function(n){var i,o=l.data("pagination")||{},r=Array.prototype.slice.apply(arguments);return r.shift(),u[n]&&"function"==typeof u[n]&&!1===u[n].apply(e,r)&&(i=!1),o.hooks&&o.hooks[n]&&t.each(o.hooks[n],function(t,n){!1===n.apply(e,r)&&(i=!1)}),!1!==i},observer:function(){var e=this,i=e.model.el;l.on(n+"go",function(t,n,i){"string"==typeof n&&(n=parseInt(n.trim())),n&&("number"!=typeof n&&o('"pageNumber" is incorrect. (Number)'),e.go(n,i))}),i.on("click",".J-paginationjs-page",function(n){var i=t(n.currentTarget),o=i.attr("data-num").trim();if(o&&!i.hasClass(u.disableClassName)&&!i.hasClass(u.activeClassName))return!1!==e.callHook("beforePageOnClick",n,o)&&(e.go(o),e.callHook("afterPageOnClick",n,o),!!u.pageLink&&void 0)}),i.on("click",".J-paginationjs-previous",function(n){var i=t(n.currentTarget),o=i.attr("data-num").trim();if(o&&!i.hasClass(u.disableClassName))return!1!==e.callHook("beforePreviousOnClick",n,o)&&(e.go(o),e.callHook("afterPreviousOnClick",n,o),!!u.pageLink&&void 0)}),i.on("click",".J-paginationjs-next",function(n){var i=t(n.currentTarget),o=i.attr("data-num").trim();if(o&&!i.hasClass(u.disableClassName))return!1!==e.callHook("beforeNextOnClick",n,o)&&(e.go(o),e.callHook("afterNextOnClick",n,o),!!u.pageLink&&void 0)}),i.on("click",".J-paginationjs-go-button",function(o){var r=t(".J-paginationjs-go-pagenumber",i).val();if(!1===e.callHook("beforeGoButtonOnClick",o,r))return!1;l.trigger(n+"go",r),e.callHook("afterGoButtonOnClick",o,r)}),i.on("keyup",".J-paginationjs-go-pagenumber",function(o){if(13===o.which){var r=t(o.currentTarget).val();if(!1===e.callHook("beforeGoInputOnEnter",o,r))return!1;l.trigger(n+"go",r),t(".J-paginationjs-go-pagenumber",i).focus(),e.callHook("afterGoInputOnEnter",o,r)}}),i.on("change",".J-paginationjs-size-select",function(n){var i=t(n.currentTarget),o=parseInt(i.val()),r=e.model.pageNumber||u.pageNumber;if("number"==typeof o)return!1!==e.callHook("beforeSizeSelectorChange",n,o)&&(u.pageSize=o,e.model.pageSize=o,e.model.totalPage=e.getTotalPage(),r>e.model.totalPage&&(r=e.model.totalPage),e.go(r),e.callHook("afterSizeSelectorChange",n,o),!!u.pageLink&&void 0)}),l.on(n+"previous",function(t,n){e.previous(n)}),l.on(n+"next",function(t,n){e.next(n)}),l.on(n+"disable",function(){e.disable()}),l.on(n+"enable",function(){e.enable()}),l.on(n+"refresh",function(t,n){e.refresh(n)}),l.on(n+"show",function(){e.show()}),l.on(n+"hide",function(){e.hide()}),l.on(n+"destroy",function(){e.destroy()});var r=Math.max(e.getTotalPage(),1),s=u.pageNumber;e.isDynamicTotalNumber&&u.resetPageNumberOnInit&&(s=1),u.triggerPagingOnInit&&l.trigger(n+"go",Math.min(s,r))}};if(l.data("pagination")&&!0===l.data("pagination").initialized){if(r(s))return l.trigger.call(this,n+"go",s,arguments[1]),this;if("string"==typeof s){var d=Array.prototype.slice.apply(arguments);switch(d[0]=n+d[0],s){case"previous":case"next":case"go":case"disable":case"enable":case"refresh":case"show":case"hide":case"destroy":l.trigger.apply(this,d);break;case"getSelectedPageNum":case"getCurrentPageNum":return l.data("pagination").model?l.data("pagination").model.pageNumber:l.data("pagination").attributes.pageNumber;case"getTotalPage":return Math.ceil(l.data("pagination").model.totalNumber/l.data("pagination").model.pageSize);case"getSelectedPageData":case"getCurrentPageData":return l.data("pagination").currentPageData;case"isDisabled":return!0===l.data("pagination").model.disabled;default:o("Unknown action: "+s)}return this}a=l,t.each(["go","previous","next","disable","enable","refresh","show","hide","destroy"],function(e,t){a.off(n+t)}),a.data("pagination",{}),t(".paginationjs",a).remove()}else i.isObject(s)||o("Illegal options");return function(e){e.dataSource||o('"dataSource" is required.');"string"==typeof e.dataSource?void 0===e.totalNumberLocator?void 0===e.totalNumber?o('"totalNumber" is required.'):r(e.totalNumber)||o('"totalNumber" is incorrect. Expect numberic type'):"function"!=typeof e.totalNumberLocator&&o('"totalNumberLocator" should be a Function.'):i.isObject(e.dataSource)&&(void 0===e.locator?o('"dataSource" is an Object, please specify a "locator".'):"string"!=typeof e.locator&&"function"!=typeof e.locator&&o(e.locator+" is incorrect. Expect string or function type"));void 0!==e.formatResult&&"function"!=typeof e.formatResult&&o('"formatResult" should be a Function.');void 0!==e.onError&&"function"!=typeof e.onError&&o('"onError" should be a Function.')}(u),c.initialize(),this},t.fn.pagination.defaults={totalNumber:0,pageNumber:1,pageSize:10,pageRange:2,showPrevious:!0,showNext:!0,showPageNumbers:!0,showNavigator:!1,showGoInput:!1,showGoButton:!1,showSizeChanger:!1,sizeChangerOptions:[10,20,50,100],pageLink:"",prevText:"&lsaquo;",nextText:"&rsaquo;",ellipsisText:"...",goButtonText:"Go",classPrefix:"paginationjs",activeClassName:"active",disableClassName:"disabled",formatNavigator:"Total <%= totalNumber %> items",formatGoInput:"<%= input %>",formatGoButton:"<%= button %>",position:"bottom",autoHidePrevious:!1,autoHideNext:!1,triggerPagingOnInit:!0,resetPageNumberOnInit:!0,hideOnlyOnePage:!1,hideFirstOnEllipsisShow:!1,hideLastOnEllipsisShow:!1,callback:function(){}},t.fn.addHook=function(e,n){arguments.length<2&&o("Expect 2 arguments at least."),"function"!=typeof n&&o("callback should be a function.");var i=t(this),r=i.data("pagination");r||(i.data("pagination",{}),r=i.data("pagination")),!r.hooks&&(r.hooks={}),r.hooks[e]=r.hooks[e]||[],r.hooks[e].push(n)},t.pagination=function(e,n){var i;if(arguments.length<2&&o("Requires two parameters."),(i="string"!=typeof e&&e instanceof jQuery?e:t(e)).length)return i.pagination(n),i};var i={};function o(e){throw new Error("Pagination: "+e)}function r(e){return!isNaN(parseFloat(e))&&isFinite(e)}t.each(["Object","Array","String"],function(e,t){i["is"+t]=function(e){return function(e,t){return("object"==(t=typeof e)?null==e?"null":Object.prototype.toString.call(e).slice(8,-1):t).toLowerCase()}(e)===t.toLowerCase()}}),"function"==typeof define&&define.amd&&define(function(){return t})}(this,window.jQuery),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ThreeSixty=t():e.ThreeSixty=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t));var t={};function n(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,r(e,t,"get"))}function o(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,r(e,t,"set"),n),n}function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}e.d(t,{default:()=>x});var s=new WeakMap,a=new WeakMap,l=new WeakMap;const u=function(){function e(t,r){var u=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,s,{writable:!0,value:null}),n(this,a,{writable:!0,value:null}),n(this,l,{writable:!0,value:null}),o(this,a,r),o(this,l,{container:{mousedown:function(e){return o(u,s,e.pageX)},touchstart:function(e){return o(u,s,e.touches[0].clientX)},touchend:function(){return o(u,s,null)}},prev:{mousedown:function(e){e.preventDefault(),t.play(!0)},mouseup:function(e){e.preventDefault(),t.stop()},touchstart:function(e){e.preventDefault(),t.prev()}},next:{mousedown:function(e){e.preventDefault(),t.play()},mouseup:function(e){e.preventDefault(),t.stop()},touchstart:function(e){e.preventDefault(),t.next()}},global:{mouseup:function(){return o(u,s,null)},mousemove:function(e){i(u,s)&&Math.abs(i(u,s)-e.pageX)>i(u,a).dragTolerance&&(t.stop(),i(u,s)>e.pageX?t.prev():t.next(),o(u,s,e.pageX))},touchmove:function(e){i(u,s)&&Math.abs(i(u,s)-e.touches[0].clientX)>i(u,a).swipeTolerance&&(t.stop(),i(u,s)>e.touches[0].clientX?t.prev():t.next(),o(u,s,e.touches[0].clientX))},keydown:function(e){[37,39].includes(e.keyCode)&&t.play(37===e.keyCode)},keyup:function(e){[37,39].includes(e.keyCode)&&t.stop()}}}),this._initEvents()}var t,r;return t=e,(r=[{key:"destroy",value:function(){i(this,a).swipeTarget.removeEventListener("mousedown",i(this,l).container.mousedown),i(this,a).swipeTarget.removeEventListener("touchstart",i(this,l).container.touchstart),i(this,a).swipeTarget.removeEventListener("touchend",i(this,l).container.touchend),window.removeEventListener("mouseup",i(this,l).global.mouseup),window.removeEventListener("mousemove",i(this,l).global.mousemove),window.removeEventListener("touchmove",i(this,l).global.touchmove),window.removeEventListener("keydown",i(this,l).global.keydown),window.removeEventListener("keyup",i(this,l).global.keyup),i(this,a).prev&&(i(this,a).prev.removeEventListener("mousedown",i(this,l).prev.mousedown),i(this,a).prev.removeEventListener("mouseup",i(this,l).prev.mouseup),i(this,a).prev.removeEventListener("touchstart",i(this,l).prev.touchstart)),i(this,a).next&&(i(this,a).next.removeEventListener("mousedown",i(this,l).next.mousedown),i(this,a).next.removeEventListener("mouseup",i(this,l).next.mouseup),i(this,a).next.removeEventListener("touchstart",i(this,l).next.touchstart))}},{key:"_initEvents",value:function(){i(this,a).draggable&&(i(this,a).swipeTarget.addEventListener("mousedown",i(this,l).container.mousedown),window.addEventListener("mouseup",i(this,l).global.mouseup),window.addEventListener("mousemove",i(this,l).global.mousemove)),i(this,a).swipeable&&(i(this,a).swipeTarget.addEventListener("touchstart",i(this,l).container.touchstart),i(this,a).swipeTarget.addEventListener("touchend",i(this,l).container.touchend),window.addEventListener("touchmove",i(this,l).global.touchmove)),i(this,a).keys&&(window.addEventListener("keydown",i(this,l).global.keydown),window.addEventListener("keyup",i(this,l).global.keyup)),i(this,a).prev&&(i(this,a).prev.addEventListener("mousedown",i(this,l).prev.mousedown),i(this,a).prev.addEventListener("mouseup",i(this,l).prev.mouseup),i(this,a).prev.addEventListener("touchstart",i(this,l).prev.touchstart)),i(this,a).next&&(i(this,a).next.addEventListener("mousedown",i(this,l).next.mousedown),i(this,a).next.addEventListener("mouseup",i(this,l).next.mouseup),i(this,a).next.addEventListener("touchstart",i(this,l).next.touchstart))}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function d(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,h(e,t,"get"))}function p(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,h(e,t,"set"),n),n}function h(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}var f=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakMap;const x=function(){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,f,{writable:!0,value:null}),c(this,m,{writable:!0,value:0}),c(this,g,{writable:!0,value:null}),c(this,v,{writable:!0,value:!1}),c(this,y,{writable:!0,value:null}),c(this,b,{writable:!0,value:null}),c(this,w,{writable:!0,value:!1}),this.container=e,p(this,f,Object.assign({width:300,height:300,aspectRatio:0,count:0,perRow:0,speed:100,dragTolerance:10,swipeTolerance:10,draggable:!0,swipeable:!0,keys:!0,inverted:!1},n)),d(this,f).swipeTarget=d(this,f).swipeTarget||this.container,p(this,w,!Array.isArray(d(this,f).image)),this.sprite||(d(this,f).count=d(this,f).image.length),Object.freeze(d(this,f)),p(this,b,new u(this,d(this,f))),this._windowResizeListener=this._windowResizeListener.bind(this),this._initContainer(),this.nloops=0}var n,i;return n=t,(i=[{key:"isResponsive",get:function(){return d(this,f).aspectRatio>0}},{key:"containerWidth",get:function(){return this.isResponsive?this.container.clientWidth:d(this,f).width}},{key:"containerHeight",get:function(){return this.isResponsive?this.container.clientWidth*d(this,f).aspectRatio:d(this,f).height}},{key:"index",get:function(){return d(this,m)}},{key:"looping",get:function(){return d(this,v)}},{key:"sprite",get:function(){return d(this,w)}},{key:"next",value:function(){this.goto(d(this,f).inverted?d(this,m)-1:d(this,m)+1)}},{key:"prev",value:function(){this.goto(d(this,f).inverted?d(this,m)+1:d(this,m)-1)}},{key:"goto",value:function(e){p(this,m,(d(this,f).count+e)%d(this,f).count),this._update()}},{key:"play",value:function(e,t){this.looping||(this._loop(e),p(this,v,!0),p(this,y,t),this.nloops=0)}},{key:"stop",value:function(){this.looping&&(e.g.clearTimeout(d(this,g)),p(this,v,!1),p(this,y,null),this.nloops=0)}},{key:"toggle",value:function(e){this.looping?this.stop():this.play(e)}},{key:"destroy",value:function(){this.stop(),d(this,b).destroy(),this.container.style.width="",this.container.style.height="",this.container.style.backgroundImage="",this.container.style.backgroundPositionX="",this.container.style.backgroundPositionY="",this.container.style.backgroundSize="",this.isResponsive&&window.removeEventListener("resize",this._windowResizeListener)}},{key:"_loop",value:function(t){var n=this;t?this.prev():this.next(),0===d(this,m)&&(this.nloops+=1,d(this,y)&&this.nloops>=d(this,y))?this.stop():p(this,g,e.g.setTimeout(function(){n._loop(t)},d(this,f).speed))}},{key:"_update",value:function(){this.sprite?(this.container.style.backgroundPositionX=-d(this,m)%d(this,f).perRow*this.containerWidth+"px",this.container.style.backgroundPositionY=-Math.floor(d(this,m)/d(this,f).perRow)*this.containerHeight+"px"):this.container.style.backgroundImage='url("'.concat(d(this,f).image[d(this,m)],'")')}},{key:"_windowResizeListener",value:function(){this.container.style.height=this.containerHeight+"px",this._update()}},{key:"_initContainer",value:function(){if(this.isResponsive||(this.container.style.width=this.containerWidth+"px"),this.container.style.height=this.containerHeight+"px",this.sprite){this.container.style.backgroundImage='url("'.concat(d(this,f).image,'")');var e=d(this,f).perRow,t=Math.ceil(d(this,f).count/d(this,f).perRow);this.container.style.backgroundSize=100*e+"% "+100*t+"%"}this.isResponsive&&window.addEventListener("resize",this._windowResizeListener),this._update()}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();return t.default})());var FullCalendar=function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)};function n(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||t)}var r,s,a,l,u,c,d,p,h={},f=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function g(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var i,o,s,a={};for(s in t)"key"==s?i=t[s]:"ref"==s?o=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return b(e,a,i,o,null)}function b(e,t,n,i,o){var r={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++a:o};return null==o&&null!=s.vnode&&s.vnode(r),r}function w(e){return e.children}function x(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||m.test(t)?n:n+"px"}function _(e,t,n,i,o){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||x(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||x(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i||e.addEventListener(t,r?k:S,r):e.removeEventListener(t,r?k:S,r);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function S(e){l=!0;try{return this.l[e.type+!1](s.event?s.event(e):e)}finally{l=!1}}function k(e){l=!0;try{return this.l[e.type+!0](s.event?s.event(e):e)}finally{l=!1}}function T(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function D(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!$.__r++||c!==s.debounceRendering)&&((c=s.debounceRendering)||function(e){l?setTimeout(e):d(e)})($)}function $(){var e,t,n,i,o,r,s,a;for(u.sort(function(e,t){return e.__v.__b-t.__v.__b});e=u.shift();)e.__d&&(t=u.length,i=void 0,o=void 0,s=(r=(n=e).__v).__e,(a=n.__P)&&(i=[],(o=g({},r)).__v=r.__v+1,I(a,r,o,n.__n,void 0!==a.ownerSVGElement,null!=r.__h?[s]:null,i,null==s?C(r):s,r.__h),j(i,r),r.__e!=s&&E(r)),u.length>t&&u.sort(function(e,t){return e.__v.__b-t.__v.__b}));$.__r=0}function R(e,t,n,i,o,r,s,a,l,u){var c,d,p,m,g,v,y,x=i&&i.__k||f,_=x.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(m=n.__k[c]=null==(m=t[c])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?b(null,m,null,null,m):Array.isArray(m)?b(w,{children:m},null,null,null):m.__b>0?b(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(p=x[c])||p&&m.key==p.key&&m.type===p.type)x[c]=void 0;else for(d=0;d<_;d++){if((p=x[d])&&m.key==p.key&&m.type===p.type){x[d]=void 0;break}p=null}I(e,m,p=p||h,o,r,s,a,l,u),g=m.__e,(d=m.ref)&&p.ref!=d&&(y||(y=[]),p.ref&&y.push(p.ref,null,m),y.push(d,m.__c||g,m)),null!=g?(null==v&&(v=g),"function"==typeof m.type&&m.__k===p.__k?m.__d=l=M(m,l,e):l=P(e,m,p,x,g,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=C(p))}for(n.__e=v,c=_;c--;)null!=x[c]&&("function"==typeof n.type&&null!=x[c].__e&&x[c].__e==n.__d&&(n.__d=L(i).nextSibling),z(x[c],x[c]));if(y)for(c=0;c<y.length;c++)N(y[c],y[++c],y[++c])}function M(e,t,n){for(var i,o=e.__k,r=0;o&&r<o.length;r++)(i=o[r])&&(i.__=e,t="function"==typeof i.type?M(i,t,n):P(n,i,i,o,i.__e,t));return t}function A(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){A(e,t)}):t.push(e)),t}function P(e,t,n,i,o,r){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=r||null==o.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(o),s=null;else{for(a=r,l=0;(a=a.nextSibling)&&l<i.length;l+=1)if(a==o)break e;e.insertBefore(o,r),s=r}return void 0!==s?s:o.nextSibling}function L(e){var t,n,i;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(i=L(n)))return i;return null}function I(e,t,n,i,o,r,a,l,u){var c,d,p,h,f,m,v,y,b,x,_,S,k,C,E,D=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,l=t.__e=n.__e,t.__h=null,r=[l]),(c=s.__b)&&c(t);try{e:if("function"==typeof D){if(y=t.props,b=(c=D.contextType)&&i[c.__c],x=c?b?b.props.value:c.__:i,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in D&&D.prototype.render?t.__c=d=new D(y,x):(t.__c=d=new T(y,x),d.constructor=D,d.render=H),b&&b.sub(d),d.props=y,d.state||(d.state={}),d.context=x,d.__n=i,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=D.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=g({},d.__s)),g(d.__s,D.getDerivedStateFromProps(y,d.__s))),h=d.props,f=d.state,d.__v=t,p)null==D.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==D.getDerivedStateFromProps&&y!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,x),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,x)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,x),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,f,m)})}if(d.context=x,d.props=y,d.__P=e,S=s.__r,k=0,"prototype"in D&&D.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do{d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(i=g(g({},i),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,f)),E=null!=c&&c.type===w&&null==c.key?c.props.children:c,R(e,Array.isArray(E)?E:[E],t,n,i,o,r,a,l,u),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),v&&(d.__E=d.__=null),d.__e=!1}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=O(n.__e,t,n,i,o,r,a,u);(c=s.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=r)&&(t.__e=l,t.__h=!!u,r[r.indexOf(l)]=null),s.__e(e,t,n)}}function j(e,t){s.__c&&s.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){s.__e(e,t.__v)}})}function O(e,t,n,i,o,s,a,l){var u,c,d,p=n.props,f=t.props,m=t.type,g=0;if("svg"===m&&(o=!0),null!=s)for(;g<s.length;g++)if((u=s[g])&&"setAttribute"in u==!!m&&(m?u.localName===m:3===u.nodeType)){e=u,s[g]=null;break}if(null==e){if(null===m)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,f.is&&f),s=null,l=!1}if(null===m)p===f||l&&e.data===f||(e.data=f);else{if(s=s&&r.call(e.childNodes),c=(p=n.props||h).dangerouslySetInnerHTML,d=f.dangerouslySetInnerHTML,!l){if(null!=s)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,i,o){var r;for(r in n)"children"===r||"key"===r||r in t||_(e,r,null,n[r],i);for(r in t)o&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||_(e,r,t[r],n[r],i)}(e,f,p,o,l),d)t.__k=[];else if(g=t.props.children,R(e,Array.isArray(g)?g:[g],t,n,i,o&&"foreignObject"!==m,s,a,s?s[0]:n.__k&&C(n,0),l),null!=s)for(g=s.length;g--;)null!=s[g]&&v(s[g]);l||("value"in f&&void 0!==(g=f.value)&&(g!==e.value||"progress"===m&&!g||"option"===m&&g!==p.value)&&_(e,"value",g,p.value,!1),"checked"in f&&void 0!==(g=f.checked)&&g!==e.checked&&_(e,"checked",g,p.checked,!1))}return e}function N(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){s.__e(e,n)}}function z(e,t,n){var i,o;if(s.unmount&&s.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||N(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){s.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&z(i[o],t,n||"function"!=typeof e.type);n||null==e.__e||v(e.__e),e.__=e.__e=e.__d=void 0}function H(e,t,n){return this.constructor(e,n)}function U(e,t,n){var i,o,a;s.__&&s.__(e,t),o=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],I(t,e=(!i&&n||t).__k=y(w,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!i&&n?[n]:o?null:t.firstChild?r.call(t.childNodes):null,a,!i&&n?n:o?o.__e:t.firstChild,i),j(a,e)}r=f.slice,s={__e:function(e,t,n,i){for(var o,r,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,i||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},a=0,l=!1,T.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),D(this))},T.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),D(this))},T.prototype.render=w,u=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$.__r=0,p=0;var F,q,W,B=[],V=[],Q=s.__b,G=s.__r,Y=s.diffed,K=s.__c,Z=s.unmount;function X(){for(var e;e=B.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ee),e.__H.__h.forEach(te),e.__H.__h=[]}catch(t){e.__H.__h=[],s.__e(t,e.__v)}}s.__b=function(e){F=null,Q&&Q(e)},s.__r=function(e){G&&G(e);var t=(F=e.__c).__H;t&&(q===F?(t.__h=[],F.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=V,e.__N=e.i=void 0})):(t.__h.forEach(ee),t.__h.forEach(te),t.__h=[])),q=F},s.diffed=function(e){Y&&Y(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==B.push(t)&&W===s.requestAnimationFrame||((W=s.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),J&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);J&&(t=requestAnimationFrame(n))})(X)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==V&&(e.__=e.__V),e.i=void 0,e.__V=V})),q=F=null},s.__c=function(e,t){t.some(function(e){try{e.__h.forEach(ee),e.__h=e.__h.filter(function(e){return!e.__||te(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],s.__e(n,e.__v)}}),K&&K(e,t)},s.unmount=function(e){Z&&Z(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{ee(e)}catch(e){t=e}}),n.__H=void 0,t&&s.__e(t,n.__v))};var J="function"==typeof requestAnimationFrame;function ee(e){var t=F,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),F=t}function te(e){var t=F;e.__c=e.__(),F=t}function ne(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function ie(e){this.props=e}(ie.prototype=new T).isPureReactComponent=!0,ie.prototype.shouldComponentUpdate=function(e,t){return ne(this.props,e)||ne(this.state,t)};var oe=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),oe&&oe(e)};var re=s.__e;s.__e=function(e,t,n,i){if(e.then)for(var o,r=t;r=r.__;)if((o=r.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);re(e,t,n,i)};var se=s.unmount;function ae(){this.__u=0,this.t=null,this.__b=null}function le(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ue(){this.u=null,this.o=null}s.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),se&&se(e)},(ae.prototype=new T).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var o=le(i.__v),r=!1,s=function(){r||(r=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(s,s)},ae.prototype.componentWillUnmount=function(){this.t=[]},ae.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var o=t.__a&&y(w,null,e.fallback);return o&&(o.__h=null),[y(w,null,t.__a?null:e.children),o]};var ce=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function de(e){return this.getChildContext=function(){return e.context},e.children}function pe(e){var t=this,n=e.i;t.componentWillUnmount=function(){U(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),U(y(de,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ue.prototype=new T).__a=function(e){var t=this,n=le(t.__v),i=t.o.get(e);return i[0]++,function(o){var r=function(){t.props.revealOrder?(i.push(o),ce(t,e,i)):o()};n?n(r):r()}},ue.prototype.render=function(e){this.u=null,this.o=new Map;var t=A(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ue.prototype.componentDidUpdate=ue.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ce(e,n,t)})};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,fe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,me="undefined"!=typeof document,ge=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};T.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(T.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ve=s.event;function ye(){}function be(){return this.cancelBubble}function we(){return this.defaultPrevented}s.event=function(e){return ve&&(e=ve(e)),e.persist=ye,e.isPropagationStopped=be,e.isDefaultPrevented=we,e.nativeEvent=e};var xe={configurable:!0,get:function(){return this.class}},_e=s.vnode;s.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var r in i={},n){var s=n[r];me&&"children"===r&&"noscript"===t||"value"===r&&"defaultValue"in n&&null==s||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===s?s="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!ge(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():o&&fe.test(r)?r=r.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(r)&&(r=r.toLowerCase(),i[r]&&(r="oninputCapture")),i[r]=s)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=A(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=A(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(xe.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",xe))}e.$$typeof=he,_e&&_e(e)};var Se=s.__r;s.__r=function(e){Se&&Se(e)};var ke="undefined"!=typeof globalThis?globalThis:window;ke.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):ke.FullCalendarVDom={Component:T,createElement:y,render:U,createRef:function(){return{current:null}},Fragment:w,createContext:function(e){var t=(i=e,r={__c:o="__cC"+p++,__:i,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[o]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(function(e){e.__e=!0,D(e)})},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}},r.Provider.__=r.Consumer.contextType=r),n=t.Provider;var i,o,r;return t.Provider=function(){var e=this,t=!this.getChildContext,i=n.apply(this,arguments);if(t){var o=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&o.forEach(function(e){e.context=t.value,e.forceUpdate()})},this.sub=function(e){o.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){o.splice(o.indexOf(e),1),t&&t.call(e)}}}return i},t},createPortal:function(e,t){var n=y(pe,{__v:e,i:t});return n.containerInfo=t,n},flushSync:function(e){e();var t=s.debounceRendering,n=[];s.debounceRendering=function(e){n.push(e)},U(y(Te,{}),document.createElement("div"));for(;n.length;)n.shift()();s.debounceRendering=t},unmountComponentAtNode:function(e){U(null,e)}};var Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return y("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(T);var Ce=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function Ee(e){e.parentNode&&e.parentNode.removeChild(e)}function De(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if($e(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function $e(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function Re(e,t){for(var n=e instanceof HTMLElement?[e]:e,i=[],o=0;o<n.length;o+=1)for(var r=n[o].querySelectorAll(t),s=0;s<r.length;s+=1)i.push(r[s]);return i}var Me=/(top|left|right|bottom|width|height)$/i;function Ae(e,t){for(var n in t)Pe(e,n,t[n])}function Pe(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Me.test(t)?e.style[t]=n+"px":e.style[t]=n}function Le(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}function Ie(e){return e.getRootNode?e.getRootNode():document}var je=0;function Oe(){return"fc-dom-"+(je+=1)}function Ne(e){e.preventDefault()}function ze(e,t,n,i){var o=function(e,t){return function(n){var i=De(n.target,e);i&&t.call(i,n,i)}}(n,i);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var He=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ue(e,t){var n=function(i){t(i),He.forEach(function(t){e.removeEventListener(t,n)})};He.forEach(function(t){e.addEventListener(t,n)})}function Fe(e){return i({onClick:e},qe(e))}function qe(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var We=0;function Be(){return String(We+=1)}function Ve(){document.body.classList.add("fc-not-allowed")}function Qe(){document.body.classList.remove("fc-not-allowed")}function Ge(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",Ne)}function Ye(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",Ne)}function Ke(e){e.addEventListener("contextmenu",Ne)}function Ze(e){e.removeEventListener("contextmenu",Ne)}function Xe(e){var t,n,i=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)"string"==typeof(n=o[t])?i.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&i.push({func:n});return i}function Je(e,t,n){var i,o;for(i=0;i<n.length;i+=1)if(o=et(e,t,n[i]))return o;return 0}function et(e,t,n){return n.func?n.func(e,t):tt(e[n.field],t[n.field])*(n.order||1)}function tt(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function nt(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function it(e,t,n){return"function"==typeof e?e.apply(void 0,t):"string"==typeof e?t.reduce(function(e,t,n){return e.replace("$"+n,t||"")},e):n}function ot(e,t){return e-t}function rt(e){return e%1==0}function st(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var at=["sun","mon","tue","wed","thu","fri","sat"];function lt(e,t){var n=xt(e);return n[2]+=7*t,_t(n)}function ut(e,t){var n=xt(e);return n[2]+=t,_t(n)}function ct(e,t){var n=xt(e);return n[6]+=t,_t(n)}function dt(e,t){return pt(e,t)/7}function pt(e,t){return(t.valueOf()-e.valueOf())/864e5}function ht(e,t){var n=gt(e),i=gt(t);return{years:0,months:0,days:Math.round(pt(n,i)),milliseconds:t.valueOf()-i.valueOf()-(e.valueOf()-n.valueOf())}}function ft(e,t){var n=mt(e,t);return null!==n&&n%7==0?n/7:null}function mt(e,t){return kt(e)===kt(t)?Math.round(pt(e,t)):null}function gt(e){return _t([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function vt(e,t,n,i){var o=_t([t,0,1+yt(t,n,i)]),r=gt(e),s=Math.round(pt(o,r));return Math.floor(s/7)+1}function yt(e,t,n){var i=7+t-n;return-((7+_t([e,0,i]).getUTCDay()-t)%7)+i-1}function bt(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function wt(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function xt(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function _t(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function St(e){return!isNaN(e.valueOf())}function kt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Tt(e,t,n,i){return{instanceId:Be(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==i?null:i}}var Ct=Object.prototype.hasOwnProperty;function Et(e,t){var n={};if(t)for(var i in t){for(var o=[],r=e.length-1;r>=0;r-=1){var s=e[r][i];if("object"==typeof s&&s)o.unshift(s);else if(void 0!==s){n[i]=s;break}}o.length&&(n[i]=Et(o))}for(r=e.length-1;r>=0;r-=1){var a=e[r];for(var l in a)l in n||(n[l]=a[l])}return n}function Dt(e,t){var n={};for(var i in e)t(e[i],i)&&(n[i]=e[i]);return n}function $t(e,t){var n={};for(var i in e)n[i]=t(e[i],i);return n}function Rt(e){for(var t={},n=0,i=e;n<i.length;n++){t[i[n]]=!0}return t}function Mt(e){var t=[];for(var n in e)t.push(e[n]);return t}function At(e,t){if(e===t)return!0;for(var n in e)if(Ct.call(e,n)&&!(n in t))return!1;for(var n in t)if(Ct.call(t,n)&&e[n]!==t[n])return!1;return!0}function Pt(e,t){var n=[];for(var i in e)Ct.call(e,i)&&(i in t||n.push(i));for(var i in t)Ct.call(t,i)&&e[i]!==t[i]&&n.push(i);return n}function Lt(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var i in t)if(!(i in e&&It(e[i],t[i],n[i])))return!1;for(var i in e)if(!(i in t))return!1;return!0}function It(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function jt(e,t,n,i){void 0===t&&(t=0),void 0===i&&(i=1);var o=[];null==n&&(n=Object.keys(e).length);for(var r=t;r<n;r+=i){var s=e[r];void 0!==s&&o.push(s)}return o}function Ot(e,t,n){var i=n.dateEnv,o=n.pluginHooks,r=n.options,s=e.defs,a=e.instances;for(var l in a=Dt(a,function(e){return!s[e.defId].recurringDef}),s){var u=s[l];if(u.recurringDef){var c=u.recurringDef.duration;c||(c=u.allDay?r.defaultAllDayEventDuration:r.defaultTimedEventDuration);for(var d=0,p=Nt(u,c,t,i,o.recurringTypes);d<p.length;d++){var h=p[d],f=Tt(l,{start:h,end:i.add(h,c)});a[f.instanceId]=f}}}return{defs:s,instances:a}}function Nt(e,t,n,i,o){var r=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:i.subtract(n.start,t),end:n.end},i);return e.allDay&&(r=r.map(gt)),r}var zt=["years","months","days","milliseconds"],Ht=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Ut(e,t){var n;return"string"==typeof e?function(e){var t=Ht.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?Ft(e):"number"==typeof e?Ft(((n={})[t||"milliseconds"]=e,n)):null}function Ft(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function qt(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Wt(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Bt(e){return Vt(e)/864e5}function Vt(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Qt(e,t){for(var n=null,i=0;i<zt.length;i+=1){var o=zt[i];if(t[o]){var r=e[o]/t[o];if(!rt(r)||null!==n&&n!==r)return null;n=r}else if(e[o])return null}return n}function Gt(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Yt(e,t,n){void 0===n&&(n=!1);var i=e.toISOString();return i=i.replace(".000",""),n&&(i=i.replace("T00:00:00Z","")),i.length>10&&(null==t?i=i.replace("Z",""):0!==t&&(i=i.replace("Z",Xt(t,!0)))),i}function Kt(e){return e.toISOString().replace(/T.*$/,"")}function Zt(e){return nt(e.getUTCHours(),2)+":"+nt(e.getUTCMinutes(),2)+":"+nt(e.getUTCSeconds(),2)}function Xt(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",i=Math.abs(e),o=Math.floor(i/60),r=Math.round(i%60);return t?n+nt(o,2)+":"+nt(r,2):"GMT"+n+o+(r?":"+nt(r,2):"")}function Jt(e,t,n){if(e===t)return!0;var i,o=e.length;if(o!==t.length)return!1;for(i=0;i<o;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}function en(e,t,n){var i,o;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];if(i){if(!Jt(i,r)){n&&n(o);var a=e.apply(this,r);t&&t(a,o)||(o=a)}}else o=e.apply(this,r);return i=r,o}}function tn(e,t,n){var i,o,r=this;return function(s){if(i){if(!At(i,s)){n&&n(o);var a=e.call(r,s);t&&t(a,o)||(o=a)}}else o=e.call(r,s);return i=s,o}}var nn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},on={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},rn=/\s*([ap])\.?m\.?/i,sn=/,/g,an=/\s+/g,ln=/\u200e/g,un=/UTC|GMT/,cn=function(){function e(e){var t={},n={},i=0;for(var o in e)o in nn?(n[o]=e[o],i=Math.max(nn[o],i)):(t[o]=e[o],o in on&&(i=Math.max(on[o],i)));this.standardDateProps=t,this.extendedSettings=n,this.severity=i,this.buildFormattingFunc=en(dn)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,i){var o=this.standardDateProps,r=this.extendedSettings,s=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(kt(e)!==kt(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);var a=s;!(a>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(a=1);var l=this.format(e,n),u=this.format(t,n);if(l===u)return l;var c=dn(function(e,t){var n={};for(var i in e)i in on&&!(on[i]<=t)||(n[i]=e[i]);return n}(o,a),r,n),d=c(e),p=c(t),h=function(e,t,n,i){var o=0;for(;o<e.length;){var r=e.indexOf(t,o);if(-1===r)break;var s=e.substr(0,r);o=r+t.length;for(var a=e.substr(o),l=0;l<n.length;){var u=n.indexOf(i,l);if(-1===u)break;var c=n.substr(0,u);l=u+i.length;var d=n.substr(l);if(s===c&&a===d)return{before:s,after:a}}}return null}(l,d,u,p),f=r.separator||i||n.defaultSeparator||"";return h?h.before+d+f+p+h.after:l+f+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function dn(e,t,n){var o=Object.keys(e).length;return 1===o&&"short"===e.timeZoneName?function(e){return Xt(e.timeZoneOffset)}:0===o&&t.week?function(e){return function(e,t,n,i,o){var r=[];"long"===o?r.push(n):"short"!==o&&"narrow"!==o||r.push(t);"long"!==o&&"short"!==o||r.push(" ");r.push(i.simpleNumberFormat.format(e)),"rtl"===i.options.direction&&r.reverse();return r.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:function(e,t,n){e=i({},e),t=i({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var o,r=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var s=i({},e);delete s.minute,o=new Intl.DateTimeFormat(n.locale.codes,s)}return function(i){var s=i.marker,a=(o&&!s.getUTCMinutes()?o:r).format(s);return function(e,t,n,i,o){e=e.replace(ln,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(un,function(){return n=!0,t}),n||(e+=" "+t);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":Xt(t.timeZoneOffset)));i.omitCommas&&(e=e.replace(sn,"").trim());i.omitZeroMinute&&(e=e.replace(":00",""));!1===i.meridiem?e=e.replace(rn,"").trim():"narrow"===i.meridiem?e=e.replace(rn,function(e,t){return t.toLocaleLowerCase()}):"short"===i.meridiem?e=e.replace(rn,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===i.meridiem&&(e=e.replace(rn,function(e){return e.toLocaleLowerCase()}));return e=(e=e.replace(an," ")).trim()}(a,i,e,t,n)}}(e,t,n)}function pn(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function hn(e,t,n,i){var o=pn(e,n.calendarSystem);return{date:o,start:o,end:t?pn(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:i||n.defaultSeparator}}var fn=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,hn(e,null,t,n))},e.prototype.formatRange=function(e,t,n,i){return n.cmdFormatter(this.cmdStr,hn(e,t,n,i))},e}(),mn=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(hn(e,null,t,n))},e.prototype.formatRange=function(e,t,n,i){return this.func(hn(e,t,n,i))},e}();function gn(e){return"object"==typeof e&&e?new cn(e):"string"==typeof e?new fn(e):"function"==typeof e?new mn(e):null}var vn={navLinkDayClick:Cn,navLinkWeekClick:Cn,duration:Ut,bootstrapFontAwesome:Cn,buttonIcons:Cn,customButtons:Cn,defaultAllDayEventDuration:Ut,defaultTimedEventDuration:Ut,nextDayThreshold:Ut,scrollTime:Ut,scrollTimeReset:Boolean,slotMinTime:Ut,slotMaxTime:Ut,dayPopoverFormat:gn,slotDuration:Ut,snapDuration:Ut,headerToolbar:Cn,footerToolbar:Cn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:gn,dayHeaderClassNames:Cn,dayHeaderContent:Cn,dayHeaderDidMount:Cn,dayHeaderWillUnmount:Cn,dayCellClassNames:Cn,dayCellContent:Cn,dayCellDidMount:Cn,dayCellWillUnmount:Cn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Cn,weekNumbers:Boolean,weekNumberClassNames:Cn,weekNumberContent:Cn,weekNumberDidMount:Cn,weekNumberWillUnmount:Cn,editable:Boolean,viewClassNames:Cn,viewDidMount:Cn,viewWillUnmount:Cn,nowIndicator:Boolean,nowIndicatorClassNames:Cn,nowIndicatorContent:Cn,nowIndicatorDidMount:Cn,nowIndicatorWillUnmount:Cn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Cn,locale:Cn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Cn,eventOrder:Xe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Cn,contentHeight:Cn,direction:String,weekNumberFormat:gn,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Cn,initialDate:Cn,now:Cn,eventDataTransform:Cn,stickyHeaderDates:Cn,stickyFooterScrollbar:Cn,viewHeight:Cn,defaultAllDay:Boolean,eventSourceFailure:Cn,eventSourceSuccess:Cn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Cn,eventConstraint:Cn,eventAllow:Cn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Cn,eventContent:Cn,eventDidMount:Cn,eventWillUnmount:Cn,selectConstraint:Cn,selectOverlap:Cn,selectAllow:Cn,droppable:Boolean,unselectCancel:String,slotLabelFormat:Cn,slotLaneClassNames:Cn,slotLaneContent:Cn,slotLaneDidMount:Cn,slotLaneWillUnmount:Cn,slotLabelClassNames:Cn,slotLabelContent:Cn,slotLabelDidMount:Cn,slotLabelWillUnmount:Cn,dayMaxEvents:Cn,dayMaxEventRows:Cn,dayMinWidth:Number,slotLabelInterval:Ut,allDayText:String,allDayClassNames:Cn,allDayContent:Cn,allDayDidMount:Cn,allDayWillUnmount:Cn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:gn,rerenderDelay:Number,moreLinkText:Cn,moreLinkHint:Cn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Cn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ut,hiddenDays:Cn,monthMode:Boolean,fixedWeekCount:Boolean,validRange:Cn,visibleRange:Cn,titleFormat:Cn,eventInteractive:Boolean,noEventsText:String,viewHint:Cn,navLinkHint:Cn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Cn,moreLinkClassNames:Cn,moreLinkContent:Cn,moreLinkDidMount:Cn,moreLinkWillUnmount:Cn},yn={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},bn={datesSet:Cn,eventsSet:Cn,eventAdd:Cn,eventChange:Cn,eventRemove:Cn,windowResize:Cn,eventClick:Cn,eventMouseEnter:Cn,eventMouseLeave:Cn,select:Cn,unselect:Cn,loading:Cn,_unmount:Cn,_beforeprint:Cn,_afterprint:Cn,_noEventDrop:Cn,_noEventResize:Cn,_resize:Cn,_scrollRequest:Cn},wn={buttonText:Cn,buttonHints:Cn,views:Cn,plugins:Cn,initialEvents:Cn,events:Cn,eventSources:Cn},xn={headerToolbar:_n,footerToolbar:_n,buttonText:_n,buttonHints:_n,buttonIcons:_n,dateIncrement:_n};function _n(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?At(e,t):e===t}var Sn={type:String,component:Cn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Cn,usesMinMaxTime:Boolean,classNames:Cn,content:Cn,didMount:Cn,willUnmount:Cn};function kn(e){return Et(e,xn)}function Tn(e,t){var n={},i={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(i[o]=e[o]);return{refined:n,extra:i}}function Cn(e){return e}function En(e,t,n,i){for(var o={defs:{},instances:{}},r=Wn(n),s=0,a=e;s<a.length;s++){var l=Fn(a[s],t,n,i,r);l&&Dn(l,o)}return o}function Dn(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function $n(e,t){var n=e.instances[t];if(n){var i=e.defs[n.defId],o=An(e,function(e){return t=i,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n});return o.defs[i.defId]=i,o.instances[n.instanceId]=n,o}return{defs:{},instances:{}}}function Rn(){return{defs:{},instances:{}}}function Mn(e,t){return{defs:i(i({},e.defs),t.defs),instances:i(i({},e.instances),t.instances)}}function An(e,t){var n=Dt(e.defs,t),i=Dt(e.instances,function(e){return n[e.defId]});return{defs:n,instances:i}}function Pn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var Ln={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Cn,overlap:Cn,allow:Cn,className:Pn,classNames:Pn,color:String,backgroundColor:String,borderColor:String,textColor:String},In={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function jn(e,t){var n=function(e,t){return Array.isArray(e)?En(e,null,t,!0):"object"==typeof e&&e?En([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function On(e){return e.reduce(Nn,In)}function Nn(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var zn={id:String,groupId:String,title:String,url:String,interactive:Boolean},Hn={start:Cn,end:Cn,date:Cn,allDay:Boolean},Un=i(i(i({},zn),Hn),{extendedProps:Cn});function Fn(e,t,n,i,o){void 0===o&&(o=Wn(n));var r=qn(e,n,o),s=r.refined,a=r.extra,l=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),u=function(e,t,n,i){for(var o=0;o<i.length;o+=1){var r=i[o].parse(e,n);if(r){var s=e.allDay;return null==s&&null==(s=t)&&null==(s=r.allDayGuess)&&(s=!1),{allDay:s,duration:r.duration,typeData:r.typeData,typeId:o}}}return null}(s,l,n.dateEnv,n.pluginHooks.recurringTypes);if(u)return(c=Bn(s,a,t?t.sourceId:"",u.allDay,Boolean(u.duration),n)).recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:c,instance:null};var c,d=function(e,t,n,i){var o,r,s=e.allDay,a=null,l=!1,u=null,c=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(c))a=o.marker;else if(!i)return null;null!=e.end&&(r=n.dateEnv.createMarkerMeta(e.end));null==s&&(s=null!=t?t:(!o||o.isTimeUnspecified)&&(!r||r.isTimeUnspecified));s&&a&&(a=gt(a));r&&(u=r.marker,s&&(u=gt(u)),a&&u<=a&&(u=null));u?l=!0:i||(l=n.options.forceEventDuration||!1,u=n.dateEnv.add(a,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:s,hasEnd:l,range:{start:a,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:r?r.forcedTzo:null}}(s,l,n,i);return d?{def:c=Bn(s,a,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:Tt(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function qn(e,t,n){return void 0===n&&(n=Wn(t)),Tn(e,n)}function Wn(e){return i(i(i({},Ln),Un),e.pluginHooks.eventRefiners)}function Bn(e,t,n,o,r,s){for(var a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:Be(),sourceId:n,allDay:o,hasEnd:r,interactive:e.interactive,ui:jn(e,s),extendedProps:i(i({},e.extendedProps||{}),t)},l=0,u=s.pluginHooks.eventDefMemberAdders;l<u.length;l++){var c=u[l];i(a,c(e))}return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Vn(e){var t=Math.floor(pt(e.start,e.end))||1,n=gt(e.start);return{start:n,end:ut(n,t)}}function Qn(e,t){void 0===t&&(t=Ut(0));var n=null,i=null;if(e.end){i=gt(e.end);var o=e.end.valueOf()-i.valueOf();o&&o>=Vt(t)&&(i=ut(i,1))}return e.start&&(n=gt(e.start),i&&i<=n&&(i=ut(n,1))),{start:n,end:i}}function Gn(e){var t=Qn(e);return pt(t.start,t.end)>1}function Yn(e,t,n,i){return"year"===i?Ut(n.diffWholeYears(e,t),"year"):"month"===i?Ut(n.diffWholeMonths(e,t),"month"):ht(e,t)}function Kn(e,t){var n,i,o=[],r=t.start;for(e.sort(Zn),n=0;n<e.length;n+=1)(i=e[n]).start>r&&o.push({start:r,end:i.start}),i.end>r&&(r=i.end);return r<t.end&&o.push({start:r,end:t.end}),o}function Zn(e,t){return e.start.valueOf()-t.start.valueOf()}function Xn(e,t){var n=e.start,i=e.end,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(i=null===i?t.end:new Date(Math.min(i.valueOf(),t.end.valueOf()))),(null===n||null===i||n<i)&&(o={start:n,end:i}),o}function Jn(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function ei(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function ti(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function ni(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function ii(e,t,n,i){var o={},r={},s={},a=[],l=[],u=ai(e.defs,t);for(var c in e.defs){"inverse-background"===(h=u[(w=e.defs[c]).defId]).display&&(w.groupId?(o[w.groupId]=[],s[w.groupId]||(s[w.groupId]=w)):r[c]=[])}for(var d in e.instances){var p=e.instances[d],h=u[(w=e.defs[p.defId]).defId],f=p.range,m=!w.allDay&&i?Qn(f,i):f,g=Xn(m,n);g&&("inverse-background"===h.display?w.groupId?o[w.groupId].push(g):r[p.defId].push(g):"none"!==h.display&&("background"===h.display?a:l).push({def:w,ui:h,instance:p,range:g,isStart:m.start&&m.start.valueOf()===g.start.valueOf(),isEnd:m.end&&m.end.valueOf()===g.end.valueOf()}))}for(var v in o)for(var y=0,b=Kn(o[v],n);y<b.length;y++){var w,x=b[y];h=u[(w=s[v]).defId];a.push({def:w,ui:h,instance:null,range:x,isStart:!1,isEnd:!1})}for(var c in r)for(var _=0,S=Kn(r[c],n);_<S.length;_++){x=S[_];a.push({def:e.defs[c],ui:u[c],instance:null,range:x,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function oi(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function ri(e,t){e.fcSeg=t}function si(e){return e.fcSeg||e.parentNode.fcSeg||null}function ai(e,t){return $t(e,function(e){return li(e,t)})}function li(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),On(n)}function ui(e,t){var n=e.map(ci);return n.sort(function(e,n){return Je(e,n,t)}),n.map(function(e){return e._seg})}function ci(e){var t=e.eventRange,n=t.def,o=t.instance?t.instance.range:t.range,r=o.start?o.start.valueOf():0,s=o.end?o.end.valueOf():0;return i(i(i({},n.extendedProps),n),{id:n.publicId,start:r,end:s,duration:s-r,allDay:Number(n.allDay),_seg:e})}function di(e,t){for(var n=t.pluginHooks.isDraggableTransformers,i=e.eventRange,o=i.def,r=i.ui,s=r.startEditable,a=0,l=n;a<l.length;a++){s=(0,l[a])(s,o,r,t)}return s}function pi(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function hi(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function fi(e,t,n,i,o,r,s){var a=n.dateEnv,l=n.options,u=l.displayEventTime,c=l.displayEventEnd,d=e.eventRange.def,p=e.eventRange.instance;null==u&&(u=!1!==i),null==c&&(c=!1!==o);var h=p.range.start,f=p.range.end,m=r||e.start||e.eventRange.range.start,g=s||e.end||e.eventRange.range.end,v=gt(h).valueOf()===gt(m).valueOf(),y=gt(ct(f,-1)).valueOf()===gt(ct(g,-1)).valueOf();return u&&!d.allDay&&(v||y)?(m=v?h:m,g=y?f:g,c&&d.hasEnd?a.formatRange(m,g,t,{forcedStartTzo:r?null:p.forcedStartTzo,forcedEndTzo:s?null:p.forcedEndTzo}):a.format(m,t,{forcedTzo:r?null:p.forcedStartTzo})):""}function mi(e,t,n){var i=e.eventRange.range;return{isPast:i.end<(n||t.start),isFuture:i.start>=(n||t.end),isToday:t&&ni(t,i.start)}}function gi(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function vi(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function yi(e,t){var n=e.eventRange,i=n.def,o=n.instance,r=i.url;if(r)return{href:r};var s=t.emitter,a=t.options.eventInteractive;return null==a&&null==(a=i.interactive)&&(a=Boolean(s.hasHandlers("eventClick"))),a?qe(function(e){s.trigger("eventClick",{el:e.target,event:new ji(t,i,o),jsEvent:e,view:t.viewApi})}):{}}var bi={start:Cn,end:Cn,allDay:Boolean};function wi(e,t,n){var o=function(e,t){var n=Tn(e,bi),o=n.refined,r=n.extra,s=o.start?t.createMarkerMeta(o.start):null,a=o.end?t.createMarkerMeta(o.end):null,l=o.allDay;null==l&&(l=s&&s.isTimeUnspecified&&(!a||a.isTimeUnspecified));return i({range:{start:s?s.marker:null,end:a?a.marker:null},allDay:l},r)}(e,t),r=o.range;if(!r.start)return null;if(!r.end){if(null==n)return null;r.end=t.add(r.start,n)}return o}function xi(e,t){return Jn(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)}function _i(e,t,n){return i(i({},Si(e,t,n)),{timeZone:t.timeZone})}function Si(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function ki(e,t,n){n.emitter.trigger("select",i(i({},Ti(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Ti(e,t){for(var n,o,r={},s=0,a=t.pluginHooks.dateSpanTransforms;s<a.length;s++){var l=a[s];i(r,l(e,t))}return i(r,(n=e,o=t.dateEnv,i(i({},Si(n.range,o,n.allDay)),{allDay:n.allDay}))),r}function Ci(e,t,n){var i=n.dateEnv,o=n.options,r=t;return e?(r=gt(r),r=i.add(r,o.defaultAllDayEventDuration)):r=i.add(r,o.defaultTimedEventDuration),r}function Ei(e,t,n,i){var o=ai(e.defs,t),r={defs:{},instances:{}};for(var s in e.defs){var a=e.defs[s];r.defs[s]=Di(a,o[s],n,i)}for(var l in e.instances){var u=e.instances[l];a=r.defs[u.defId];r.instances[l]=$i(u,a,o[u.defId],n,i)}return r}function Di(e,t,n,o){var r=n.standardProps||{};null==r.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(r.hasEnd=!0);var s=i(i(i({},e),r),{ui:i(i({},e.ui),r.ui)});n.extendedProps&&(s.extendedProps=i(i({},s.extendedProps),n.extendedProps));for(var a=0,l=o.pluginHooks.eventDefMutationAppliers;a<l.length;a++){(0,l[a])(s,n,o)}return!s.hasEnd&&o.options.forceEventDuration&&(s.hasEnd=!0),s}function $i(e,t,n,o,r){var s=r.dateEnv,a=o.standardProps&&!0===o.standardProps.allDay,l=o.standardProps&&!1===o.standardProps.hasEnd,u=i({},e);return a&&(u.range=Vn(u.range)),o.datesDelta&&n.startEditable&&(u.range={start:s.add(u.range.start,o.datesDelta),end:s.add(u.range.end,o.datesDelta)}),o.startDelta&&n.durationEditable&&(u.range={start:s.add(u.range.start,o.startDelta),end:u.range.end}),o.endDelta&&n.durationEditable&&(u.range={start:u.range.start,end:s.add(u.range.end,o.endDelta)}),l&&(u.range={start:u.range.start,end:Ci(t.allDay,u.range.start,r)}),t.allDay&&(u.range={start:gt(u.range.start),end:gt(u.range.end)}),u.range.end<u.range.start&&(u.range.end=Ci(t.allDay,u.range.start,r)),u}var Ri=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),Mi={id:String,defaultAllDay:Boolean,url:String,format:String,events:Cn,eventDataTransform:Cn,success:Cn,failure:Cn};function Ai(e,t,n){var i;if(void 0===n&&(n=Pi(t)),"string"==typeof e?i={url:e}:"function"==typeof e||Array.isArray(e)?i={events:e}:"object"==typeof e&&e&&(i=e),i){var o=Tn(i,n),r=o.refined,s=o.extra,a=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,i=n.length-1;i>=0;i-=1){var o=n[i],r=o.parseMeta(e);if(r)return{sourceDefId:i,meta:r}}return null}(r,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:Be(),sourceDefId:a.sourceDefId,meta:a.meta,ui:jn(r,t),extendedProps:s}}return null}function Pi(e){return i(i(i({},Ln),Mi),e.pluginHooks.eventSourceRefiners)}function Li(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var Ii=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(t=this.currentDataManager.emitter).trigger.apply(t,o([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering(function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var i=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:i.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,i=this.getCurrentData(),o=i.viewSpecs,r=i.toolbarConfig,s=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]);for(var a in o)s.push(a);for(t=0;t<s.length;t+=1)if((n=o[s[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Li(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=Ut(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),gn(t))},e.prototype.formatRange=function(e,t,n){var i=this.getCurrentData().dateEnv;return i.formatRange(i.createMarker(e),i.createMarker(t),gn(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var i=this.getCurrentData(),o=wi(n,i.dateEnv,Ut({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),ki(o,null,i))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof ji){var n=e._def,i=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Dn({def:n,instance:i})}),this.triggerEventAdd(e)),e}var o,r=this.getCurrentData();if(t instanceof Ce)o=t.internalEventSource;else if("boolean"==typeof t)t&&(o=Mt(r.eventSources)[0]);else if(null!=t){var s=this.getEventSourceById(t);if(!s)return console.warn('Could not find an event source with ID "'+t+'"'),null;o=s.internalEventSource}var a=Fn(e,o,r,!1);if(a){var l=new ji(r,a.def,a.def.recurringDef?null:a.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Dn(a)}),this.triggerEventAdd(l),l}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:Oi(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,i=n.defs,o=n.instances;for(var r in e=String(e),i){var s=i[r];if(s.publicId===e){if(s.recurringDef)return new ji(t,s,null);for(var a in o){var l=o[a];if(l.defId===s.defId)return new ji(t,s,l)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return Ni(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var i in t)n.push(new Ce(e,t[i]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var i in e=String(e),n)if(n[i].publicId===e)return new Ce(t,n[i]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof Ce)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=Ai(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Ce(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=Ut(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),ji=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,i;if(e in Hn)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=zn[e](t),this.mutate({standardProps:{publicId:t}});else if(e in zn)t=zn[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in Ln){var o=Ln[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:((i={})[e]=t,o=i),this.mutate({standardProps:{ui:o}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,i=n.createMarker(e);if(i&&this._instance){var o=Yn(this._instance.range.start,i,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,i=this._context.dateEnv;if((null==e||(n=i.createMarker(e)))&&this._instance)if(n){var o=Yn(this._instance.range.end,n,i,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var i,o,r,s=this._context.dateEnv,a={allDay:n.allDay},l=s.createMarker(e);if(l&&((null==t||(i=s.createMarker(t)))&&this._instance)){var u=this._instance.range;!0===n.allDay&&(u=Vn(u));var c=Yn(u.start,l,s,n.granularity);if(i){var d=Yn(u.end,i,s,n.granularity);r=d,(o=c).years===r.years&&o.months===r.months&&o.days===r.days&&o.milliseconds===r.milliseconds?this.mutate({datesDelta:c,standardProps:a}):this.mutate({startDelta:c,endDelta:d,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:c,standardProps:a})}},e.prototype.moveStart=function(e){var t=Ut(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Ut(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Ut(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},i=t.maintainDuration;null==i&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=i),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,i=gn(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var i=this._def,o=this._context,r=o.getCurrentData().eventStore,s=$n(r,n.instanceId);s=Ei(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,o);var a=new e(o,i,n);this._def=s.defs[i.defId],this._instance=s.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:s}),o.emitter.trigger("eventChange",{oldEvent:a,event:this,relatedEvents:Ni(s,o,n),revert:function(){o.dispatch({type:"RESET_EVENTS",eventStore:r})}})}},e.prototype.remove=function(){var e=this._context,t=Oi(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new Ce(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,o=this.startStr,r=this.endStr,s={};return t.title&&(s.title=t.title),o&&(s.start=o),r&&(s.end=r),t.publicId&&(s.id=t.publicId),t.groupId&&(s.groupId=t.groupId),t.url&&(s.url=t.url),n.display&&"auto"!==n.display&&(s.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?s.color=n.backgroundColor:(n.backgroundColor&&(s.backgroundColor=n.backgroundColor),n.borderColor&&(s.borderColor=n.borderColor)),n.textColor&&(s.textColor=n.textColor),n.classNames.length&&(s.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?i(s,t.extendedProps):s.extendedProps=t.extendedProps),s},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function Oi(e){var t,n,i=e._def,o=e._instance;return{defs:(t={},t[i.defId]=i,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function Ni(e,t,n){var i=e.defs,o=e.instances,r=[],s=n?n.instanceId:"";for(var a in o){var l=o[a],u=i[l.defId];l.instanceId!==s&&r.push(new ji(t,u,l))}return r}var zi={};var Hi,Ui=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return _t(e)},e.prototype.markerToArray=function(e){return xt(e)},e}();Hi=Ui,zi["gregory"]=Hi;var Fi=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function qi(e){var t=Fi.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(St(n)){var i=null;return t[13]&&(i=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:i}}}return null}var Wi=function(){function e(e){var t,n=this.timeZone=e.timeZone,i="local"!==n&&"UTC"!==n;e.namedTimeZoneImpl&&i&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!i||this.namedTimeZoneImpl),this.calendarSystem=(t=e.calendarSystem,new zi[t]),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):_t(bt(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=_t(e)),null!==t&&St(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=qi(e);if(null===t)return null;var n=t.marker,i=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):i=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:i}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return kt(e)===kt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return kt(e)===kt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=ft(e,t))?{unit:"week",value:n}:null!==(n=mt(e,t))?{unit:"day",value:n}:rt(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t))?{unit:"hour",value:n}:rt(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t))?{unit:"minute",value:n}:rt(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t))?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}},e.prototype.countDurationsBetween=function(e,t,n){var i;return n.years&&null!==(i=this.diffWholeYears(e,t))?i/(Bt(n)/365):n.months&&null!==(i=this.diffWholeMonths(e,t))?i/function(e){return Bt(e)/30}(n):n.days&&null!==(i=mt(e,t))?i/Bt(n):(t.valueOf()-e.valueOf())/Vt(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?gt(e):"hour"===t?function(e){return _t([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return _t([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return _t([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var i=e.getUTCFullYear(),o=vt(e,i,t,n);if(o<1)return vt(e,i-1,t,n);var r=vt(e,i+1,t,n);return r>=1?Math.min(o,r):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,i){return void 0===i&&(i={}),i.isEndExclusive&&(t=ct(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=i.forcedStartTzo?i.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=i.forcedEndTzo?i.forcedEndTzo:this.offsetForMarker(t)},this,i.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Yt(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?_t(bt(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?_t(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-wt(xt(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(xt(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?wt(xt(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(xt(e))*60):new Date(e.valueOf()-(t||0))},e}(),Bi=[],Vi={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Qi=i(i({},Vi),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function Gi(e){for(var t=e.length>0?e[0].code:"en",n=Bi.concat(e),i={en:Qi},o=0,r=n;o<r.length;o++){var s=r[o];i[s.code]=s}return{map:i,defaultCode:t}}function Yi(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),i=function(e,t){for(var n=0;n<e.length;n+=1)for(var i=e[n].toLocaleLowerCase().split("-"),o=i.length;o>0;o-=1){var r=i.slice(0,o).join("-");if(t[r])return t[r]}return null}(n,t)||Qi;return Ki(e,n,i)}(e,t):Ki(e.code,[e.code],e)}function Ki(e,t,n){var i=Et([Vi,n],["buttonText"]);delete i.code;var o=i.week;return delete i.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function Zi(e){var t=Yi(e.locale||"en",Gi([]).map);return new Wi(i(i({timeZone:yn.timeZone,calendarSystem:"gregory"},e),{locale:t}))}var Xi,Ji={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function eo(e,t){return En(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter(function(e){return e.daysOfWeek}):"object"==typeof e&&e?[e]:[];return t=t.map(function(e){return i(i({},Ji),e)})}(e),null,t)}function to(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function no(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function io(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function oo(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function ro(e,t){return{left:e.left-t.left,top:e.top-t.top}}function so(){return null==Xi&&(Xi=function(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Xi}var ao={defs:{},instances:{}},lo=function(){function e(){this.getKeysForEventDefs=en(this._getKeysForEventDefs),this.splitDateSelection=en(this._splitDateSpan),this.splitEventStore=en(this._splitEventStore),this.splitIndividualUi=en(this._splitIndividualUi),this.splitEventDrag=en(this._splitInteraction),this.splitEventResize=en(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),i=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),r=this.splitIndividualUi(e.eventUiBases,i),s=this.splitEventStore(e.eventStore,i),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=$t(n,function(e,n){return t.eventUiBuilders[n]||en(uo)}),n){var d=n[c],p=s[c]||ao,h=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:o[c]||null,eventStore:p,eventUiBases:h(e.eventUiBases[""],d.ui,r[c]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,i=this.getKeysForDateSpan(e);n<i.length;n++){t[i[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return $t(e.defs,function(e){return t.getKeysForEventDef(e)})},e.prototype._splitEventStore=function(e,t){var n=e.defs,i=e.instances,o={};for(var r in n)for(var s=0,a=t[r];s<a.length;s++){o[p=a[s]]||(o[p]={defs:{},instances:{}}),o[p].defs[r]=n[r]}for(var l in i)for(var u=i[l],c=0,d=t[u.defId];c<d.length;c++){var p;o[p=d[c]]&&(o[p].instances[l]=u)}return o},e.prototype._splitIndividualUi=function(e,t){var n={};for(var i in e)if(i)for(var o=0,r=t[i];o<r.length;o++){var s=r[o];n[s]||(n[s]={}),n[s][i]=e[i]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,i),r=function(i){t[i]||(t[i]={affectedEvents:n[i]||ao,mutatedEvents:o[i]||ao,isEvent:e.isEvent})};for(var s in n)r(s);for(var s in o)r(s)}return t},e}();function uo(e,t,n){var o=[];e&&o.push(e),t&&o.push(t);var r={"":On(o)};return n&&i(r,n),r}function co(e,t,n,i){return{dow:e.getUTCDay(),isDisabled:Boolean(i&&!ni(i.activeRange,e)),isOther:Boolean(i&&!ni(i.currentRange,e)),isToday:Boolean(t&&ni(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function po(e,t){var n=["fc-day","fc-day-"+at[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}var ho=gn({year:"numeric",month:"long",day:"numeric"}),fo=gn({week:"long"});function mo(e,t,n,o){void 0===n&&(n="day"),void 0===o&&(o=!0);var r=e.dateEnv,s=e.options,a=e.calendarApi,l=r.format(t,"week"===n?fo:ho);if(s.navLinks){var u=r.toDate(t),c=function(e){var i="day"===n?s.navLinkDayClick:"week"===n?s.navLinkWeekClick:null;"function"==typeof i?i.call(a,r.toDate(t),e):("string"==typeof i&&(n=i),a.zoomTo(t,n))};return i({title:it(s.navLinkHint,[l,u],l),"data-navlink":""},o?Fe(c):{onClick:c})}return{"aria-label":l}}var go,vo=null;function yo(){return null===vo&&(vo=function(){var e=document.createElement("div");Ae(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Ee(e),t}()),vo}function bo(){return go||(go=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=wo(e);return document.body.removeChild(e),t}()),go}function wo(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function xo(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),i=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,r=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=wo(e),l=a.y-i-o,u={borderLeft:i,borderRight:o,borderTop:r,borderBottom:s,scrollbarBottom:a.x-r-s,scrollbarLeft:0,scrollbarRight:0};return yo()&&"rtl"===n.direction?u.scrollbarLeft=l:u.scrollbarRight=l,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function _o(e,t,n){void 0===t&&(t=!1);var i=n?e.getBoundingClientRect():So(e),o=xo(e,t),r={left:i.left+o.borderLeft+o.scrollbarLeft,right:i.right-o.borderRight-o.scrollbarRight,top:i.top+o.borderTop,bottom:i.bottom-o.borderBottom-o.scrollbarBottom};return t&&(r.left+=o.paddingLeft,r.right-=o.paddingRight,r.top+=o.paddingTop,r.bottom-=o.paddingBottom),r}function So(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function ko(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function To(e,t,n){var i=!1,o=function(){i||(i=!0,t.apply(this,arguments))},r=function(){i||(i=!0,n&&n.apply(this,arguments))},s=e(o,r);s&&"function"==typeof s.then&&s.then(o,r)}var Co=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter(function(e){return e!==n})):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=this.handlers[e]||[],o=this.options&&this.options[e],r=0,s=[].concat(o||[],i);r<s.length;r++){s[r].apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();var Eo=function(){function e(e,t,n,i){this.els=t;var o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),i&&this.buildElVerticals(o.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],i=0,o=this.els;i<o.length;i++){var r=o[i].getBoundingClientRect();t.push(r.left-e),n.push(r.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],i=0,o=this.els;i<o.length;i++){var r=o[i].getBoundingClientRect();t.push(r.top-e),n.push(r.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,i=this.rights,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<i[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,i=this.bottoms,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<i[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),Do=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),$o=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return n(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(Do),Ro=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(Do),Mo=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=i({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();if(Mo.prototype.classes={},Mo.prototype.iconClasses={},Mo.prototype.baseIconClass="",Mo.prototype.iconOverridePrefix="","undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var Ao=FullCalendarVDom.Component,Po=FullCalendarVDom.createElement,Lo=FullCalendarVDom.render,Io=FullCalendarVDom.createRef,jo=FullCalendarVDom.Fragment,Oo=FullCalendarVDom.createContext,No=FullCalendarVDom.createPortal,zo=FullCalendarVDom.flushSync,Ho=FullCalendarVDom.unmountComponentAtNode,Uo=function(){function e(e,t,n,o){var r=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=o,this.handleScrollRequest=function(e){r.queuedRequest=i({},r.queuedRequest||{},e),r.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),Fo=Oo({});function qo(e,t,n,i,o,r,s,a,l,u,c,d,p){return{dateEnv:o,options:n,pluginHooks:s,emitter:u,dispatch:a,getCurrentData:l,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:i,theme:r,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new Uo(e,u,Ut(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:p}}var Wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Pt(e,this.props),Pt(t,this.state)),!Lt(this.props,e,this.propEquality)||!Lt(this.state,t,this.stateEquality)},t.prototype.safeSetState=function(e){Lt(this.state,i(i({},this.state),e),this.stateEquality)||this.setState(e)},t.addPropsEquality=Vo,t.addStateEquality=Qo,t.contextType=Fo,t}(Ao);Wo.prototype.propEquality={},Wo.prototype.stateEquality={};var Bo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.contextType=Fo,t}(Wo);function Vo(e){var t=Object.create(this.prototype.propEquality);i(t,e),this.prototype.propEquality=t}function Qo(e){var t=Object.create(this.prototype.stateEquality);i(t,e),this.prototype.stateEquality=t}function Go(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Yo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=Be(),t}return n(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,i){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!De(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!(De(e,".fc-event:not(.fc-bg-event)")||De(e,".fc-more-link")||De(e,"a[data-navlink]")||De(e,".fc-popover"))},t}(Bo);function Ko(e){return{id:Be(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}var Zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(Mo);function Xo(e,t,n,o){if(t[e])return t[e];var r=function(e,t,n,o){var r=n[e],s=o[e],a=function(e){return r&&null!==r[e]?r[e]:s&&null!==s[e]?s[e]:null},l=a("component"),u=a("superType"),c=null;if(u){if(u===e)throw new Error("Can't have a custom view type that references itself");c=Xo(u,t,n,o)}!l&&c&&(l=c.component);if(!l)return null;return{type:e,component:l,defaults:i(i({},c?c.defaults:{}),r?r.rawOptions:{}),overrides:i(i({},c?c.overrides:{}),s?s.rawOptions:{})}}(e,t,n,o);return r&&(t[e]=r),r}Zo.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Zo.prototype.baseIconClass="fc-icon",Zo.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Zo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Zo.prototype.iconOverrideOption="buttonIcons",Zo.prototype.iconOverrideCustomButtonOption="icon",Zo.prototype.iconOverridePrefix="fc-icon-";var Jo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Io(),t.handleRootEl=function(e){Go(t.rootElRef,e),t.props.elRef&&Go(t.props.elRef,e)},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return Po(ir,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},function(i){return Po(tr,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},function(e,o){return t.children(i,rr(t.classNames,n),e,o)})})},t}(Bo),er=Oo(0);function tr(e){return Po(er.Consumer,null,function(t){return Po(nr,i({renderId:t},e))})}var nr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=Io(),t}return n(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=i({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=sr(e.content,e.hookProps);return void 0===t&&(t=sr(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",i=null;if(e)for(var o in t)if(void 0!==e[o]){n=o,i=t[o];break}return{contentKey:n,buildLifecycleFuncs:i}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(Bo),ir=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&Go(t.props.elRef,e)},t}return n(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(i(i({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(i(i({},this.props.hookProps),{el:this.rootEl}))},t}(Bo);function or(){var e,t,n=[];return function(i,o){return t&&At(t,o)&&i===e||(e=i,t=o,n=rr(i,o)),n}}function rr(e,t){return"function"==typeof e&&(e=e(t)),Pn(e)}function sr(e,t){return"function"==typeof e?e(t,Po):e}var ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=or(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,i={view:t.viewApi},o=this.normalizeClassNames(n.viewClassNames,i);return Po(ir,{hookProps:i,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(o))})},t}(Bo);function lr(e){return $t(e,ur)}function ur(e){var t,n="function"==typeof e?{component:e}:e,o=n.component;return n.content&&(t=n,o=function(e){return Po(Fo.Consumer,null,function(n){return Po(ar,{viewSpec:n.viewSpec},function(o,r){var s=i(i({},e),{nextDayThreshold:n.options.nextDayThreshold});return Po(Jo,{hookProps:s,classNames:t.classNames,content:t.content,didMount:t.didMount,willUnmount:t.willUnmount,elRef:o},function(e,t,n,i){return Po("div",{className:r.concat(t).join(" "),ref:e},i)})})})}),{superType:n.type,component:o,rawOptions:n}}function cr(e,t,n,o){var r=lr(e),s=lr(t.views);return $t(function(e,t){var n,i={};for(n in e)Xo(n,i,e,t);for(n in t)Xo(n,i,e,t);return i}(r,s),function(e){return function(e,t,n,o,r){var s=e.overrides.duration||e.defaults.duration||o.duration||n.duration,a=null,l="",u="",c={};if(s&&(a=function(e){var t=JSON.stringify(e),n=dr[t];void 0===n&&(n=Ut(e),dr[t]=n);return n}(s))){var d=Gt(a);l=d.unit,1===d.value&&(u=l,c=t[l]?t[l].rawOptions:{})}var p=function(t){var n=t.buttonText||{},i=e.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[e.type]?n[e.type]:null!=n[u]?n[u]:null},h=function(t){var n=t.buttonHints||{},i=e.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[e.type]?n[e.type]:null!=n[u]?n[u]:null};return{type:e.type,component:e.component,duration:a,durationUnit:l,singleUnit:u,optionDefaults:e.defaults,optionOverrides:i(i({},c),e.overrides),buttonTextOverride:p(o)||p(n)||e.overrides.buttonText,buttonTextDefault:p(r)||e.defaults.buttonText||p(yn)||e.type,buttonTitleOverride:h(o)||h(n)||e.overrides.buttonHint,buttonTitleDefault:h(r)||e.defaults.buttonHint||h(yn)}}(e,s,t,n,o)})}var dr={};var pr=function(){function e(e){this.props=e,this.nowDate=Li(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var i=this.props.dateEnv,o=i.subtract(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)},e.prototype.buildNext=function(e,t,n){var i=this.props.dateEnv,o=i.add(i.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var i,o,r,s,a,l,u,c,d=this.props;return i=this.buildValidRange(),i=this.trimHiddenDays(i),n&&(u=e,e=null!=(c=i).start&&u<c.start?c.start:null!=c.end&&u>=c.end?new Date(c.end.valueOf()-1):u),o=this.buildCurrentRangeInfo(e,t),r=/^(year|month|week|day)$/.test(o.unit),s=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,r),a=s=this.trimHiddenDays(s),d.showNonCurrentDates||(a=Xn(a,o.range)),a=Xn(a=this.adjustActiveRange(a),i),l=ei(o.range,i),{validRange:i,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:r,activeRange:a,renderRange:s,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,i=this.props,o=null,r=null,s=null;return i.duration?(o=i.duration,r=i.durationUnit,s=this.buildRangeFromDuration(e,t,o,r)):(n=this.props.dayCount)?(r="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?r=i.dateEnv.greatestWholeUnit(s.start,s.end).unit:(r=Gt(o=this.getFallbackDuration()).unit,s=this.buildRangeFromDuration(e,t,o,r)),{duration:o,unit:r,range:s}},e.prototype.getFallbackDuration=function(){return Ut({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,i=t.usesMinMaxTime,o=t.slotMinTime,r=t.slotMaxTime,s=e.start,a=e.end;return i&&(Bt(o)<0&&(s=gt(s),s=n.add(s,o)),Bt(r)>1&&(a=ut(a=gt(a),-1),a=n.add(a,r))),{start:s,end:a}},e.prototype.buildRangeFromDuration=function(e,t,n,i){var o,r,s,a=this.props,l=a.dateEnv,u=a.dateAlignment;if(!u){var c=this.props.dateIncrement;u=c&&Vt(c)<Vt(n)?Gt(c).unit:i}function d(){o=l.startOf(e,u),r=l.add(o,n),s={start:o,end:r}}return Bt(n)<=1&&this.isHiddenDay(o)&&(o=gt(o=this.skipHiddenDays(o,t))),d(),this.trimHiddenDays(s)||(e=this.skipHiddenDays(e,t),d()),s},e.prototype.buildRangeFromDayCount=function(e,t,n){var i,o=this.props,r=o.dateEnv,s=o.dateAlignment,a=0,l=e;s&&(l=r.startOf(l,s)),l=gt(l),i=l=this.skipHiddenDays(l,t);do{i=ut(i,1),this.isHiddenDay(i)||(a+=1)}while(a<n);return{start:l,end:i}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,i="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(i);return!o||null!=o.start&&null!=o.end?o:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?Ut(1,t):e||Ut({days:1}))},e.prototype.refineRange=function(e){if(e){var t=(n=e,i=this.props.dateEnv,o=null,r=null,n.start&&(o=i.createMarker(n.start)),n.end&&(r=i.createMarker(n.end)),o||r?o&&r&&r<o?null:{start:o,end:r}:null);return t&&(t=Qn(t)),t}var n,i,o,r;return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],i=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(i+=1);if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=ut(e,t);return e},e}();function hr(e,t,n){var i=t?t.activeRange:null;return gr({},function(e,t){var n=Pi(t),i=[].concat(e.eventSources||[]),o=[];e.initialEvents&&i.unshift(e.initialEvents);e.events&&i.unshift(e.events);for(var r=0,s=i;r<s.length;r++){var a=s[r],l=Ai(a,t,n);l&&o.push(l)}return o}(e,n),i,n)}function fr(e,t,n,o){var r,s,a=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return gr(e,t.sources,a,o);case"REMOVE_EVENT_SOURCE":return r=e,s=t.sourceId,Dt(r,function(e){return e.sourceId!==s});case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?vr(e,a,o):e;case"FETCH_EVENT_SOURCES":return yr(e,t.sourceIds?Rt(t.sourceIds):wr(e,o),a,t.isRefetch||!1,o);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,o){var r,s=e[t];if(s&&n===s.latestFetchId)return i(i({},e),((r={})[t]=i(i({},s),{isFetching:!1,fetchRange:o}),r));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function mr(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function gr(e,t,n,o){for(var r={},s=0,a=t;s<a.length;s++){var l=a[s];r[l.sourceId]=l}return n&&(r=vr(r,n,o)),i(i({},e),r)}function vr(e,t,n){return yr(e,Dt(e,function(e){return function(e,t,n){if(!xr(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)}),t,!1,n)}function yr(e,t,n,i,o){var r={};for(var s in e){var a=e[s];t[s]?r[s]=br(a,n,i,o):r[s]=a}return r}function br(e,t,n,o){var r=o.options,s=o.calendarApi,a=o.pluginHooks.eventSourceDefs[e.sourceDefId],l=Be();return a.fetch({eventSource:e,range:t,isRefetch:n,context:o},function(n){var i=n.rawEvents;r.eventSourceSuccess&&(i=r.eventSourceSuccess.call(s,i,n.xhr)||i),e.success&&(i=e.success.call(s,i,n.xhr)||i),o.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:i})},function(n){console.warn(n.message,n),r.eventSourceFailure&&r.eventSourceFailure.call(s,n),e.failure&&e.failure(n),o.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:n})}),i(i({},e),{isFetching:!0,latestFetchId:l})}function wr(e,t){return Dt(e,function(e){return xr(e,t)})}function xr(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function _r(e,t,n,i,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,i,o,r){if(t&&n===t.latestFetchId){var s=En(function(e,t,n){var i=n.options.eventDataTransform,o=t?t.eventDataTransform:null;o&&(e=Sr(e,o));i&&(e=Sr(e,i));return e}(o,t,r),t,r);return i&&(s=Ot(s,i,r)),Mn(kr(e,t.sourceId),s)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,i){n&&(t=Ot(t,n,i));return Mn(e,t)}(e,t.eventStore,i?i.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Mn(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?Ot(e,i.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,i=e.instances,o={},r={};for(var s in n)t.defs[s]||(o[s]=n[s]);for(var a in i)!t.instances[a]&&o[i[a].defId]&&(r[a]=i[a]);return{defs:o,instances:r}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return kr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return An(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Sr(e,t){var n;if(t){n=[];for(var i=0,o=e;i<o.length;i++){var r=o[i],s=t(r);s?n.push(s):null==s&&n.push(r)}}else n=e;return n}function kr(e,t){return An(e,function(e){return e.sourceId!==t})}function Tr(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Cr(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function Er(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Dr(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function $r(e,t,n,i,o){return{header:e.headerToolbar?Rr(e.headerToolbar,e,t,n,i,o):null,footer:e.footerToolbar?Rr(e.footerToolbar,e,t,n,i,o):null}}function Rr(e,t,n,i,o,r){var s={},a=[],l=!1;for(var u in e){var c=Mr(e[u],t,n,i,o,r);s[u]=c.widgets,a.push.apply(a,c.viewsWithButtons),l=l||c.hasTitle}return{sectionWidgets:s,viewsWithButtons:a,hasTitle:l}}function Mr(e,t,n,i,o,r){var s="rtl"===t.direction,a=t.customButtons||{},l=n.buttonText||{},u=t.buttonText||{},c=n.buttonHints||{},d=t.buttonHints||{},p=e?e.split(" "):[],h=[],f=!1;return{widgets:p.map(function(e){return e.split(",").map(function(e){if("title"===e)return f=!0,{buttonName:e};var n,p,m,g,v,y;if(n=a[e])m=function(e){n.click&&n.click.call(e.target,e,e.target)},(g=i.getCustomButtonIconClass(n))||(g=i.getIconClass(e,s))||(v=n.text),y=n.hint||n.text;else if(p=o[e]){h.push(e),m=function(){r.changeView(e)},(v=p.buttonTextOverride)||(g=i.getIconClass(e,s))||(v=p.buttonTextDefault);var b=p.buttonTextOverride||p.buttonTextDefault;y=it(p.buttonTitleOverride||p.buttonTitleDefault||t.viewHint,[b,e],b)}else if(r[e])if(m=function(){r[e]()},(v=l[e])||(g=i.getIconClass(e,s))||(v=u[e]),"prevYear"===e||"nextYear"===e){var w="prevYear"===e?"prev":"next";y=it(c[w]||d[w],[u.year||"year","year"],u[e])}else y=function(t){return it(c[e]||d[e],[u[t]||t,t],u[e])};return{buttonName:e,buttonClick:m,buttonIcon:g,buttonText:v,buttonHint:y}})}),viewsWithButtons:h,hasTitle:f}}function Ar(e,t,n,i,o){var r=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Pr(t)}(t,n):r=Pr(n);var s=new XMLHttpRequest;s.open(e,t,!0),"GET"!==e&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){if(s.status>=200&&s.status<400){var e=!1,t=void 0;try{t=JSON.parse(s.responseText),e=!0}catch(e){}e?i(t,s):o("Failure parsing JSON",s)}else o("Request failed",s)},s.onerror=function(){o("Request failed",s)},s.send(r)}function Pr(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function Lr(e,t){for(var n=Mt(t.getCurrentData().eventSources),i=[],o=0,r=e;o<r.length;o++){for(var s=r[o],a=!1,l=0;l<n.length;l+=1)if(n[l]._raw===s){n.splice(l,1),a=!0;break}a||i.push(s)}for(var u=0,c=n;u<c.length;u++){var d=c[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var p=0,h=i;p<h.length;p++){var f=h[p];t.calendarApi.addEventSource(f)}}var Ir=[Ko({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),Ko({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var i=e.context.dateEnv;To(e.eventSource.meta.bind(null,_i(e.range,i)),function(e){t({rawEvents:e})},n)}}]}),Ko({eventSourceRefiners:{method:String,extraParams:Cn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var o=e.eventSource.meta,r=function(e,t,n){var o,r,s,a,l=n.dateEnv,u=n.options,c={};null==(o=e.startParam)&&(o=u.startParam);null==(r=e.endParam)&&(r=u.endParam);null==(s=e.timeZoneParam)&&(s=u.timeZoneParam);a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};i(c,a),c[o]=l.formatIso(t.start),c[r]=l.formatIso(t.end),"local"!==l.timeZone&&(c[s]=l.timeZone);return c}(o,e.range,e.context);Ar(o.method,o.url,r,function(e,n){t({rawEvents:e,xhr:n})},function(e,t){n({message:e,xhr:t})})}}]}),Ko({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},i=void 0;return e.duration&&(i=e.duration),!i&&e.startTime&&e.endTime&&(o=e.endTime,r=e.startTime,i={years:o.years-r.years,months:o.months-r.months,days:o.days-r.days,milliseconds:o.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:n}}var o,r;return null},expand:function(e,t,n){var i=Xn(t,{start:e.startRecur,end:e.endRecur});return i?function(e,t,n,i){var o=e?Rt(e):null,r=gt(n.start),s=n.end,a=[];for(;r<s;){var l=void 0;o&&!o[r.getUTCDay()]||(l=t?i.add(r,t):r,a.push(l)),r=ut(r,1)}return a}(e.daysOfWeek,e.startTime,i,n):[]}}],eventRefiners:{daysOfWeek:Cn,startTime:Ut,endTime:Ut,duration:Ut,startRecur:Cn,endRecur:Cn}}),Ko({optionChangeHandlers:{events:function(e,t){Lr([e],t)},eventSources:Lr}}),Ko({isLoadingFuncs:[function(e){return mr(e.eventSources)}],contentTypeHandlers:{html:function(){var e=null,t="";return{render:function(n,i){n===e&&i===t||(n.innerHTML=i);e=n,t=i},destroy:function(){e.innerHTML="",e=null,t=""}}},domNodes:function(){var e=null,t=[];function n(){t.forEach(Ee),t=[],e=null}return{render:function(i,o){var r=Array.prototype.slice.call(o);if(i!==e||!Jt(t,r)){for(var s=0,a=r;s<a.length;s++){var l=a[s];i.appendChild(l)}n()}e=i,t=r},destroy:n}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",i(i({},_i(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Ni(e,t))}}})];var jr=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),Or=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new jr(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function Nr(e,t,n){var i;return i=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(i.start,i.end,gn(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=mt(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var zr=function(){function e(e){var t,n,o,r=this;this.computeOptionsData=en(this._computeOptionsData),this.computeCurrentViewData=en(this._computeCurrentViewData),this.organizeRawLocales=en(Gi),this.buildLocale=en(Yi),this.buildPluginHooks=(n=[],o=[],function(e,r){return t&&Jt(e,n)&&Jt(r,o)||(t=function(e,t){var n={},o={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function r(e){for(var t=0,s=e;t<s.length;t++){var a=s[t];n[a.id]||(n[a.id]=!0,r(a.deps),u=a,o={reducers:(l=o).reducers.concat(u.reducers),isLoadingFuncs:l.isLoadingFuncs.concat(u.isLoadingFuncs),contextInit:l.contextInit.concat(u.contextInit),eventRefiners:i(i({},l.eventRefiners),u.eventRefiners),eventDefMemberAdders:l.eventDefMemberAdders.concat(u.eventDefMemberAdders),eventSourceRefiners:i(i({},l.eventSourceRefiners),u.eventSourceRefiners),isDraggableTransformers:l.isDraggableTransformers.concat(u.isDraggableTransformers),eventDragMutationMassagers:l.eventDragMutationMassagers.concat(u.eventDragMutationMassagers),eventDefMutationAppliers:l.eventDefMutationAppliers.concat(u.eventDefMutationAppliers),dateSelectionTransformers:l.dateSelectionTransformers.concat(u.dateSelectionTransformers),datePointTransforms:l.datePointTransforms.concat(u.datePointTransforms),dateSpanTransforms:l.dateSpanTransforms.concat(u.dateSpanTransforms),views:i(i({},l.views),u.views),viewPropsTransformers:l.viewPropsTransformers.concat(u.viewPropsTransformers),isPropsValid:u.isPropsValid||l.isPropsValid,externalDefTransforms:l.externalDefTransforms.concat(u.externalDefTransforms),viewContainerAppends:l.viewContainerAppends.concat(u.viewContainerAppends),eventDropTransformers:l.eventDropTransformers.concat(u.eventDropTransformers),calendarInteractions:l.calendarInteractions.concat(u.calendarInteractions),componentInteractions:l.componentInteractions.concat(u.componentInteractions),themeClasses:i(i({},l.themeClasses),u.themeClasses),eventSourceDefs:l.eventSourceDefs.concat(u.eventSourceDefs),cmdFormatter:u.cmdFormatter||l.cmdFormatter,recurringTypes:l.recurringTypes.concat(u.recurringTypes),namedTimeZonedImpl:u.namedTimeZonedImpl||l.namedTimeZonedImpl,initialView:l.initialView||u.initialView,elementDraggingImpl:l.elementDraggingImpl||u.elementDraggingImpl,optionChangeHandlers:i(i({},l.optionChangeHandlers),u.optionChangeHandlers),scrollGridImpl:u.scrollGridImpl||l.scrollGridImpl,contentTypeHandlers:i(i({},l.contentTypeHandlers),u.contentTypeHandlers),listenerRefiners:i(i({},l.listenerRefiners),u.listenerRefiners),optionRefiners:i(i({},l.optionRefiners),u.optionRefiners),propSetHandlers:i(i({},l.propSetHandlers),u.propSetHandlers)})}var l,u}return e&&r(e),r(t),o}(e,r)),n=e,o=r,t}),this.buildDateEnv=en(Hr),this.buildTheme=en(Ur),this.parseToolbars=en($r),this.buildViewSpecs=en(cr),this.buildDateProfileGenerator=tn(Fr),this.buildViewApi=en(qr),this.buildViewUiProps=tn(Vr),this.buildEventUiBySource=en(Wr,At),this.buildEventUiBases=en(Br),this.parseContextBusinessHours=tn(Gr),this.buildTitle=en(Nr),this.emitter=new Co,this.actionRunner=new Or(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return r.data},this.dispatch=function(e){r.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var s={},a=this.computeOptionsData(e.optionOverrides,s,e.calendarApi),l=a.calendarOptions.initialView||a.pluginHooks.initialView,u=this.computeCurrentViewData(l,a,e.optionOverrides,s);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(u.options);var c,d,p,h=(c=a.calendarOptions,d=a.dateEnv,null!=(p=c.initialDate)?d.createMarker(p):Li(c.now,d)),f=u.dateProfileGenerator.build(h);ni(f.activeRange,h)||(h=f.currentRange.start);for(var m={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},g=0,v=a.pluginHooks.contextInit;g<v.length;g++){(0,v[g])(m)}for(var y=hr(a.calendarOptions,f,m),b={dynamicOptionOverrides:s,currentViewType:l,currentDate:h,dateProfile:f,businessHours:this.parseContextBusinessHours(m),eventSources:y,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(m).selectionConfig},w=i(i({},m),b),x=0,_=a.pluginHooks.reducers;x<_.length;x++){var S=_[x];i(b,S(null,null,w))}Qr(b,m)&&this.emitter.trigger("loading",!0),this.state=b,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?i(i({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this.props,n=this.state,o=this.emitter,r=function(e,t){var n;switch(t.type){case"SET_OPTION":return i(i({},e),((n={})[t.optionName]=t.rawOptionValue,n));default:return e}}(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,r,t.calendarApi),a=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(n.currentViewType,e),l=this.computeCurrentViewData(a,s,t.optionOverrides,r);t.calendarApi.currentDataManager=this,o.setThisContext(t.calendarApi),o.setOptions(l.options);var u={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},c=n.currentDate,d=n.dateProfile;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(d=l.dateProfileGenerator.build(c)),d=function(e,t,n,i){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return i.build(t.dateMarker||n);case"CHANGE_DATE":return i.build(t.dateMarker);case"PREV":if((o=i.buildPrev(e,n)).isValid)return o;break;case"NEXT":if((o=i.buildNext(e,n)).isValid)return o}return e}(d,e,c=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(c,e),l.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&ni(d.currentRange,c)||(c=d.currentRange.start);for(var p=fr(n.eventSources,e,d,u),h=_r(n.eventStore,e,p,d,u),f=mr(p)&&!l.options.progressiveEventRendering&&n.renderableEventStore||h,m=this.buildViewUiProps(u),g=m.eventUiSingleBase,v=m.selectionConfig,y=this.buildEventUiBySource(p),b={dynamicOptionOverrides:r,currentViewType:a,currentDate:c,dateProfile:d,eventSources:p,eventStore:h,renderableEventStore:f,selectionConfig:v,eventUiBases:this.buildEventUiBases(f.defs,g,y),businessHours:this.parseContextBusinessHours(u),dateSelection:Tr(n.dateSelection,e),eventSelection:Cr(n.eventSelection,e),eventDrag:Er(n.eventDrag,e),eventResize:Dr(n.eventResize,e)},w=i(i({},u),b),x=0,_=s.pluginHooks.reducers;x<_.length;x++){var S=_[x];i(b,S(n,e,w))}var k=Qr(n,u),T=Qr(b,u);!k&&T?o.trigger("loading",!0):k&&!T&&o.trigger("loading",!1),this.state=b,t.onAction&&t.onAction(e)},e.prototype.updateData=function(){var e,t,n,o,r,s,a,l,u,c=this.props,d=this.state,p=this.data,h=this.computeOptionsData(c.optionOverrides,d.dynamicOptionOverrides,c.calendarApi),f=this.computeCurrentViewData(d.currentViewType,h,c.optionOverrides,d.dynamicOptionOverrides),m=this.data=i(i(i({viewTitle:this.buildTitle(d.dateProfile,f.options,h.dateEnv),calendarApi:c.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},h),f),d),g=h.pluginHooks.optionChangeHandlers,v=p&&p.calendarOptions,y=h.calendarOptions;if(v&&v!==y)for(var b in v.timeZone!==y.timeZone&&(d.eventSources=m.eventSources=(s=m.eventSources,a=d.dateProfile,l=m,u=a?a.activeRange:null,yr(s,wr(s,l),u,!0,l)),d.eventStore=m.eventStore=(e=m.eventStore,t=p.dateEnv,n=m.dateEnv,o=e.defs,r=$t(e.instances,function(e){var r=o[e.defId];return r.allDay||r.recurringDef?e:i(i({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}),{defs:o,instances:r})),g)v[b]!==y[b]&&g[b](y[b],m);c.onData&&c.onData(m)},e.prototype._computeOptionsData=function(e,t,n){var i=this.processRawCalendarOptions(e,t),o=i.refinedOptions,r=i.pluginHooks,s=i.localeDefaults,a=i.availableLocaleData;Yr(i.extra);var l=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,r,a,o.defaultRangeSeparator),u=this.buildViewSpecs(r.views,e,t,s),c=this.buildTheme(o,r);return{calendarOptions:o,pluginHooks:r,dateEnv:l,viewSpecs:u,theme:c,toolbarConfig:this.parseToolbars(o,e,c,u,n),localeDefaults:s,availableRawLocales:a.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=kn([yn,e,t]),o=n.locales,r=n.locale,s=this.organizeRawLocales(o),a=s.map,l=this.buildLocale(r||s.defaultCode,a).options,u=this.buildPluginHooks(e.plugins||[],Ir),c=this.currentCalendarOptionsRefiners=i(i(i(i(i({},vn),bn),wn),u.listenerRefiners),u.optionRefiners),d={},p=kn([yn,l,e,t]),h={},f=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,g=!1;for(var v in p)"plugins"!==v&&(p[v]===f[v]||xn[v]&&v in f&&xn[v](f[v],p[v])?h[v]=m[v]:c[v]?(h[v]=c[v](p[v]),g=!0):d[v]=f[v]);return g&&(this.currentCalendarOptionsInput=p,this.currentCalendarOptionsRefined=h),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:u,availableLocaleData:s,localeDefaults:l,extra:d}},e.prototype._computeCurrentViewData=function(e,t,n,i){var o=t.viewSpecs[e];if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var r=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,i),s=r.refinedOptions;return Yr(r.extra),{viewSpec:o,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,monthMode:s.monthMode,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,o,r){var s=kn([yn,e.optionDefaults,n,o,e.optionOverrides,r]),a=i(i(i(i(i(i({},vn),bn),wn),Sn),t.listenerRefiners),t.optionRefiners),l={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,p={};for(var h in s)s[h]===u[h]||xn[h]&&xn[h](s[h],u[h])?l[h]=c[h]:(s[h]===this.currentCalendarOptionsInput[h]||xn[h]&&xn[h](s[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(l[h]=this.currentCalendarOptionsRefined[h]):a[h]?l[h]=a[h](s[h]):p[h]=s[h],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}},e}();function Hr(e,t,n,i,o,r,s,a){var l=Yi(t||s.defaultCode,s.map);return new Wi({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:r.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:i,weekText:o,cmdFormatter:r.cmdFormatter,defaultSeparator:a})}function Ur(e,t){return new(t.themeClasses[e.themeSystem]||Zo)(e)}function Fr(e){return new(e.dateProfileGeneratorClass||pr)(e)}function qr(e,t,n){return new Ri(e,t,n)}function Wr(e){return $t(e,function(e){return e.ui})}function Br(e,t,n){var i={"":t};for(var o in e){var r=e[o];r.sourceId&&n[r.sourceId]&&(i[o]=n[r.sourceId])}return i}function Vr(e){var t=e.options;return{eventUiSingleBase:jn({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:jn({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Qr(e,t){for(var n=0,i=t.pluginHooks.isLoadingFuncs;n<i.length;n++){if((0,i[n])(e))return!0}return!1}function Gr(e){return eo(e.options.businessHours,e)}function Yr(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var Kr=function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new zr({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return n(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t}(Ao);var Zr=function(){return function(e){this.timeZoneName=e}}(),Xr=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];this.insertEntry(o,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var i=0,r=[],s=e.span,a=t.span;return s.start<a.start&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.start,end:a.start}},r)),s.end>a.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:s.end}},r)),i?(n.push.apply(n,o([{index:e.index,thickness:e.thickness,span:is(a,s)}],r)),i):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,i=this.levelCoords;-1===t.lateral?(os(i,t.level,t.levelCoord),os(n,t.level,[e])):os(n[t.level],t.lateral,e),this.stackCnts[es(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this.levelCoords,n=this.entriesByLevel,i=this.strictOrder,o=this.stackCnts,r=t.length,s=0,a=-1,l=-1,u=null,c=0,d=0;d<r;d+=1){var p=t[d];if(!i&&p>=s+e.thickness)break;for(var h=n[d],f=void 0,m=rs(h,e.span.start,Jr),g=m[0]+m[1];(f=h[g])&&f.span.start<e.span.end;){var v=p+f.thickness;v>s&&(s=v,u=f,a=d,l=g),v===s&&(c=Math.max(c,o[es(f)]+1)),g+=1}}var y=0;if(u)for(y=a+1;y<r&&t[y]<s;)y+=1;var b=-1;return y<r&&t[y]===s&&(b=rs(n[y],e.span.end,Jr)[0]),{touchingLevel:a,touchingLateral:l,touchingEntry:u,stackCnt:c,levelCoord:s,level:y,lateral:b}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,o=[],r=0;r<n;r+=1)for(var s=e[r],a=t[r],l=0,u=s;l<u.length;l++){var c=u[l];o.push(i(i({},c),{levelCoord:a}))}return o},e}();function Jr(e){return e.span.end}function es(e){return e.index+":"+e.span.start}function ts(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var o=i[n],r=[],s={span:o.span,entries:[o]},a=0,l=t;a<l.length;a++){var u=l[a];is(u.span,s.span)?s={entries:u.entries.concat(s.entries),span:ns(u.span,s.span)}:r.push(u)}r.push(s),t=r}return t}function ns(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function is(e,t){var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return n<i?{start:n,end:i}:null}function os(e,t,n){e.splice(t,0,n)}function rs(e,t,n){var i=0,o=e.length;if(!o||t<n(e[i]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;i<o;){var r=Math.floor(i+(o-i)/2),s=n(e[r]);if(t<s)o=r;else{if(!(t>s))return[r,1];i=r+1}}return[i,0]}var ss=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function as(e){var t;return(t={})[e.component.uid]=e,t}var ls={},us=function(){function e(e,t){this.emitter=new Co}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),cs={},ds={startTime:Ut,duration:Ut,create:Boolean,sourceId:String};function ps(e){var t=Tn(e,ds),n=t.refined,i=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:i}}var hs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map(function(t){return e.renderWidgetGroup(t)});return Po.apply(void 0,o(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,i=[],r=!0,s=0,a=e;s<a.length;s++){var l=a[s],u=l.buttonName,c=l.buttonClick,d=l.buttonText,p=l.buttonIcon,h=l.buttonHint;if("title"===u)r=!1,i.push(Po("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var f=u===t.activeButton,m=!t.isTodayEnabled&&"today"===u||!t.isPrevEnabled&&"prev"===u||!t.isNextEnabled&&"next"===u,g=["fc-"+u+"-button",n.getClass("button")];f&&g.push(n.getClass("buttonActive")),i.push(Po("button",{type:"button",title:"function"==typeof h?h(t.navUnit):h,disabled:m,"aria-pressed":f,className:g.join(" "),onClick:c},d||(p?Po("span",{className:p}):"")))}}if(i.length>1){var v=r&&n.getClass("buttonGroup")||"";return Po.apply(void 0,o(["div",{className:v}],i))}return i[0]},t}(Bo),fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e,t,n=this.props,i=n.model,o=n.extraClassName,r=!1,s=i.sectionWidgets,a=s.center;return s.left?(r=!0,e=s.left):e=s.start,s.right?(r=!0,t=s.right):t=s.end,Po("div",{className:[o||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",a||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return Po(hs,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(Bo),ms=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,Go(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,i=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",r="";return n?null!==t.availableWidth?o=t.availableWidth/n:r=1/n*100+"%":o=e.height||"",Po("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:o,paddingBottom:r}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(Bo),gs=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var i=n.component,o=i.context,r=si(t);if(r&&i.isValidSegDownEl(e.target)){var s=De(e.target,".fc-event-forced-url"),a=s?s.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new ji(i.context,r.eventRange.def,r.eventRange.instance),jsEvent:e,view:o.viewApi}),a&&!e.defaultPrevented&&(window.location.href=a)}},n.destroy=ze(t.el,"click",".fc-event",n.handleSegClick),n}return n(t,e),t}(ss),vs=function(e){function t(t){var n,i,o,r,s,a=e.call(this,t)||this;return a.handleEventElRemove=function(e){e===a.currentSegEl&&a.handleSegLeave(null,a.currentSegEl)},a.handleSegEnter=function(e,t){si(t)&&(a.currentSegEl=t,a.triggerEvent("eventMouseEnter",e,t))},a.handleSegLeave=function(e,t){a.currentSegEl&&(a.currentSegEl=null,a.triggerEvent("eventMouseLeave",e,t))},a.removeHoverListeners=(n=t.el,i=".fc-event",o=a.handleSegEnter,r=a.handleSegLeave,ze(n,"mouseover",i,function(e,t){if(t!==s){s=t,o(e,t);var n=function(e){s=null,r(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}})),a}return n(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var i=this.component,o=i.context,r=si(n);t&&!i.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new ji(o,r.eventRange.def,r.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(ss),ys=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=en(qo),t.buildViewPropTransformers=en(ws),t.buildToolbarProps=en(bs),t.headerRef=Io(),t.footerRef=Io(),t.interactionsStore={},t.state={viewLabelId:Oe()},t.registerInteractiveComponent=function(e,n){var i=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,n),o=[gs,vs].concat(t.props.pluginHooks.componentInteractions).map(function(e){return new e(i)});t.interactionsStore[e.uid]=o,ls[e.uid]=i},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var i=0,o=n;i<o.length;i++){o[i].destroy()}delete t.interactionsStore[e.uid]}delete ls[e.uid]},t.resizeRunner=new jr(function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})}),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return n(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,o=t.options,r=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Li(t.options.now,t.dateEnv),t.viewTitle),s=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=o.height?s=!0:null!=o.contentHeight?a=o.contentHeight:e=Math.max(o.aspectRatio,.5);var l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return Po(Fo.Provider,{value:l},n.header&&Po(fs,i({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},r)),Po(ms,{liquid:s,height:a,aspectRatio:e,labeledById:u},this.renderView(t),this.buildAppendContent()),n.footer&&Po(fs,i({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},r)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(function(t){return new t(e)}),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var i in n)t[i]!==e[i]&&n[i](t[i],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map(function(t){return t(e)});return Po.apply(void 0,o([jo,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,o={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},r=0,s=this.buildViewPropTransformers(t.viewPropsTransformers);r<s.length;r++){var a=s[r];i(o,a.transform(o,e))}var l=n.component;return Po(l,i({},o))},t}(Wo);function bs(e,t,n,i,o,r){var s=n.build(o,void 0,!1),a=n.buildPrev(t,i,!1),l=n.buildNext(t,i,!1);return{title:r,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!ni(t.currentRange,o),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function ws(e){return e.map(function(e){return new e})}var xs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,i=n||"auto"===t.height||"auto"===t.contentHeight,o=i||null==t.height?"":t.height,r=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return so()||r.push("fc-liquid-hack"),e.children(r,o,i,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(Bo);function _s(e,t){return gn(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var Ss="fc-col-header-cell";function ks(e){return e.text}var Ts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,o=e.theme,r=e.viewApi,s=this.props,a=s.date,l=s.dateProfile,u=co(a,s.todayRange,null,l),c=[Ss].concat(po(u,o)),d=t.format(a,s.dayHeaderFormat),p=!u.isDisabled&&s.colCnt>1?mo(this.context,a):{},h=i(i(i({date:t.toDate(a),view:r},s.extraHookProps),{text:d}),u);return Po(Jo,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:ks,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},function(e,t,n,o){return Po("th",i({ref:e,role:"columnheader",className:c.concat(t).join(" "),"data-date":u.isDisabled?void 0:Kt(a),colSpan:s.colSpan},s.extraDataAttrs),Po("div",{className:"fc-scrollgrid-sync-inner"},!u.isDisabled&&Po("a",i({ref:n,className:["fc-col-header-cell-cushion",s.isSticky?"fc-sticky":""].join(" ")},p),o)))})},t}(Bo),Cs=gn({weekday:"long"}),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,o=t.theme,r=t.viewApi,s=t.options,a=ut(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},u=[Ss].concat(po(l,o),e.extraClassNames||[]),c=n.format(a,e.dayHeaderFormat),d=i(i(i(i({date:a},l),{view:r}),e.extraHookProps),{text:c});return Po(Jo,{hookProps:d,classNames:s.dayHeaderClassNames,content:s.dayHeaderContent,defaultContent:ks,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},function(t,o,r,s){return Po("th",i({ref:t,role:"columnheader",className:u.concat(o).join(" "),colSpan:e.colSpan},e.extraDataAttrs),Po("div",{className:"fc-scrollgrid-sync-inner"},Po("a",{"aria-label":n.format(a,Cs),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:r},s)))})},t}(Bo),Ds=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.initialNowDate=Li(n.options.now,n.dateEnv),i.initialNowQueriedMs=(new Date).valueOf(),i.state=i.computeTiming().currentState,i}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=ct(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(i,Ut(1,e.unit)),r=o.valueOf()-n.valueOf();return r=Math.min(864e5,r),{currentState:{nowDate:i,todayRange:$s(i)},nextState:{nowDate:o,todayRange:$s(o)},waitMs:r}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,i=t.waitMs;this.timeoutId=setTimeout(function(){e.setState(n,function(){e.setTimeout()})},i)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=Fo,t}(Ao);function $s(e){var t=gt(e);return{start:t,end:ut(t,1)}}var Rs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=en(Ms),t}return n(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,i=t.dateProfile,o=t.datesRepDistinctDays,r=t.renderIntro,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return Po(Ds,{unit:"day"},function(e,t){return Po("tr",{role:"row"},r&&r("day"),n.map(function(e){return o?Po(Ts,{key:e.toISOString(),date:e,dateProfile:i,todayRange:t,colCnt:n.length,dayHeaderFormat:s}):Po(Es,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s})}))})},t}(Bo);function Ms(e,t,n){return e||_s(t,n)}var As=function(){function e(e,t){for(var n=e.start,i=e.end,o=[],r=[],s=-1;n<i;)t.isHiddenDay(n)?o.push(s+.5):(s+=1,o.push(s),r.push(n)),n=ut(n,1);this.dates=r,this.indices=o,this.cnt=r.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(ut(e.end,-1)),i=Math.max(0,t),o=Math.min(this.cnt-1,n);return(i=Math.ceil(i))<=(o=Math.floor(o))?{firstIndex:i,lastIndex:o,isStart:t===i,isEnd:n===o}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(pt(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Ps=function(){function e(e,t){var n,i,o,r=e.dates;if(t){for(i=r[0].getUTCDay(),n=1;n<r.length&&r[n].getUTCDay()!==i;n+=1);o=Math.ceil(r.length/n)}else o=1,n=r.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],i=0;i<this.colCnt;i+=1)n.push(this.buildCell(t,i));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),i=[];if(n)for(var o=n.firstIndex,r=n.lastIndex,s=o;s<=r;){var a=Math.floor(s/t),l=Math.min((a+1)*t,r+1);i.push({row:a,firstCol:s%t,lastCol:(l-1)%t,isStart:n.isStart&&s===o,isEnd:n.isEnd&&l-1===r}),s=l}return i},e}(),Ls=function(){function e(){this.sliceBusinessHours=en(this._sliceBusinessHours),this.sliceDateSelection=en(this._sliceDateSpan),this.sliceEventStore=en(this._sliceEventStore),this.sliceEventDrag=en(this._sliceInteraction),this.sliceEventResize=en(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,i){for(var r=[],s=4;s<arguments.length;s++)r[s-4]=arguments[s];var a=e.eventUiBases,l=this.sliceEventStore.apply(this,o([e.eventStore,a,t,n],r));return{dateSelectionSegs:this.sliceDateSelection.apply(this,o([e.dateSelection,a,i],r)),businessHourSegs:this.sliceBusinessHours.apply(this,o([e.businessHours,t,n,i],r)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,o([e.eventDrag,a,t,n],r)),eventResize:this.sliceEventResize.apply(this,o([e.eventResize,a,t,n],r)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this._sliceDateSpan.apply(this,o([{range:{start:e,end:ct(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,i){for(var r=[],s=4;s<arguments.length;s++)r[s-4]=arguments[s];return e?this._sliceEventStore.apply(this,o([Ot(e,Is(t,Boolean(n)),i),{},t,n],r)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,i){for(var o=[],r=4;r<arguments.length;r++)o[r-4]=arguments[r];if(e){var s=ii(e,t,Is(n,Boolean(i)),i);return{bg:this.sliceEventRanges(s.bg,o),fg:this.sliceEventRanges(s.fg,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,i){for(var o=[],r=4;r<arguments.length;r++)o[r-4]=arguments[r];if(!e)return null;var s=ii(e.mutatedEvents,t,Is(n,Boolean(i)),i);return{segs:this.sliceEventRanges(s.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];if(!e)return[];for(var s=function(e,t,n){var i=qn({editable:!1},n),o=Bn(i.refined,i.extra,"",e.allDay,!0,n);return{def:o,ui:li(o,t),instance:Tt(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e,t,n),a=this.sliceRange.apply(this,o([e.range],i)),l=0,u=a;l<u.length;l++){u[l].eventRange=s}return a},e.prototype.sliceEventRanges=function(e,t){for(var n=[],i=0,o=e;i<o.length;i++){var r=o[i];n.push.apply(n,this.sliceEventRange(r,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:ut(n.start,1)});for(var i=this.sliceRange.apply(this,o([n],t)),r=0,s=i;r<s.length;r++){var a=s[r];a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd}return i},e}();function Is(e,t){var n=e.activeRange;return t?n:{start:ct(n.start,e.slotMinTime.milliseconds),end:ct(n.end,e.slotMaxTime.milliseconds-864e5)}}function js(e,t,n){var i=e.mutatedEvents.instances;for(var o in i)if(!ti(t.validRange,i[o].range))return!1;return Ns({eventDrag:e},n)}function Os(e,t,n){return!!ti(t.validRange,e.range)&&Ns({dateSelection:e},n)}function Ns(e,t){var n=t.getCurrentData(),o=i({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||zs)(o,t)}function zs(e,t,n,o){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,o){var r=t.getCurrentData(),s=e.eventDrag,a=s.mutatedEvents,l=a.defs,u=a.instances,c=ai(l,s.isEvent?e.eventUiBases:{"":r.selectionConfig});o&&(c=$t(c,o));var d=(m=e.eventStore,g=s.affectedEvents.instances,{defs:m.defs,instances:Dt(m.instances,function(e){return!g[e.instanceId]})}),p=d.defs,h=d.instances,f=ai(p,e.eventUiBases);var m,g;for(var v in u){var y=u[v],b=y.range,w=c[y.defId],x=l[y.defId];if(!Hs(w.constraints,b,d,e.businessHours,t))return!1;var _=t.options.eventOverlap,S="function"==typeof _?_:null;for(var k in h){var T=h[k];if(ei(b,T.range)){var C=f[T.defId].overlap;if(!1===C&&s.isEvent)return!1;if(!1===w.overlap)return!1;if(S&&!S(new ji(t,p[T.defId],T),new ji(t,x,y)))return!1}}for(var E=r.eventStore,D=0,$=w.allows;D<$.length;D++){var R=$[D],M=i(i({},n),{range:y.range,allDay:x.allDay}),A=E.defs[x.defId],P=E.instances[v],L=void 0;if(L=A?new ji(t,A,P):new ji(t,x),!R(Ti(M,t),L))return!1}}return!0}(e,t,n,o))&&!(e.dateSelection&&!function(e,t,n,o){var r=e.eventStore,s=r.defs,a=r.instances,l=e.dateSelection,u=l.range,c=t.getCurrentData().selectionConfig;o&&(c=o(c));if(!Hs(c.constraints,u,r,e.businessHours,t))return!1;var d=t.options.selectOverlap,p="function"==typeof d?d:null;for(var h in a){var f=a[h];if(ei(u,f.range)){if(!1===c.overlap)return!1;if(p&&!p(new ji(t,s[f.defId],f),null))return!1}}for(var m=0,g=c.allows;m<g.length;m++){var v=g[m],y=i(i({},n),l);if(!v(Ti(y,t),null))return!1}return!0}(e,t,n,o))}function Hs(e,t,n,i,o){for(var r=0,s=e;r<s.length;r++){if(!qs(Us(s[r],t,n,i,o),t))return!1}return!0}function Us(e,t,n,i,o){return"businessHours"===e?Fs(Ot(i,t,o)):"string"==typeof e?Fs(An(n,function(t){return t.groupId===e})):"object"==typeof e&&e?Fs(Ot(e,t,o)):[]}function Fs(e){var t=e.instances,n=[];for(var i in t)n.push(t[i].range);return n}function qs(e,t){for(var n=0,i=e;n<i.length;n++){if(ti(i[n],t))return!0}return!1}var Ws=/^(visible|hidden)$/,Bs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,Go(t.props.elRef,e)},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,i=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),Po("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(Ws.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,i=0;i<n.length;i+=1){if(n[i].getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(Ws.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,i=0;i<n.length;i+=1){if(n[i].getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return Ws.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return Ws.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(Bo),Vs=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var i=t,o=i.depths,r=i.currentMap,s=!1,a=!1;null!==e?(s=n in r,r[n]=e,o[n]=(o[n]||0)+1,a=!0):(o[n]-=1,o[n]||(delete r[n],delete t.callbackMap[n],s=!0)),t.masterCallback&&(s&&t.masterCallback(null,String(n)),a&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return jt(this.currentMap,e,t,n)},e.prototype.getAll=function(){return Mt(this.currentMap)},e}();function Qs(e){for(var t=0,n=0,i=Re(e,".fc-scrollgrid-shrink");n<i.length;n++){var o=i[n];t=Math.max(t,st(o))}return Math.ceil(t)}function Gs(e,t){return e.liquid&&t.liquid}function Ys(e,t){return null!=t.maxHeight||Gs(e,t)}function Ks(e,t,n,i){var o=n.expandRows;return"function"==typeof t.content?t.content(n):Po("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,Po(i?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function Zs(e,t){return Jt(e,t,At)}function Xs(e,t){for(var n=[],i=0,r=e;i<r.length;i++)for(var s=r[i],a=s.span||1,l=0;l<a;l+=1)n.push(Po("col",{style:{width:"shrink"===s.width?Js(t):s.width||"",minWidth:s.minWidth||""}}));return Po.apply(void 0,o(["colgroup",{}],n))}function Js(e){return null==e?4:e}function ea(e){for(var t=0,n=e;t<n.length;t++){if("shrink"===n[t].width)return!0}return!1}function ta(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function na(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function ia(e){return Po("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function oa(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function ra(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var sa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=en(function(e){return e},Zs),t.renderMicroColGroup=en(Xs),t.scrollerRefs=new Vs,t.scrollerElRefs=new Vs(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.safeSetState(i({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=this.context,i=e.sections||[],r=this.processCols(e.cols),s=this.renderMicroColGroup(r,t.shrinkWidth),a=ta(e.liquid,n);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");for(var l,u=i.length,c=0,d=[],p=[],h=[];c<u&&"header"===(l=i[c]).type;)d.push(this.renderSection(l,s,!0)),c+=1;for(;c<u&&"body"===(l=i[c]).type;)p.push(this.renderSection(l,s,!1)),c+=1;for(;c<u&&"footer"===(l=i[c]).type;)h.push(this.renderSection(l,s,!0)),c+=1;var f=!so(),m={role:"rowgroup"};return Po("table",{role:"grid",className:a.join(" "),style:{height:e.height}},Boolean(!f&&d.length)&&Po.apply(void 0,o(["thead",m],d)),Boolean(!f&&p.length)&&Po.apply(void 0,o(["tbody",m],p)),Boolean(!f&&h.length)&&Po.apply(void 0,o(["tfoot",m],h)),f&&Po.apply(void 0,o(o(o(["tbody",m],d),p),h)))},t.prototype.renderSection=function(e,t,n){return"outerContent"in e?Po(jo,{key:e.key},e.outerContent):Po("tr",{key:e.key,role:"presentation",className:na(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,i){if("outerContent"in n)return n.outerContent;var o=this.props,r=this.state,s=r.forceYScrollbars,a=r.scrollerClientWidths,l=r.scrollerClientHeights,u=Ys(o,e),c=Gs(o,e),d=o.liquid?s?"scroll":u?"auto":"hidden":"visible",p=e.key,h=Ks(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===a[p]?null:a[p],clientHeight:void 0!==l[p]?l[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},i);return Po(i?"th":"td",{ref:n.elRef,role:"presentation"},Po("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},Po(Bs,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},h)))},t.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o.key===t)return o}return null}(this.props.sections,t);n&&Go(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return ea(this.props.cols)?Qs(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=bo(),t=this.scrollerRefs,n=this.scrollerElRefs,i=!1,o={},r={};for(var s in t.currentMap){var a=t.currentMap[s];if(a&&a.needsYScrolling()){i=!0;break}}for(var l=0,u=this.props.sections;l<u.length;l++){s=u[l].key;var c=n.currentMap[s];if(c){var d=c.parentNode;o[s]=Math.floor(d.getBoundingClientRect().width-(i?e.y:0)),r[s]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:o,scrollerClientHeights:r}},t}(Bo);sa.addStateEquality({scrollerClientWidths:At,scrollerClientHeights:At});var aa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=Io(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,i=e.seg,o=i.eventRange,r=o.ui,s={event:new ji(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:r.textColor,backgroundColor:r.backgroundColor,borderColor:r.borderColor,isDraggable:!e.disableDragging&&di(i,t),isStartResizable:!e.disableResizing&&pi(i,t),isEndResizable:!e.disableResizing&&hi(i),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)},a=gi(s).concat(r.classNames);return Po(Jo,{hookProps:s,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},function(t,n,i,o){return e.children(t,a.concat(n),i,o,s)})},t.prototype.componentDidMount=function(){ri(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&ri(this.elRef.current,t)},t}(Bo),la=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,o=t.options.eventTimeFormat||e.defaultTimeFormat,r=fi(n,o,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return Po(aa,{seg:n,timeText:r,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||ua,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},function(o,r,s,a,l){return Po("a",i({className:e.extraClassNames.concat(r).join(" "),style:{borderColor:l.borderColor,backgroundColor:l.backgroundColor},ref:o},yi(n,t)),Po("div",{className:"fc-event-main",ref:s,style:{color:l.textColor}},a),l.isStartResizable&&Po("div",{className:"fc-event-resizer fc-event-resizer-start"}),l.isEndResizable&&Po("div",{className:"fc-event-resizer fc-event-resizer-end"}))})},t}(Bo);function ua(e){return Po("div",{className:"fc-event-main-frame"},e.timeText&&Po("div",{className:"fc-event-time"},e.timeText),Po("div",{className:"fc-event-title-container"},Po("div",{className:"fc-event-title fc-sticky"},e.event.title||Po(jo,null," "))))}var ca=function(e){return Po(Fo.Consumer,null,function(t){var n=t.options,i={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return Po(Jo,{hookProps:i,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)})},da=gn({day:"numeric"}),pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,i=ha({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return Po(tr,{hookProps:i,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(Bo);function ha(e){var t=e.date,n=e.dateEnv,o=co(t,e.todayRange,null,e.dateProfile);return i(i(i({date:n.toDate(t),view:e.viewApi},o),{dayNumberText:e.showDayNumber?n.format(t,da):""}),e.extraProps)}var fa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=tn(ha),t.normalizeClassNames=or(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,i=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),o=po(i,t.theme).concat(i.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,i)),r=i.isDisabled?{}:{"data-date":Kt(e.date)};return Po(ir,{hookProps:i,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},function(t){return e.children(t,o,r,i.isDisabled)})},t}(Bo);function ma(e){return Po("div",{className:"fc-"+e})}var ga=function(e){return Po(aa,{defaultContent:va,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},function(e,t,n,i,o){return Po("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},i)})};function va(e){return e.event.title&&Po("div",{className:"fc-event-title"},e.event.title)}var ya=function(e){return Po(Fo.Consumer,null,function(t){var n=t.dateEnv,i=t.options,o=e.date,r=i.weekNumberFormat||e.defaultFormat,s=n.computeWeekNumber(o),a=n.format(o,r);return Po(Jo,{hookProps:{num:s,text:a,date:o},classNames:i.weekNumberClassNames,content:i.weekNumberContent,defaultContent:ba,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount},e.children)})};function ba(e){return e.text}var wa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:Oe()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&Go(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=Le(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return n(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,o=this.props,r=this.state,s=["fc-popover",t.getClass("popover")].concat(o.extraClassNames||[]);return No(Po("div",i({id:o.id,className:s.join(" "),"aria-labelledby":r.titleId},o.extraAttrs,{ref:this.handleRootEl}),Po("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},Po("span",{className:"fc-popover-title",id:r.titleId},o.title),Po("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),Po("div",{className:"fc-popover-body "+t.getClass("popoverContent")},o.children)),o.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,i=t.alignGridTop,o=this.rootEl,r=function(e){for(var t=ko(e),n=e.getBoundingClientRect(),i=0,o=t;i<o.length;i++){var r=no(n,o[i].getBoundingClientRect());if(!r)return null;n=r}return n}(n);if(r){var s=o.getBoundingClientRect(),a=i?De(n,".fc-scrollgrid").getBoundingClientRect().top:r.top,l=e?r.right-s.width:r.left;a=Math.max(a,10),l=Math.min(l,document.documentElement.clientWidth-10-s.width),l=Math.max(l,10);var u=o.offsetParent.getBoundingClientRect();Ae(o,{top:a-u.top,left:l-u.left})}},t}(Bo),xa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return n(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,i=this.props,o=i.startDate,r=i.todayRange,s=i.dateProfile,a=n.format(o,t.dayPopoverFormat);return Po(fa,{date:o,dateProfile:s,todayRange:r,elRef:this.handleRootEl},function(e,t,n){return Po(wa,{elRef:e,id:i.id,title:a,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:i.parentEl,alignmentEl:i.alignmentEl,alignGridTop:i.alignGridTop,onClose:i.onClose},Po(pa,{date:o,dateProfile:s,todayRange:r},function(e,t){return t&&Po("div",{className:"fc-more-popover-misc",ref:e},t)}),i.children)})},t.prototype.queryHit=function(e,t,n,o){var r=this.rootEl,s=this.props;return e>=0&&e<n&&t>=0&&t<o?{dateProfile:s.dateProfile,dateSpan:i({allDay:!0,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:r,rect:{left:0,top:0,right:n,bottom:o},layer:1}:null},t}(Yo),_a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=Io(),t.state={isPopoverOpen:!1,popoverId:Oe()},t.handleClick=function(e){var n=t,i=n.props,o=n.context,r=o.options.moreLinkClick,s=ka(i).start;function a(e){var t=e.eventRange,n=t.def,i=t.instance,r=t.range;return{event:new ji(o,n,i),start:o.dateEnv.toDate(r.start),end:o.dateEnv.toDate(r.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:s,allDay:Boolean(i.allDayDate),allSegs:i.allSegs.map(a),hiddenSegs:i.hiddenSegs.map(a),jsEvent:e,view:o.viewApi})),r&&"popover"!==r?"string"==typeof r&&o.calendarApi.zoomTo(s,r):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.state;return Po(Fo.Consumer,null,function(i){var o=i.viewApi,r=i.options,s=i.calendarApi,a=r.moreLinkText,l=t.moreCnt,u=ka(t),c="function"==typeof a?a.call(s,l):"+"+l+" "+a,d=it(r.moreLinkHint,[l],c),p={num:l,shortText:"+"+l,text:c,view:o};return Po(jo,null,Boolean(t.moreCnt)&&Po(Jo,{elRef:e.linkElRef,hookProps:p,classNames:r.moreLinkClassNames,content:r.moreLinkContent,defaultContent:t.defaultContent||Sa,didMount:r.moreLinkDidMount,willUnmount:r.moreLinkWillUnmount},function(i,o,r,s){return t.children(i,["fc-more-link"].concat(o),r,s,e.handleClick,d,n.isPopoverOpen,n.isPopoverOpen?n.popoverId:"")}),n.isPopoverOpen&&Po(xa,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef.current,alignGridTop:t.alignGridTop,onClose:e.handlePopoverClose},t.popoverContent()))})},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=De(this.linkElRef.current,".fc-view-harness"))},t}(Bo);function Sa(e){return e.text}function ka(e){if(e.allDayDate)return{start:e.allDayDate,end:ut(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:Ta(n),end:(t=n,t.reduce(Ea).eventRange.range.end)}}function Ta(e){return e.reduce(Ca).eventRange.range.start}function Ca(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Ea(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var Da=function(e){function t(t,n){void 0===n&&(n={});var o=e.call(this)||this;return o.isRendering=!1,o.isRendered=!1,o.currentClassNames=[],o.customContentRenderId=0,o.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":o.renderRunner.tryDrain()}},o.handleData=function(e){o.currentData=e,o.renderRunner.request(e.calendarOptions.rerenderDelay)},o.handleRenderRequest=function(){if(o.isRendering){o.isRendered=!0;var e=o.currentData;zo(function(){Lo(Po(xs,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},function(t,n,r,s){return o.setClassNames(t),o.setHeight(n),Po(er.Provider,{value:o.customContentRenderId},Po(ys,i({isHeightAuto:r,forPrint:s},e)))}),o.el)})}else o.isRendered&&(o.isRendered=!1,Ho(o.el),o.setClassNames([]),o.setHeight(""))},o.el=t,o.renderRunner=new jr(o.handleRenderRequest),new zr({optionOverrides:n,calendarApi:o,onAction:o.handleAction,onData:o.handleData}),o}return n(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){var t=this;zo(function(){e.prototype.updateSize.call(t)})},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!Jt(e,this.currentClassNames)){for(var t=this.el.classList,n=0,i=this.currentClassNames;n<i.length;n++){var o=i[n];t.remove(o)}for(var r=0,s=e;r<s.length;r++){o=s[r];t.add(o)}this.currentClassNames=e}},t.prototype.setHeight=function(e){Pe(this.el,"height",e)},t}(Ii);cs.touchMouseIgnoreWait=500;var $a=0,Ra=0,Ma=!1,Aa=function(){function e(e){var t=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var i=e.target;t.shouldIgnoreMove||i.addEventListener("touchmove",t.handleTouchMove),i.addEventListener("touchend",t.handleTouchEnd),i.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,$a+=1,setTimeout(function(){$a-=1},cs.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,i=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:i,deltaX:n-t.origPageX,deltaY:i-t.origPageY})}},this.containerEl=e,this.emitter=new Co,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(Ra+=1)&&window.addEventListener("touchmove",Pa,{passive:!1})}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(Ra-=1)||window.removeEventListener("touchmove",Pa,{passive:!1})},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!De(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){Ma=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?De(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return $a||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(Ma=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,i=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:i}},e.prototype.createEventFromTouch=function(e,t){var n,i,o=e.touches,r=0,s=0;return o&&o.length?(n=o[0].pageX,i=o[0].pageY):(n=e.pageX,i=e.pageY),t?(this.origPageX=n,this.origPageY=i):(r=n-this.origPageX,s=i-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:i,deltaX:r,deltaY:s}},e}();function Pa(e){Ma&&e.preventDefault()}var La=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,i=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",Ae(n,{left:i.left,top:i.top}),Ue(n,function(){n.style.transition="",e()})},e.prototype.cleanup=function(){this.mirrorEl&&(Ee(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&Ae(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),Ae(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),Ia=function(e){function t(t,n){var i=e.call(this)||this;return i.handleScroll=function(){i.scrollTop=i.scrollController.getScrollTop(),i.scrollLeft=i.scrollController.getScrollLeft(),i.handleScrollChange()},i.scrollController=t,i.doesListening=n,i.scrollTop=i.origScrollTop=t.getScrollTop(),i.scrollLeft=i.origScrollLeft=t.getScrollLeft(),i.scrollWidth=t.getScrollWidth(),i.scrollHeight=t.getScrollHeight(),i.clientWidth=t.getClientWidth(),i.clientHeight=t.getClientHeight(),i.clientRect=i.computeClientRect(),i.doesListening&&i.getEventTarget().addEventListener("scroll",i.handleScroll),i}return n(t,e),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(Do),ja=function(e){function t(t,n){return e.call(this,new $o(t),n)||this}return n(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return _o(this.scrollController.el)},t}(Ia),Oa=function(e){function t(t){return e.call(this,new Ro,t)||this}return n(t,e),t.prototype.getEventTarget=function(){return window},t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(Ia),Na="function"==typeof performance?performance.now:Date.now,za=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=Na();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,i=t-window.pageYOffset,o=null===this.pointerScreenY?0:i-this.pointerScreenY,r=null===this.pointerScreenX?0:n-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(this.everMovedDown=!0),r<0?this.everMovedLeft=!0:r>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Na()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,i=this.edgeThreshold,o=i-e.distance,r=o*o/(i*i)*this.maxVelocity*t,s=1;switch(e.name){case"left":s=-1;case"right":n.setScrollLeft(n.getScrollLeft()+r*s);break;case"top":s=-1;case"bottom":n.setScrollTop(n.getScrollTop()+r*s)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,i=null,o=0,r=this.scrollCaches||[];o<r.length;o++){var s=r[o],a=s.clientRect,l=e-a.left,u=a.right-e,c=t-a.top,d=a.bottom-t;l>=0&&u>=0&&c>=0&&d>=0&&(c<=n&&this.everMovedUp&&s.canScrollUp()&&(!i||i.distance>c)&&(i={scrollCache:s,name:"top",distance:c}),d<=n&&this.everMovedDown&&s.canScrollDown()&&(!i||i.distance>d)&&(i={scrollCache:s,name:"bottom",distance:d}),l<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!i||i.distance>l)&&(i={scrollCache:s,name:"left",distance:l}),u<=n&&this.everMovedRight&&s.canScrollRight()&&(!i||i.distance>u)&&(i={scrollCache:s,name:"right",distance:u}))}return i},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map(function(e){return e===window?new Oa(!1):new ja(e,!1)})},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,i=this.scrollQuery;n<i.length;n++){var o=i[n];"object"==typeof o?t.push(o):t.push.apply(t,Array.prototype.slice.call(Ie(e).querySelectorAll(o)))}return t},e}(),Ha=function(e){function t(t,n){var i=e.call(this,t)||this;i.containerEl=t,i.delay=null,i.minDistance=0,i.touchScrollAllowed=!0,i.mirrorNeedsRevert=!1,i.isInteracting=!1,i.isDragging=!1,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,i.delayTimeoutId=null,i.onPointerDown=function(e){i.isDragging||(i.isInteracting=!0,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,Ge(document.body),Ke(document.body),e.isTouch||e.origEvent.preventDefault(),i.emitter.trigger("pointerdown",e),i.isInteracting&&!i.pointer.shouldIgnoreMove&&(i.mirror.setIsVisible(!1),i.mirror.start(e.subjectEl,e.pageX,e.pageY),i.startDelay(e),i.minDistance||i.handleDistanceSurpassed(e)))},i.onPointerMove=function(e){if(i.isInteracting){if(i.emitter.trigger("pointermove",e),!i.isDistanceSurpassed){var t=i.minDistance,n=e.deltaX,o=e.deltaY;n*n+o*o>=t*t&&i.handleDistanceSurpassed(e)}i.isDragging&&("scroll"!==e.origEvent.type&&(i.mirror.handleMove(e.pageX,e.pageY),i.autoScroller.handleMove(e.pageX,e.pageY)),i.emitter.trigger("dragmove",e))}},i.onPointerUp=function(e){i.isInteracting&&(i.isInteracting=!1,Ye(document.body),Ze(document.body),i.emitter.trigger("pointerup",e),i.isDragging&&(i.autoScroller.stop(),i.tryStopDrag(e)),i.delayTimeoutId&&(clearTimeout(i.delayTimeoutId),i.delayTimeoutId=null))};var o=i.pointer=new Aa(t);return o.emitter.on("pointerdown",i.onPointerDown),o.emitter.on("pointermove",i.onPointerMove),o.emitter.on("pointerup",i.onPointerUp),n&&(o.selector=n),i.mirror=new La,i.autoScroller=new za,i}return n(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null,t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(us),Ua=function(){function e(e){this.origRect=So(e),this.scrollCaches=ko(e).map(function(e){return new ja(e,!0)})}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var i=n[t];e+=i.origScrollLeft-i.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var i=n[t];e+=i.origScrollTop-i.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n,i,o={left:e,top:t},r=0,s=this.scrollCaches;r<s.length;r++){var a=s[r];if(n=a.getEventTarget(),i=void 0,"HTML"!==(i=n.tagName)&&"BODY"!==i&&!to(o,a.clientRect))return!1}return!0},e}();var Fa=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Co}return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},i=n,o=e.subjectEl;o instanceof HTMLElement&&(i=io(i,t=So(o)));var r=this.initialHit=this.queryHitForOffset(i.left,i.top);if(r){if(this.useSubjectCenter&&t){var s=no(t,r.rect);s&&(i=oo(s))}this.coordAdjust=ro(i,n)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&qa(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=$t(this.droppableStore,function(e){return e.component.prepareHits(),new Ua(e.el)})},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this.droppableStore,i=this.offsetTrackers,o=null;for(var r in n){var s=n[r].component,a=i[r];if(a&&a.isWithinClipping(e,t)){var l=a.computeLeft(),u=a.computeTop(),c=e-l,d=t-u,p=a.origRect,h=p.right-p.left,f=p.bottom-p.top;if(c>=0&&c<h&&d>=0&&d<f){var m=s.queryHit(c,d,h,f);m&&ti(m.dateProfile.activeRange,m.dateSpan.range)&&(!o||m.layer>o.layer)&&(m.componentId=r,m.context=s.context,m.rect.left+=l,m.rect.right+=l,m.rect.top+=u,m.rect.bottom+=u,o=m)}}}return o},e}();function qa(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&xi(e.dateSpan,t.dateSpan)}function Wa(e,t){for(var n,o,r={},s=0,a=t.pluginHooks.datePointTransforms;s<a.length;s++){var l=a[s];i(r,l(e,t))}return i(r,(n=e,{date:(o=t.dateEnv).toDate(n.range.start),dateStr:o.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay})),r}var Ba=function(e){function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging,i=e.origEvent.target;t.setIgnoreMove(!n.component.isValidDateDownEl(i))},n.handleDragEnd=function(e){var t=n.component;if(!n.dragging.pointer.wasTouchScroll){var o=n.hitDragging,r=o.initialHit,s=o.finalHit;if(r&&s&&qa(r,s)){var a=t.context,l=i(i({},Wa(r.dateSpan,a)),{dayEl:r.dayEl,jsEvent:e.origEvent,view:a.viewApi||a.calendarApi.view});a.emitter.trigger("dateClick",l)}}},n.dragging=new Ha(t.el),n.dragging.autoScroller.isEnabled=!1;var o=n.hitDragging=new Fa(n.dragging,as(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragend",n.handleDragEnd),n}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(ss),Va=function(e){function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,i=t.component,o=t.dragging,r=i.context.options.selectable&&i.isValidDateDownEl(e.origEvent.target);o.setIgnoreMove(!r),o.delay=e.isTouch?function(e){var t=e.context.options,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(i):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var o=n.component.context,r=null,s=!1;if(e){var a=n.hitDragging.initialHit;e.componentId===a.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(a,e)||(r=function(e,t,n){var o=e.dateSpan,r=t.dateSpan,s=[o.range.start,o.range.end,r.range.start,r.range.end];s.sort(ot);for(var a={},l=0,u=n;l<u.length;l++){var c=u[l],d=c(e,t);if(!1===d)return null;d&&i(a,d)}return a.range={start:s[0],end:s[3]},a.allDay=o.allDay,a}(a,e,o.pluginHooks.dateSelectionTransformers)),r&&Os(r,e.dateProfile,o)||(s=!0,r=null)}r?o.dispatch({type:"SELECT_DATES",selection:r}):t||o.dispatch({type:"UNSELECT_DATES"}),s?Ve():Qe(),t||(n.dragSelection=r)},n.handlePointerUp=function(e){n.dragSelection&&(ki(n.dragSelection,e,n.component.context),n.dragSelection=null)};var o=t.component.context.options,r=n.dragging=new Ha(t.el);r.touchScrollAllowed=!1,r.minDistance=o.selectMinDistance||0,r.autoScroller.isEnabled=o.dragScroll;var s=n.hitDragging=new Fa(n.dragging,as(t));return s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("pointerup",n.handlePointerUp),n}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(ss);var Qa=function(e){function t(n){var o=e.call(this,n)||this;o.subjectEl=null,o.subjectSeg=null,o.isDragging=!1,o.eventRange=null,o.relevantEvents=null,o.receivingContext=null,o.validMutation=null,o.mutatedRelevantEvents=null,o.handlePointerDown=function(e){var t=e.origEvent.target,n=o,i=n.component,r=n.dragging,s=r.mirror,a=i.context.options,l=i.context;o.subjectEl=e.subjectEl;var u=o.subjectSeg=si(e.subjectEl),c=(o.eventRange=u.eventRange).instance.instanceId;o.relevantEvents=$n(l.getCurrentData().eventStore,c),r.minDistance=e.isTouch?0:a.eventDragMinDistance,r.delay=e.isTouch&&c!==i.props.eventSelection?function(e){var t=e.context.options,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(i):null,a.fixedMirrorParent?s.parentNode=a.fixedMirrorParent:s.parentNode=De(t,".fc"),s.revertDuration=a.dragRevertDuration;var d=i.isValidSegDownEl(t)&&!De(t,".fc-event-resizer");r.setIgnoreMove(!d),o.isDragging=d&&e.subjectEl.classList.contains("fc-event-draggable")},o.handleDragStart=function(e){var t=o.component.context,n=o.eventRange,i=n.instance.instanceId;e.isTouch?i!==o.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):t.dispatch({type:"UNSELECT_EVENT"}),o.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:o.subjectEl,event:new ji(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},o.handleHitUpdate=function(e,t){if(o.isDragging){var n=o.relevantEvents,i=o.hitDragging.initialHit,r=o.component.context,s=null,a=null,l=null,u=!1,c={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){var d=(s=e.context).options;r===s||d.editable&&d.droppable?(a=function(e,t,n){var i=e.dateSpan,o=t.dateSpan,r=i.range.start,s=o.range.start,a={};i.allDay!==o.allDay&&(a.allDay=o.allDay,a.hasEnd=t.context.options.allDayMaintainDuration,o.allDay&&(r=gt(r)));var l=Yn(r,s,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);l.milliseconds&&(a.allDay=!1);for(var u={datesDelta:l,standardProps:a},c=0,d=n;c<d.length;c++){var p=d[c];p(u,e,t)}return u}(i,e,s.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(l=Ei(n,s.getCurrentData().eventUiBases,a,s),c.mutatedEvents=l,js(c,e.dateProfile,s)||(u=!0,a=null,l=null,c.mutatedEvents={defs:{},instances:{}})):s=null}o.displayDrag(s,c),u?Ve():Qe(),t||(r===s&&qa(i,e)&&(a=null),o.dragging.setMirrorNeedsRevert(!a),o.dragging.setMirrorIsVisible(!e||!Ie(o.subjectEl).querySelector(".fc-event-mirror")),o.receivingContext=s,o.validMutation=a,o.mutatedRelevantEvents=l)}},o.handlePointerUp=function(){o.isDragging||o.cleanup()},o.handleDragEnd=function(e){if(o.isDragging){var t=o.component.context,n=t.viewApi,r=o,s=r.receivingContext,a=r.validMutation,l=o.eventRange.def,u=o.eventRange.instance,c=new ji(t,l,u),d=o.relevantEvents,p=o.mutatedRelevantEvents,h=o.hitDragging.finalHit;if(o.clearDrag(),t.emitter.trigger("eventDragStop",{el:o.subjectEl,event:c,jsEvent:e.origEvent,view:n}),a){if(s===t){var f=new ji(t,p.defs[l.defId],u?p.instances[u.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:p});for(var m={oldEvent:c,event:f,relatedEvents:Ni(p,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}},g={},v=0,y=t.getCurrentData().pluginHooks.eventDropTransformers;v<y.length;v++){var b=y[v];i(g,b(a,t))}t.emitter.trigger("eventDrop",i(i(i({},m),g),{el:e.subjectEl,delta:a.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",m)}else if(s){var w={event:c,relatedEvents:Ni(d,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}};t.emitter.trigger("eventLeave",i(i({},w),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:d}),t.emitter.trigger("eventRemove",w);var x=p.defs[l.defId],_=p.instances[u.instanceId],S=new ji(s,x,_);s.dispatch({type:"MERGE_EVENTS",eventStore:p});var k={event:S,relatedEvents:Ni(p,s,_),revert:function(){s.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};s.emitter.trigger("eventAdd",k),e.isTouch&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId}),s.emitter.trigger("drop",i(i({},Wa(h.dateSpan,s)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:h.context.viewApi})),s.emitter.trigger("eventReceive",i(i({},k),{draggedEl:e.subjectEl,view:h.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}o.cleanup()};var r=o.component.context.options,s=o.dragging=new Ha(n.el);s.pointer.selector=t.SELECTOR,s.touchScrollAllowed=!1,s.autoScroller.isEnabled=r.dragScroll;var a=o.hitDragging=new Fa(o.dragging,ls);return a.useSubjectCenter=n.useEventCenter,a.emitter.on("pointerdown",o.handlePointerDown),a.emitter.on("dragstart",o.handleDragStart),a.emitter.on("hitupdate",o.handleHitUpdate),a.emitter.on("pointerup",o.handlePointerUp),a.emitter.on("dragend",o.handleDragEnd),o}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context,i=this.receivingContext;i&&i!==e&&(i===n?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=".fc-event-draggable, .fc-event-resizable",t}(ss);var Ga=function(e){function t(t){var n=e.call(this,t)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,i=si(n.querySegEl(e)),o=n.eventRange=i.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==o.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,i=n.eventRange;n.relevantEvents=$n(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var o=n.querySegEl(e);n.draggingSegEl=o,n.draggingSeg=si(o),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:o,event:new ji(t,i.def,i.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,i){var o=n.component.context,r=n.relevantEvents,s=n.hitDragging.initialHit,a=n.eventRange.instance,l=null,u=null,c=!1,d={affectedEvents:r,mutatedEvents:{defs:{},instances:{}},isEvent:!0};e&&(e.componentId===s.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(s,e)||(l=function(e,t,n,i){var o=e.context.dateEnv,r=e.dateSpan.range.start,s=t.dateSpan.range.start,a=Yn(r,s,o,e.largeUnit);if(n){if(o.add(i.start,a)<i.end)return{startDelta:a}}else if(o.add(i.end,a)>i.start)return{endDelta:a};return null}(s,e,i.subjectEl.classList.contains("fc-event-resizer-start"),a.range)));l&&(u=Ei(r,o.getCurrentData().eventUiBases,l,o),d.mutatedEvents=u,js(d,e.dateProfile,o)||(c=!0,l=null,u=null,d.mutatedEvents=null)),u?o.dispatch({type:"SET_EVENT_RESIZE",state:d}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),c?Ve():Qe(),t||(l&&qa(s,e)&&(l=null),n.validMutation=l,n.mutatedRelevantEvents=u)},n.handleDragEnd=function(e){var t=n.component.context,o=n.eventRange.def,r=n.eventRange.instance,s=new ji(t,o,r),a=n.relevantEvents,l=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:s,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var u=new ji(t,l.defs[o.defId],r?l.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:l});var c={oldEvent:s,event:u,relatedEvents:Ni(l,t,r),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:a})}};t.emitter.trigger("eventResize",i(i({},c),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||Ut(0),endDelta:n.validMutation.endDelta||Ut(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var o=t.component,r=n.dragging=new Ha(t.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=o.context.options.dragScroll;var s=n.hitDragging=new Fa(n.dragging,as(t));return s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("dragend",n.handleDragEnd),n}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return De(e.subjectEl,".fc-event")},t}(ss);var Ya=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,i=Le(e.origEvent);t.matchesCancel=!!De(i,n),t.matchesEvent=!!De(i,Qa.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,i=t.documentPointer,o=n.getCurrentData();if(!i.wasTouchScroll){if(o.dateSelection&&!t.isRecentPointerDateSelect){var r=n.options.unselectAuto;!r||r&&t.matchesCancel||n.calendarApi.unselect(e)}o.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new Aa(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),Ka={fixedMirrorParent:Cn},Za={dateClick:Cn,eventDragStart:Cn,eventDragStop:Cn,eventDrop:Cn,eventResizeStart:Cn,eventResizeStop:Cn,eventResize:Cn,drop:Cn,eventReceive:Cn,eventLeave:Cn},Xa=function(){function e(e,t){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,o){var r=n.hitDragging.dragging,s=null,a=null,l=!1,u={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:n.dragMeta.create};e&&(s=e.context,n.canDropElOnCalendar(o.subjectEl,s)&&(a=function(e,t,n){for(var o=i({},t.leftoverProps),r=0,s=n.pluginHooks.externalDefTransforms;r<s.length;r++){var a=s[r];i(o,a(e,t))}var l=qn(o,n),u=l.refined,c=l.extra,d=Bn(u,c,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),p=e.range.start;e.allDay&&t.startTime&&(p=n.dateEnv.add(p,t.startTime));var h=t.duration?n.dateEnv.add(p,t.duration):Ci(e.allDay,p,n),f=Tt(d.defId,{start:p,end:h});return{def:d,instance:f}}(e.dateSpan,n.dragMeta,s),u.mutatedEvents=Dn(a),(l=!js(u,e.dateProfile,s))&&(u.mutatedEvents={defs:{},instances:{}},a=null))),n.displayDrag(s,u),r.setMirrorIsVisible(t||!a||!document.querySelector(".fc-event-mirror")),l?Ve():Qe(),t||(r.setMirrorNeedsRevert(!a),n.receivingContext=s,n.droppableEvent=a)},this.handleDragEnd=function(e){var t=n,o=t.receivingContext,r=t.droppableEvent;if(n.clearDrag(),o&&r){var s=n.hitDragging.finalHit,a=s.context.viewApi,l=n.dragMeta;if(o.emitter.trigger("drop",i(i({},Wa(s.dateSpan,o)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:a})),l.create){var u=Dn(r);o.dispatch({type:"MERGE_EVENTS",eventStore:u}),e.isTouch&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:r.instance.instanceId}),o.emitter.trigger("eventReceive",{event:new ji(o,r.def,r.instance),relatedEvents:[],revert:function(){o.dispatch({type:"REMOVE_EVENTS",eventStore:u})},draggedEl:e.subjectEl,view:a})}}n.receivingContext=null,n.droppableEvent=null};var o=this.hitDragging=new Fa(e,ls);o.requireInitial=!1,o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"==typeof this.suppliedDragMeta?ps(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?ps(this.suppliedDragMeta(e)):ps((t=function(e,t){var n=cs.dataAttrPrefix,i=(n?n+"-":"")+t;return e.getAttribute("data-"+i)||""}(e,"event"))?JSON.parse(t):{create:!1});var t},e.prototype.displayDrag=function(e,t){var n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.canDropElOnCalendar=function(e,t){var n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||Boolean($e(e,n))},e}();cs.dataAttrPrefix="";var Ja=function(){function e(e,t){var n=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,i=n.settings,o=i.minDistance,r=i.longPressDelay;t.minDistance=null!=o?o:e.isTouch?0:yn.eventDragMinDistance,t.delay=e.isTouch?null!=r?r:yn.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;var i=this.dragging=new Ha(e);i.touchScrollAllowed=!1,null!=t.itemSelector&&(i.pointer.selector=t.itemSelector),null!=t.appendTo&&(i.mirror.parentNode=t.appendTo),i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),new Xa(i,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e}(),el=function(e){function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var i=n.pointer=new Aa(t);return i.emitter.on("pointerdown",n.handlePointerDown),i.emitter.on("pointermove",n.handlePointerMove),i.emitter.on("pointerup",n.handlePointerUp),n}return n(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(us),tl=function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};var i=this.dragging=new el(n);"string"==typeof t.itemSelector?i.pointer.selector=t.itemSelector:n===document&&(i.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(i.mirrorSelector=t.mirrorSelector),new Xa(i,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e}(),nl=Ko({componentInteractions:[Ba,Va,Qa,Ga],calendarInteractions:[Ya],elementDraggingImpl:Ha,optionRefiners:Ka,listenerRefiners:Za}),il=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=Io(),t}return n(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this.props,i=this.context,o=[],r=oa(i.options);return e&&o.push({type:"header",key:"header",isSticky:r,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),Po(ar,{viewSpec:i.viewSpec},function(e,t){return Po("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},Po(sa,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))})},t.prototype.renderHScrollLayout=function(e,t,n,i){var o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");var r=this.props,s=this.context,a=!r.forPrint&&oa(s.options),l=!r.forPrint&&ra(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:ia}]}),Po(ar,{viewSpec:s.viewSpec},function(e,t){return Po("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},Po(o,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:u}))})},t}(Yo);function ol(e,t){for(var n=[],i=0;i<t;i+=1)n[i]=[];for(var o=0,r=e;o<r.length;o++){var s=r[o];n[s.row].push(s)}return n}function rl(e,t){for(var n=[],i=0;i<t;i+=1)n[i]=[];for(var o=0,r=e;o<r.length;o++){var s=r[o];n[s.firstCol].push(s)}return n}function sl(e,t){var n=[];if(e){for(s=0;s<t;s+=1)n[s]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var i=0,o=e.segs;i<o.length;i++){var r=o[i];n[r.row].segs.push(r)}}else for(var s=0;s<t;s+=1)n[s]=null;return n}var al=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=mo(this.context,e.date);return Po(pa,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:ll},function(n,o){return(o||e.forceDayTop)&&Po("div",{className:"fc-daygrid-day-top",ref:n},Po("a",i({id:e.dayNumberId,className:"fc-daygrid-day-number"},t),o||Po(jo,null," ")))})},t}(Bo);function ll(e){return e.dayNumberText}var ul=gn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function cl(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var dl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props;return Po(la,i({},e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:ul,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(Bo),pl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options.eventTimeFormat||ul,o=fi(e.seg,n,t,!0,e.defaultDisplayEventEnd);return Po(aa,{seg:e.seg,timeText:o,defaultContent:hl,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},function(n,o,r,s){return Po("a",i({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(o).join(" "),ref:n},yi(e.seg,t)),s)})},t}(Bo);function hl(e){return Po(jo,null,Po("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&Po("div",{className:"fc-event-time"},e.timeText),Po("div",{className:"fc-event-title"},e.event.title||Po(jo,null," ")))}var fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=en(ml),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,o=t.invisibleSegs;return Po(_a,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:o,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return Po(jo,null,n.map(function(n){var o=n.eventRange.instance.instanceId;return Po("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:t[o]?"hidden":""}},cl(n)?Po(pl,i({seg:n,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},mi(n,e.todayRange))):Po(dl,i({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},mi(n,e.todayRange))))}))}},function(e,t,n,o,r,s,a,l){return Po("a",i({ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),title:s,"aria-expanded":a,"aria-controls":l},Fe(r)),o)})},t}(Bo);function ml(e){for(var t=[],n=[],i=0,o=e;i<o.length;i++){var r=o[i];t.push(r.seg),r.isVisible||n.push(r.seg)}return{allSegs:t,invisibleSegs:n}}var gl=gn({week:"narrow"}),vl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Io(),t.state={dayNumberId:Oe()},t.handleRootEl=function(e){Go(t.rootElRef,e),Go(t.props.elRef,e)},t}return n(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=this.state,o=this.rootElRef,r=t.date,s=t.dateProfile,a=mo(e,r,"week");return Po(fa,{date:r,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraHookProps:t.extraHookProps,elRef:this.handleRootEl},function(e,l,u,c){return Po("td",i({ref:e,role:"gridcell",className:["fc-daygrid-day"].concat(l,t.extraClassNames||[]).join(" ")},u,t.extraDataAttrs,t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),Po("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:t.innerElRef},t.showWeekNumber&&Po(ya,{date:r,defaultFormat:gl},function(e,t,n,o){return Po("a",i({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},a),o)}),!c&&Po(al,{date:r,dateProfile:s,showDayNumber:t.showDayNumber,dayNumberId:n.dayNumberId,forceDayTop:t.forceDayTop,todayRange:t.todayRange,extraHookProps:t.extraHookProps}),Po("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,Po("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},Po(fl,{allDayDate:r,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:o,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),Po("div",{className:"fc-daygrid-day-bg"},t.bgContent)))})},t}(Yo);function yl(e,t,n,i,o,r,s){var a=new wl;a.allowReslicing=!0,a.strictOrder=i,!0===t||!0===n?(a.maxCoord=r,a.hiddenConsumes=!0):"number"==typeof t?a.maxStackCnt=t:"number"==typeof n&&(a.maxStackCnt=n,a.hiddenConsumes=!0);for(var l=[],u=[],c=0;c<e.length;c+=1){var d=o[(T=e[c]).eventRange.instance.instanceId];null!=d?l.push({index:c,thickness:d,span:{start:T.firstCol,end:T.lastCol+1}}):u.push(T)}for(var p=a.addSegs(l),h=function(e,t,n){for(var i=function(e,t){for(var n=[],i=0;i<t;i+=1)n.push([]);for(var o=0,r=e;o<r.length;o++)for(var s=r[o],i=s.span.start;i<s.span.end;i+=1)n[i].push(s);return n}(e,n.length),o=[],r=[],s=[],a=0;a<n.length;a+=1){for(var l=i[a],u=[],c=0,d=0,p=0,h=l;p<h.length;p++){var f=h[p],m=t[f.index];u.push({seg:bl(m,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-c}),c=f.levelCoord+f.thickness}var g=[];c=0,d=0;for(var v=0,y=l;v<y.length;v++){var f=y[v],m=t[f.index],b=f.span.end-f.span.start>1,w=f.span.start===a;d+=f.levelCoord-c,c=f.levelCoord+f.thickness,b?(d+=f.thickness,w&&g.push({seg:bl(m,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):w&&(g.push({seg:bl(m,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:d}),d=0)}o.push(u),r.push(g),s.push(d)}return{singleColPlacements:o,multiColPlacements:r,leftoverMargins:s}}(a.toRects(),e,s),f=h.singleColPlacements,m=h.multiColPlacements,g=h.leftoverMargins,v=[],y=[],b=0,w=u;b<w.length;b++){m[(T=w[b]).firstCol].push({seg:T,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var x=T.firstCol;x<=T.lastCol;x+=1)f[x].push({seg:bl(T,x,x+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(x=0;x<s.length;x+=1)v.push(0);for(var _=0,S=p;_<S.length;_++){var k=S[_],T=e[k.index],C=k.span;m[C.start].push({seg:bl(T,C.start,C.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(x=C.start;x<C.end;x+=1)v[x]+=1,f[x].push({seg:bl(T,x,x+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(x=0;x<s.length;x+=1)y.push(g[x]);return{singleColPlacements:f,multiColPlacements:m,moreCnts:v,moreMarginTops:y}}function bl(e,t,n,o){if(e.firstCol===t&&e.lastCol===n-1)return e;var r=e.eventRange,s=r.range,a=Xn(s,{start:o[t].date,end:ut(o[n-1].date,1)});return i(i({},e),{firstCol:t,lastCol:n-1,eventRange:{def:r.def,ui:i(i({},r.ui),{durationEditable:!1}),instance:r.instance,range:a},isStart:e.isStart&&a.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===s.end.valueOf()})}var wl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return n(t,e),t.prototype.addSegs=function(t){for(var n=this,i=e.prototype.addSegs.call(this,t),o=this.entriesByLevel,r=function(e){return!n.forceHidden[es(e)]},s=0;s<o.length;s+=1)o[s]=o[s].filter(r);return i},t.prototype.handleInvalidInsertion=function(t,n,o){var r=this.entriesByLevel,s=this.forceHidden,a=t.touchingEntry,l=t.touchingLevel,u=t.touchingLateral;if(this.hiddenConsumes&&a){var c=es(a);if(!s[c])if(this.allowReslicing){var d=i(i({},a),{span:is(a.span,n.span)});s[es(d)]=!0,r[l][u]=d,this.splitEntry(a,n,o)}else s[c]=!0,o.push(a)}return e.prototype.handleInvalidInsertion.call(this,t,n,o)},t}(Xr),xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new Vs,t.frameElRefs=new Vs,t.fgElRefs=new Vs,t.segHarnessRefs=new Vs,t.rootElRef=Io(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.state,i=this.context.options,o=t.cells.length,r=rl(t.businessHourSegs,o),s=rl(t.bgEventSegs,o),a=rl(this.getHighlightSegs(),o),l=rl(this.getMirrorSegs(),o),u=yl(ui(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),c=u.singleColPlacements,d=u.multiColPlacements,p=u.moreCnts,h=u.moreMarginTops,f=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return Po("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map(function(n,i){var o=e.renderFgSegs(i,t.forPrint?c[i]:d[i],t.todayRange,f),u=e.renderFgSegs(i,function(e,t){if(!e.length)return[];var n=function(e){for(var t={},n=0,i=e;n<i.length;n++)for(var o=i[n],r=0,s=o;r<s.length;r++){var a=s[r];t[a.seg.eventRange.instance.instanceId]=a.absoluteTop}return t}(t);return e.map(function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}})}(l[i],d),t.todayRange,{},Boolean(t.eventDrag),Boolean(t.eventResize),!1);return Po(vl,{key:n.key,elRef:e.cellElRefs.createRef(n.key),innerElRef:e.frameElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&0===i,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraHookProps:n.extraHookProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,moreCnt:p[i],moreMarginTop:h[i],singlePlacements:c[i],fgContentElRef:e.fgElRefs.createRef(n.key),fgContent:Po(jo,null,Po(jo,null,o),Po(jo,null,u)),bgContent:Po(jo,null,e.renderFillSegs(a[i],"highlight"),e.renderFillSegs(r[i],"non-business"),e.renderFillSegs(s[i],"bg-event"))})}))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!At(e,n))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,n,o,r,s,a){var l=this.context,u=this.props.eventSelection,c=this.state.framePositions,d=1===this.props.cells.length,p=r||s||a,h=[];if(c)for(var f=0,m=t;f<m.length;f++){var g=m[f],v=g.seg,y=v.eventRange.instance.instanceId,b=y+":"+e,w=g.isVisible&&!o[y],x=g.isAbsolute,_="",S="";x&&(l.isRtl?(S=0,_=c.lefts[v.lastCol]-c.lefts[v.firstCol]):(_=0,S=c.rights[v.firstCol]-c.rights[v.lastCol])),h.push(Po("div",{className:"fc-daygrid-event-harness"+(x?" fc-daygrid-event-harness-abs":""),key:b,ref:p?null:this.segHarnessRefs.createRef(b),style:{visibility:w?"":"hidden",marginTop:x?"":g.marginTop,top:x?g.absoluteTop:"",left:_,right:S}},cl(v)?Po(pl,i({seg:v,isDragging:r,isSelected:y===u,defaultDisplayEventEnd:d},mi(v,n))):Po(dl,i({seg:v,isDragging:r,isResizing:s,isDateSelecting:a,isSelected:y===u,defaultDisplayEventEnd:d},mi(v,n)))))}return h},t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,r=this.props.todayRange,s=this.state.framePositions,a=[];if(s)for(var l=0,u=e;l<u.length;l++){var c=u[l],d=n?{right:0,left:s.lefts[c.lastCol]-s.lefts[c.firstCol]}:{left:0,right:s.rights[c.firstCol]-s.rights[c.lastCol]};a.push(Po("div",{key:vi(c.eventRange),className:"fc-daygrid-bg-harness",style:d},"bg-event"===t?Po(ga,i({seg:c},mi(c,r))):ma(t)))}return Po.apply(void 0,o([jo,{}],a))},t.prototype.updateSizing=function(e){var t=this.props,n=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var o=t.cells.map(function(e){return n.currentMap[e.key]});if(o.length){var r=this.rootElRef.current;this.setState({framePositions:new Eo(r,o,!0,!1)})}}var s=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),l=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({eventInstanceHeights:i(i({},s),a),maxContentHeight:l?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var i=Math.round(e[n].getBoundingClientRect().height),o=n.split(":")[0];t[o]=Math.max(t[o]||0,i)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map(function(t){return e[t.key]})},t}(Yo);xl.addStateEquality({eventInstanceHeights:At});var _l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=en(ol),t.splitBgEventSegs=en(ol),t.splitFgEventSegs=en(ol),t.splitDateSelectionSegs=en(ol),t.splitEventDrag=en(sl),t.splitEventResize=en(sl),t.rowRefs=new Vs,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,i=t.dayMaxEventRows,o=t.dayMaxEvents,r=t.expandRows,s=t.cells.length,a=this.splitBusinessHourSegs(t.businessHourSegs,s),l=this.splitBgEventSegs(t.bgEventSegs,s),u=this.splitFgEventSegs(t.fgEventSegs,s),c=this.splitDateSelectionSegs(t.dateSelectionSegs,s),d=this.splitEventDrag(t.eventDrag,s),p=this.splitEventResize(t.eventResize,s),h=!0===o||!0===i;return h&&!r&&(h=!1,i=null,o=null),Po("div",{className:["fc-daygrid-body",h?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"].join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Po(Ds,{unit:"day"},function(h,f){return Po(jo,null,Po("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:r?t.clientHeight:""}},t.colGroupNode,Po("tbody",{role:"presentation"},t.cells.map(function(r,h){return Po(xl,{ref:e.rowRefs.createRef(h),key:r.length?r[0].date.toISOString():h,showDayNumbers:s>1,showWeekNumbers:t.showWeekNumbers,todayRange:f,dateProfile:n,cells:r,renderIntro:t.renderRowIntro,businessHourSegs:a[h],eventSelection:t.eventSelection,bgEventSegs:l[h].filter(Sl),fgEventSegs:u[h],dateSelectionSegs:c[h],eventDrag:d[h],eventResize:p[h],dayMaxEvents:o,dayMaxEventRows:i,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})}))))}))},t.prototype.prepareHits=function(){this.rowPositions=new Eo(this.rootEl,this.rowRefs.collect().map(function(e){return e.getCellEls()[0]}),!1,!0),this.colPositions=new Eo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,o=this.rowPositions,r=n.leftToIndex(e),s=o.topToIndex(t);if(null!=s&&null!=r){var a=this.props.cells[s][r];return{dateProfile:this.props.dateProfile,dateSpan:i({range:this.getCellRange(s,r),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(s,r),rect:{left:n.lefts[r],right:n.rights[r],top:o.tops[s],bottom:o.bottoms[s]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:ut(n,1)}},t}(Yo);function Sl(e){return e.eventRange.def.allDay}var kl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return n(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(Ls),Tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new kl,t.tableRef=Io(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return Po(_l,i({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(Yo),Cl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=en(El),t.headerRef=Io(),t.tableRef=Io(),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,i=t.dateProfileGenerator,o=this.props,r=this.buildDayTableModel(o.dateProfile,i),s=n.dayHeaders&&Po(Rs,{ref:this.headerRef,dateProfile:o.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),a=function(t){return Po(Tl,{ref:e.tableRef,dateProfile:o.dateProfile,dayTableModel:r,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(s,a,r.colCnt,n.dayMinWidth):this.renderSimpleLayout(s,a)},t}(il);function El(e,t){var n=new As(e.renderRange,t);return new Ps(n,/year|month|week/.test(e.currentRangeUnit))}var Dl=Ko({initialView:"dayGridMonth",views:{dayGrid:{component:Cl,dateProfileGeneratorClass:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.buildRenderRange=function(t,n,i){var o,r=this.props.dateEnv,s=e.prototype.buildRenderRange.call(this,t,n,i),a=s.start,l=s.end;(/^(year|month)$/.test(n)&&(a=r.startOfWeek(a),(o=r.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=lt(o,1))),this.props.monthMode&&this.props.fixedWeekCount)&&(l=lt(l,6-Math.ceil(dt(a,l))));return{start:a,end:l}},t}(pr)},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),$l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?oi(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(lo),Rl=gn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Ml(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Po(Fo.Consumer,null,function(n){if(!e.isLabeled)return Po("td",{className:t.join(" "),"data-time":e.isoTimeStr});var i=n.dateEnv,o=n.options,r=n.viewApi,s=null==o.slotLabelFormat?Rl:Array.isArray(o.slotLabelFormat)?gn(o.slotLabelFormat[0]):gn(o.slotLabelFormat),a={level:0,time:e.time,date:i.toDate(e.date),view:r,text:i.format(e.date,s)};return Po(Jo,{hookProps:a,classNames:o.slotLabelClassNames,content:o.slotLabelContent,defaultContent:Al,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},function(n,i,o,r){return Po("td",{ref:n,className:t.concat(i).join(" "),"data-time":e.isoTimeStr},Po("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Po("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:o},r)))})})}function Al(e){return e.text}var Pl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return this.props.slatMetas.map(function(e){return Po("tr",{key:e.key},Po(Ml,i({},e)))})},t}(Bo),Ll=gn({week:"short"}),Il=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new $l,t.headerElRef=Io(),t.rootElRef=Io(),t.scrollerElRef=Io(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var o=t.context.options,r=t.props.dateProfile.renderRange,s=1===pt(r.start,r.end)?mo(t.context,r.start,"week"):{};return o.weekNumbers&&"day"===e?Po(ya,{date:r.start,defaultFormat:Ll},function(e,t,o,r){return Po("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},Po("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},Po("a",i({ref:o,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},s),r)))}):Po("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Po("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,i=n.options,o=n.viewApi,r={text:i.allDayText,view:o};return Po(Jo,{hookProps:r,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:jl,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},function(t,n,i,o){return Po("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},Po("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},Po("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:i},o)))})},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return n(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var i=this.context,o=this.props,r=[],s=oa(i.options);return e&&r.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(r.push({type:"body",key:"all-day",chunk:{content:t}}),r.push({type:"body",key:"all-day-divider",outerContent:Po("tr",{role:"presentation",className:"fc-scrollgrid-section"},Po("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),r.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Po(ar,{viewSpec:i.viewSpec,elRef:this.rootElRef},function(e,t){return Po("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Po(sa,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:r}))})},t.prototype.renderHScrollLayout=function(e,t,n,i,o,r,s){var a=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");var u=this.context,c=this.props,d=!c.forPrint&&oa(u.options),p=!c.forPrint&&ra(u.options),h=[];e&&h.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Po("tr",{role:"presentation"},a.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Po("tr",{role:"presentation"},a.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),h.push({key:"all-day-divider",type:"body",outerContent:Po("tr",{role:"presentation",className:"fc-scrollgrid-section"},Po("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var f=u.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return Po("div",{className:"fc-timegrid-axis-chunk"},Po("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,Po("tbody",null,Po(Pl,{slatMetas:r}))),Po("div",{className:"fc-timegrid-now-indicator-container"},Po(Ds,{unit:f?"minute":"day"},function(e){var t=f&&s&&s.safeComputeTop(e);return"number"==typeof t?Po(ca,{isAxis:!0,date:e},function(e,n,i,o){return Po("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},o)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),p&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:ia},{key:"cols",content:ia}]}),Po(ar,{viewSpec:u.viewSpec,elRef:this.rootElRef},function(e,t){return Po("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Po(l,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:o}]}],sections:h}))})},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}},t}(Yo);function jl(e){return e.text}var Ol=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(ni(t.currentRange,e)){var n=gt(e),i=e.valueOf()-n.valueOf();if(i>=Vt(t.slotMinTime)&&i<Vt(t.slotMaxTime))return this.computeTimeTop(Ut(i))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=gt(e)),this.computeTimeTop(Ut(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,i=this.positions,o=this.dateProfile,r=i.els.length,s=(e.milliseconds-Vt(o.slotMinTime))/Vt(this.slotDuration);return s=Math.max(0,s),s=Math.min(r,s),t=Math.floor(s),n=s-(t=Math.min(t,r-1)),i.tops[t]+i.getHeight(t)*n},e}(),Nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,o=e.slatElRefs;return Po("tbody",null,e.slatMetas.map(function(r,s){var a={time:r.time,date:t.dateEnv.toDate(r.date),view:t.viewApi},l=["fc-timegrid-slot","fc-timegrid-slot-lane",r.isLabeled?"":"fc-timegrid-slot-minor"];return Po("tr",{key:r.key,ref:o.createRef(r.key)},e.axis&&Po(Ml,i({},r)),Po(Jo,{hookProps:a,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},function(e,t,n,i){return Po("td",{ref:e,className:l.concat(t).join(" "),"data-time":r.isoTimeStr},i)}))}))},t}(Bo),zl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Io(),t.slatElRefs=new Vs,t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return Po("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Po("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,Po(Nl,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e,t=this.context,n=this.props;n.onCoords&&null!==n.clientWidth&&(this.rootElRef.current.offsetHeight&&n.onCoords(new Ol(new Eo(this.rootElRef.current,(e=this.slatElRefs.currentMap,n.slatMetas.map(function(t){return e[t.key]})),!1,!0),this.props.dateProfile,t.options.slotDuration)))},t}(Bo);function Hl(e,t){var n,i=[];for(n=0;n<t;n+=1)i.push([]);if(e)for(n=0;n<e.length;n+=1)i[e[n].col].push(e[n]);return i}function Ul(e,t){var n=[];if(e){for(s=0;s<t;s+=1)n[s]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var i=0,o=e.segs;i<o.length;i++){var r=o[i];n[r.col].segs.push(r)}}else for(var s=0;s<t;s+=1)n[s]=null;return n}var Fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=Io(),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props;return Po(_a,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:ql,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return eu(t.hiddenSegs,t)}},function(n,i,o,r,s,a,l,u){return Po("a",{ref:function(t){Go(n,t),Go(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(i).join(" "),style:{top:t.top,bottom:t.bottom},onClick:s,title:a,"aria-expanded":l,"aria-controls":u},Po("div",{ref:o,className:"fc-timegrid-more-link-inner fc-sticky"},r))})},t}(Bo);function ql(e){return e.shortText}function Wl(e,t,n){var o=new Xr;null!=t&&(o.strictOrder=t),null!=n&&(o.maxStackCnt=n);var r,s,a,l=ts(o.addSegs(e)),u=function(e){var t=e.entriesByLevel,n=Gl(function(e,t){return e+":"+t},function(o,r){var s=function(e,t,n){for(var i=e.levelCoords,o=e.entriesByLevel,r=o[t][n],s=i[t]+r.thickness,a=i.length,l=t;l<a&&i[l]<s;l+=1);for(;l<a;l+=1){for(var u=o[l],c=void 0,d=rs(u,r.span.start,Jr),p=d[0]+d[1],h=p;(c=u[h])&&c.span.start<r.span.end;)h+=1;if(p<h)return{level:l,lateralStart:p,lateralEnd:h}}return null}(e,o,r),a=Bl(s,n),l=t[o][r];return[i(i({},l),{nextLevelNodes:a[0]}),l.thickness+a[1]]});return Bl(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(o);return r=u,s=1,a=Gl(function(e,t,n){return es(e)},function(e,t,n){var o,r=e.nextLevelNodes,l=e.thickness,u=l+n,c=l/u,d=[];if(r.length)for(var p=0,h=r;p<h.length;p++){var f=h[p];if(void 0===o){var m=a(f,t,u);o=m[0],d.push(m[1])}else{var m=a(f,o,0);d.push(m[1])}}else o=s;var g=(o-t)*c;return[o-g,i(i({},e),{thickness:g,nextLevelNodes:d})]}),{segRects:function(e){var t=[],n=Gl(function(e,t,n){return es(e)},function(e,n,r){var s=i(i({},e),{levelCoord:n,stackDepth:r,stackForward:0});return t.push(s),s.stackForward=o(e.nextLevelNodes,n+e.thickness,r+1)+1});function o(e,t,i){for(var o=0,r=0,s=e;r<s.length;r++){var a=s[r];o=Math.max(n(a,t,i),o)}return o}return o(e,0,0),t}(u=r.map(function(e){return a(e,0,0)[1]})),hiddenGroups:l}}function Bl(e,t){if(!e)return[[],0];for(var n=e.level,i=e.lateralStart,o=e.lateralEnd,r=i,s=[];r<o;)s.push(t(n,r)),r+=1;return s.sort(Vl),[s.map(Ql),s[0][1]]}function Vl(e,t){return t[1]-e[1]}function Ql(e){return e[0]}function Gl(e,t){var n={};return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=e.apply(void 0,i);return r in n?n[r]:n[r]=t.apply(void 0,i)}}function Yl(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i=0);var o=[];if(n)for(var r=0;r<e.length;r+=1){var s=e[r],a=n.computeDateTop(s.start,t),l=Math.max(a+(i||0),n.computeDateTop(s.end,t));o.push({start:Math.round(a),end:Math.round(l)})}return o}var Kl=gn({hour:"numeric",minute:"2-digit",meridiem:!1}),Zl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),Po(la,i({},this.props,{defaultTimeFormat:Kl,extraClassNames:e}))},t}(Bo),Xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props;return Po(pa,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},function(e,t){return t&&Po("div",{className:"fc-timegrid-col-misc",ref:e},t)})},t}(Bo),Jl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=en(ui),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,o=n.options.selectMirror,r=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||o&&t.dateSelectionSegs||[],s=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},a=this.sortEventSegs(t.fgEventSegs,n.options.eventOrder);return Po(fa,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},function(n,l,u){return Po("td",i({ref:n,role:"gridcell",className:["fc-timegrid-col"].concat(l,t.extraClassNames||[]).join(" ")},u,t.extraDataAttrs),Po("div",{className:"fc-timegrid-col-frame"},Po("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),Po("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(a,s,!1,!1,!1)),Po("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(r,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(o))),Po("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),Po(Xl,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))})},t.prototype.renderFgSegs=function(e,t,n,i,o){var r=this.props;return r.forPrint?eu(e,r):this.renderPositionedFgSegs(e,t,n,i,o)},t.prototype.renderPositionedFgSegs=function(e,t,n,o,r){var s=this,a=this.context.options,l=a.eventMaxStack,u=a.eventShortHeight,c=a.eventOrderStrict,d=a.eventMinHeight,p=this.props,h=p.date,f=p.slatCoords,m=p.eventSelection,g=p.todayRange,v=p.nowDate,y=n||o||r,b=function(e,t,n,i){for(var o=[],r=[],s=0;s<e.length;s+=1){var a=t[s];a?o.push({index:s,thickness:1,span:a}):r.push(e[s])}for(var l=Wl(o,n,i),u=l.segRects,c=l.hiddenGroups,d=[],p=0,h=u;p<h.length;p++){var f=h[p];d.push({seg:e[f.index],rect:f})}for(var m=0,g=r;m<g.length;m++){var v=g[m];d.push({seg:v,rect:null})}return{segPlacements:d,hiddenGroups:c}}(e,Yl(e,h,f,d),c,l),w=b.segPlacements,x=b.hiddenGroups;return Po(jo,null,this.renderHiddenGroups(x,e),w.map(function(e){var a=e.seg,l=e.rect,c=a.eventRange.instance.instanceId,d=y||Boolean(!t[c]&&l),p=tu(l&&l.span),h=!y&&l?s.computeSegHStyle(l):{left:0,right:0},f=Boolean(l)&&l.stackForward>0,b=Boolean(l)&&l.span.end-l.span.start<u;return Po("div",{className:"fc-timegrid-event-harness"+(f?" fc-timegrid-event-harness-inset":""),key:c,style:i(i({visibility:d?"":"hidden"},p),h)},Po(Zl,i({seg:a,isDragging:n,isResizing:o,isDateSelecting:r,isSelected:c===m,isShort:b},mi(a,g,v))))}))},t.prototype.renderHiddenGroups=function(e,t){var n=this.props,i=n.extraDateSpan,o=n.dateProfile,r=n.todayRange,s=n.nowDate,a=n.eventSelection,l=n.eventDrag,u=n.eventResize;return Po(jo,null,e.map(function(e){var n,c,d=tu(e.span),p=(n=e.entries,c=t,n.map(function(e){return c[e.index]}));return Po(Fl,{key:Yt(Ta(p)),hiddenSegs:p,top:d.top,bottom:d.bottom,extraDateSpan:i,dateProfile:o,todayRange:r,nowDate:s,eventSelection:a,eventDrag:l,eventResize:u})}))},t.prototype.renderFillSegs=function(e,t){var n=this.props,o=this.context,r=Yl(e,n.date,n.slatCoords,o.options.eventMinHeight).map(function(o,r){var s=e[r];return Po("div",{key:vi(s.eventRange),className:"fc-timegrid-bg-harness",style:tu(o)},"bg-event"===t?Po(ga,i({seg:s},mi(s,n.todayRange,n.nowDate))):ma(t))});return Po(jo,null,r)},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,i=t.date;return n?e.map(function(e,t){return Po(ca,{isAxis:!1,date:i,key:t},function(t,o,r,s){return Po("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(o).join(" "),style:{top:n.computeDateTop(e.start,i)}},s)})}):null},t.prototype.computeSegHStyle=function(e){var t,n,i=this.context,o=i.isRtl,r=i.options.slotEventOverlap,s=e.levelCoord,a=e.levelCoord+e.thickness;r&&(a=Math.min(1,s+2*(a-s))),o?(t=1-a,n=s):(t=s,n=1-a);var l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return r&&!e.stackForward&&(l[o?"marginLeft":"marginRight"]=20),l},t}(Bo);function eu(e,t){var n=t.todayRange,o=t.nowDate,r=t.eventSelection,s=t.eventDrag,a=t.eventResize,l=(s?s.affectedInstances:null)||(a?a.affectedInstances:null)||{};return Po(jo,null,e.map(function(e){var t=e.eventRange.instance.instanceId;return Po("div",{key:t,style:{visibility:l[t]?"hidden":""}},Po(Zl,i({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===r,isShort:!1},mi(e,n,o))))}))}function tu(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}var nu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=en(Hl),t.splitBgEventSegs=en(Hl),t.splitBusinessHourSegs=en(Hl),t.splitNowIndicatorSegs=en(Hl),t.splitDateSelectionSegs=en(Hl),t.splitEventDrag=en(Ul),t.splitEventResize=en(Ul),t.rootElRef=Io(),t.cellElRefs=new Vs,t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),i=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,i),r=this.splitBgEventSegs(t.bgEventSegs,i),s=this.splitBusinessHourSegs(t.businessHourSegs,i),a=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),l=this.splitDateSelectionSegs(t.dateSelectionSegs,i),u=this.splitEventDrag(t.eventDrag,i),c=this.splitEventResize(t.eventResize,i);return Po("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Po("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,Po("tbody",{role:"presentation"},Po("tr",{role:"row"},t.axis&&Po("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Po("div",{className:"fc-timegrid-col-frame"},Po("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&Po(ca,{isAxis:!0,date:t.nowDate},function(e,t,i,o){return Po("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:n}},o)})))),t.cells.map(function(n,i){return Po(Jl,{key:n.key,elRef:e.cellElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,nowDate:t.nowDate,todayRange:t.todayRange,extraHookProps:n.extraHookProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,fgEventSegs:o[i],bgEventSegs:r[i],businessHourSegs:s[i],nowIndicatorSegs:a[i],dateSelectionSegs:l[i],eventDrag:u[i],eventResize:c[i],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})})))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e,t=this.props;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new Eo(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map(function(t){return e[t.key]})),!0,!1))},t}(Bo);var iu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=en(ou),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,i=t.state.slatCoords;if(n&&i){if(e.time){var o=i.computeTimeTop(e.time);(o=Math.ceil(o))&&(o+=1),n(o)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return Po("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Po(zl,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Po(nu,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var n=this.context,o=n.dateEnv,r=n.options,s=this.colCoords,a=this.props.dateProfile,l=this.state.slatCoords,u=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=u.snapDuration,d=u.snapsPerSlot,p=s.leftToIndex(e),h=l.positions.topToIndex(t);if(null!=p&&null!=h){var f=this.props.cells[p],m=l.positions.tops[h],g=l.positions.getHeight(h),v=(t-m)/g,y=h*d+Math.floor(v*d),b=this.props.cells[p].date,w=qt(a.slotMinTime,Wt(c,y)),x=o.add(b,w),_=o.add(x,c);return{dateProfile:a,dateSpan:i({range:{start:x,end:_},allDay:!1},f.extraDateSpan),dayEl:s.els[p],rect:{left:s.lefts[p],right:s.rights[p],top:m,bottom:m+g},layer:0}}return null},t}(Yo);function ou(e,t){var n=t||e,i=Qt(e,n);return null===i&&(n=e,i=1),{snapDuration:n,snapsPerSlot:i}}var ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],i=0;i<t.length;i+=1){var o=Xn(e,t[i]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:i})}return n},t}(Ls),su=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=en(au),t.slicer=new ru,t.timeColsRef=Io(),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,o=t.dateProfile,r=t.dayTableModel,s=n.options.nowIndicator,a=this.buildDayRanges(r,o,n.dateEnv);return Po(Ds,{unit:s?"minute":"day"},function(l,u){return Po(iu,i({ref:e.timeColsRef},e.slicer.sliceProps(t,o,null,n,a),{forPrint:t.forPrint,axis:t.axis,dateProfile:o,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:r.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:s&&e.slicer.sliceNowDate(l,n,a),todayRange:u,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))})},t}(Yo);function au(e,t,n){for(var i=[],o=0,r=e.headerDates;o<r.length;o++){var s=r[o];i.push({start:n.add(s,t.slotMinTime),end:n.add(s,t.slotMaxTime)})}return i}var lu=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function uu(e,t,n,i,o){for(var r=new Date(0),s=e,a=Ut(0),l=n||function(e){var t,n,i;for(t=lu.length-1;t>=0;t-=1)if(n=Ut(lu[t]),null!==(i=Qt(n,e))&&i>1)return n;return e}(i),u=[];Vt(s)<Vt(t);){var c=o.add(r,s),d=null!==Qt(a,l);u.push({date:c,time:s,key:c.toISOString(),isoTimeStr:Zt(c),isLabeled:d}),s=qt(s,i),a=qt(a,i)}return u}var cu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=en(du),t.buildSlatMetas=en(uu),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,o=t.dateEnv,r=t.dateProfileGenerator,s=this.props,a=s.dateProfile,l=this.buildTimeColsModel(a,r),u=this.allDaySplitter.splitProps(s),c=this.buildSlatMetas(a.slotMinTime,a.slotMaxTime,n.slotLabelInterval,n.slotDuration,o),d=n.dayMinWidth,p=!d,h=d,f=n.dayHeaders&&Po(Rs,{dates:l.headerDates,dateProfile:a,datesRepDistinctDays:!0,renderIntro:p?this.renderHeadAxis:null}),m=!1!==n.allDaySlot&&function(t){return Po(Tl,i({},u.allDay,{dateProfile:a,dayTableModel:l,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:p?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:s.forPrint},e.getAllDayMaxEventProps()))},g=function(t){return Po(su,i({},u.timed,{dayTableModel:l,dateProfile:a,axis:p,slotDuration:n.slotDuration,slatMetas:c,forPrint:s.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return h?this.renderHScrollLayout(f,m,g,l.colCnt,d,c,this.state.slatCoords):this.renderSimpleLayout(f,m,g)},t}(Il);function du(e,t){var n=new As(e.renderRange,t);return new Ps(n,!1)}var pu=Ko({initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:cu,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),hu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={textId:Oe()},t}return n(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.dateEnv,o=e.options,r=e.viewApi,s=this.props,a=s.cellId,l=s.dayDate,u=s.todayRange,c=this.state.textId,d=co(l,u),p=o.listDayFormat?n.format(l,o.listDayFormat):"",h=o.listDaySideFormat?n.format(l,o.listDaySideFormat):"",f=i({date:n.toDate(l),view:r,textId:c,text:p,sideText:h,navLinkAttrs:mo(this.context,l),sideNavLinkAttrs:mo(this.context,l,"day",!1)},d),m=["fc-list-day"].concat(po(d,t));return Po(Jo,{hookProps:f,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:fu,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},function(e,n,i,o){return Po("tr",{ref:e,className:m.concat(n).join(" "),"data-date":Kt(l)},Po("th",{scope:"colgroup",colSpan:3,id:a,"aria-labelledby":c},Po("div",{className:"fc-list-day-cushion "+t.getClass("tableCellShaded"),ref:i},o)))})},t}(Bo);function fu(e){return Po(jo,null,e.text&&Po("a",i({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&Po("a",i({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}var mu=gn({hour:"numeric",minute:"2-digit",meridiem:"short"}),gu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,o=e.timeHeaderId,r=e.eventHeaderId,s=e.dateHeaderId,a=t.options.eventTimeFormat||mu;return Po(aa,{seg:n,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:function(){return function(e,t){var n=yi(e,t);return Po("a",i({},n),e.eventRange.def.title)}(n,t)},isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:e.isSelected,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting},function(e,i,l,u,c){return Po("tr",{className:["fc-list-event",c.event.url?"fc-event-forced-url":""].concat(i).join(" "),ref:e},function(e,t,n,i,o){var r=n.options;if(!1!==r.displayEventTime){var s=e.eventRange.def,a=e.eventRange.instance,l=!1,u=void 0;if(s.allDay?l=!0:Gn(e.eventRange.range)?e.isStart?u=fi(e,t,n,null,null,a.range.start,e.end):e.isEnd?u=fi(e,t,n,null,null,e.start,a.range.end):l=!0:u=fi(e,t,n),l){var c={text:n.options.allDayText,view:n.viewApi};return Po(Jo,{hookProps:c,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:vu,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},function(e,t,n,r){return Po("td",{ref:e,headers:i+" "+o,className:["fc-list-event-time"].concat(t).join(" ")},r)})}return Po("td",{className:"fc-list-event-time"},u)}return null}(n,a,t,o,s),Po("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},Po("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),Po("td",{ref:l,headers:r+" "+s,className:"fc-list-event-title"},u))})},t}(Bo);function vu(e){return e.text}var yu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.computeDateVars=en(wu),t.eventStoreToSegs=en(t._eventStoreToSegs),t.state={timeHeaderId:Oe(),eventHeaderId:Oe(),dateHeaderIdRoot:Oe()},t.setRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,i=["fc-list",n.theme.getClass("table"),!1!==n.options.stickyHeaderDates?"fc-list-sticky":""],o=this.computeDateVars(t.dateProfile),r=o.dayDates,s=o.dayRanges,a=this.eventStoreToSegs(t.eventStore,t.eventUiBases,s);return Po(ar,{viewSpec:n.viewSpec,elRef:this.setRootEl},function(n,o){return Po("div",{ref:n,className:i.concat(o).join(" ")},Po(Bs,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},a.length>0?e.renderSegList(a,r):e.renderEmptyMessage()))})},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi,i={text:t.noEventsText,view:n};return Po(Jo,{hookProps:i,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:bu,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},function(e,t,n,i){return Po("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},Po("div",{className:"fc-list-empty-cushion",ref:n},i))})},t.prototype.renderSegList=function(e,t){var n=this.context,o=n.theme,r=n.options,s=this.state,a=s.timeHeaderId,l=s.eventHeaderId,u=s.dateHeaderIdRoot,c=function(e){var t,n,i=[];for(t=0;t<e.length;t+=1)n=e[t],(i[n.dayIndex]||(i[n.dayIndex]=[])).push(n);return i}(e);return Po(Ds,{unit:"day"},function(e,n){for(var s=[],d=0;d<c.length;d+=1){var p=c[d];if(p){var h=Kt(t[d]),f=u+"-"+h;s.push(Po(hu,{key:h,cellId:f,dayDate:t[d],todayRange:n}));for(var m=0,g=p=ui(p,r.eventOrder);m<g.length;m++){var v=g[m];s.push(Po(gu,i({key:h+":"+v.eventRange.instance.instanceId,seg:v,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:a,eventHeaderId:l,dateHeaderId:f},mi(v,n,e))))}}}return Po("table",{className:"fc-list-table "+o.getClass("table")},Po("thead",null,Po("tr",null,Po("th",{scope:"col",id:a},r.timeHint),Po("th",{scope:"col","aria-hidden":!0}),Po("th",{scope:"col",id:l},r.eventHint))),Po("tbody",null,s))})},t.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(ii(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},t.prototype.eventRangesToSegs=function(e,t){for(var n=[],i=0,o=e;i<o.length;i++){var r=o[i];n.push.apply(n,this.eventRangeToSegs(r,t))}return n},t.prototype.eventRangeToSegs=function(e,t){var n,i,o,r=this.context.dateEnv,s=this.context.options.nextDayThreshold,a=e.range,l=e.def.allDay,u=[];for(n=0;n<t.length;n+=1)if((i=Xn(a,t[n]))&&(o={component:this,eventRange:e,start:i.start,end:i.end,isStart:e.isStart&&i.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&i.end.valueOf()===a.end.valueOf(),dayIndex:n},u.push(o),!o.isEnd&&!l&&n+1<t.length&&a.end<r.add(t[n+1].start,s))){o.end=a.end,o.isEnd=!0;break}return u},t}(Yo);function bu(e){return e.text}function wu(e){for(var t=gt(e.renderRange.start),n=e.renderRange.end,i=[],o=[];t<n;)i.push(t),o.push({start:t,end:ut(t,1)}),t=ut(t,1);return{dayDates:i,dayRanges:o}}function xu(e){return!1===e?null:gn(e)}var _u=Ko({optionRefiners:{listDayFormat:xu,listDaySideFormat:xu,noEventsClassNames:Cn,noEventsContent:Cn,noEventsDidMount:Cn,noEventsWillUnmount:Cn},views:{list:{component:yu,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}),Su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(Mo);Su.prototype.classes={root:"fc-theme-bootstrap",table:"table-bordered",tableCellShaded:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",buttonActive:"active",popover:"popover",popoverHeader:"popover-header",popoverContent:"popover-body"},Su.prototype.baseIconClass="fa",Su.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},Su.prototype.rtlIconClasses={prev:"fa-chevron-right",next:"fa-chevron-left",prevYear:"fa-angle-double-right",nextYear:"fa-angle-double-left"},Su.prototype.iconOverrideOption="bootstrapFontAwesome",Su.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",Su.prototype.iconOverridePrefix="fa-";var ku=Ko({themeClasses:{bootstrap:Su}}),Tu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(Mo);Tu.prototype.classes={root:"fc-theme-bootstrap5",tableCellShaded:"fc-theme-bootstrap5-shaded",buttonGroup:"btn-group",button:"btn btn-primary",buttonActive:"active",popover:"popover",popoverHeader:"popover-header",popoverContent:"popover-body"},Tu.prototype.baseIconClass="bi",Tu.prototype.iconClasses={close:"bi-x-lg",prev:"bi-chevron-left",next:"bi-chevron-right",prevYear:"bi-chevron-double-left",nextYear:"bi-chevron-double-right"},Tu.prototype.rtlIconClasses={prev:"bi-chevron-right",next:"bi-chevron-left",prevYear:"bi-chevron-double-right",nextYear:"bi-chevron-double-left"},Tu.prototype.iconOverrideOption="buttonIcons",Tu.prototype.iconOverrideCustomButtonOption="icon",Tu.prototype.iconOverridePrefix="bi-";var Cu=Ko({themeClasses:{bootstrap5:Tu}}),Eu={googleCalendarApiKey:String},Du={googleCalendarApiKey:String,googleCalendarId:String,googleCalendarApiBase:String,extraParams:Cn},$u="https://www.googleapis.com/calendar/v3/calendars";var Ru=Ko({eventSourceDefs:[{parseMeta:function(e){var t=e.googleCalendarId;return!t&&e.url&&(t=function(e){var t;if(/^[^/]+@([^/.]+\.)*(google|googlemail|gmail)\.com$/.test(e))return e;if((t=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^/]*)/.exec(e))||(t=/^https?:\/\/www.google.com\/calendar\/feeds\/([^/]*)/.exec(e)))return decodeURIComponent(t[1]);return null}(e.url)),t?{googleCalendarId:t,googleCalendarApiKey:e.googleCalendarApiKey,googleCalendarApiBase:e.googleCalendarApiBase,extraParams:e.extraParams}:null},fetch:function(e,t,n){var o=e.context,r=o.dateEnv,s=o.options,a=e.eventSource.meta,l=a.googleCalendarApiKey||s.googleCalendarApiKey;if(l){var u=function(e){var t=e.googleCalendarApiBase;t||(t=$u);return t+"/"+encodeURIComponent(e.googleCalendarId)+"/events"}(a),c=a.extraParams,d="function"==typeof c?c():c,p=function(e,t,n,o){var r,s,a;o.canComputeOffset?(s=o.formatIso(e.start),a=o.formatIso(e.end)):(s=ut(e.start,-1).toISOString(),a=ut(e.end,1).toISOString());r=i(i({},n||{}),{key:t,timeMin:s,timeMax:a,singleEvents:!0,maxResults:9999}),"local"!==o.timeZone&&(r.timeZone=o.timeZone);return r}(e.range,l,d,r);Ar("GET",u,p,function(e,i){var o,r;e.error?n({message:"Google Calendar API: "+e.error.message,errors:e.error.errors,xhr:i}):t({rawEvents:(o=e.items,r=p.timeZone,o.map(function(e){return function(e,t){var n=e.htmlLink||null;n&&t&&(n=function(e,t){return e.replace(/(\?.*?)?(#|$)/,function(e,n,i){return(n?n+"&":"?")+t+i})}(n,"ctz="+t));return{id:e.id,title:e.summary,start:e.start.dateTime||e.start.date,end:e.end.dateTime||e.end.date,url:n,location:e.location,description:e.description,attachments:e.attachments||[],extendedProps:(e.extendedProperties||{}).shared||{}}}(e,r)})),xhr:i})},function(e,t){n({message:e,xhr:t})})}else n({message:"Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"})}}],optionRefiners:Eu,eventSourceRefiners:Du});return Ir.push(nl,Dl,pu,_u,ku,Cu,Ru),e.BASE_OPTION_DEFAULTS=yn,e.BASE_OPTION_REFINERS=vn,e.BaseComponent=Bo,e.BgEvent=ga,e.BootstrapTheme=Su,e.Calendar=Da,e.CalendarApi=Ii,e.CalendarContent=ys,e.CalendarDataManager=zr,e.CalendarDataProvider=Kr,e.CalendarRoot=xs,e.Component=Ao,e.ContentHook=tr,e.CustomContentRenderContext=er,e.DateComponent=Yo,e.DateEnv=Wi,e.DateProfileGenerator=pr,e.DayCellContent=pa,e.DayCellRoot=fa,e.DayGridView=Cl,e.DayHeader=Rs,e.DaySeriesModel=As,e.DayTable=Tl,e.DayTableModel=Ps,e.DayTableSlicer=kl,e.DayTimeCols=su,e.DayTimeColsSlicer=ru,e.DayTimeColsView=cu,e.DelayedRunner=jr,e.Draggable=Ja,e.ElementDragging=us,e.ElementScrollController=$o,e.Emitter=Co,e.EventApi=ji,e.EventRoot=aa,e.EventSourceApi=Ce,e.FeaturefulElementDragging=Ha,e.Fragment=jo,e.Interaction=ss,e.ListView=yu,e.MoreLinkRoot=_a,e.MountHook=ir,e.NamedTimeZoneImpl=Zr,e.NowIndicatorRoot=ca,e.NowTimer=Ds,e.PointerDragging=Aa,e.PositionCache=Eo,e.RefMap=Vs,e.RenderHook=Jo,e.ScrollController=Do,e.ScrollResponder=Uo,e.Scroller=Bs,e.SegHierarchy=Xr,e.SimpleScrollGrid=sa,e.Slicer=Ls,e.Splitter=lo,e.StandardEvent=la,e.Table=_l,e.TableDateCell=Ts,e.TableDowCell=Es,e.TableView=il,e.Theme=Mo,e.ThirdPartyDraggable=tl,e.TimeCols=iu,e.TimeColsSlatsCoords=Ol,e.TimeColsView=Il,e.ViewApi=Ri,e.ViewContextType=Fo,e.ViewRoot=ar,e.WeekNumberRoot=ya,e.WindowScrollController=Ro,e.addDays=ut,e.addDurations=qt,e.addMs=ct,e.addWeeks=lt,e.allowContextMenu=Ze,e.allowSelection=Ye,e.applyMutationToEventStore=Ei,e.applyStyle=Ae,e.applyStyleProp=Pe,e.asCleanDays=function(e){return e.years||e.months||e.milliseconds?0:e.days},e.asRoughMinutes=function(e){return Vt(e)/6e4},e.asRoughMs=Vt,e.asRoughSeconds=function(e){return Vt(e)/1e3},e.binarySearch=rs,e.buildClassNameNormalizer=or,e.buildDayRanges=au,e.buildDayTableModel=El,e.buildEntryKey=es,e.buildEventApis=Ni,e.buildEventRangeKey=vi,e.buildHashFromArray=function(e,t){for(var n={},i=0;i<e.length;i+=1){var o=t(e[i],i);n[o[0]]=o[1]}return n},e.buildIsoString=Yt,e.buildNavLinkAttrs=mo,e.buildSegCompareObj=ci,e.buildSegTimeText=fi,e.buildSlatMetas=uu,e.buildTimeColsModel=du,e.collectFromHash=jt,e.combineEventUis=On,e.compareByFieldSpec=et,e.compareByFieldSpecs=Je,e.compareNumbers=ot,e.compareObjs=Lt,e.computeEarliestSegStart=Ta,e.computeEdges=xo,e.computeFallbackHeaderFormat=_s,e.computeHeightAndMargins=function(e){return e.getBoundingClientRect().height+function(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(e)},e.computeInnerRect=_o,e.computeRect=So,e.computeSegDraggable=di,e.computeSegEndResizable=hi,e.computeSegStartResizable=pi,e.computeShrinkWidth=Qs,e.computeSmallestCellWidth=st,e.computeVisibleDayRange=Qn,e.config=cs,e.constrainPoint=io,e.createAriaClickAttrs=Fe,e.createContext=Oo,e.createDuration=Ut,e.createElement=Po,e.createEmptyEventStore=Rn,e.createEventInstance=Tt,e.createEventUi=jn,e.createFormatter=gn,e.createPlugin=Ko,e.createPortal=No,e.createRef=Io,e.diffDates=Yn,e.diffDayAndTime=ht,e.diffDays=pt,e.diffPoints=ro,e.diffWeeks=dt,e.diffWholeDays=mt,e.diffWholeWeeks=ft,e.disableCursor=Ve,e.elementClosest=De,e.elementMatches=$e,e.enableCursor=Qe,e.eventTupleToStore=Dn,e.filterEventStoreDefs=An,e.filterHash=Dt,e.findDirectChildren=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,i=[],o=0;o<n.length;o+=1)for(var r=n[o].children,s=0;s<r.length;s+=1){var a=r[s];t&&!$e(a,t)||i.push(a)}return i},e.findElements=Re,e.flexibleCompare=tt,e.flushSync=zo,e.formatDate=function(e,t){void 0===t&&(t={});var n=Zi(t),i=gn(t),o=n.createMarkerMeta(e);return o?n.format(o.marker,i,{forcedTzo:o.forcedTzo}):""},e.formatDayString=Kt,e.formatIsoTimeString=Zt,e.formatRange=function(e,t,n){var i=Zi("object"==typeof n&&n?n:{}),o=gn(n),r=i.createMarkerMeta(e),s=i.createMarkerMeta(t);return r&&s?i.formatRange(r.marker,s.marker,o,{forcedStartTzo:r.forcedTzo,forcedEndTzo:s.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:yn.defaultRangeSeparator}):""},e.getAllowYScrolling=Ys,e.getCanVGrowWithinCell=so,e.getClippingParents=ko,e.getDateMeta=co,e.getDayClassNames=po,e.getDefaultEventEnd=Ci,e.getElRoot=Ie,e.getElSeg=si,e.getEntrySpanEnd=Jr,e.getEventClassNames=gi,e.getEventTargetViaRoot=Le,e.getIsRtlScrollbarOnLeft=yo,e.getRectCenter=oo,e.getRelevantEvents=$n,e.getScrollGridClassNames=ta,e.getScrollbarWidths=bo,e.getSectionClassNames=na,e.getSectionHasLiquidHeight=Gs,e.getSegAnchorAttrs=yi,e.getSegMeta=mi,e.getSlotClassNames=function(e,t){var n=["fc-slot","fc-slot-"+at[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n},e.getStickyFooterScrollbar=ra,e.getStickyHeaderDates=oa,e.getUnequalProps=Pt,e.getUniqueDomId=Oe,e.globalLocales=Bi,e.globalPlugins=Ir,e.greatestDurationDenominator=Gt,e.groupIntersectingEntries=ts,e.guid=Be,e.hasBgRendering=oi,e.hasShrinkWidth=ea,e.identity=Cn,e.interactionSettingsStore=ls,e.interactionSettingsToStore=as,e.intersectRanges=Xn,e.intersectRects=no,e.intersectSpans=is,e.isArraysEqual=Jt,e.isColPropsEqual=Zs,e.isDateSelectionValid=Os,e.isDateSpansEqual=xi,e.isInt=rt,e.isInteractionValid=js,e.isMultiDayRange=Gn,e.isPropsEqual=At,e.isPropsValid=zs,e.isValidDate=St,e.joinSpans=ns,e.listenBySelector=ze,e.mapHash=$t,e.memoize=en,e.memoizeArraylike=function(e,t,n){var i=this,o=[],r=[];return function(s){for(var a=o.length,l=s.length,u=0;u<a;u+=1)if(s[u]){if(!Jt(o[u],s[u])){n&&n(r[u]);var c=e.apply(i,s[u]);t&&t(c,r[u])||(r[u]=c)}}else n&&n(r[u]);for(;u<l;u+=1)r[u]=e.apply(i,s[u]);return o=s,r.splice(l),r}},e.memoizeHashlike=function(e,t,n){var i=this,o={},r={};return function(s){var a={};for(var l in s)if(r[l])if(Jt(o[l],s[l]))a[l]=r[l];else{n&&n(r[l]);var u=e.apply(i,s[l]);a[l]=t&&t(u,r[l])?r[l]:u}else a[l]=e.apply(i,s[l]);return o=s,r=a,a}},e.memoizeObjArg=tn,e.mergeEventStores=Mn,e.multiplyDuration=Wt,e.padStart=nt,e.parseBusinessHours=eo,e.parseClassNames=Pn,e.parseDragMeta=ps,e.parseEventDef=Bn,e.parseFieldSpecs=Xe,e.parseMarker=qi,e.pointInsideRect=to,e.preventContextMenu=Ke,e.preventDefault=Ne,e.preventSelection=Ge,e.rangeContainsMarker=ni,e.rangeContainsRange=ti,e.rangesEqual=Jn,e.rangesIntersect=ei,e.refineEventDef=qn,e.refineProps=Tn,e.removeElement=Ee,e.removeExact=function(e,t){for(var n=0,i=0;i<e.length;)e[i]===t?(e.splice(i,1),n+=1):i+=1;return n},e.render=Lo,e.renderChunkContent=Ks,e.renderFill=ma,e.renderMicroColGroup=Xs,e.renderScrollShim=ia,e.requestJson=Ar,e.sanitizeShrinkWidth=Js,e.setElSeg=ri,e.setRef=Go,e.sliceEventStore=ii,e.sliceEvents=function(e,t){return ii(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.sortEventSegs=ui,e.startOfDay=gt,e.translateRect=function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},e.triggerDateSelect=ki,e.unmountComponentAtNode=Ho,e.unpromisify=To,e.version="5.11.5",e.whenTransitionDone=Ue,e.wholeDivideDurations=Qt,Object.defineProperty(e,"__esModule",{value:!0}),e}({});function SuggestController(){this.init=function(){jQuery("form[data-suggest]").each(function(){var e,t=$(this),n=t.find(".tx-solr-suggest");e=t.find(".tx-solr-autocomplete").length>0?t.find(".tx-solr-autocomplete"):$("body"),0===n.length&&(n=t),n.css("position","relative"),t.on("submit",function(e){""===t.find(".tx-solr-suggest").val()&&(e.preventDefault(),t.find(".tx-solr-suggest").focus())}),t.find(".tx-solr-suggest").devbridgeAutocomplete({serviceUrl:t.data("suggest"),dataType:"jsonp",ajaxSettings:{jsonp:"tx_solr[callback]"},paramName:"tx_solr[queryString]",groupBy:"category",maxHeight:1e3,appendTo:e,autoSelectFirst:!1,triggerSelectOnValidInput:!1,width:.66*n.outerWidth(),onSelect:function(e){e.data.link?0===e.data.link.indexOf("https://www.youtube.com")?openVideoOverlay(e.data.link):location.href=e.data.link:t.trigger("submit")},transformResult:function(e){if(!e.suggestions)return{suggestions:[]};var n,i={suggestions:$.map(e.suggestions,function(e,t){return n||(n=t),{value:t,data:{category:"suggestion",count:e}}})};return $.each(e.documents,function(e,o){var r=o,s=t.data("suggest-header")?t.data("suggest-header"):"Top results";r.category=s,r.group&&(r.category=t.data("suggest-header-"+r.group)?t.data("suggest-header-"+r.group):r.group),i.suggestions.push({value:n,data:r})}),i},beforeRender:function(e){e.find(".autocomplete-group:first").remove(),e.addClass("tx-solr-autosuggest"),n.parent().addClass("autocomplete-active").fadeIn()},formatResult:function(e,t){if(!t)return e.value;var n="("+$.Autocomplete.utils.escapeRegExChars(t.trim())+")",i="";return"suggestion"===e.data.category?(i=e.value.replace(new RegExp(n,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>"),'<a href="'+($("#tx-solr-search-form-pi-results").attr("action")+"/"+e.value)+'" class="internal-link">'+i+"</a>"):(i=e.data.title.replace(new RegExp(n,"gi"),"$1").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?em)&gt;/g,"<$1>"),'<div class="'+e.data.type+'">'+(e.data.previewImage?"<figure "+(e.data.hasVideo?'class="hasVideo"':"")+'><img src="'+e.data.previewImage+'" /></figure>':"")+'<a href="'+e.data.link+'" class="internal-link">'+i+"</a></div>")}}).on("blur",function(){n.parent().removeClass("autocomplete-active");var e=$(this);setTimeout(function(){e.devbridgeAutocomplete("hide")},200)})})}}function changeView(e){$(window).width()>991?e.changeView("dayGridMonth"):e.changeView("listWeek")}[].push.apply(FullCalendar.globalLocales,function(){"use strict";function e(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}function t(e){return"Tag"===e||"Monat"===e?"r":"Jahr"===e?"s":""}return[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText:function(e){return"+ daha çox "+e},noEventsText:"Göstərmək üçün hadisə yoxdur"},{code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText:function(e){return"+още "+e},noEventsText:"Няма събития за показване"},{code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText:function(e){return"+অন্যান্য "+e},noEventsText:"কোনো ইভেন্ট নেই"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nema događaja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText:function(e){return"+další: "+e},noEventsText:"Žádné akce k zobrazení"},{code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"},{code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:function(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:function(t){return"Vorherige".concat(e(t)," ").concat(t)},next:function(t){return"Nächste".concat(e(t)," ").concat(t)},today:function(t){return"Tag"===t?"Heute":"Diese".concat(e(t)," ").concat(t)}},viewHint:function(e){return e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint:function(e){return"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},{code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText:function(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev:function(e){return"Vorherige".concat(t(e)," ").concat(e)},next:function(e){return"Nächste".concat(t(e)," ").concat(e)},today:function(e){return"Tag"===e?"Heute":"Diese".concat(t(e)," ").concat(e)}},viewHint:function(e){return e+("Woche"===e?"n":"Monat"===e?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint:function(e){return"Zeige "+(1===e?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},{code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},{code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},{code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},{code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}},{code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today:function(e){return"Día"===e?"Hoy":("Semana"===e?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint:function(e){return"Vista "+("Semana"===e?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint:function(e){return"Mostrar ".concat(e," eventos más")},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText:function(e){return"+ veel "+e},noEventsText:"Kuvamiseks puuduvad sündmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText:function(e){return"بیش از "+e},noEventsText:"هیچ رویدادی به نمایش"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},{code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},weekText:"Sm",allDayText:"Todo o día",moreLinkText:"máis",noEventsText:"Non hai eventos para amosar"},{code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"אחר",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText:function(e){return"+अधिक "+e},noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nema događaja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},{code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText:function(e){return"+ ևս "+e},noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:function(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"前",next:"次",today:"今日",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText:function(e){return"他 "+e+" 件"},noEventsText:"表示する予定はありません"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText:function(e){return"+ კიდევ "+e},noEventsText:"ღონისძიებები არ არის"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText:function(e){return"+ тағы "+e},noEventsText:"Көрсету үшін оқиғалар жоқ"},{code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},{code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},{code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText:function(e){return"+vēl "+e},noEventsText:"Nav notikumu"},{code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText:function(e){return"+повеќе "+e},noEventsText:"Нема настани за прикажување"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText:function(e){return"masih ada "+e+" acara"},noEventsText:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint:function(e){return"Vis ".concat(e," flere hendelse").concat(1===e?"":"r")}},{code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},weekText:"Sm",allDayText:"dia inteiro",moreLinkText:function(e){return"mais +"+e},noEventsText:"Não há eventos para mostrar"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText:function(e){return"+alte "+e},noEventsText:"Nu există evenimente de afișat"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText:function(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"},{code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText:function(e){return"+ďalšie: "+e},noEventsText:"Žiadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},{code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"sot",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText:function(e){return"+më tepër "+e},noEventsText:"Nuk ka evente për të shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText:function(e){return"+ још "+e},noEventsText:"Нема догађаја за приказ"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText:function(e){return"+ još "+e},noEventsText:"Nеma događaja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev:function(e){return"Föregående ".concat(e.toLocaleLowerCase())},next:function(e){return"Nästa ".concat(e.toLocaleLowerCase())},today:function(e){return("Program"===e?"Detta":"Denna")+" "+e.toLocaleLowerCase()}},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint:function(e){return"Visa ytterligare ".concat(e," händelse").concat(1===e?"":"r")},weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},{code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText:function(e){return"+ மேலும் "+e},noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},{code:"ug",buttonText:{month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText:function(e){return"+ще "+e+"..."},noEventsText:"Немає подій для відображення"},{code:"uz",buttonText:{month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText:function(e){return"+ yana "+e},noEventsText:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText:function(e){return"+ thêm "+e},noEventsText:"Không có sự kiện để hiển thị"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText:function(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"},{code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"周",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"没有任何活動"}]}()),function(e){"undefined"!=typeof jQuery&&jQuery||"function"!=typeof define||!define.amd?"undefined"!=typeof jQuery&&jQuery||"object"!=typeof exports?e(jQuery,document,window,navigator):e(require("jquery"),document,window,navigator):define(["jquery"],function(t){return e(t,document,window,navigator)})}(function(e,t,n,i,o){"use strict";var r,s,a=0,l=(r=i.userAgent,s=/msie\s\d+/i,r.search(s)>0&&s.exec(r).toString().split(" ")[1]<9&&(e("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,n=[].slice;if("function"!=typeof t)throw new TypeError;var i=n.call(arguments,1),o=function(){if(this instanceof o){var r=function(){};r.prototype=t.prototype;var s=new r,a=t.apply(s,i.concat(n.call(arguments)));return Object(a)===a?a:s}return t.apply(e,i.concat(n.call(arguments)))};return o}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),o=i.length>>>0;if(0===o)return-1;var r=+t||0;if(Math.abs(r)===1/0&&(r=0),r>=o)return-1;for(n=Math.max(r>=0?r:o-Math.abs(r),0);n<o;){if(n in i&&i[n]===e)return n;n++}return-1});var u=function(i,r,s){this.VERSION="2.3.1",this.input=i,this.plugin_count=s,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,r=r||{},this.$cache={win:e(n),body:e(t.body),input:e(i),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var a,l,u,c=this.$cache.input,d=c.prop("value");for(u in a={skin:"flat",type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==c[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",c[0]),(l={skin:c.data("skin"),type:c.data("type"),min:c.data("min"),max:c.data("max"),from:c.data("from"),to:c.data("to"),step:c.data("step"),min_interval:c.data("minInterval"),max_interval:c.data("maxInterval"),drag_interval:c.data("dragInterval"),values:c.data("values"),from_fixed:c.data("fromFixed"),from_min:c.data("fromMin"),from_max:c.data("fromMax"),from_shadow:c.data("fromShadow"),to_fixed:c.data("toFixed"),to_min:c.data("toMin"),to_max:c.data("toMax"),to_shadow:c.data("toShadow"),prettify_enabled:c.data("prettifyEnabled"),prettify_separator:c.data("prettifySeparator"),force_edges:c.data("forceEdges"),keyboard:c.data("keyboard"),grid:c.data("grid"),grid_margin:c.data("gridMargin"),grid_num:c.data("gridNum"),grid_snap:c.data("gridSnap"),hide_min_max:c.data("hideMinMax"),hide_from_to:c.data("hideFromTo"),prefix:c.data("prefix"),postfix:c.data("postfix"),max_postfix:c.data("maxPostfix"),decorate_both:c.data("decorateBoth"),values_separator:c.data("valuesSeparator"),input_values_separator:c.data("inputValuesSeparator"),disable:c.data("disable"),block:c.data("block"),extra_classes:c.data("extraClasses")}).values=l.values&&l.values.split(","),l)l.hasOwnProperty(u)&&(l[u]!==o&&""!==l[u]||delete l[u]);d!==o&&""!==d&&((d=d.split(l.input_values_separator||r.input_values_separator||";"))[0]&&d[0]==+d[0]&&(d[0]=+d[0]),d[1]&&d[1]==+d[1]&&(d[1]=+d[1]),r&&r.values&&r.values.length?(a.from=d[0]&&r.values.indexOf(d[0]),a.to=d[1]&&r.values.indexOf(d[1])):(a.from=d[0]&&+d[0],a.to=d[1]&&+d[1])),e.extend(a,r),e.extend(a,l),this.options=a,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};u.prototype={init:function(e){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),e?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var e='<span class="irs irs--'+this.options.skin+" js-irs-"+this.plugin_count+" "+this.options.extra_classes+'"></span>';this.$cache.input.before(e),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar irs-bar--single"></span><span class="irs-shadow shadow-single"></span><span class="irs-handle single"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-bar"></span><span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-handle from"><i></i><i></i><i></i></span><span class="irs-handle to"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var e=this.options.min,t=this.options.max,n=this.options.from,i=this.options.to;n>e&&i===t?this.$cache.s_from.addClass("type_last"):i<t&&this.$cache.s_to.addClass("type_last")},changeLevel:function(e){switch(e){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),l&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),l&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(e){var t,n;this.target||(t=(n="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,t+=n.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:t}))},pointerMove:function(e){if(this.dragging){var t=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;this.coords.x_pointer=t-this.coords.x_gap,this.calc()}},pointerUp:function(t){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,l&&e("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(e.contains(this.$cache.cont[0],t.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(t,n){n.preventDefault();var i=n.pageX||n.originalEvent.touches&&n.originalEvent.touches[0].pageX;2!==n.button&&("both"===t&&this.setTempMinInterval(),t||(t=this.target||"from"),this.current_plugin=this.plugin_count,this.target=t,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=i-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(t),l&&e("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(e,t){t.preventDefault();var n=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;2!==t.button&&(this.current_plugin=this.plugin_count,this.target=e,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(n-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(e,t){if(!(this.current_plugin!==this.plugin_count||t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)){switch(t.which){case 83:case 65:case 40:case 37:t.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:t.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(e){var t=this.coords.p_pointer,n=(this.options.max-this.options.min)/100;n=this.options.step/n,e?t+=n:t-=n,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*t),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var e=this._prettify(this.options.min),t=this._prettify(this.options.max);this.result.min_pretty=e,this.result.max_pretty=t,this.$cache.min.html(this.decorate(e,this.options.min)),this.$cache.max.html(this.decorate(t,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var e=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=e},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(e){if(this.options&&(this.calc_count++,(10===this.calc_count||e)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var t=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,t=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,t=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(t)),this.target){case"base":var n=(this.options.max-this.options.min)/100,i=(this.result.from-this.options.min)/n,o=(this.result.to-this.options.min)/n;this.coords.p_single_real=this.toFixed(i),this.coords.p_from_real=this.toFixed(i),this.coords.p_to_real=this.toFixed(o),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(t),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(t),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(t),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;t=this.toFixed(t+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(t)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(t)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var r=this.convertToRealPercent(t),s=this.result.from_percent,a=this.result.to_percent-s,l=a/2,u=r-l,c=r+l;u<0&&(c=(u=0)+a),c>100&&(u=(c=100)-a),this.coords.p_from_real=this.calcWithStep(u),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(c),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(e){return e/(100-this.coords.p_handle)*100},convertToFakePercent:function(e){return e/100*(100-this.coords.p_handle)},getHandleX:function(){var e=100-this.coords.p_handle,t=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return t<0?t=0:t>e&&(t=e),t},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(e){return"single"===this.options.type?"single":e>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.bar[0].style.left=0,this.$cache.bar[0].style.width=this.coords.p_bar_w+this.coords.p_bar_x+"%",this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%"),this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var e,t,n,i,o,r=this.options.values.length,s=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)r?(e=this.decorate(s[this.result.from]),this.$cache.single.html(e)):(i=this._prettify(this.result.from),e=this.decorate(i,this.result.from),this.$cache.single.html(e)),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{r?(this.options.decorate_both?(e=this.decorate(s[this.result.from]),e+=this.options.values_separator,e+=this.decorate(s[this.result.to])):e=this.decorate(s[this.result.from]+this.options.values_separator+s[this.result.to]),t=this.decorate(s[this.result.from]),n=this.decorate(s[this.result.to]),this.$cache.single.html(e),this.$cache.from.html(t),this.$cache.to.html(n)):(i=this._prettify(this.result.from),o=this._prettify(this.result.to),this.options.decorate_both?(e=this.decorate(i,this.result.from),e+=this.options.values_separator,e+=this.decorate(o,this.result.to)):e=this.decorate(i+this.options.values_separator+o,this.result.to),t=this.decorate(i,this.result.from),n=this.decorate(o,this.result.to),this.$cache.single.html(e),this.$cache.from.html(t),this.$cache.to.html(n)),this.calcLabels();var a=Math.min(this.labels.p_single_left,this.labels.p_from_left),l=this.labels.p_single_left+this.labels.p_single_fake,u=this.labels.p_to_left+this.labels.p_to_fake,c=Math.max(l,u);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",c=u):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",c=Math.max(l,u))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),a<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",c>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var e,t,n,i,o=this.options,r=this.$cache,s="number"==typeof o.from_min&&!isNaN(o.from_min),a="number"==typeof o.from_max&&!isNaN(o.from_max),l="number"==typeof o.to_min&&!isNaN(o.to_min),u="number"==typeof o.to_max&&!isNaN(o.to_max);"single"===o.type?o.from_shadow&&(s||a)?(e=this.convertToPercent(s?o.from_min:o.min),t=this.convertToPercent(a?o.from_max:o.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),t=this.toFixed(t-this.coords.p_handle/100*t),e+=this.coords.p_handle/2,r.shad_single[0].style.display="block",r.shad_single[0].style.left=e+"%",r.shad_single[0].style.width=t+"%"):r.shad_single[0].style.display="none":(o.from_shadow&&(s||a)?(e=this.convertToPercent(s?o.from_min:o.min),t=this.convertToPercent(a?o.from_max:o.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),t=this.toFixed(t-this.coords.p_handle/100*t),e+=this.coords.p_handle/2,r.shad_from[0].style.display="block",r.shad_from[0].style.left=e+"%",r.shad_from[0].style.width=t+"%"):r.shad_from[0].style.display="none",o.to_shadow&&(l||u)?(n=this.convertToPercent(l?o.to_min:o.min),i=this.convertToPercent(u?o.to_max:o.max)-n,n=this.toFixed(n-this.coords.p_handle/100*n),i=this.toFixed(i-this.coords.p_handle/100*i),n+=this.coords.p_handle/2,r.shad_to[0].style.display="block",r.shad_to[0].style.left=n+"%",r.shad_to[0].style.width=i+"%"):r.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(e,t){var n,i=this.options.max-this.options.min,o=i/100;return i?(n=(t?e:e-this.options.min)/o,this.toFixed(n)):(this.no_diapason=!0,0)},convertToValue:function(e){var t,n,i=this.options.min,o=this.options.max,r=i.toString().split(".")[1],s=o.toString().split(".")[1],a=0,l=0;if(0===e)return this.options.min;if(100===e)return this.options.max;r&&(a=t=r.length),s&&(a=n=s.length),t&&n&&(a=t>=n?t:n),i<0&&(i=+(i+(l=Math.abs(i))).toFixed(a),o=+(o+l).toFixed(a));var u,c=(o-i)/100*e+i,d=this.options.step.toString().split(".")[1];return d?c=+c.toFixed(d.length):(c/=this.options.step,c=+(c*=this.options.step).toFixed(0)),l&&(c-=l),(u=d?+c.toFixed(d.length):this.toFixed(c))<this.options.min?u=this.options.min:u>this.options.max&&(u=this.options.max),u},calcWithStep:function(e){var t=Math.round(e/this.coords.p_step)*this.coords.p_step;return t>100&&(t=100),100===e&&(t=100),this.toFixed(t)},checkMinInterval:function(e,t,n){var i,o,r=this.options;return r.min_interval?(i=this.convertToValue(e),o=this.convertToValue(t),"from"===n?o-i<r.min_interval&&(i=o-r.min_interval):i-o<r.min_interval&&(i=o+r.min_interval),this.convertToPercent(i)):e},checkMaxInterval:function(e,t,n){var i,o,r=this.options;return r.max_interval?(i=this.convertToValue(e),o=this.convertToValue(t),"from"===n?o-i>r.max_interval&&(i=o-r.max_interval):i-o>r.max_interval&&(i=o+r.max_interval),this.convertToPercent(i)):e},checkDiapason:function(e,t,n){var i=this.convertToValue(e),o=this.options;return"number"!=typeof t&&(t=o.min),"number"!=typeof n&&(n=o.max),i<t&&(i=t),i>n&&(i=n),this.convertToPercent(i)},toFixed:function(e){return+(e=e.toFixed(20))},_prettify:function(e){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(e):this.prettify(e):e},prettify:function(e){return e.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(e,t){return this.options.force_edges?(e<0?e=0:e>100-t&&(e=100-t),this.toFixed(e)):this.toFixed(e)},validate:function(){var e,t,n=this.options,i=this.result,o=n.values,r=o.length;if("string"==typeof n.min&&(n.min=+n.min),"string"==typeof n.max&&(n.max=+n.max),"string"==typeof n.from&&(n.from=+n.from),"string"==typeof n.to&&(n.to=+n.to),"string"==typeof n.step&&(n.step=+n.step),"string"==typeof n.from_min&&(n.from_min=+n.from_min),"string"==typeof n.from_max&&(n.from_max=+n.from_max),"string"==typeof n.to_min&&(n.to_min=+n.to_min),"string"==typeof n.to_max&&(n.to_max=+n.to_max),"string"==typeof n.grid_num&&(n.grid_num=+n.grid_num),n.max<n.min&&(n.max=n.min),r)for(n.p_values=[],n.min=0,n.max=r-1,n.step=1,n.grid_num=n.max,n.grid_snap=!0,t=0;t<r;t++)e=+o[t],isNaN(e)?e=o[t]:(o[t]=e,e=this._prettify(e)),n.p_values.push(e);("number"!=typeof n.from||isNaN(n.from))&&(n.from=n.min),("number"!=typeof n.to||isNaN(n.to))&&(n.to=n.max),"single"===n.type?(n.from<n.min&&(n.from=n.min),n.from>n.max&&(n.from=n.max)):(n.from<n.min&&(n.from=n.min),n.from>n.max&&(n.from=n.max),n.to<n.min&&(n.to=n.min),n.to>n.max&&(n.to=n.max),this.update_check.from&&(this.update_check.from!==n.from&&n.from>n.to&&(n.from=n.to),this.update_check.to!==n.to&&n.to<n.from&&(n.to=n.from)),n.from>n.to&&(n.from=n.to),n.to<n.from&&(n.to=n.from)),("number"!=typeof n.step||isNaN(n.step)||!n.step||n.step<0)&&(n.step=1),"number"==typeof n.from_min&&n.from<n.from_min&&(n.from=n.from_min),"number"==typeof n.from_max&&n.from>n.from_max&&(n.from=n.from_max),"number"==typeof n.to_min&&n.to<n.to_min&&(n.to=n.to_min),"number"==typeof n.to_max&&n.from>n.to_max&&(n.to=n.to_max),i&&(i.min!==n.min&&(i.min=n.min),i.max!==n.max&&(i.max=n.max),(i.from<i.min||i.from>i.max)&&(i.from=n.from),(i.to<i.min||i.to>i.max)&&(i.to=n.to)),("number"!=typeof n.min_interval||isNaN(n.min_interval)||!n.min_interval||n.min_interval<0)&&(n.min_interval=0),("number"!=typeof n.max_interval||isNaN(n.max_interval)||!n.max_interval||n.max_interval<0)&&(n.max_interval=0),n.min_interval&&n.min_interval>n.max-n.min&&(n.min_interval=n.max-n.min),n.max_interval&&n.max_interval>n.max-n.min&&(n.max_interval=n.max-n.min)},decorate:function(e,t){var n="",i=this.options;return i.prefix&&(n+=i.prefix),n+=e,i.max_postfix&&(i.values.length&&e===i.p_values[i.max]?(n+=i.max_postfix,i.postfix&&(n+=" ")):t===i.max&&(n+=i.max_postfix,i.postfix&&(n+=" "))),i.postfix&&(n+=i.postfix),n},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var e,t,n,i,o,r,s=this.options,a=s.max-s.min,l=s.grid_num,u=0,c=4,d="";for(this.calcGridMargin(),s.grid_snap&&(l=a/s.step),l>50&&(l=50),n=this.toFixed(100/l),l>4&&(c=3),l>7&&(c=2),l>14&&(c=1),l>28&&(c=0),e=0;e<l+1;e++){for(i=c,(u=this.toFixed(n*e))>100&&(u=100),this.coords.big[e]=u,o=(u-n*(e-1))/(i+1),t=1;t<=i&&0!==u;t++)d+='<span class="irs-grid-pol small" style="left: '+this.toFixed(u-o*t)+'%"></span>';d+='<span class="irs-grid-pol" style="left: '+u+'%"></span>',r=this.convertToValue(u),d+='<span class="irs-grid-text js-grid-text-'+e+'" style="left: '+u+'%">'+(r=s.values.length?s.p_values[r]:this._prettify(r))+"</span>"}this.coords.big_num=Math.ceil(l+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(d),this.cacheGridLabels()}},cacheGridLabels:function(){var e,t,n=this.coords.big_num;for(t=0;t<n;t++)e=this.$cache.grid.find(".js-grid-text-"+t),this.$cache.grid_labels.push(e);this.calcGridLabels()},calcGridLabels:function(){var e,t,n=[],i=[],o=this.coords.big_num;for(e=0;e<o;e++)this.coords.big_w[e]=this.$cache.grid_labels[e].outerWidth(!1),this.coords.big_p[e]=this.toFixed(this.coords.big_w[e]/this.coords.w_rs*100),this.coords.big_x[e]=this.toFixed(this.coords.big_p[e]/2),n[e]=this.toFixed(this.coords.big[e]-this.coords.big_x[e]),i[e]=this.toFixed(n[e]+this.coords.big_p[e]);for(this.options.force_edges&&(n[0]<-this.coords.grid_gap&&(n[0]=-this.coords.grid_gap,i[0]=this.toFixed(n[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),i[o-1]>100+this.coords.grid_gap&&(i[o-1]=100+this.coords.grid_gap,n[o-1]=this.toFixed(i[o-1]-this.coords.big_p[o-1]),this.coords.big_x[o-1]=this.toFixed(this.coords.big_p[o-1]-this.coords.grid_gap))),this.calcGridCollision(2,n,i),this.calcGridCollision(4,n,i),e=0;e<o;e++)t=this.$cache.grid_labels[e][0],this.coords.big_x[e]!==Number.POSITIVE_INFINITY&&(t.style.marginLeft=-this.coords.big_x[e]+"%")},calcGridCollision:function(e,t,n){var i,o,r,s=this.coords.big_num;for(i=0;i<s&&!((o=i+e/2)>=s);i+=e)r=this.$cache.grid_labels[o][0],n[i]<=t[o]?r.style.visibility="visible":r.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(t){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=e.extend(this.options,t),this.validate(),this.updateResult(t),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),e.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},e.fn.ionRangeSlider=function(t){return this.each(function(){e.data(this,"ionRangeSlider")||e.data(this,"ionRangeSlider",new u(this,t,a++))})},function(){for(var e=0,t=["ms","moz","webkit","o"],i=0;i<t.length&&!n.requestAnimationFrame;++i)n.requestAnimationFrame=n[t[i]+"RequestAnimationFrame"],n.cancelAnimationFrame=n[t[i]+"CancelAnimationFrame"]||n[t[i]+"CancelRequestAnimationFrame"];n.requestAnimationFrame||(n.requestAnimationFrame=function(t,i){var o=(new Date).getTime(),r=Math.max(0,16-(o-e)),s=n.setTimeout(function(){t(o+r)},r);return e=o+r,s}),n.cancelAnimationFrame||(n.cancelAnimationFrame=function(e){clearTimeout(e)})}()}),(UU=UU||{}).Crossselling={element:$(".uu-slider-crossselling"),isAvailable:function(){return!!UU.Crossselling.element.length},initSlickSlider:function(){UU.Crossselling.element.slick({mobileFirst:!0,arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1,rows:0,responsive:[{breakpoint:576,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:2,arrows:!0}},{breakpoint:992,settings:{slidesToShow:3,arrows:!0}}]})}},(UU=UU||{}).Facts={element:$(".uu-facts"),isAvailable:function(){return!!UU.Facts.element.length},init:function(){$(".counter").each(function(e,t){UU.Facts.start(t),$(window).scroll(function(){UU.Facts.start(t)})})},start:function(e){let t=window.counterUp.default,n=$(e);n.inView()&&!n.hasClass("counter-done")&&(t(e,{delay:10,time:3e3}),n.addClass("counter-done"))}},(UU=UU||{}).Flyout={element:$(".uu-flyout"),isAvailable:function(){return!!UU.Flyout.element.length},init:function(){let e=1e3*UU.Flyout.element.data("duration"),t=1e3*UU.Flyout.element.data("startTime"),n=e+t;setTimeout(()=>{UU.Flyout.element.addClass("active")},t),setTimeout(()=>{UU.Flyout.element.removeClass("active")},n)}},(UU=UU||{}).ImageStage={element:$(".uu-slider-image-stage"),control:$(".uu-slider-control"),isAvailable:function(){return!!UU.ImageStage.element.length},initSlickSlider:function(){UU.ImageStage.element.on("init",function(e,t){UU.ImageStage.animateSlide($(".uu-slide:first [data-animation]",UU.ImageStage.element))}),UU.ImageStage.element.on("beforeChange",function(e,t,n,i){UU.ImageStage.animateSlide($('div.slick-slide[data-slick-index="'+i+'"]',UU.ImageStage.element).find("[data-animation]"))}),UU.ImageStage.element.slick({mobileFirst:!0,arrows:1===UU.ImageStage.element.data("arrows"),appendArrows:$(".uu-slider-arrows",UU.ImageStage.control),dots:1===UU.ImageStage.element.data("dots"),appendDots:$(".uu-slider-dots",UU.ImageStage.control),autoplay:1===UU.ImageStage.element.data("autoplay"),autoplaySpeed:UU.ImageStage.element.data("autoplaySpeed"),pauseOnHover:1===UU.ImageStage.element.data("autoplayPauseHover"),infinite:1===UU.ImageStage.element.data("infinite"),fade:!0,slidesToShow:1,slidesToScroll:1,rows:0}),$("[data-link]",UU.ImageStage.element).on("click",function(){var e=$(this).data("link");e.startsWith("http")?window.open(e,"_blank"):window.location=e})},loadHandler:function(){UU.ImageStage.control.addClass("uu-slider-control-loaded").removeClass("uu-slider-control-loading")},animateSlide:function(e){e.each(function(){var e=$(this),t=e.data("delay"),n="animate__animated animate__"+e.data("animation");e.css({"animation-delay":t}),e.addClass(n).one("animationend",function(){e.removeClass(n)})})}},(UU=UU||{}).Menu={element:$(".uu-menu"),isAvailable:function(){return!!UU.Menu.element.length},init:function(){$(document).on("click",'.uu-menu a[href^="#"]',function(e){e.preventDefault(),$("html,body").animate({scrollTop:$($.attr(this,"href")).offset().top-$("header").outerHeight()},500)});var e=document.getElementsByClassName("accordion");for(let t=0;t<e.length;t++)e[t].addEventListener("click",function(){this.classList.toggle("active");var e=this.nextElementSibling;e.style.maxHeight?e.style.maxHeight=null:e.style.maxHeight=e.scrollHeight+"px"})}},(UU=UU||{}).Styleguide={element:$(".uu-styleguide"),isAvailable:function(){return!!UU.Styleguide.element.length},init:function(){const e=document.querySelectorAll(".styleguide-button-container button");e.forEach(e=>{e.addEventListener("click",function(){let t=e.closest(".uu-styleguide");t.querySelectorAll(".styleguide-button-container button").forEach(e=>e.classList.remove("active")),this.classList.add("active");const n=this.getAttribute("data-id");t.querySelectorAll(".styleguide-content-container div[data-id]").forEach(e=>{e.getAttribute("data-id")===n?e.style.display="block":e.style.display="none"})})}),e.length>0&&e[0].classList.add("active")}},(UU=UU||{}).VideoStage={element:$(".uu-video-stage"),isAvailable:function(){return!!UU.VideoStage.element.length},promiseHandler:function(){if(void 0!==$("video",UU.VideoStage.element).attr("autoplay")){var e=$("video",UU.VideoStage.element).get(0).play();void 0!==e&&void 0!==e.then&&e.then(function(e){}).catch(function(e){$(".uu-video-stage-play-button",UU.VideoStage.element).removeClass("d-none"),UU.VideoStage.clickHandler()})}},clickHandling:function(){$(UU.VideoStage.element).on("click",function(){var e=$(".uu-video-stage-play-button",UU.VideoStage.element);e.hasClass("d-none")||(e.addClass("d-none"),$("video",UU.VideoStage.element).length>0&&$(window).width()>=991&&$("video",UU.VideoStage.element).get(0).play())})},endedHandler:function(){$("video",UU.VideoStage.element).on("ended",function(){$(".uu-video-stage-after-video",UU.VideoStage.element).removeClass("d-none")})}},(UU=UU||{}).BrandSlider={element:$(".uu-slider-brand"),carousel:null,isAvailable:function(){return!!UU.BrandSlider.element.length},initSlickSlider:function(){UU.BrandSlider.carousel=UU.BrandSlider.element.slick({arrows:!1,autoplay:!1,autoplaySpeed:2e3,centerMode:!0,dots:!1,mobileFirst:!0,slidesToScroll:1,slidesToShow:1,rows:0,responsive:[{breakpoint:539,settings:{slidesToShow:2,autoplay:!1}},{breakpoint:767,settings:{slidesToShow:3,autoplay:!1}},{breakpoint:1599,settings:{slidesToShow:5,autoplay:!1}}]}),$(window).scroll(function(){UU.BrandSlider.element.inView()?UU.BrandSlider.controlAutoplay():UU.BrandSlider.carousel.slick("slickGetOption","autoplay")&&UU.BrandSlider.controlAutoplay(!1)})},controlAutoplay:function(e=!0){let t=[{breakpoint:539,settings:{slidesToShow:2,autoplaySpeed:2e3,autoplay:e}},{breakpoint:767,settings:{slidesToShow:3,autoplaySpeed:2e3,autoplay:e}},{breakpoint:1599,settings:{slidesToShow:5,autoplaySpeed:2e3,autoplay:e}}];UU.BrandSlider.carousel.slick("slickSetOption","autoplay",!0,!0),UU.BrandSlider.carousel.slick("slickSetOption","responsive",t,!0)}},(UU=UU||{}).ButtonHandling={init:function(){$("[data-button]").each(function(){const e=$(".btn-auto-color",$(this));e.addClass("btn-"+$(this).data("button")).removeClass("btn-auto-color"),e.data("buttonFallback")&&e.removeData("buttonFallback")}),$("[data-button-fallback]").each(function(){$(this).addClass("btn-"+$(this).data("buttonFallback")).removeClass("btn-auto-color")}),$(".dropdown.megamenu-fw .content").each(function(){$(".btn-auto-color",$(this)).addClass("btn-primary").removeClass("btn-auto-color")})}},(UU=UU||{}).Collapse={element:$(".collapse-scrolling"),isAvailable:function(){return!!UU.Collapse.element.length},showHandling:function(){UU.Collapse.element.on("shown.bs.collapse",function(e){var t=$(this).closest(".card");$("html,body").animate({scrollTop:t.offset().top-$("header").outerHeight()},500)})}},(UU=UU||{}).iFrameResize={element:$("iframe[data-resize]"),isAvailable:function(){return!!UU.iFrameResize.element.length},init:function(){if(UU.iFrameResize.element.attr("height"))alert('Please remove the "height" attribute from the iFrame definition to use the resize function');else if(UU.iFrameResize.element.attr("scrolling")){var e=window.addEventListener?"addEventListener":"attachEvent";(0,window[e])("attachEvent"===e?"onmessage":"message",function(e){if(-1!==e.data.indexOf("resize::")){var t=e.data.replace("resize::",""),n=Array.from(UU.iFrameResize.element.get()).find(t=>t.contentWindow===e.source);n&&$(n).css("height",t+"px")}},!1)}else alert('Please add scrolling="no" to the iFrame definition to use the resize function')}},(UU=UU||{}).Joblist={element:$(".job-slider"),isAvailable:function(){return!!UU.Joblist.element.length},initSlickSlider:function(){UU.Joblist.element.slick({mobileFirst:!0,arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1,rows:0,responsive:[{breakpoint:576,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:2,arrows:!0}},{breakpoint:992,settings:{slidesToShow:3,arrows:!0}}]})}},(UU=UU||{}).JustifiedGallery={element:$(".uu-justified-gallery"),isAvailable:function(){return!!UU.JustifiedGallery.element.length},init:function(){UU.JustifiedGallery.element.justifiedGallery({rowHeight:UU.JustifiedGallery.element.data("rowHeight"),captions:!1,rel:"lightbox"}).on("jg.complete",function(){$(this).lightGallery({selector:"a.lightgallery",download:!1,share:!1,autoplay:!1,hash:!1})})}},(UU=UU||{}).Navigation={initSticky:function(e){if(!$.isMobile()){let t=$("header"),n=$("body"),i=$(".symbiosis");e.scrollTop()>40?(t.addClass("sticky"),n.addClass("sticky"),i.length&&i.addClass("sticky")):(t.removeClass("sticky"),n.removeClass("sticky"),i.length&&i.removeClass("sticky")),e.scroll(function(){$(this).scrollTop()>40?(t.addClass("sticky"),n.addClass("sticky"),i.length&&i.addClass("sticky")):(t.removeClass("sticky"),n.removeClass("sticky"),i.length&&i.removeClass("sticky"))})}},isClickable:function(){return!!$('body[data-navigation="clickable"]').length},initClickable:function(){$(".dropdown-movable a.dropdown-toggle").on("click",function(){let e=$(this).parents(".dropdown-movable"),t=0;$("li.dropdown.on",e).length>0&&(t="-"+115*$("li.dropdown.on",e).length+"%"),$(".dropdown-menu",e).first().css("left",t)}),$("body").on("click",function(){$(".dropdown-menu",$(".dropdown-movable")).first().css("left",0)})}},(UU=UU||{}).Popup={isAvailable:function(){return!!$("[data-popup]").length},init:function(){$(document).on("click","[data-popup]",function(e){e.preventDefault(),$.magnificPopup.open({items:{src:$(this).data("popup-src")},type:$(this).data("popup"),preloader:!0,focus:"input",mainClass:"mfp-with-zoom",zoom:{enabled:!0,duration:300,easing:"ease-in-out"},callbacks:{ajaxContentAdded:function(){UU.Select.isAvailable()&&UU.Select.init()},open:function(){UU.ButtonHandling.init()}}})})}},(UU=UU||{}).Select={element:$("select"),isAvailable:function(){return!!UU.Select.element.length},init:function(){$("select").select2({minimumResultsForSearch:7,theme:"bootstrap4"})}},(UU=UU||{}).Sidebar={element:$(".sidebar"),carousel:null,isAvailable:function(){return!!UU.Sidebar.element.length},init:function(){if(!1===$.isMobile()){let e=$(".uu-popup-sidebar",UU.Sidebar.element),t=0;e.removeClass("mfp-hide").css("visibility","hidden"),$(".tab-pane",UU.Sidebar.element).each(function(){let e=$(this).height();e>t&&(t=e)}),e.addClass("mfp-hide").removeAttr("style"),$(".tab-content",UU.Sidebar.element).css("height",t+"px")}$(".btn-group-vertical button",UU.Sidebar.element).each(function(){$(this).on("click",function(){event.preventDefault(),$('a[href="#tabSidebarContent'+$(this).data("page")+'"]').click(),UU.Sidebar.openDialog()})}),$(".header-container-mobile a.mobile-sidebar").on("click",function(){$(".tab-content",UU.Sidebar.element).removeAttr("style"),UU.Sidebar.openDialog()})},openDialog:function(){$.magnificPopup.open({items:{src:".uu-popup-sidebar"},type:"inline",mainClass:"mfp-with-zoom",zoom:{enabled:!0,duration:300,easing:"ease-in-out"}})}},$(document).ready(function(){$(document).on("submit",".uu-ajax-form",function(e){e.preventDefault();const t=$(this),n=$(".uu-ajax-spinner",t.parent()),i=$(".uu-ajax-result",t.parent());i.html(n.html()).fadeIn(),$.ajax({type:"POST",url:t.attr("action"),data:t.serialize(),success:function(e){i.html(e),UU.Select.isAvailable()&&UU.Select.init(),UU.Popup.isAvailable()&&UU.Popup.init()}})})}),function(e){var t={},n={};e.ajaxq=function(i,o){if(void 0===o)throw"AjaxQ: queue name is not provided";var r=e.Deferred(),s=r.promise();s.success=s.done,s.error=s.fail,s.complete=s.always;var a=e.extend(!0,{},o);return function(e){if(t[i])t[i].push(e);else{t[i]=[];var o=e();n[i]=o}}(function(){var t=e.ajax.apply(window,[a]);return t.done(function(){r.resolve.apply(this,arguments)}),t.fail(function(){r.reject.apply(this,arguments)}),t.always(l),t}),s;function l(){if(t[i]){var e=t[i].shift();if(e){var o=e();n[i]=o}else delete t[i],delete n[i]}}},e.each(["getq","postq"],function(t,n){e[n]=function(t,i,o,r,s){return e.isFunction(o)&&(s=s||r,r=o,o=void 0),e.ajaxq(t,{type:"postq"===n?"post":"get",url:i,data:o,success:r,dataType:s})}});var i=function(e){return t.hasOwnProperty(e)};e.ajaxq.isRunning=function(e){return e?i(e):function(){for(var e in t)if(i(e))return!0;return!1}()},e.ajaxq.getActiveRequest=function(e){if(!e)throw"AjaxQ: queue name is required";return n[e]},e.ajaxq.abort=function(i){if(!i)throw"AjaxQ: queue name is required";var o=e.ajaxq.getActiveRequest(i);delete t[i],delete n[i],o&&o.abort()},e.ajaxq.clear=function(e){if(e)t[e]&&(t[e]=[]);else for(var n in t)t.hasOwnProperty(n)&&(t[n]=[])}}(jQuery),jQuery(document).ready(function(){var e=new SuggestController;e.init(),jQuery("body").on("tx_solr_updated",function(){e.init()})}),(UU=UU||{}).UsageCalculatorCalculation={element:$(".usage-calculator-details"),select:$("#productSelection"),isAvailable:function(){return!!UU.UsageCalculatorCalculation.element.length},init:function(){UU.UsageCalculatorCalculation.select.change(function(e){e.preventDefault();const t=$(this).find("option:selected").data("action");if(0==t)return!1;const n=$(".uu-ajax-spinner",UU.UsageCalculatorCalculation.element),i=$(".uu-ajax-result",UU.UsageCalculatorCalculation.element),o=$(".uu-calc-result-container",UU.UsageCalculator.element);i.html(n.html()).fadeIn(),$.ajax({type:"POST",url:t,success:function(e){i.html(e),o.hide()}})})}},(UU=UU||{}).UsageCalculator={element:$(".usage-calculator-details"),isAvailable:function(){return!!UU.UsageCalculator.element.length},init:function(){$(document).on("submit",".uu-detail-calculaton-form",function(e){e.preventDefault();const t=$(this),n=$(".uu-ajax-spinner",UU.UsageCalculator.element),i=$(".uu-ajax-calculation-result",UU.UsageCalculator.element),o=$(".uu-calc-result-container",UU.UsageCalculator.element);i.html(n.html()).fadeIn(),$.ajax({type:"POST",url:t.attr("action"),data:t.serialize(),success:function(e){i.html(e),o.show()}})})}},(UZIN=UZIN||{}).backgroundFallback={execute:function(){UZIN.page.default.background&&(UZIN.selectors.tiles.product.each(function(){UZIN.backgroundFallback.set($(this))}),UZIN.selectors.tiles.reference.each(function(){UZIN.backgroundFallback.set($(this))}))},set:function(e){(e.parents("section").hasClass("background-none")||e.parents("section").hasClass("background-white"))&&e.addClass(UZIN.page.default.background).removeClass("background-white")}},document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("calendar");if(e){var t=new FullCalendar.Calendar(e,{locale:e.dataset.locale,timeZone:"Europe/Berlin",initialView:"dayGridMonth",events:"?type=100&tx_uzinutz_ajax[controller]=Calendar&tx_uzinutz_ajax[action]=feed",eventDidMount:function(e){$(e.el).attr("title",e.event.extendedProps.description)},eventClick:function(e){switch(e.event.extendedProps.type){case"seminar":window.open(e.event.extendedProps.seminarDetail,"_blank");break;case"event":$.magnificPopup.open({items:{src:"?type=100&tx_uzinutz_ajax[controller]=Event&tx_uzinutz_ajax[action]=modal&tx_uzinutz_ajax[event]="+e.event.extendedProps.event},type:"ajax",mainClass:"mfp-with-zoom",zoom:{enabled:!0,duration:300,easing:"ease-in-out"}})}}});changeView(t),t.render(),$(window).on("resize",function(){changeView(t)})}});var UZIN=UZIN||{},unselecting=!0,previousSelectValue="";function stainAndCareFilterSwitch(e,t){var n=$("div[data-filter-index]").length;for(i=n;n>e;n--){var o=$("div[data-filter-index="+n+"]",t);o.fadeOut(),$("select",o).find("option").not(":first").remove(),n%3!=0&&5!==n||o.parents("fieldset").slideUp()}unselecting=!0}$(document).ready(function(){UZIN.init();var e=$("section.stainAndCareTable"),t=$(".ajax-container",e),n=$(".spinner",e);e.length&&($(document).on("change",".care-filter",function(){var o=$(this),r=parseInt($(this).parent().data("filterIndex")),s={};for(s["tx_uzin_ajax[controller]"]="Specific\\RZ\\StainAndCareTable",s["tx_uzin_ajax[action]"]="filter",i=1;i<=r;i++){var a=$("select option:selected",$("div[data-filter-index="+i+"]")).text();a&&(s["tx_uzin_ajax[string"+i+"]"]=a)}t.fadeOut(function(){n.fadeIn(function(){$.ajax({url:"?type=100",method:"GET",data:s,dataType:"json"}).done(function(i){var s=parseInt(r+1);if(unselecting)unselecting=!1;else if(i.filter.length>0){var a=$("div[data-filter-index="+s+"]",e);$("select",a).select2("destroy").select2({data:i.filter}),a.fadeIn(),r%2==0&&o.parents("fieldset").next().slideDown()}else stainAndCareFilterSwitch(r,e),unselecting=!1;t.html(i.html),n.fadeOut(function(){t.fadeIn()})})})})}),$("#string_1").trigger("change"),$(document).on("select2:selecting",".care-filter",function(e){previousSelectValue=$(this).val()}),$(document).on("select2:select",".care-filter",function(t){if(""!=previousSelectValue&&previousSelectValue!=$(this).val()){var n=parseInt($(this).parent().data("filterIndex")+1),i=$("div[data-filter-index="+n+"]",e);stainAndCareFilterSwitch(n,e),$("select",i).find("option").not(":first").remove(),unselecting=!1}}),$(document).on("select2:unselecting",".care-filter",function(t){stainAndCareFilterSwitch(parseInt($(this).parent().data("filterIndex")),e)})),$(".stageWrap .stageItem[data-link]").on("click",function(){var e=$(this).data("link");e.startsWith("http")?window.open(e,"_blank"):window.location=e});var o=document.getElementById("threesixty");if(void 0!==typeof images&&o){var r=JSON.parse(images);Promise.all(r.map(e=>new Promise((t,n)=>{const i=new Image;i.onload=t,i.onerror=t,i.style.display="none",i.src=e,document.body.appendChild(i)}))).then(()=>{new ThreeSixty(o,{width:400,height:500,count:r.length,image:JSON.parse(images)}),$(".threesixty .uu-spinner").hide(),$("#threesixty").fadeIn()})}$(".desktopMainMenu > li:nth-child(3) > .subMenuWrap").each(function(){var e=$(this);1===e.children().length&&e.addClass("singleGrid")});var s=$(".desktopMainMenu > li");if(s.on("mouseover",function(){var e=parseInt($(this).index())+1,t=$(".subMenuWrap",$(this)),n=$(window).width(),i=t.offset();if(i){var o=i.left;e>=3?o<0&&(o=parseInt(t.css("right"))- -1*o,t.css("right",o)):(o+=t.width())>n&&(o-=n,t.css("left",-1*o))}}),s.on("mouseout",function(){$(".subMenuWrap",$(this)).removeAttr("style")}),$(".co2calculator").length){var a,l=$(".co2calculator__range-input"),u=$(".co2calculator__input"),c=$(".co2calculator__result");l.ionRangeSlider({skin:"square",type:"single",hide_min_max:!0,hide_from_to:!0,min:1,max:1e3,from:20,onStart:function(e){var t=parseFloat(3.3*e.from)/1e3;u.prop("value",e.from),c.html(t.toFixed(3))},onChange:function(e){var t=parseFloat(3.3*e.from)/1e3;u.prop("value",e.from),c.html(t.toFixed(3))}}),a=l.data("ionRangeSlider"),u.on("change keyup",function(){var e=$(this).prop("value");e<1?e=1:e>1e3&&(e=1e3),a.update({from:e});var t=parseFloat(3.3*e)/1e3;c.html(t.toFixed(3))})}if($(document).on("click",".tx_uzin_news article",function(){let e=$("a",$(this));window.open(e.attr("href"),e.attr("target"))}),$(document).on("submit",".js-news-form",function(e){e.preventDefault();var t=$(this).parents(".news"),n=$(this).parent(),i=t.data("count"),o=$(".js-offset");o.val($("article",t).length),$.ajax({type:"GET",url:$(this).attr("action"),data:$(this).serialize(),dataType:"html"}).done(function(e){n.before(e),$("html, body").animate({scrollTop:$("article:nth-child("+(parseInt(o.val())+1)+")",t).offset().top-10},600),$("article",t).length>=i&&n.hide()})}),$(window).width()>767){var d=$(".js-news-stage");d.length&&d.slick({arrows:!1,dots:!1,fade:!0,autoplay:!0,speed:1500,lazyLoad:"progressive",rows:0})}if($(".retailer-search").length>0){let e=$(".alert-container"),t=$(".retailer-search-map"),n=!1;if(e.length){let e=Cookies.get("cookie_optin");e&&(n=e.split("|").includes("functional:1"))}else n=!0;if(console.log(n),n){var p=document.createElement("script");p.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD59Vnx7YzaBMkSiPJ9fr54MY02DlYuC18&libraries=places,geometry&callback=initMap",p.async=!0,window.initMap=function(){var n=document.createElement("script");n.src="/typo3conf/ext/uzin_utz/Resources/Public/JavaScript/Migration/RetailerSearch/shop-locator.custom.js",document.body.appendChild(n),e.hide(),t.show(),$(".retailer-search-filter form").on("submit",function(){return!1});var i=$(".retailer-search-map"),o="/typo3conf/ext/uzin_utz/Resources/Public/Icons/RetailerSearch/"+retailerSearch.settings.themeFolder+"/";window.setTimeout(function(){i.ShopLocator({pluginStyle:"",json:"?type=100&tx_uzinutz_ajax[controller]=Retailer&tx_uzinutz_ajax[action]=json&tx_uzinutz_ajax[interest]="+retailerSearch.settings.interest,paginationStyle:1,preloader:!0,markersIcon:o+"marker.png",infoBubble:{visible:!0,backgroundColor:"transparent",arrowPosition:50,minHeight:100,maxHeight:250,minWidth:150,maxWidth:320,hideCloseButton:!0,directionsUseGeolocation:!1,getDirectionsButtonName:retailerSearch.translations.direction},map:{disableDefaultUI:!0,center:[retailerSearch.settings.center.lat,retailerSearch.settings.center.lng],zoom:5,allMarkersInViewport:!1,mapStyle:[{featureType:"landscape",elementType:"geometry",stylers:[{saturation:"-100"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.text",stylers:[{color:"#545454"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{saturation:"-87"},{lightness:"-40"},{color:"#ffffff"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.fill",stylers:[{color:"#f0f0f0"},{saturation:"-22"},{lightness:"-16"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road.highway.controlled_access",elementType:"labels.icon",stylers:[{visibility:"on"}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{saturation:"-52"},{hue:"#00e4ff"},{lightness:"-16"}]}]},cluster:{enable:!0,gridSize:50,maxZoom:14,style:{textColor:"#4757a3",textSize:18,heightSM:42,widthSM:42,heightMD:56,widthMD:56,heightBIG:75,widthBIG:75,iconSmall:o+"clusterSmall.png",iconMedium:o+"clusterMedium.png",iconBig:o+"clusterBig.png"}},sidebar:{visible:!0,units:retailerSearch.settings.unit,searchBox:{visible:!0,search:!0,findPlaceBy:["(regions)"],searchByCountry:[!0,retailerSearch.settings.domainCode],placeholder:retailerSearch.translations.placeholder},results:{visibleInFirstPage:!1,pageSize:5,paginationItems:5,searchInfo:retailerSearch.translations.searchInfo,noAddressFound:retailerSearch.translations.noAddressFound}}})},150)},document.body.appendChild(p)}else e.show()}var h=$(".uzin-selection");h.length>0&&$("select",h).on("change",function(){var e={"tx_uzin_ajax[controller]":"Specific\\Uzin\\UzinSelection","tx_uzin_ajax[action]":"filter"};$("select",h).each(function(t,n){e["tx_uzin_ajax["+n.getAttribute("id")+"]"]=n.value}),$.ajax({url:"?type=100",method:"GET",data:e,dataType:"json"}).done(function(e){let t=$("div[data-product]");t.addClass("tile__transparent"),e.products.length>0?$.each(e.products,function(e,t){$("div[data-product="+t.product+"]").removeClass("tile__transparent")}):e.hasFilter?t.addClass("tile__transparent"):t.removeClass("tile__transparent")})});var f=$(".contact-search");f.length>0&&$("form",f).on("submit",function(e){event.preventDefault();let t=$(".contact-result",f),n=$(".loading",f);t.hide(),n.show().css("display","flex");let i={"tx_uzinutz_ajax[controller]":"Contact","tx_uzinutz_ajax[action]":"ajax"};return i["tx_uzinutz_ajax[zipcode]"]=$("#zipcode").val(),i["tx_uzinutz_ajax[alphanumericSearch]"]=$("#alphanumeric_search").val(),t.fadeOut(function(){n.css("display","flex").hide().fadeIn(function(){$.ajax({url:"?type=100",method:"GET",data:i,dataType:"html"}).done(function(e){t.html(e),t.fadeIn().addClass("mt-20").css("display","flex"),n.fadeOut()})})}),!1})}),$(window).on("load",function(){}),$(function(){"use strict";var e=$("body"),t=$(".contentBackground"),n=$("form.form-scw",t),i=$(".tx-powermail .powermail_morestep.form-scw",t),o={galleryId:$(this).children().find("a.lightgallery").first().attr("rel"),subHtmlSelectorRelative:!0,selector:"a.lightgallery",download:!1,share:!1,autoplay:!1,hash:!1};$(".parallax-container");$('a[href*="?type=1480513617"]').on("click",function(e){e.preventDefault(),$.ajax({url:$(this).attr("href"),method:"GET",dataType:"html"}).done(function(e){bootbox.alert({message:e,backdrop:!0,size:"large"})})});var r=$(".readonly",n);r.length&&$("input",r).attr("readonly","readonly"),$("a.btn",i).each(function(){var e=$(this);e.removeClass("btn"),e.html(""),e.hasClass("btn-warning")?(e.removeClass("btn-warning"),e.addClass("link-button-rte reverse-icon"),e.html($lang.prev)):(e.removeClass("btn-primary"),e.addClass("link-button-rte"),e.html($lang.next))}),i.each(function(){var e=$("fieldset:last-of-type",$(this)),t=$('button[type="submit"]',e);t.length>0&&t.appendTo($("a.link-button-rte",e).parent().first()).addClass("pull-right")}),$(".countdown .clock").each(function(){var e=$(this),t=new Date($(this).data("target")).getTime(),n=setInterval(function(){var i=(new Date).getTime(),o=t-i,r=Math.floor(o/864e5),s=("0"+Math.floor(o%864e5/36e5)).slice(-2),a=("0"+Math.floor(o%36e5/6e4)).slice(-2),l=("0"+Math.floor(o%6e4/1e3)).slice(-2);e.html("<span>"+r+" "+lang.days+",</span> "+s+":"+a+":"+l+" "+lang.hours),o<0&&(clearInterval(n),e.html($(".countdown .textFinish").html()))},1e3)}),$(".referenceSliderWrap").slick({lazyLoad:"ondemand",autoplay:!0,infinite:!1,autoplaySpeed:8e3,mobileFirst:!0,arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1,rows:0,responsive:[{breakpoint:770,settings:{slidesToShow:2,slidesToScroll:2}}]}),$(".productsSliderWrap").slick({dots:!0,autoplay:!0,autoplaySpeed:8e3,arrows:!1,rows:0}),$("a.link-calculate").click(function(e){e.preventDefault(),$("a.usage-calculator").click()});var s,a,l,u,c,d=2;function p(e){var t=$(".slick-slide[data-slick-index='"+e+"'] img");l=!0;var n=t.attr("alt"),i=t.data("description");void 0!==i&&i.length>0&&(n=i),$(".galleryCaptionText").html(n),$(".galleryActImg").html(e+1)}function h(){a.hasClass("without-autoplay")||(m(),c=0,l=!1,u=setInterval(f,35))}function f(){!1===l&&(c+=1/(d+.1),s.css({width:c+"%"}),c>=100&&(a.slick("slickNext"),h()))}function m(){s.css({width:"0%"}),clearTimeout(u)}$(".galleryCountImg").html(" / "+$(".galleryWrap > div").length),(a=$(".galleryWrap")).slick({lazyLoad:"ondemand",mobileFirst:!0,arrows:!1,dots:!1,rows:0,responsive:[{breakpoint:992,settings:{arrows:!0,prevArrow:'<button type="button" class="slick-button slick-prev"><span class="icon icon-pfeil_links"></span></button>',nextArrow:'<button type="button" class="slick-button slick-next"><span class="icon icon-pfeil-link-gross"></span></button>'}}]}),$(".galleryWrap").on("beforeChange",function(e,t,n,i){p(i)}),$(".galleryWrap .slick-button").on("click",function(){}),p(0),s=$(".galleryProgress .galleryProgressBar"),$(".slick-track").on({mouseenter:function(){l=!0},mouseleave:function(){l=!1}}),$(window).width()>=768&&h();var g=!1;$(window).width()<768&&a.length>0&&$(window).on("scroll",function(){var e=$(".slick-track"),t=$(window).scrollTop()+$(".breadcrumbBar").outerHeight(),n=e.offset().top-20,i=n+e.outerHeight()+20;t>=n&&t<=i?g||(h(),g=!0):(t<n||t>i)&&(g=!1,m())});var v="";function y(e){var t=e.parent().next();if($(window).width()<768)var n=$(".productsToggle").closest(".col-12");else n=$(".productsToggle").closest(".row");t.fadeOut(200,function(){t.remove(),n.slideUp(400,function(){n.remove(),e.removeClass("active")})})}$.each($("[data-item]"),function(e,t){v=(v=$(this).attr("data-item")).replace(/[^A-Z0-9]/gi,""),$(this).attr("data-item",v)}),$(".galleryWrap, .js-lightgallery").each(function(){$(this).lightGallery(o)}),$(".contactZip").on("keyup",function(){var e=$(".contactZipError"),t=$(this).val();if(""===t)return e.fadeOut(),!0;var n=$(this).data("country").toUpperCase();console.log(n),""===n&&(n="DE"),zipValidate(t,n)?e.fadeOut():e.fadeIn()}),$("button",$(".contactSearchWrapper")).on("click",function(e){var t=$(".contactZipError"),n=$(".contactZip"),i=n.val(),o=n.data("country").toUpperCase();return o=""===o?"DE":o.split("_")[0],!!zipValidate(i,o)||(t.fadeIn(),!1)}),$(".productsHomeLabel > a",$("div[id^='contentTiles']")).on("click",function(t){t.preventDefault();var n=$(this),i=$(".productsAppendix",n.parent()).html();if("false"==n.attr("data-toggle-enable")){var o=n.attr("href");return e.hasClass("ie11")&&(o="/"+o),void(window.location.href=o)}if(n.hasClass("active"))y(n);else{var r=$(".productsHomeLabel > a.active",$("div[id^='contentTiles']")),s=0;r.length>0&&(s=600,y(r)),setTimeout(function(){n.addClass("active"),n.parent().after(function(){var e=$('<div class="productsToggleArrow" style="display: none;" />');return e.append('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="40px" height="20px" viewBox="0 0 80.0001 40"><path d="M0.0001,40l40-40l40,40C80.0001,40-0.1249,39.875,0.0001,40z"/></svg>'),e}),$(window).width()<768?n.closest(".col-12").after(function(){var e=$('<div class="col-12" style="display:none;" />'),t=$("<div />").addClass("productsToggle bg-primary text-white").html(i);return e.append(t),e}):n.closest(".row").after(function(){var e=$('<div class="row" style="display: none;" />'),t=$('<div class="col-12" />'),n=$("<div />").addClass("productsToggle bg-primary text-white").html(i);return t.append(n),e.append(t),e}),setTimeout(function(){var e=$(".productsToggle"),t=n.parent().next();if($(window).width()<768)var i=e.closest(".col-12");else i=e.closest(".row");i.slideDown(400,function(){t.fadeIn(200)})},10)},s)}}),$(document).on("mouseenter",".productsToggle a",function(){$(this).css("color",$(this).parents(".productsHome").find("a.active").data("linkhover-color"))}).on("mouseleave",".productsToggle a",function(){$(this).css("color",$(this).parents(".productsHome").find("a.active").data("link-color"))}),$(document).on("focus",".productsToggle a",function(){$(this).css("color",$(this).parents(".productsHome").find("a.active").data("linkhover-color"))}),$("select.select2",t).each(function(){$(this).select2({})}),$("#registerContainer select",t).each(function(){$(this).select2({})}),$("select.select2").on("change",function(){$(".select2-selection__clear").attr("title","Filter löschen")}),$(".productsUndergroundInner",$(".productsUnderground")).on("click",function(){var t=$(".productsUndergroundMore",$(this)),n=$("a",t),i=$("a",t).attr("href"),o=n.attr("target");e.hasClass("ie11")&&(i="/"+i),"_blank"!==o&&(window.location.href=i)})});UZIN=UZIN||{};UZIN={selectors:{body:$("body"),tiles:{product:$(".productsUnderground:not(.referenceList):not(.productsXselling) .productsUndergroundInner"),reference:$(".productsUnderground.referenceList:not(.productsXselling) .productsUndergroundInner")}},page:{brand:"",default:{background:""}},defaults:{backgrounds:{uzin:"bg-gradient",codex:"bg-gradient",arturo:"bg-gray-light",collfox:"background-anthracite",pallmann:"background-orange",parkettprofi:"background-orange",rz:"background-gray",sifloor:"background-gray",wolff:"background-darkgreen-light",derendinger:"background-lightblue",neopur:"background-pantone"}},init:function(){UZIN.page.brand=UZIN.selectors.body.data("brand")}};var UU=UU||{};document.addEventListener("touchstart",function(){},!1),$.fn.inView=function(){if(!this.length)return!1;const e=this.get(0).getBoundingClientRect();return e.top<window.innerHeight&&e.bottom>=0},$.isMobile=function(){const e=getComputedStyle(document.documentElement).getPropertyValue("--breakpoint-lg").replace("px","");return window.outerWidth<e},$(document).ready(function(){UU.ButtonHandling.init(),UU.Navigation.isClickable&&UU.Navigation.initClickable(),UU.Popup.isAvailable()&&UU.Popup.init(),UU.BrandSlider.isAvailable()&&UU.BrandSlider.initSlickSlider(),UU.Joblist.isAvailable()&&UU.Joblist.initSlickSlider(),UU.Sidebar.isAvailable()&&UU.Sidebar.init(),UU.Select.isAvailable()&&UU.Select.init(),bsCustomFileInput.init(),UU.JustifiedGallery.isAvailable()&&UU.JustifiedGallery.init(),UU.Collapse.isAvailable()&&UU.Collapse.showHandling(),UU.iFrameResize.isAvailable()&&UU.iFrameResize.init(),UU.Facts.isAvailable()&&UU.Facts.init(),UU.Menu.isAvailable()&&UU.Menu.init(),UU.UsageCalculator.isAvailable()&&UU.UsageCalculator.init(),UU.UsageCalculatorCalculation.isAvailable()&&UU.UsageCalculatorCalculation.init(),UU.Flyout.isAvailable()&&UU.Flyout.init(),UU.Styleguide.isAvailable()&&UU.Styleguide.init(),$("[data-aos]").length&&AOS.init({disable:"mobile",duration:600});const e=$("[data-toggle=popover]");e.length&&e.popover();const t=$("form[data-disable]");t.length&&t.on("submit",function(){$(this).find("[type=submit]").prop("disabled",!0)})}),$(window).on("load",function(){UU.Navigation.initSticky($(this));const e=$(".alert-message");e.length&&$("html, body").animate({scrollTop:e.offset().top-$("header").height()},200)}),$(window).on("resize",function(){}),$(document).ready(function(){UU.Crossselling.isAvailable()&&UU.Crossselling.initSlickSlider()}),$(window).on("load",function(){}),$(document).ready(function(){UU.ImageStage.isAvailable()&&UU.ImageStage.initSlickSlider(),UU.VideoStage.isAvailable()&&(UU.VideoStage.promiseHandler(),UU.VideoStage.clickHandling(),UU.VideoStage.endedHandler())}),$(window).on("load",function(){UU.ImageStage.isAvailable()&&UU.ImageStage.loadHandler()}),document.addEventListener("DOMContentLoaded",()=>{new Mmenu("#mobileMenu",{extensions:["fx-panels-zoom","pagedim-black","position-left","position-front"],navbars:[{position:"bottom",content:socialMedia}]},{offCanvas:{page:{noSelector:[".loading-overlay"]}}})});