{"version":3,"file":"functions.js","names":["selector","el","slice","call","document","querySelectorAll","hasClass","e","c","className","indexOf","addToClasses","classes","getAttribute","setAttribute","removeFromClasses","cliptClasses","split","key","toggleClass","classList","toggle","existingIndex","splice","push","join","getSiblings","siblings","sibling","parentNode","firstChild","nextSibling","nodeType","Array","prototype","forEachElement","callback","i","length","debounce","func","timer","event","clearTimeout","setTimeout","isMobile","isHidden","querySelector","style","window","getComputedStyle","display","Element","matches","msMatchesSelector","webkitMatchesSelector","closest","s","documentElement","contains","parentElement","addEventListener","element","CustomEvent","params","bubbles","cancelable","detail","undefined","evt","createEvent","initCustomEvent","Event","resizeEnd","dispatchEvent","LargeSelectOld","openStateClass","init","attachClickEvents","handleClickEvent","bind","target","select","close","stopPropagation","open","keepElementOpen","_this","forEach","dataset","positionPopUp","tns","Object","keys","t","n","hasOwnProperty","remove","removeChild","Oi","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","msRequestAnimationFrame","Di","cancelAnimationFrame","mozCancelAnimationFrame","Hi","arguments","a","r","ki","JSON","parse","Ri","setItem","Ii","body","createElement","fake","Pi","overflow","background","appendChild","zi","offsetHeight","Wi","insertRule","addRule","Fi","cssRules","rules","qi","ji","Vi","add","Gi","replace","Qi","hasAttribute","Xi","item","Yi","toString","Ki","removeAttribute","Ji","Ui","_i","Zi","$i","charAt","toUpperCase","substr","ta","test","toLowerCase","o","defineProperty","get","u","passive","ea","na","removeEventListener","ia","topics","on","off","emit","type","aa","O","container","mode","axis","items","gutter","edgePadding","fixedWidth","autoWidth","viewportMax","slideBy","center","controls","controlsPosition","controlsText","controlsContainer","prevButton","nextButton","nav","navPosition","navContainer","navAsThumbnails","arrowKeys","speed","autoplay","autoplayPosition","autoplayTimeout","autoplayDirection","autoplayText","autoplayHoverPause","autoplayButton","autoplayButtonOutput","autoplayResetOnVisibility","animateIn","animateOut","animateNormal","animateDelay","loop","rewind","autoHeight","responsive","lazyload","lazyloadSelector","touch","mouseDrag","swipeAngle","nested","preventActionWhenRunning","preventScrollOnTouch","freezable","onInit","useLocalStorage","D","h","ENTER","SPACE","LEFT","RIGHT","navigator","userAgent","Date","localStorage","getItem","removeItem","tnsApp","l","f","y","tC","width","offsetWidth","g","tPL","innerHTML","Math","abs","getBoundingClientRect","left","children","H","tMQ","styleSheet","cssText","createTextNode","position","currentStyle","d","tTf","v","t3D","insertBefore","getPropertyValue","x","tTDu","p","tTDe","b","tADu","m","tADe","C","tTE","w","tAE","M","console","warn","T","E","nodeName","k","R","I","A","N","L","P","z","B","W","S","F","q","j","V","G","Q","X","outerHTML","Y","K","J","sn","U","Bn","_","Z","$","tt","et","nt","it","at","rt","ot","vn","ut","lt","st","fn","ct","ft","floor","dt","vt","fixedWidthViewportWidth","pt","mt","ht","yt","gt","xt","bt","Ct","wt","Mt","Tt","Et","At","Nt","Lt","Bt","sheet","St","Ot","Dt","ceil","min","apply","max","dn","Ht","kt","Rt","ni","It","Pt","zt","Wt","Ft","qt","jt","Vt","rn","Gt","Qt","Xt","Yt","Kt","Jt","Ut","_t","Zt","id","tnsId","$t","te","ee","ne","Ln","ie","ae","click","fi","keydown","xi","keyCode","Ee","disabled","Ae","re","si","bi","Se","ke","Number","De","ve","ci","Re","qe","hi","activeElement","gi","Be","oe","mouseover","vi","je","mouseout","di","ue","visibilitychange","hidden","Ge","le","se","touchstart","Ti","touchmove","Ei","touchend","Ai","touchcancel","ce","mousedown","mousemove","mouseup","mouseleave","fe","de","pe","me","he","ye","ge","xe","load","zn","error","Wn","be","Ce","we","Me","Te","Ne","Le","Oe","Li","He","ln","Ie","Pe","ze","We","Fe","Ve","Qe","Xe","Ye","Ke","Je","Ue","_e","Ze","$e","tn","an","tabindex","createDocumentFragment","cloneNode","fontSize","marginLeft","xn","pn","mn","hn","yn","bn","Gn","parseInt","Cn","en","nn","ti","ri","ii","Ni","oi","version","getInfo","Si","events","goTo","play","mi","pause","isOn","updateSliderHeight","Xn","refresh","destroy","ownerNode","resize","An","yi","clearInterval","previousElementSibling","nextElementSibling","firstElementChild","rebuild","un","innerWidth","clientWidth","cn","right","gn","substring","src","jn","Fn","wn","ai","Tn","En","toFixed","Mn","Yn","Kn","insertAdjacentHTML","Rn","Bi","Un","$n","Sn","Nn","qn","Pn","Hn","Dn","Vn","On","margin","height","kn","autoheightTem","speedTem","deleteRule","removeRule","In","parseFloat","srcset","Qn","Jn","_n","Zn","ei","ui","li","propertyName","isNaN","setInterval","pi","focus","Ci","changedTouches","srcElement","wi","preventDefault","returnValue","Mi","atan2","PI","clientX","clientY","slideItems","navItems","hasControls","cloneCount","slideCount","slideCountNew","index","indexCached","displayIndex","navCurrentIndex","navCurrentIndexCached","pages","pagesCached","exports","module","define","amd","global","self","Lightgallery","require","Error","code","lgUtils","value","wrap","addClass","removeClass","RegExp","setVendor","trigger","Listener","uid","param","map","encodeURIComponent","default","lightgallery","__esModule","dynamic","dynamicEl","constructor","modules","lGalleryOn","lgBusy","hideBartimeout","isTouch","slideEndAnimatoin","hideControlOnEnd","selectWithin","___slide","outer","assign","utils","lgData","lgModules","cssEasing","easing","startClass","backdropDuration","hideBarsDelay","useLeft","closable","escKey","keyPress","mousewheel","getCaptionFromTitleOrAlt","appendSubHtmlTo","subHtmlSelectorRelative","preload","showAfterLoad","nextHtml","prevHtml","iframeMaxWidth","download","counter","appendCounterTo","swipeThreshold","enableSwipe","enableDrag","galleryId","location","hash","build","structure","slide","arrow","closeGallery","setTop","doCss","prevScrollTop","scrollTop","innerHeight","top","isVideo","html","html5","match","youtube","vimeo","dailymotion","vk","addHtml","subHtml","loadContent","poster","sizes","iframe","picturefill","elements","delay","downloadUrl","getElementById","prevIndex","fromTouch","fromThumb","arrowDisable","goToNextSlide","goToPrevSlide","setTranslate","touchMove","touchEnd","opacity","manageSwipeClass","targetTouches","pageX","scrollLeft","deltaY","lightGallery"],"sources":["../functions.js"],"sourcesContent":["// document.addEventListener('DOMContentLoaded', function() {\r\nfunction selector(el) {\r\n return [].slice.call(document.querySelectorAll(el));\r\n};\r\n// has class\r\nfunction hasClass(e, c) {\r\n return (' ' + e.className + ' ').indexOf(' ' + c + ' ') > -1;\r\n}\r\n// add Class = IE support\r\nfunction addToClasses(e, c) {\r\n if (!hasClass(e, c)) {\r\n var classes = e.getAttribute('class');\r\n e.setAttribute('class', classes + \" \" + c);\r\n }\r\n}\r\n//remove class = IE support\r\nfunction removeFromClasses(e, c) {\r\n //split the classes into array objects\r\n var cliptClasses = c.split(','),\r\n classes = e.getAttribute('class');\r\n for (var key in cliptClasses) {\r\n //loop through removing the classes from the current classlist\r\n var classes = classes.split(cliptClasses[key])[0];\r\n }\r\n //reset the classlist to the new classes\r\n e.setAttribute('class', classes);\r\n}\r\n\r\nfunction toggleClass(el, className) {\r\n if (el.classList) {\r\n el.classList.toggle(className);\r\n } else {\r\n var classes = el.className.split(' ');\r\n var existingIndex = classes.indexOf(className);\r\n\r\n if (existingIndex >= 0)\r\n classes.splice(existingIndex, 1);\r\n else\r\n classes.push(className);\r\n\r\n el.className = classes.join(' ');\r\n }\r\n}\r\n\r\nfunction getSiblings(el) {\r\n var siblings = [],\r\n sibling = el.parentNode.firstChild;\r\n for (; sibling; sibling = sibling.nextSibling) {\r\n if (sibling.nodeType !== 1 || sibling === el) continue;\r\n siblings.push(sibling);\r\n }\r\n return siblings;\r\n}\r\n\r\n// replace JQ forEach\r\nArray.prototype.forEachElement = function (callback) {\r\n for (var i = 0; i < this.length; i++)\r\n callback(this[i], i, this);\r\n};\r\n\r\n//Resize END function\r\nfunction debounce(func) {\r\n var timer;\r\n return function (event) {\r\n if (timer) clearTimeout(timer);\r\n timer = setTimeout(func, 100, event);\r\n };\r\n}\r\n\r\n// if mobile viewport\r\n//Where el is the DOM element you'd like to test for visibility\r\n\r\nfunction isMobile() {\r\n if (!(isHidden(document.querySelector('.mob-detect')))) {\r\n return true;\r\n }\r\n}\r\nfunction isHidden(el) {\r\n var style = window.getComputedStyle(el);\r\n return (style.display === 'none')\r\n}\r\n\r\n// JS closest polyfill\r\n\r\nif (!Element.prototype.matches)\r\n Element.prototype.matches = Element.prototype.msMatchesSelector ||\r\n Element.prototype.webkitMatchesSelector;\r\n\r\nif (!Element.prototype.closest)\r\n Element.prototype.closest = function (s) {\r\n var el = this;\r\n if (!document.documentElement.contains(el)) return null;\r\n do {\r\n if (el.matches(s)) return el;\r\n el = el.parentElement || el.parentNode;\r\n } while (el !== null && el.nodeType === 1);\r\n return null;\r\n };\r\n// })\r\n\r\n\r\n// site - wide js\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n\r\n selector(\".mobile-slideout .close-icon\").forEachElement(function (element) {\r\n element.addEventListener(\"click\", function () {\r\n removeFromClasses(this.closest(\".mobile-slideout\"), \"open\");\r\n removeFromClasses(document.querySelector('html'), 'overflow-hidden');\r\n removeFromClasses(document.querySelector('html'), 'mobile-overflow-hidden');\r\n })\r\n });\r\n selector(\".prevent-mobile-scroll\").forEachElement(function (element) {\r\n element.addEventListener(\"click\", function () {\r\n removeFromClasses(this, \"prevent-mobile-scroll\");\r\n })\r\n });\r\n});\r\n\r\n\r\n\r\n(function () {\r\n\r\n if (typeof window.CustomEvent === \"function\") return false;\r\n\r\n function CustomEvent(event, params) {\r\n params = params || { bubbles: false, cancelable: false, detail: undefined };\r\n var evt = document.createEvent('CustomEvent');\r\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\r\n return evt;\r\n }\r\n\r\n\r\n CustomEvent.prototype = window.Event.prototype;\r\n\r\n window.CustomEvent = CustomEvent;\r\n})();\r\n\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n var resizeEnd;\r\n window.addEventListener('resize', function () {\r\n clearTimeout(resizeEnd);\r\n resizeEnd = setTimeout(function () {\r\n var evt = new CustomEvent('resize-end');\r\n window.dispatchEvent(evt);\r\n }, 300);\r\n });\r\n});\r\n\r\n/*\r\nfunction LargeSelect() {\r\n this.init = function () {\r\n this.attachClickEvents();\r\n };\r\n\r\n this.attachClickEvents = function () {\r\n let _this = this;\r\n\r\n if (document.querySelectorAll(this.selector).length) {\r\n document.addEventListener('click', function (e) {\r\n if ((e.target.closest(_this.selector)) || document.querySelectorAll('.' + this.openStateClass).length > 0) {\r\n _this.toggle(e);\r\n }\r\n })\r\n }\r\n };\r\n\r\n this.init();\r\n}\r\n*/\r\n\r\nconst LargeSelectOld = {\r\n selector: \".large-select--k-\",\r\n openStateClass: \"large-select--open---\",\r\n init: function () {\r\n this.attachClickEvents();\r\n },\r\n attachClickEvents: function () {\r\n if (document.querySelectorAll(this.selector).length) {\r\n document.addEventListener('click', this.handleClickEvent.bind(this));\r\n }\r\n },\r\n handleClickEvent: function (e) {\r\n if ((e.target.closest(this.selector)) || document.querySelectorAll('.' + this.openStateClass).length > 0) {\r\n this.toggle(e);\r\n }\r\n },\r\n toggle: function (e) {\r\n let select = e.target.closest(this.selector);\r\n\r\n if (select === null) {\r\n this.close();\r\n return;\r\n }\r\n\r\n\r\n if (hasClass(select, this.openStateClass)) {\r\n e.stopPropagation();\r\n return;\r\n }\r\n\r\n this.open(select);\r\n },\r\n close: function (keepElementOpen) {\r\n let _this = this;\r\n [].forEach.call(document.querySelectorAll('.' + this.openStateClass), function (el) {\r\n if (keepElementOpen !== el) {\r\n removeFromClasses(el, _this.openStateClass);\r\n }\r\n });\r\n },\r\n open: function (el) {\r\n this.close(el);\r\n\r\n addToClasses(el, this.openStateClass);\r\n\r\n if (el.dataset.target === undefined) {\r\n return;\r\n }\r\n\r\n let target = document.querySelector(el.dataset.target);\r\n\r\n if (target === null) {\r\n return;\r\n }\r\n\r\n this.positionPopUp(target)\r\n },\r\n positionPopUp: function (el) {\r\n\r\n }\r\n};\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n LargeSelectOld.init();\r\n});\r\n\r\nvar tns = function () { Object.keys || (Object.keys = function (t) { var e = []; for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.push(n); return e }), \"remove\" in Element.prototype || (Element.prototype.remove = function () { this.parentNode && this.parentNode.removeChild(this) }); var t = window, Oi = t.requestAnimationFrame || t.webkitRequestAnimationFrame || t.mozRequestAnimationFrame || t.msRequestAnimationFrame || function (t) { return setTimeout(t, 16) }, e = window, Di = e.cancelAnimationFrame || e.mozCancelAnimationFrame || function (t) { clearTimeout(t) }; function Hi() { for (var t, e, n, i = arguments[0] || {}, a = 1, r = arguments.length; a < r; a++)if (null !== (t = arguments[a])) for (e in t) i !== (n = t[e]) && void 0 !== n && (i[e] = n); return i } function ki(t) { return 0 <= [\"true\", \"false\"].indexOf(t) ? JSON.parse(t) : t } function Ri(t, e, n, i) { if (i) try { t.setItem(e, n) } catch (t) { } return n } function Ii() { var t = document, e = t.body; return e || ((e = t.createElement(\"body\")).fake = !0), e } var n = document.documentElement; function Pi(t) { var e = \"\"; return t.fake && (e = n.style.overflow, t.style.background = \"\", t.style.overflow = n.style.overflow = \"hidden\", n.appendChild(t)), e } function zi(t, e) { t.fake && (t.remove(), n.style.overflow = e, n.offsetHeight) } function Wi(t, e, n, i) { \"insertRule\" in t ? t.insertRule(e + \"{\" + n + \"}\", i) : t.addRule(e, n, i) } function Fi(t) { return (\"insertRule\" in t ? t.cssRules : t.rules).length } function qi(t, e, n) { for (var i = 0, a = t.length; i < a; i++)e.call(n, t[i], i) } var i = \"classList\" in document.createElement(\"_\"), ji = i ? function (t, e) { return t.classList.contains(e) } : function (t, e) { return 0 <= t.className.indexOf(e) }, Vi = i ? function (t, e) { ji(t, e) || t.classList.add(e) } : function (t, e) { ji(t, e) || (t.className += \" \" + e) }, Gi = i ? function (t, e) { ji(t, e) && t.classList.remove(e) } : function (t, e) { ji(t, e) && (t.className = t.className.replace(e, \"\")) }; function Qi(t, e) { return t.hasAttribute(e) } function Xi(t, e) { return t.getAttribute(e) } function r(t) { return void 0 !== t.item } function Yi(t, e) { if (t = r(t) || t instanceof Array ? t : [t], \"[object Object]\" === Object.prototype.toString.call(e)) for (var n = t.length; n--;)for (var i in e) t[n].setAttribute(i, e[i]) } function Ki(t, e) { t = r(t) || t instanceof Array ? t : [t]; for (var n = (e = e instanceof Array ? e : [e]).length, i = t.length; i--;)for (var a = n; a--;)t[i].removeAttribute(e[a]) } function Ji(t) { for (var e = [], n = 0, i = t.length; n < i; n++)e.push(t[n]); return e } function Ui(t, e) { \"none\" !== t.style.display && (t.style.display = \"none\") } function _i(t, e) { \"none\" === t.style.display && (t.style.display = \"\") } function Zi(t) { return \"none\" !== window.getComputedStyle(t).display } function $i(e) { if (\"string\" == typeof e) { var n = [e], i = e.charAt(0).toUpperCase() + e.substr(1);[\"Webkit\", \"Moz\", \"ms\", \"O\"].forEach(function (t) { \"ms\" === t && \"transform\" !== e || n.push(t + i) }), e = n } for (var t = document.createElement(\"fakeelement\"), a = (e.length, 0); a < e.length; a++) { var r = e[a]; if (void 0 !== t.style[r]) return r } return !1 } function ta(t, e) { var n = !1; return /^Webkit/.test(t) ? n = \"webkit\" + e + \"End\" : /^O/.test(t) ? n = \"o\" + e + \"End\" : t && (n = e.toLowerCase() + \"end\"), n } var a = !1; try { var o = Object.defineProperty({}, \"passive\", { get: function () { a = !0 } }); window.addEventListener(\"test\", null, o) } catch (t) { } var u = !!a && { passive: !0 }; function ea(t, e, n) { for (var i in e) { var a = 0 <= [\"touchstart\", \"touchmove\"].indexOf(i) && !n && u; t.addEventListener(i, e[i], a) } } function na(t, e) { for (var n in e) { var i = 0 <= [\"touchstart\", \"touchmove\"].indexOf(n) && u; t.removeEventListener(n, e[n], i) } } function ia() { return { topics: {}, on: function (t, e) { this.topics[t] = this.topics[t] || [], this.topics[t].push(e) }, off: function (t, e) { if (this.topics[t]) for (var n = 0; n < this.topics[t].length; n++)if (this.topics[t][n] === e) { this.topics[t].splice(n, 1); break } }, emit: function (e, n) { n.type = e, this.topics[e] && this.topics[e].forEach(function (t) { t(n, e) }) } } } var aa = function (O) { O = Hi({ container: \".slider\", mode: \"carousel\", axis: \"horizontal\", items: 1, gutter: 0, edgePadding: 0, fixedWidth: !1, autoWidth: !1, viewportMax: !1, slideBy: 1, center: !1, controls: !0, controlsPosition: \"top\", controlsText: [\"prev\", \"next\"], controlsContainer: !1, prevButton: !1, nextButton: !1, nav: !0, navPosition: \"top\", navContainer: !1, navAsThumbnails: !1, arrowKeys: !1, speed: 300, autoplay: !1, autoplayPosition: \"top\", autoplayTimeout: 5e3, autoplayDirection: \"forward\", autoplayText: [\"start\", \"stop\"], autoplayHoverPause: !1, autoplayButton: !1, autoplayButtonOutput: !0, autoplayResetOnVisibility: !0, animateIn: \"tns-fadeIn\", animateOut: \"tns-fadeOut\", animateNormal: \"tns-normal\", animateDelay: !1, loop: !0, rewind: !1, autoHeight: !1, responsive: !1, lazyload: !1, lazyloadSelector: \".tns-lazy-img\", touch: !0, mouseDrag: !1, swipeAngle: 15, nested: !1, preventActionWhenRunning: !1, preventScrollOnTouch: !1, freezable: !0, onInit: !1, useLocalStorage: !0 }, O || {}); var D = document, h = window, a = { ENTER: 13, SPACE: 32, LEFT: 37, RIGHT: 39 }, e = {}, n = O.useLocalStorage; if (n) { var t = navigator.userAgent, i = new Date; try { (e = h.localStorage) ? (e.setItem(i, i), n = e.getItem(i) == i, e.removeItem(i)) : n = !1, n || (e = {}) } catch (t) { n = !1 } n && (e.tnsApp && e.tnsApp !== t && [\"tC\", \"tPL\", \"tMQ\", \"tTf\", \"t3D\", \"tTDu\", \"tTDe\", \"tADu\", \"tADe\", \"tTE\", \"tAE\"].forEach(function (t) { e.removeItem(t) }), localStorage.tnsApp = t) } var r, o, u, l, s, c, f, y = e.tC ? ki(e.tC) : Ri(e, \"tC\", function () { var t = document, e = Ii(), n = Pi(e), i = t.createElement(\"div\"), a = !1; e.appendChild(i); try { for (var r, o = \"(10px * 10)\", u = [\"calc\" + o, \"-moz-calc\" + o, \"-webkit-calc\" + o], l = 0; l < 3; l++)if (r = u[l], i.style.width = r, 100 === i.offsetWidth) { a = r.replace(o, \"\"); break } } catch (t) { } return e.fake ? zi(e, n) : i.remove(), a }(), n), g = e.tPL ? ki(e.tPL) : Ri(e, \"tPL\", function () { var t, e = document, n = Ii(), i = Pi(n), a = e.createElement(\"div\"), r = e.createElement(\"div\"), o = \"\"; a.className = \"tns-t-subp2\", r.className = \"tns-t-ct\"; for (var u = 0; u < 70; u++)o += \"
\"; return r.innerHTML = o, a.appendChild(r), n.appendChild(a), t = Math.abs(a.getBoundingClientRect().left - r.children[67].getBoundingClientRect().left) < 2, n.fake ? zi(n, i) : a.remove(), t }(), n), H = e.tMQ ? ki(e.tMQ) : Ri(e, \"tMQ\", (o = document, u = Ii(), l = Pi(u), s = o.createElement(\"div\"), c = o.createElement(\"style\"), f = \"@media all and (min-width:1px){.tns-mq-test{position:absolute}}\", c.type = \"text/css\", s.className = \"tns-mq-test\", u.appendChild(c), u.appendChild(s), c.styleSheet ? c.styleSheet.cssText = f : c.appendChild(o.createTextNode(f)), r = window.getComputedStyle ? window.getComputedStyle(s).position : s.currentStyle.position, u.fake ? zi(u, l) : s.remove(), \"absolute\" === r), n), d = e.tTf ? ki(e.tTf) : Ri(e, \"tTf\", $i(\"transform\"), n), v = e.t3D ? ki(e.t3D) : Ri(e, \"t3D\", function (t) { if (!t) return !1; if (!window.getComputedStyle) return !1; var e, n = document, i = Ii(), a = Pi(i), r = n.createElement(\"p\"), o = 9 < t.length ? \"-\" + t.slice(0, -9).toLowerCase() + \"-\" : \"\"; return o += \"transform\", i.insertBefore(r, null), r.style[t] = \"translate3d(1px,1px,1px)\", e = window.getComputedStyle(r).getPropertyValue(o), i.fake ? zi(i, a) : r.remove(), void 0 !== e && 0 < e.length && \"none\" !== e }(d), n), x = e.tTDu ? ki(e.tTDu) : Ri(e, \"tTDu\", $i(\"transitionDuration\"), n), p = e.tTDe ? ki(e.tTDe) : Ri(e, \"tTDe\", $i(\"transitionDelay\"), n), b = e.tADu ? ki(e.tADu) : Ri(e, \"tADu\", $i(\"animationDuration\"), n), m = e.tADe ? ki(e.tADe) : Ri(e, \"tADe\", $i(\"animationDelay\"), n), C = e.tTE ? ki(e.tTE) : Ri(e, \"tTE\", ta(x, \"Transition\"), n), w = e.tAE ? ki(e.tAE) : Ri(e, \"tAE\", ta(b, \"Animation\"), n), M = h.console && \"function\" == typeof h.console.warn, T = [\"container\", \"controlsContainer\", \"prevButton\", \"nextButton\", \"navContainer\", \"autoplayButton\"], E = {}; if (T.forEach(function (t) { if (\"string\" == typeof O[t]) { var e = O[t], n = D.querySelector(e); if (E[t] = e, !n || !n.nodeName) return void (M && console.warn(\"Can't find\", O[t])); O[t] = n } }), !(O.container.children.length < 1)) { var k = O.responsive, R = O.nested, I = \"carousel\" === O.mode; if (k) { 0 in k && (O = Hi(O, k[0]), delete k[0]); var A = {}; for (var N in k) { var L = k[N]; L = \"number\" == typeof L ? { items: L } : L, A[N] = L } k = A, A = null } if (I || function t(e) { for (var n in e) I || (\"slideBy\" === n && (e[n] = \"page\"), \"edgePadding\" === n && (e[n] = !1), \"autoHeight\" === n && (e[n] = !1)), \"responsive\" === n && t(e[n]) }(O), !I) { O.axis = \"horizontal\", O.slideBy = \"page\", O.edgePadding = !1; var P = O.animateIn, z = O.animateOut, B = O.animateDelay, W = O.animateNormal } var S, F, q = \"horizontal\" === O.axis, j = D.createElement(\"div\"), V = D.createElement(\"div\"), G = O.container, Q = G.parentNode, X = G.outerHTML, Y = G.children, K = Y.length, J = sn(), U = !1; k && Bn(), I && (G.className += \" tns-vpfix\"); var _, Z, $, tt, et, nt, it, at, rt = O.autoWidth, ot = vn(\"fixedWidth\"), ut = vn(\"edgePadding\"), lt = vn(\"gutter\"), st = fn(), ct = vn(\"center\"), ft = rt ? 1 : Math.floor(vn(\"items\")), dt = vn(\"slideBy\"), vt = O.viewportMax || O.fixedWidthViewportWidth, pt = vn(\"arrowKeys\"), mt = vn(\"speed\"), ht = O.rewind, yt = !ht && O.loop, gt = vn(\"autoHeight\"), xt = vn(\"controls\"), bt = vn(\"controlsText\"), Ct = vn(\"nav\"), wt = vn(\"touch\"), Mt = vn(\"mouseDrag\"), Tt = vn(\"autoplay\"), Et = vn(\"autoplayTimeout\"), At = vn(\"autoplayText\"), Nt = vn(\"autoplayHoverPause\"), Lt = vn(\"autoplayResetOnVisibility\"), Bt = (at = document.createElement(\"style\"), it && at.setAttribute(\"media\", it), document.querySelector(\"head\").appendChild(at), at.sheet ? at.sheet : at.styleSheet), St = O.lazyload, Ot = (O.lazyloadSelector, []), Dt = yt ? (et = function () { { if (rt || ot && !vt) return K - 1; var t = ot ? \"fixedWidth\" : \"items\", e = []; if ((ot || O[t] < K) && e.push(O[t]), k) for (var n in k) { var i = k[n][t]; i && (ot || i < K) && e.push(i) } return e.length || e.push(0), Math.ceil(ot ? vt / Math.min.apply(null, e) : Math.max.apply(null, e)) } }(), nt = I ? Math.ceil((5 * et - K) / 2) : 4 * et - K, nt = Math.max(et, nt), dn(\"edgePadding\") ? nt + 1 : nt) : 0, Ht = I ? K + 2 * Dt : K + Dt, kt = !(!ot && !rt || yt), Rt = ot ? ni() : null, It = !I || !yt, Pt = q ? \"left\" : \"top\", zt = \"\", Wt = \"\", Ft = ot ? function () { return ct && !yt ? K - 1 : Math.ceil(-Rt / (ot + lt)) } : rt ? function () { for (var t = Ht; t--;)if (_[t] >= -Rt) return t } : function () { return ct && I && !yt ? K - 1 : yt || I ? Math.max(0, Ht - Math.ceil(ft)) : Ht - 1 }, qt = on(vn(\"startIndex\")), jt = qt, Vt = (rn(), 0), Gt = rt ? null : Ft(), Qt = O.preventActionWhenRunning, Xt = O.swipeAngle, Yt = !Xt || \"?\", Kt = !1, Jt = O.onInit, Ut = new ia, _t = \" tns-slider tns-\" + O.mode, Zt = G.id || (tt = window.tnsId, window.tnsId = tt ? tt + 1 : 1, \"tns\" + window.tnsId), $t = vn(\"disable\"), te = !1, ee = O.freezable, ne = !(!ee || rt) && Ln(), ie = !1, ae = { click: fi, keydown: function (t) { t = xi(t); var e = [a.LEFT, a.RIGHT].indexOf(t.keyCode); 0 <= e && (0 === e ? Ee.disabled || fi(t, -1) : Ae.disabled || fi(t, 1)) } }, re = { click: function (t) { if (Kt) { if (Qt) return; si() } var e = bi(t = xi(t)); for (; e !== Se && !Qi(e, \"data-nav\");)e = e.parentNode; if (Qi(e, \"data-nav\")) { var n = ke = Number(Xi(e, \"data-nav\")), i = ot || rt ? n * K / De : n * ft, a = ve ? n : Math.min(Math.ceil(i), K - 1); ci(a, t), Re === n && (qe && hi(), ke = -1) } }, keydown: function (t) { t = xi(t); var e = D.activeElement; if (!Qi(e, \"data-nav\")) return; var n = [a.LEFT, a.RIGHT, a.ENTER, a.SPACE].indexOf(t.keyCode), i = Number(Xi(e, \"data-nav\")); 0 <= n && (0 === n ? 0 < i && gi(Be[i - 1]) : 1 === n ? i < De - 1 && gi(Be[i + 1]) : ci(ke = i, t)) } }, oe = { mouseover: function () { qe && (vi(), je = !0) }, mouseout: function () { je && (di(), je = !1) } }, ue = { visibilitychange: function () { D.hidden ? qe && (vi(), Ge = !0) : Ge && (di(), Ge = !1) } }, le = { keydown: function (t) { t = xi(t); var e = [a.LEFT, a.RIGHT].indexOf(t.keyCode); 0 <= e && fi(t, 0 === e ? -1 : 1) } }, se = { touchstart: Ti, touchmove: Ei, touchend: Ai, touchcancel: Ai }, ce = { mousedown: Ti, mousemove: Ei, mouseup: Ai, mouseleave: Ai }, fe = dn(\"controls\"), de = dn(\"nav\"), ve = !!rt || O.navAsThumbnails, pe = dn(\"autoplay\"), me = dn(\"touch\"), he = dn(\"mouseDrag\"), ye = \"tns-slide-active\", ge = \"tns-complete\", xe = { load: function (t) { zn(bi(t)) }, error: function (t) { e = bi(t), Vi(e, \"failed\"), Wn(e); var e } }, be = \"force\" === O.preventScrollOnTouch; if (fe) var Ce, we, Me = O.controlsContainer, Te = O.controlsContainer ? O.controlsContainer.outerHTML : \"\", Ee = O.prevButton, Ae = O.nextButton, Ne = O.prevButton ? O.prevButton.outerHTML : \"\", Le = O.nextButton ? O.nextButton.outerHTML : \"\"; if (de) var Be, Se = O.navContainer, Oe = O.navContainer ? O.navContainer.outerHTML : \"\", De = rt ? K : Li(), He = 0, ke = -1, Re = ln(), Ie = Re, Pe = \"tns-nav-active\", ze = \"Carousel Page \", We = \" (Current Slide)\"; if (pe) var Fe, qe, je, Ve, Ge, Qe = \"forward\" === O.autoplayDirection ? 1 : -1, Xe = O.autoplayButton, Ye = O.autoplayButton ? O.autoplayButton.outerHTML : \"\", Ke = [\"\", \" animation\"]; if (me || he) var Je, Ue, _e = {}, Ze = {}, $e = !1, tn = q ? function (t, e) { return t.x - e.x } : function (t, e) { return t.y - e.y }; rt || an($t || ne), d && (Pt = d, zt = \"translate\", v ? (zt += q ? \"3d(\" : \"3d(0px, \", Wt = q ? \", 0px, 0px)\" : \", 0px)\") : (zt += q ? \"X(\" : \"Y(\", Wt = \")\")), I && (G.className = G.className.replace(\"tns-vpfix\", \"\")), function () { dn(\"gutter\"); j.className = \"tns-outer\", V.className = \"tns-inner\", j.id = Zt + \"-ow\", V.id = Zt + \"-iw\", \"\" === G.id && (G.id = Zt); _t += g || rt ? \" tns-subpixel\" : \" tns-no-subpixel\", _t += y ? \" tns-calc\" : \" tns-no-calc\", rt && (_t += \" tns-autowidth\"); _t += \" tns-\" + O.axis, G.className += _t, I ? ((S = D.createElement(\"div\")).id = Zt + \"-mw\", S.className = \"tns-ovh\", j.appendChild(S), S.appendChild(V)) : j.appendChild(V); if (gt) { var t = S || V; t.className += \" tns-ah\" } if (Q.insertBefore(j, G), V.appendChild(G), qi(Y, function (t, e) { Vi(t, \"tns-item\"), t.id || (t.id = Zt + \"-item\" + e), !I && W && Vi(t, W), Yi(t, { \"aria-hidden\": \"true\", tabindex: \"-1\" }) }), Dt) { for (var e = D.createDocumentFragment(), n = D.createDocumentFragment(), i = Dt; i--;) { var a = i % K, r = Y[a].cloneNode(!0); if (Ki(r, \"id\"), n.insertBefore(r, n.firstChild), I) { var o = Y[K - 1 - a].cloneNode(!0); Ki(o, \"id\"), e.appendChild(o) } } G.insertBefore(e, G.firstChild), G.appendChild(n), Y = G.children } }(), function () { if (!I) for (var t = qt, e = qt + Math.min(K, ft); t < e; t++) { var n = Y[t]; n.style.left = 100 * (t - qt) / ft + \"%\", Vi(n, P), Gi(n, W) } q && (g || rt ? (Wi(Bt, \"#\" + Zt + \" > .tns-item\", \"font-size:\" + h.getComputedStyle(Y[0]).fontSize + \";\", Fi(Bt)), Wi(Bt, \"#\" + Zt, \"font-size:0;\", Fi(Bt))) : I && qi(Y, function (t, e) { var n; t.style.marginLeft = (n = e, y ? y + \"(\" + 100 * n + \"% / \" + Ht + \")\" : 100 * n / Ht + \"%\") })); if (H) { if (x) { var i = S && O.autoHeight ? xn(O.speed) : \"\"; Wi(Bt, \"#\" + Zt + \"-mw\", i, Fi(Bt)) } i = pn(O.edgePadding, O.gutter, O.fixedWidth, O.speed, O.autoHeight), Wi(Bt, \"#\" + Zt + \"-iw\", i, Fi(Bt)), I && (i = q && !rt ? \"width:\" + mn(O.fixedWidth, O.gutter, O.items) + \";\" : \"\", x && (i += xn(mt)), Wi(Bt, \"#\" + Zt, i, Fi(Bt))), i = q && !rt ? hn(O.fixedWidth, O.gutter, O.items) : \"\", O.gutter && (i += yn(O.gutter)), I || (x && (i += xn(mt)), b && (i += bn(mt))), i && Wi(Bt, \"#\" + Zt + \" > .tns-item\", i, Fi(Bt)) } else { Gn(), V.style.cssText = pn(ut, lt, ot, gt), I && q && !rt && (G.style.width = mn(ot, lt, ft)); var i = q && !rt ? hn(ot, lt, ft) : \"\"; lt && (i += yn(lt)), i && Wi(Bt, \"#\" + Zt + \" > .tns-item\", i, Fi(Bt)) } if (k && H) for (var a in k) { a = parseInt(a); var r = k[a], i = \"\", o = \"\", u = \"\", l = \"\", s = \"\", c = rt ? null : vn(\"items\", a), f = vn(\"fixedWidth\", a), d = vn(\"speed\", a), v = vn(\"edgePadding\", a), p = vn(\"autoHeight\", a), m = vn(\"gutter\", a); x && S && vn(\"autoHeight\", a) && \"speed\" in r && (o = \"#\" + Zt + \"-mw{\" + xn(d) + \"}\"), (\"edgePadding\" in r || \"gutter\" in r) && (u = \"#\" + Zt + \"-iw{\" + pn(v, m, f, d, p) + \"}\"), I && q && !rt && (\"fixedWidth\" in r || \"items\" in r || ot && \"gutter\" in r) && (l = \"width:\" + mn(f, m, c) + \";\"), x && \"speed\" in r && (l += xn(d)), l && (l = \"#\" + Zt + \"{\" + l + \"}\"), (\"fixedWidth\" in r || ot && \"gutter\" in r || !I && \"items\" in r) && (s += hn(f, m, c)), \"gutter\" in r && (s += yn(m)), !I && \"speed\" in r && (x && (s += xn(d)), b && (s += bn(d))), s && (s = \"#\" + Zt + \" > .tns-item{\" + s + \"}\"), (i = o + u + l + s) && Bt.insertRule(\"@media (min-width: \" + a / 16 + \"em) {\" + i + \"}\", Bt.cssRules.length) } }(), Cn(); var en = yt ? I ? function () { var t = Vt, e = Gt; t += dt, e -= dt, ut ? (t += 1, e -= 1) : ot && (st + lt) % (ot + lt) && (e -= 1), Dt && (e < qt ? qt -= K : qt < t && (qt += K)) } : function () { if (Gt < qt) for (; Vt + K <= qt;)qt -= K; else if (qt < Vt) for (; qt <= Gt - K;)qt += K } : function () { qt = Math.max(Vt, Math.min(Gt, qt)) }, nn = I ? function () { var e, n, i, a, t, r, o, u, l, s, c; ti(G, \"\"), x || !mt ? (ri(), mt && Zi(G) || si()) : (e = G, n = Pt, i = zt, a = Wt, t = ii(), r = mt, o = si, u = Math.min(r, 10), l = 0 <= t.indexOf(\"%\") ? \"%\" : \"px\", t = t.replace(l, \"\"), s = Number(e.style[n].replace(i, \"\").replace(a, \"\").replace(l, \"\")), c = (t - s) / r * u, setTimeout(function t() { r -= u, s += c, e.style[n] = i + s + l + a, 0 < r ? setTimeout(t, u) : o() }, u)), q || Ni() } : function () { Ot = []; var t = {}; t[C] = t[w] = si, na(Y[jt], t), ea(Y[qt], t), oi(jt, P, z, !0), oi(qt, W, P), C && w && mt && Zi(G) || si() }; return { version: \"2.9.1\", getInfo: Si, events: Ut, goTo: ci, play: function () { Tt && !qe && (mi(), Ve = !1) }, pause: function () { qe && (hi(), Ve = !0) }, isOn: U, updateSliderHeight: Xn, refresh: Cn, destroy: function () { if (Bt.disabled = !0, Bt.ownerNode && Bt.ownerNode.remove(), na(h, { resize: An }), pt && na(D, le), Me && na(Me, ae), Se && na(Se, re), na(G, oe), na(G, ue), Xe && na(Xe, { click: yi }), Tt && clearInterval(Fe), I && C) { var t = {}; t[C] = si, na(G, t) } wt && na(G, se), Mt && na(G, ce); var r = [X, Te, Ne, Le, Oe, Ye]; for (var e in T.forEach(function (t, e) { var n = \"container\" === t ? j : O[t]; if (\"object\" == typeof n) { var i = !!n.previousElementSibling && n.previousElementSibling, a = n.parentNode; n.outerHTML = r[e], O[t] = i ? i.nextElementSibling : a.firstElementChild } }), T = P = z = B = W = q = j = V = G = Q = X = Y = K = F = J = rt = ot = ut = lt = st = ft = dt = vt = pt = mt = ht = yt = gt = Bt = St = _ = Ot = Dt = Ht = kt = Rt = It = Pt = zt = Wt = Ft = qt = jt = Vt = Gt = Xt = Yt = Kt = Jt = Ut = _t = Zt = $t = te = ee = ne = ie = ae = re = oe = ue = le = se = ce = fe = de = ve = pe = me = he = ye = ge = xe = Z = xt = bt = Me = Te = Ee = Ae = Ce = we = Ct = Se = Oe = Be = De = He = ke = Re = Ie = Pe = ze = We = Tt = Et = Qe = At = Nt = Xe = Ye = Lt = Ke = Fe = qe = je = Ve = Ge = _e = Ze = Je = $e = Ue = tn = wt = Mt = null, this) \"rebuild\" !== e && (this[e] = null); U = !1 }, rebuild: function () { return aa(Hi(O, E)) } } } function an(t) { t && (xt = Ct = wt = Mt = pt = Tt = Nt = Lt = !1) } function rn() { for (var t = I ? qt - Dt : qt; t < 0;)t += K; return t % K + 1 } function on(t) { return t = t ? Math.max(0, Math.min(yt ? K - 1 : K - ft, t)) : 0, I ? t + Dt : t } function un(t) { for (null == t && (t = qt), I && (t -= Dt); t < 0;)t += K; return Math.floor(t % K) } function ln() { var t, e = un(); return t = ve ? e : ot || rt ? Math.ceil((e + 1) * De / K - 1) : Math.floor(e / ft), !yt && I && qt === Gt && (t = De - 1), t } function sn() { return h.innerWidth || D.documentElement.clientWidth || D.body.clientWidth } function cn(t) { return \"top\" === t ? \"afterbegin\" : \"beforeend\" } function fn() { var t = ut ? 2 * ut - lt : 0; return function t(e) { var n, i, a = D.createElement(\"div\"); return e.appendChild(a), i = (n = a.getBoundingClientRect()).right - n.left, a.remove(), i || t(e.parentNode) }(Q) - t } function dn(t) { if (O[t]) return !0; if (k) for (var e in k) if (k[e][t]) return !0; return !1 } function vn(t, e) { if (null == e && (e = J), \"items\" === t && ot) return Math.floor((st + lt) / (ot + lt)) || 1; var n = O[t]; if (k) for (var i in k) e >= parseInt(i) && t in k[i] && (n = k[i][t]); return \"slideBy\" === t && \"page\" === n && (n = vn(\"items\")), I || \"slideBy\" !== t && \"items\" !== t || (n = Math.floor(n)), n } function pn(t, e, n, i, a) { var r = \"\"; if (void 0 !== t) { var o = t; e && (o -= e), r = q ? \"margin: 0 \" + o + \"px 0 \" + t + \"px;\" : \"margin: \" + t + \"px 0 \" + o + \"px 0;\" } else if (e && !n) { var u = \"-\" + e + \"px\"; r = \"margin: 0 \" + (q ? u + \" 0 0\" : \"0 \" + u + \" 0\") + \";\" } return !I && a && x && i && (r += xn(i)), r } function mn(t, e, n) { return t ? (t + e) * Ht + \"px\" : y ? y + \"(\" + 100 * Ht + \"% / \" + n + \")\" : 100 * Ht / n + \"%\" } function hn(t, e, n) { var i; if (t) i = t + e + \"px\"; else { I || (n = Math.floor(n)); var a = I ? Ht : n; i = y ? y + \"(100% / \" + a + \")\" : 100 / a + \"%\" } return i = \"width:\" + i, \"inner\" !== R ? i + \";\" : i + \" !important;\" } function yn(t) { var e = \"\"; !1 !== t && (e = (q ? \"padding-\" : \"margin-\") + (q ? \"right\" : \"bottom\") + \": \" + t + \"px;\"); return e } function gn(t, e) { var n = t.substring(0, t.length - e).toLowerCase(); return n && (n = \"-\" + n + \"-\"), n } function xn(t) { return gn(x, 18) + \"transition-duration:\" + t / 1e3 + \"s;\" } function bn(t) { return gn(b, 17) + \"animation-duration:\" + t / 1e3 + \"s;\" } function Cn() { if (dn(\"autoHeight\") || rt || !q) { var t = G.querySelectorAll(\"img\"); qi(t, function (t) { var e = t.src; e && e.indexOf(\"data:image\") < 0 ? (ea(t, xe), t.src = \"\", t.src = e, Vi(t, \"loading\")) : St || zn(t) }), Oi(function () { jn(Ji(t), function () { Z = !0 }) }), !rt && q && (t = Fn(qt, Math.min(qt + ft - 1, Ht - 1))), St ? wn() : Oi(function () { jn(Ji(t), wn) }) } else I && ai(), Tn(), En() } function wn() { if (rt) { var e = yt ? qt : K - 1; !function t() { Y[e - 1].getBoundingClientRect().right.toFixed(2) === Y[e].getBoundingClientRect().left.toFixed(2) ? Mn() : setTimeout(function () { t() }, 16) }() } else Mn() } function Mn() { q && !rt || (Yn(), rt ? (Rt = ni(), ee && (ne = Ln()), Gt = Ft(), an($t || ne)) : Ni()), I && ai(), Tn(), En() } function Tn() { if (Kn(), j.insertAdjacentHTML(\"afterbegin\", '