text: /*!-----------------------------------------------------------------
      Name: GoodGames - Game Portal / Store HTML Template
      Version: 1.4.1
      Author: nK
      Website: https://nkdev.info/
      Purchase: https://themeforest.net/item/goodgames-portal-store-html-gaming-template/17704593?ref=_nK
      Support: https://nk.ticksy.com/
      License: You must have a valid license purchased only from ThemeForest (the above link) in order to legally use the theme for your project.
      Copyright 2018.
  -------------------------------------------------------------------*/
      !function(t){var n={};function e(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=4)}([function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=jQuery,a=window.TweenMax,o=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,r=/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/g.test(navigator.userAgent||navigator.vendor||window.opera),s="undefined"!=typeof InstallTrigger,l="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;i("html").addClass(r?"is-mobile":"is-desktop");var d=i(window),c=i(document),u=i("body"),p=0,f=0,v=0;function h(){n.wndW=p=d.width(),n.wndH=f=d.height(),n.docH=v=c.height()}h(),d.on("resize load orientationchange",h);var g=[],m=void 0;function k(){clearTimeout(m),m=setTimeout(function(){if(g.length)for(var t=0;t<g.length;t++)g[t]()},50)}d.on("ready load resize orientationchange",k),k();var w=[],b=void 0,y=0;function $(){var t=d.scrollTop(),n="";n=t>y?"down":t<y?"up":"none",0===t?n="start":t>=v-f&&(n="end"),w.forEach(function(e){"function"==typeof e&&e(n,t,y,d)}),y=t}d.on("scroll load resize orientationchange",function(){w.length&&(b=!0)}),setInterval(function(){b&&(b=!1,window.requestAnimationFrame($))},250);var _=void 0,x=void 0,P=void 0,C=void 0,M=i(".nk-header > *");function T(){var t=window.innerWidth;if(!t){var n=document.documentElement.getBoundingClientRect();t=n.right-Math.abs(n.left)}x=u[0].clientWidth<t,P=function(){var t=document.createElement("div");t.className="nk-body-scrollbar-measure",u[0].appendChild(t);var n=t.offsetWidth-t.clientWidth;return u[0].removeChild(t),n}()}n.$=i,n.tween=a,n.isIOs=o,n.isMobile=r,n.isFireFox=s,n.isTouch=l,n.$wnd=d,n.$doc=c,n.$body=u,n.wndW=p,n.wndH=f,n.docH=v,n.debounceResize=function(t){"function"==typeof t?g.push(t):window.dispatchEvent(new Event("resize"))},n.throttleScroll=function(t){w.push(t)},n.bodyOverflow=function(t){t&&!_?(_=1,T(),void 0===C&&(C=u.css("padding-right")||""),x&&u.add(M).css("paddingRight",P+"px"),u.css("overflow","hidden")):!t&&_&&(_=0,u.css("overflow",""),u.css("paddingRight",C),M.css("paddingRight",""))},n.isBodyOverflowed=function(){return _},n.isInViewport=function(t,n){var e=t[0].getBoundingClientRect(),i=1;if(e.right<=0||e.left>=p)i=0;else if(e.bottom<0&&e.top<=f)i=0;else{var a=Math.max(0,e.height+e.top),o=Math.max(0,e.height-(e.top+e.height-f)),r=Math.max(0,-e.top),s=Math.max(0,e.top+e.height-f);e.height<f?i=1-(r||s)/e.height:a<=f?i=a/f:o<=f&&(i=o/f),i=i<0?0:i}return n?[i,e]:i},n.scrollTo=function(t,n){var e=!1,i=this.options.scrollToAnchorSpeed/1e3;!1!==(e="top"===t?0:"bottom"===t?Math.max(0,v-f):"number"==typeof t?t:!!t.offset&&t.offset().top)&&d.scrollTop()!==e?(a.to(d,i,{scrollTo:{y:e,autoKill:!o},ease:Power2.easeOut,overwrite:5}),n&&a.delayedCall(i,n)):"function"==typeof n&&n()}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.options={scrollToAnchorSpeed:700,templates:{secondaryNavbarBackItem:"Back",plainVideoIcon:'<span class="nk-video-icon"><span class="fa fa-play pl-5"></span></span>',plainVideoLoadIcon:'<span class="nk-video-icon"><span class="nk-loading-icon"></span></span>',audioPlainButton:'<div class="nk-audio-plain-play-pause">\n                <span class="nk-audio-plain-play">\n                    <span class="ion-play ml-3"></span>\n                </span>\n                <span class="nk-audio-plain-pause">\n                    <span class="ion-pause"></span>\n                </span>\n            </div>',instagram:'<div class="col-4">\n                <a href="{{link}}" target="_blank">\n                    <img src="{{image}}" alt="{{caption}}" class="nk-img-stretch">\n                </a>\n            </div>',instagramLoadingText:"Loading...",instagramFailText:"Failed to fetch data",instagramApiPath:"php/instagram/instagram.php",twitter:'<div class="nk-twitter">\n                <span class="nk-twitter-icon fab fa-twitter"></span>\n                <div class="nk-twitter-name">\n                      <a href="https://twitter.com/{{screen_name}}" target="_blank">@{{screen_name}}</a>\n                </div>\n                <div class="nk-twitter-date">\n                    <span>{{date}}</span>\n                </div>\n                <div class="nk-twitter-text">\n                   {{tweet}}\n                </div>\n            </div>',twitterLoadingText:"Loading...",twitterFailText:"Failed to fetch data",twitterApiPath:"php/twitter/tweet.php",countdown:'<div class="nk-hexagon">\n                <div class="nk-hexagon-inner"></div>\n                <span>%D</span>\n                <small>Days</small>\n            </div>\n            <div class="nk-hexagon">\n                <div class="nk-hexagon-inner"></div>\n                <span>%H</span>\n                <small>Hours</small>\n            </div>\n            <div class="nk-hexagon">\n                <div class="nk-hexagon-inner"></div>\n                <span>%M</span>\n                <small>Minutes</small>\n            </div>\n            <div class="nk-hexagon">\n                <div class="nk-hexagon-inner"></div>\n                <span>%S</span>\n                <small>Seconds</small>\n            </div>'}}},,,function(t,n,e){t.exports=e(5)},function(t,n,e){"use strict";var i=function(){function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(n,e,i){return e&&t(n.prototype,e),i&&t(n,i),n}}(),a=e(1),o=e(0),r=e(6),s=e(7),l=e(8),d=e(9),c=e(10),u=e(11),p=e(12),f=e(13),v=e(14),h=e(15),g=e(16),m=e(17),k=e(18),w=e(19),b=e(20),y=e(21),$=e(22),_=e(23),x=e(24),P=e(25),C=e(26),M=e(27),T=e(28),S=e(29),I=e(30),O=e(31),A=e(32),j=e(33),F=e(34),B=e(35),D=e(36);var R=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=a.options}return i(t,[{key:"init",value:function(){var t=this;return t.initPluginStickySidebar(),t.initNavbar(),t.initNavbarSide(),t.initNavbarDropEffect1(),t.initStore(),t.initBackgrounds(),t.initCounters(),t.initNewsBox(),t.initAnchors(),t.initVideoBlocks(),t.initGIF(),t.initInfoBoxes(),t.initForms(),t.initFormsMailChimp(),t.initAudioPlayer(),t.initImageSlider(),t.initFacebook(),t.initInstagram(),t.initTwitter(),t.initPluginFastClick(),t.initPluginNano(),t.initPluginJarallax(),t.initPluginFlickity(),t.initPluginPhotoswipe(),t.initPluginModal(),t.initPluginTabs(),t.initPluginAccordions(),t.initPluginCountdown(),t.initPluginSeiyriaBootstrapSlider(),t.initPluginSummernote(),t}},{key:"setOptions",value:function(t){return r.setOptions.call(this,t)}},{key:"debounceResize",value:function(t){return o.debounceResize.call(this,t)}},{key:"throttleScroll",value:function(t){return o.throttleScroll.call(this,t)}},{key:"bodyOverflow",value:function(t){return o.bodyOverflow.call(this,t)}},{key:"isInViewport",value:function(t,n){return o.isInViewport.call(this,t,n)}},{key:"scrollTo",value:function(t,n){return o.scrollTo.call(this,t,n)}},{key:"initNavbar",value:function(){return s.initNavbar.call(this)}},{key:"initNavbarSide",value:function(){return l.initNavbarSide.call(this)}},{key:"initNavbarDropEffect1",value:function(){return d.initNavbarDropEffect1.call(this)}},{key:"initBackgrounds",value:function(t){return c.initBackgrounds.call(this,t)}},{key:"initCounters",value:function(){return u.initCounters.call(this)}},{key:"initStore",value:function(){return p.initStore.call(this)}},{key:"initNewsBox",value:function(){return f.initNewsBox.call(this)}},{key:"initAnchors",value:function(){return v.initAnchors.call(this)}},{key:"initVideoBlocks",value:function(){return h.initVideoBlocks.call(this)}},{key:"initGIF",value:function(){return g.initGIF.call(this)}},{key:"initInfoBoxes",value:function(){return m.initInfoBoxes.call(this)}},{key:"initForms",value:function(){return k.initForms.call(this)}},{key:"initFormsMailChimp",value:function(){return w.initFormsMailChimp.call(this)}},{key:"initAudioPlayer",value:function(){return b.initAudioPlayer.call(this)}},{key:"initImageSlider",value:function(){return y.initImageSlider.call(this)}},{key:"initFacebook",value:function(){return $.initFacebook.call(this)}},{key:"initInstagram",value:function(){return _.initInstagram.call(this)}},{key:"initTwitter",value:function(){return x.initTwitter.call(this)}},{key:"initPluginStickySidebar",value:function(){return P.initPluginStickySidebar.call(this)}},{key:"initPluginFastClick",value:function(){return C.initPluginFastClick.call(this)}},{key:"initPluginNano",value:function(t){return M.initPluginNano.call(this,t)}},{key:"initPluginJarallax",value:function(t){return T.initPluginJarallax.call(this,t)}},{key:"initPluginFlickity",value:function(t){return S.initPluginFlickity.call(this,t)}},{key:"initPluginPhotoswipe",value:function(t){return I.initPluginPhotoswipe.call(this,t)}},{key:"initPluginModal",value:function(t){return O.initPluginModal.call(this,t)}},{key:"initPluginTabs",value:function(t){return A.initPluginTabs.call(this,t)}},{key:"initPluginAccordions",value:function(t){return j.initPluginAccordions.call(this,t)}},{key:"initPluginCountdown",value:function(t){return F.initPluginCountdown.call(this,t)}},{key:"initPluginSeiyriaBootstrapSlider",value:function(t){return B.initPluginSeiyriaBootstrapSlider.call(this,t)}},{key:"initPluginSummernote",value:function(t){return D.initPluginSummernote.call(this,t)}}]),t}();window.GoodGames=new R},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setOptions=void 0;var i=e(0);n.setOptions=function(t){var n=this,e=i.$.extend({},this.options.templates,t&&t.templates||{}),a=i.$.extend({},this.options.shortcuts,t&&t.shortcuts||{}),o=i.$.extend({},this.options.events,t&&t.events||{});n.options=i.$.extend({},n.options,t),n.options.templates=e,n.options.shortcuts=a,n.options.events=o}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initNavbar=void 0;var i=e(0);n.initNavbar=function(){var t=(0,i.$)(".nk-navbar-top"),n=(0,i.$)("[data-nav-mobile]");if(n.length){n.each(function(){var t=(0,i.$)((0,i.$)(this).html());(0,i.$)((0,i.$)(this).attr("data-nav-mobile")).find(".nk-navbar-mobile-content > ul.nk-nav").append(t)});var e=(0,i.$)(".nk-navbar-mobile-content > ul.nk-nav");e.find(".bg-image, .bg-video").remove(),e.find(".nk-mega-item > .dropdown").each(function(){var t=(0,i.$)(this).children("ul").addClass("dropdown");t.find("> li > label").each(function(){(0,i.$)(this).next().addClass("dropdown"),(0,i.$)(this).parent().addClass("nk-drop-item"),(0,i.$)(this).replaceWith((0,i.$)('<a href="#"></a>').html((0,i.$)(this).html()))}),(0,i.$)(this).replaceWith(t)}),e.find(".nk-mega-item").removeClass("nk-mega-item")}var a=t.length?t.offset().top:0,o=(0,i.$)("<div>").hide();function r(){i.$wnd.scrollTop()>=a?(t.addClass("nk-navbar-fixed"),o.show()):(t.removeClass("nk-navbar-fixed"),o.hide())}function s(t){t.length&&(t.removeClass("open"),i.tween.to(t.children(".dropdown"),.3,{opacity:0,display:"none"}),i.$wnd.trigger("nk-closed-submenu",[t]))}t.hasClass("nk-navbar-sticky")&&(i.$wnd.on("scroll resize",r),r(),t.after(o),this.debounceResize(function(){o.height(t.innerHeight())}));var l=void 0;t.on("mouseenter","li.nk-drop-item",function(){var t,n=(0,i.$)(this),e=n.siblings(".open").add(n.siblings().find(".open")).add(n.parents(".nk-nav:eq(0)").siblings().find(".open")).add(n.parents(".nk-nav:eq(0)").siblings(".open")).add(n.parents(".nk-nav:eq(0)").parent().siblings().find(".open"));clearTimeout(l),s(e),(t=n).hasClass("open")||(function(t){if(t.parent().is(".nk-nav")){var n=t.children(".dropdown"),e=t.closest(".nk-navbar"),i=e.children(".container");i=i.length?i:e;var a={marginLeft:"",marginRight:"",marginTop:0,display:"block"};n.css(a);var o=n[0].getBoundingClientRect(),r=i[0].getBoundingClientRect(),s=t[0].getBoundingClientRect();o.right>r.right&&(a.marginLeft=r.right-o.right,n.css(a),o=n[0].getBoundingClientRect()),o.left<0&&(a.marginLeft=-o.left,n.css(a),o=n[0].getBoundingClientRect());var l=o.left+(a.marginLeft||0);l>s.left&&(a.marginLeft=(a.marginLeft||0)-(l-s.left)),a.marginTop=e.innerHeight()-n.offset().top+e.offset().top+5,a.display="none",n.css(a)}}(t),i.tween.to(t.children(".dropdown"),.3,{opacity:1,display:"block"}),t.addClass("open"),i.$wnd.trigger("nk-opened-submenu",[t]))}).on("mouseleave","li.nk-drop-item",function(){var t=(0,i.$)(this);clearTimeout(l),l=setTimeout(function(){s(t)},200)}),t.on("mouseleave",function(){clearTimeout(l),l=setTimeout(function(){s(t.find(".open"))},400)});var d=t.filter(".nk-navbar-autohide");this.throttleScroll(function(n,e){var i="nk-onscroll-hide",a="nk-onscroll-show";"down"===n&&e>400?d.removeClass(a).addClass(i):"up"!==n&&"end"!==n&&"start"!==n||d.removeClass(i).addClass(a),t.hasClass("nk-navbar-transparent")&&t[(e>70?"add":"remove")+"Class"]("nk-navbar-solid")})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initNavbarSide=void 0;var i=e(0);n.initNavbarSide=function(){var t=this,n=(0,i.$)('<div class="nk-navbar-overlay">').appendTo(i.$body),e=(0,i.$)(".nk-navbar-left-side"),a=(0,i.$)(".nk-navbar-right-side"),o=(0,i.$)(".nk-navbar-side");function r(){(0,i.$)("[data-nav-toggle]").each(function(){var t=(0,i.$)((0,i.$)(this).attr("data-nav-toggle")).hasClass("open");(0,i.$)(this)[(t?"add":"remove")+"Class"]("active")})}if(t.toggleSide=function(n,e){t[n.hasClass("open")?"closeSide":"openSide"](n,e)},t.openSide=function(t,e){"none"!==t.css("display")&&(t.addClass("open"),i.tween.to(t,e||.4,{x:t.hasClass("nk-navbar-left-side")?"100%":"-100%",force3D:!0}),t.hasClass("nk-navbar-overlay-content")&&i.tween.to(n,.3,{opacity:.8,display:"block",force3D:!0}),r())},t.closeSide=function(t,e){t.each(function(){(0,i.$)(this).removeClass("open"),i.tween.to(this,e||.4,{x:"0%",force3D:!0}),r()}),o.filter(".nk-navbar-overlay-content.open").length||i.tween.to(n,.3,{opacity:0,display:"none",force3D:!0})},i.$doc.on("click","[data-nav-toggle]",function(n){var e=(0,i.$)((0,i.$)(this).attr("data-nav-toggle"));e.hasClass("open")?t.closeSide(e):((0,i.$)("[data-nav-toggle]").each(function(){t.closeSide((0,i.$)((0,i.$)(this).attr("data-nav-toggle")))}),t.openSide(e)),n.preventDefault()}),i.$doc.on("click",".nk-navbar-overlay",function(){t.closeSide(o)}),t.debounceResize(function(){o.filter(".open").each(function(){(0,i.$)(this).is(":visible")||t.closeSide((0,i.$)(this))})}),i.isTouch&&"undefined"!=typeof Hammer){var s=void 0,l=void 0,d=void 0,c=void 0,u=void 0,p=void 0,f=0,v=void 0,h=!1,g=!1,m=!1,k=new Hammer.Manager(document,{touchAction:"auto",inputClass:Hammer.SUPPORT_POINTER_EVENTS?Hammer.PointerEventInput:Hammer.TouchInput,recognizers:[[Hammer.Pan,{direction:Hammer.DIRECTION_HORIZONTAL}]]});k.on("panstart",function(t){"panup"!==t.additionalEvent&&"pandown"!==t.additionalEvent||(f=1)}),k.on("panend",function(n){if(!f){if(s){var e=void 0;e=h?d?h:c?l-h:0:0;var i=Math.max(.15,.4*(l-e)/l),a=0;if(e&&e>10){var o=Math.abs(n.velocityX)>.7;(e>=l/3||o)&&(a=1,d?t.openSide(s,i):t.closeSide(s,i))}a||(d?t.closeSide(s,i):t.openSide(s,i))}d=!1,c=!1,u=!1,p=!1,v=!1,h=!1,s=!1,g=!1,m=!1}f=0}),k.on("panleft panright panup pandown",function(t){if(!f){var n=!1,o=t.isFinal;if(!1===g&&(g=t.center.x,n=!0),m=t.center.x,n)v=2===t.direction?"left":4===t.direction&&"right",a&&a.length&&(l=a.width(),i.wndW-g<=50&&!a.hasClass("open")&&!e.hasClass("open")?(d=1,u=1):i.wndW-g>=l-100&&a.hasClass("open")&&(c=1,u=1)),e&&e.length&&!u&&e.is(":visible")&&(l=e.width(),g<=50&&!a.hasClass("open")&&!e.hasClass("open")?(d=1,p=1):g>=l-100&&e.hasClass("open")&&(c=1,p=1)),s=p?e:!!u&&a;else if(!o&&s)if(u&&(d&&"left"===v||c&&"right"===v)){if(d&&(h=Math.min(l,Math.max(0,g-m))),c){var r=g-m;g<i.wndW-l&&(r=i.wndW-l-m),h=l-Math.abs(Math.max(-l,Math.min(0,r)))}i.tween.set(s,{x:-100*h/l+"%"})}else if(p&&(d&&"right"===v||c&&"left"===v)){if(d&&(h=Math.min(l,Math.max(0,m-g))),c){var k=m-g;g>l&&(k=m-l),h=l-Math.abs(Math.max(-l,Math.min(0,k)))}i.tween.set(s,{x:100*h/l+"%"})}}}),window.addEventListener("touchmove",function(t){(u||p)&&(t.srcEvent.preventDefault(),t.preventDefault())},{passive:!1})}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initNavbarDropEffect1=void 0;var i=e(0);n.initNavbarDropEffect1=function(){var t=this,n=(0,i.$)(".nk-navbar-side, .nk-navbar-full");function e(n){var e=n.parents(".nk-navbar:eq(0)"),a=e.find(".nk-nav"),o=a.children(".nano-content"),r=a.parent(),s=e.find(".nk-drop-item.open > .dropdown:not(.closed)");if(s.length){var l=s.innerHeight();if(r.hasClass("nk-nav-row-center")){s.css({top:0}),a.hide();var d=r.innerHeight();a.show();var c=d,u=r.offset().top-s.offset().top;l<c&&(u+=(d-l)/2),s.css({top:u})}a.css("height",l),t.initPluginNano(e),i.tween.to(o,.3,{scrollTo:{y:0},delay:.2})}else a.css("height","");t.initPluginNano(e)}function a(t,n){var e=n.find("> .dropdown > li > a"),a=n.parent().find("> li > a");if(t)n.addClass("open").parent().addClass("closed");else{n.removeClass("open").parent().removeClass("closed");var o=e;e=a,a=o}i.tween.set(e,{x:t?"20%":"-20%",opacity:0,display:"block"},.1),i.tween.staggerTo(e,.2,{x:"0%",opacity:1,delay:.1},.05),i.tween.staggerTo(a,.2,{x:t?"-20%":"20%",opacity:0},.05,function(){a.css("display","none")})}n.find(".dropdown").prepend('<li class="bropdown-back"><a href="#">'+t.options.templates.secondaryNavbarBackItem+"</a></li>"),n.on("click",".nk-drop-item > a",function(t){a(!0,(0,i.$)(this).parent()),e((0,i.$)(this)),t.preventDefault()}),n.on("click",".bropdown-back > a",function(t){a(!1,(0,i.$)(this).parent().parent().parent()),e((0,i.$)(this)),t.preventDefault()})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initBackgrounds=void 0;var i=e(0);n.initBackgrounds=function(){if("undefined"!=typeof MutationObserver){var t=(0,i.$)(".nk-page-background-top, .nk-page-background-bottom, .nk-page-background-fixed");t.length&&new MutationObserver(function(n){n.forEach(function(){var n=(0,i.$)("body").css("padding-right");n?t.css("width","calc(100% - "+n+")"):t.css("width","")})}).observe(i.$body[0],{attributes:!0,attributeFilter:["style"]})}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initCounters=void 0;var i=e(0);n.initCounters=function(){var t=this,n=(0,i.$)(".nk-progress.nk-count"),e=(0,i.$)(".nk-count:not(.nk-progress)");n.each(function(){(0,i.$)(this).attr("data-nk-count",(0,i.$)(this).attr("data-progress")).attr("data-nk-mask",(0,i.$)(this).attr("data-progress-mask")).find(".nk-progress-line > div").css("width",((0,i.$)(this).attr("data-nk-count-from")||"0")+"%").find(".nk-progress-percent").html("")}),e.each(function(){(0,i.$)(this).attr("data-nk-count",(0,i.$)(this).attr("data-nk-count")||parseInt((0,i.$)(this).text(),10)).html((0,i.$)(this).attr("data-nk-count-from")||"0")});var a=1;function o(){if(a){var o=n.filter("[data-nk-count]"),r=e.filter("[data-nk-count]");a=o.length+r.length,n.filter("[data-nk-count]").each(function(){var n=(0,i.$)(this);if(t.isInViewport(n)){var e={curr:n.attr("data-nk-count-from")||"0",to:n.attr("data-nk-count"),mask:n.attr("data-nk-mask")||"{$}%"},a=n.find(".nk-progress-line > div"),o=n.find(".nk-progress-percent");i.tween.to(a,1,{width:e.to+"%"}),i.tween.to(e,1,{curr:e.to,roundProps:"curr",ease:Circ.easeIn,onUpdate:function(){o.text(e.mask.replace("{$}",e.curr))}}),n.removeAttr("data-nk-count")}}),e.filter("[data-nk-count]").each(function(){var n=(0,i.$)(this);if(t.isInViewport(n)){var e={curr:n.text(),to:n.attr("data-nk-count")};n.removeAttr("data-nk-count data-nk-count-from"),i.tween.to(e,1,{curr:e.to,roundProps:"curr",ease:Circ.easeIn,onUpdate:function(){n.text(e.curr)}})}})}}t.throttleScroll(o),o()}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initStore=void 0;var i=e(0);n.initStore=function(){var t=this;i.$doc.on("click","a.nk-product-rating",function(n){var e=this.hash;if(e){var a=(0,i.$)(e).parents(".nk-tabs:eq(0)");a.length&&t.scrollTo(a),(0,i.$)(".nk-tabs").find('[data-toggle="tab"][href="'+e+'"]').click()}n.preventDefault()})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initNewsBox=void 0;var i=e(0);n.initNewsBox=function(){i.$doc.on("click",".nk-news-box .nk-news-box-item",function(){var t=(0,i.$)(this),n=t.parents(".nk-news-box:eq(0)").find(".nk-news-box-each-info"),e={title:t.find(".nk-news-box-item-title").html(),img:t.find(".nk-news-box-item-full-img").attr("src"),img_alt:t.find(".nk-news-box-item-full-img").attr("alt"),categories:t.find(".nk-news-box-item-categories").html(),text:t.find(".nk-news-box-item-text").html(),url:t.find(".nk-news-box-item-url").attr("href"),date:t.find(".nk-news-box-item-date").html()};n.find(".nk-news-box-item-title").html(e.title),n.find(".nk-news-box-item-image > img").length?n.find(".nk-news-box-item-image > img").attr("src",e.img).attr("alt",e.img_alt):n.find(".nk-news-box-item-image").css("background-image",'url("'+e.img+'")'),n.find(".nk-news-box-item-categories").html(e.categories),n.find(".nk-news-box-item-text").html(e.text),n.find(".nk-news-box-item-more").attr("href",e.url),n.find(".nk-news-box-item-date").html(e.date),t.addClass("nk-news-box-item-active").siblings().removeClass("nk-news-box-item-active")}),(0,i.$)(".nk-news-box .nk-news-box-item-active").trigger("click")}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initAnchors=void 0;var i=e(0);n.initAnchors=function(){var t=this,n=(0,i.$)(".nk-navbar-left-side"),e=(0,i.$)(".nk-navbar-right-side");i.$doc.on("click",".navbar a, .nk-navbar a, a.btn, a.nk-btn, a.nk-anchor",function(a){var o=this.hash,r=this.baseURI===window.location.href;if(o&&r)try{var s=(0,i.$)(o),l=o.replace(/^#/,"");(s.length||"top"===l||"bottom"===l)&&(t.closeSide(n),t.closeSide(e),t.closeFullscreenNavbar(),t.scrollTo(s.length?s:l),a.preventDefault())}catch(t){}});var a=[];function o(){for(var t=0;t<a.length;t++){var n=a[t],e=0,o=i.wndH;n.$block.length&&(e=n.$block.offset().top,o=n.$block.innerHeight()),n.activate=e-i.wndH/2,n.deactivate=e+o-i.wndH/2}}function r(t,n){for(var e=0;e<a.length;e++){var i=a[e],o=n>=i.activate&&n<i.deactivate;i.$item[o?"addClass":"removeClass"]("active")}}(0,i.$)('.nk-navbar .nk-nav > li > a[href*="#"]').each(function(){var t=this.hash.replace(/^#/,"");if(t){var n=(0,i.$)(this).parent(),e=(0,i.$)("#"+t);if(t&&e.length||"top"===t){var o=function(t){for(var n=0;n<a.length;n++)if(a[n].hash===t)return n;return!1}(t);!1===o?a.push({hash:t,$item:n,$block:e}):a[o].$item=a[o].$item.add(n)}}}),a.length&&(o(),r(0,i.$wnd.scrollTop()),t.throttleScroll(r),t.debounceResize(o))}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initVideoBlocks=void 0;var i=e(0);n.initVideoBlocks=function(){if(void 0!==window.VideoWorker){var t=this;(0,i.$)(".nk-plain-video[data-video]").each(function(){var e=(0,i.$)(this),a=void 0,o=(0,i.$)(this).attr("data-video"),r=(0,i.$)(this).attr("data-video-thumb"),s=new VideoWorker(o,{autoplay:0,loop:0,mute:0,controls:1});if(s&&s.isValid()){var l=0,d=0;if(e.on("click",function(){i.isMobile?window.open(s.url):d||(d=1,l?s.play():(e.find(".nk-video-plain-toggle").html(t.options.templates.plainVideoLoadIcon),s.getIframe(function(t){var n=(a=(0,i.$)(t)).parent();i.tween.set(t,{opacity:0}),a.appendTo(e),n.remove(),s.play()})))}),e.append('<span class="nk-video-plain-toggle"></span>'),n(e),r?e.css("background-image",'url("'+r+'")'):s.getImageURL(function(t){e.css("background-image",'url("'+t+'")')}),i.isMobile)return;s.on("ready",function(){s.play()}),s.on("play",function(){i.tween.to(a,.5,{opacity:1,onComplete:function(){l||(n(e),l=1)}}),"undefined"!=typeof soundManager&&soundManager.pauseAll()}),s.on("pause",function(){i.tween.to(a,.5,{opacity:0,onComplete:function(){i.tween.set(a,{opacity:0}),d=0}})})}})}function n(n){n.find(".nk-video-plain-toggle").html(t.options.templates.plainVideoIcon)}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initGIF=void 0;var i=e(0);n.initGIF=function(){var t=this;function n(t){var e,a,o,r=(0,i.$)(t);t.gifPlaying||(t.gifPlaying=!0,t.khGifLoaded?(r.addClass("nk-gif-playing"),r.find("img").attr("src",r.find("img").attr("data-gif"))):t.khGifLoading||(t.khGifLoading=1,r.addClass("nk-gif-loading"),e=r.find("img").attr("data-gif"),a=function(){t.khGifLoaded=1,r.removeClass("nk-gif-loading"),t.gifPlaying&&(t.gifPlaying=!1,n(t))},(o=new Image).onload=function(){a()},o.src=e))}function e(t){var n=(0,i.$)(t);t.gifPlaying&&(t.gifPlaying=!1,n.removeClass("nk-gif-playing"),n.find("img").attr("src",n.find("img").attr("data-gif-static")))}(0,i.$)(".nk-gif").each(function(){var n=(0,i.$)(this);n.append('<a class="nk-gif-toggle">'+t.options.templates.gifIcon+"</a>"),n.append('<div class="nk-loading-spinner"><i></i></div>'),n.find("img").attr("data-gif-static",n.find("img").attr("src"))}),(0,i.$)(".nk-gif-hover").on("mouseenter",function(){(0,i.$)(this).addClass("hover"),n(this)}).on("mouseleave",function(){(0,i.$)(this).removeClass("hover"),e(this)}),(0,i.$)(".nk-gif-click").on("click",function(){this.gifPlaying?((0,i.$)(this).removeClass("hover"),e(this)):((0,i.$)(this).addClass("hover"),n(this))});var a=(0,i.$)(".nk-gif-viewport");a.length&&t.throttleScroll(function(){a.each(function(){var a=t.isInViewport((0,i.$)(this),1);a[0]?a[1].height/i.wndH<.7?1===a[0]?n(this):e(this):a[0]>=.7?n(this):e(this):e(this)})}),(0,i.$)(".nk-gif:not(.nk-gif-click):not(.nk-gif-hover):not(.nk-gif-viewport)").each(function(){n(this)})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initInfoBoxes=void 0;var i=e(0);n.initInfoBoxes=function(){var t=this;i.$doc.on("click",".nk-info-box .nk-info-box-close",function(n){n.preventDefault();var e=(0,i.$)(this).parents(".nk-info-box:eq(0)");i.tween.to(e,.3,{opacity:0,onComplete:function(){i.tween.to(e,.3,{height:0,padding:0,margin:0,display:"none",onComplete:function(){t.debounceResize()}})}})})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initForms=void 0;var i=e(0);n.initForms=function(){if(void 0!==i.$.validator){var t=this;(0,i.$)("form:not(.nk-form-ajax):not(.nk-mchimp):not([novalidate])").each(function(){(0,i.$)(this).validate({errorClass:"nk-error",errorElement:"div",errorPlacement:function(n,e){var i=e.parent(".input-group");i.length?i.after(n):e.after(n),t.debounceResize()}})}),(0,i.$)("form.nk-form-ajax:not([novalidate])").each(function(){(0,i.$)(this).validate({errorClass:"nk-error",errorElement:"div",errorPlacement:function(n,e){var i=e.parent(".input-group");i.length?i.after(n):e.after(n),t.debounceResize()},submitHandler:function(n){var e=(0,i.$)(n).find(".nk-form-response-success"),a=(0,i.$)(n).find(".nk-form-response-error"),o=(0,i.$)(n);i.$.ajax({type:"POST",url:o.attr("action"),data:o.serialize(),success:function(i){(i=JSON.parse(i)).type&&"success"===i.type?(a.hide(),e.html(i.response).show(),n.reset()):(e.hide(),a.html(i.response).show()),t.debounceResize()},error:function(n){e.hide(),a.html(n.responseText).show(),t.debounceResize()}})}})})}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initFormsMailChimp=void 0;var i=e(0);n.initFormsMailChimp=function(){var t=(0,i.$)("form.nk-mchimp");if(void 0!==i.$.validator&&t.length){var n=this;i.$.validator.addMethod("mc_birthday",function(t,n,e){var a=!1,o=(0,i.$)("input:not(:hidden)",(0,i.$)(n).closest(e));if(0===o.filter(":filled").length&&this.optional(n))a=!0;else{var r=[];r.month=o.filter('input[name*="[month]"]').val(),r.day=o.filter('input[name*="[day]"]').val(),r.month-=1;var s=new Date(1970,r.month,r.day);a=s.getDate()===r.day&&s.getMonth()===r.month}return a},"Please enter a valid month and day."),i.$.validator.addMethod("mc_date",function(t,n,e){var a=!1,o=(0,i.$)("input:not(:hidden)",(0,i.$)(n).closest(e));if(0===o.filter(":filled").length&&this.optional(n))a=!0;else{var r=[];r.month=o.filter('input[name*="[month]"]').val(),r.day=o.filter('input[name*="[day]"]').val(),r.year=o.filter('input[name*="[year]"]').val(),r.month-=1,r.year.length<4&&(r.year=parseInt(r.year,10)<50?2e3+parseInt(r.year,10):1900+parseInt(r.year,10));var s=new Date(r.year,r.month,r.day);a=s.getDate()===r.day&&s.getMonth()===r.month&&s.getFullYear()===r.year}return a},"Please enter a valid date"),i.$.validator.addMethod("mc_phone",function(t,n,e){var a=(0,i.$)("input:filled:not(:hidden)",(0,i.$)(n).closest(e));return!(0!==a.length||!this.optional(n))||10===(t=a.eq(0).val()+a.eq(1).val()+a.eq(2).val()).length&&t.match(/[0-9]{9}/)},"Please specify a valid phone number"),i.$.validator.addMethod("skip_or_complete_group",function(t,n,e){var a=(0,i.$)("input:not(:hidden)",(0,i.$)(n).closest(e)),o=a.eq(0),r=o.data("valid_skip")?o.data("valid_skip"):i.$.extend({},this),s=a.filter(function(){return r.elementValue(this)}).length,l=0===s||s===a.length;return o.data("valid_skip",r),(0,i.$)(n).data("being_validated")||(a.data("being_validated",!0),a.each(function(){r.element(this)}),a.data("being_validated",!1)),l},i.$.validator.format("Please supply missing fields.")),i.$.validator.addMethod("skip_or_fill_minimum",function(t,n,e){var a=(0,i.$)(e[1],n.form),o=a.eq(0),r=o.data("valid_skip")?o.data("valid_skip"):i.$.extend({},this),s=a.filter(function(){return r.elementValue(this)}).length,l=0===s||s>=e[0];return o.data("valid_skip",r),(0,i.$)(n).data("being_validated")||(a.data("being_validated",!0),a.each(function(){r.element(this)}),a.data("being_validated",!1)),l},i.$.validator.format("Please either skip these fields or fill at least {0} of them.")),i.$.validator.addMethod("zipcodeUS",function(t,n){return this.optional(n)||/^\d{5}-\d{4}$|^\d{5}$/.test(t)},"The specified US ZIP Code is invalid"),t.each(function(){var t=(0,i.$)(this);if(t.length)var e=t.validate({errorClass:"nk-error",errorElement:"div",groups:function(){var n={};return t.find(".input-group").each(function(){var t=(0,i.$)(this).find("input:text:not(:hidden)");if(t.length>1){var e=t.first().attr("name"),a=i.$.map(t,function(t){return t.name});n[e.substring(0,e.indexOf("["))]=a.join(" ")}}),n},errorPlacement:function(t,e){e.closest(".input-group").after(t),n.debounceResize()},submitHandler:function(){var a=t.find(".nk-form-response-success"),o=t.find(".nk-form-response-error"),r=t.attr("action");r=r.replace("/post?u=","/post-json?u="),r+="&c=?",i.$.ajax({dataType:"jsonp",url:r,data:t.serializeArray(),success:function(i){if(a.hide(),o.hide(),"success"===i.result)a.show().html(i.msg),t[0].reset();else{var r=-1,s=void 0;try{var l=i.msg.split(" - ",2);void 0===l[1]?s=i.msg:parseInt(l[0],10).toString()===l[0]?(r=l[0],s=l[1]):(r=-1,s=i.msg)}catch(t){r=-1,s=i.msg}try{if(-1===r)o.show().html(s);else{var d={};d[t.find("input[name]:eq("+r+")").attr("name")]=s,e.showErrors(d)}}catch(t){o.show().html(s)}}n.debounceResize()},error:function(t){a.hide(),o.html(t.responseText).show(),n.debounceResize()}})}})}),i.$.validator.addClassRules("birthday",{digits:!0,mc_birthday:".datefield"}),i.$.validator.addClassRules("datepart",{digits:!0,mc_date:".datefield"}),i.$.validator.addClassRules("phonepart",{digits:!0,mc_phone:".phonefield"})}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initAudioPlayer=void 0;var i=e(0);n.initAudioPlayer=function(){if("undefined"!=typeof soundManager){var t=!1,n=(0,i.$)(".nk-audio-plain");n.prepend(this.options.templates.audioPlainButton);var e=function(t){var n=this;function e(){t.addClass("nk-audio-plain-playing")}function i(){n.seek(0),n.step(),n.$item.removeClass("nk-audio-plain-playing"),n.$timer.text(n.$timer.attr("data-duration"))}n.$item=t,n.url=t.attr("data-src"),n.$playPauseBtn=t.find(".nk-audio-plain-play-pause"),n.$progress=t.find(".nk-audio-progress-current"),n.$timer=t.find(".nk-audio-plain-duration"),n.$timer.attr("data-duration",n.$timer.text()),n.api=soundManager.createSound({volume:100,whileplaying:function(){n.step()},onplay:e,onresume:e,onpause:function(){n.$item.removeClass("nk-audio-plain-playing"),n.$timer.text(n.$timer.attr("data-duration"))},onstop:i,onfinish:i,onload:function(t){!t&&this._iO&&this._iO.onerror&&this._iO.onerror()}}),n.$playPauseBtn.on("click",function(){!n.api.paused&&n.api.playState&&n.api.url?n.pause():n.play()})};e.prototype={play:function(){soundManager.pauseAll(),this.api.play({url:this.url})},pause:function(){soundManager.pauseAll()},seek:function(t){this.api.setPosition(this.api.duration*t)},step:function(){var n=this,e=n.api.position||0;n.progress=e/n.api.duration,n.$timer[0].innerHTML=n.formatTime(Math.round(e)),t||(n.$progress[0].style.width=(100*n.progress||0)+"%")},formatTime:function(t){var n=Math.round(t/1e3)||0,e=Math.floor(n/60)||0,i=n-60*(e=(e<10?"0":0)+e);return e+":"+(i<10?"0":"")+i}},"undefined"!=typeof Hammer&&n.find(".nk-audio-progress").each(function(){var n=(0,i.$)(this),e=n.children(),a=void 0,o=void 0,r=void 0,s=!1,l=new Hammer.Manager(n[0]);l.add(new Hammer.Pan({pointers:1,threshold:0})),l.add(new Hammer.Press({time:1})),l.on("pan press pressup",function(i){"press"!==i.type&&!1!==s||(t=!0,o=n.width(),s=i.pointers[0].clientX-n[0].getBoundingClientRect().left,n.addClass("hover")),r=Math.min(1,Math.max(0,(s+i.deltaX)/o)),e[0].style.width=100*r+"%",(i.isFinal||"pressup"===i.type)&&(a||(a=n.parents(".nk-audio-player-main, .nk-audio-plain")[0].audioAPI),a&&a.seek(r),n.removeClass("hover"),t=!1,s=!1),i.preventDefault()})}),soundManager.onready(function(){n.length&&n.each(function(){this.audioAPI=new e((0,i.$)(this))})})}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initImageSlider=void 0;var i=e(0);n.initImageSlider=function(){var t=0;function n(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){t=1;var a=n.data("nk-image-slider");!1===e&&(e=a.$thumbs.find(".nk-image-slider-thumbs-active").index()+1);var o,r,s,l=a.slides[e];void 0===l&&(e=0,l=a.slides[e]),a.stopAutoplay(),a.selectThumb(e),r=l,s=function(){void 0!==i.$.fn.nanoScroller&&a.$content.parent(".nano").nanoScroller(),a.runAutoplay(),t=0},(o=a).$bgTransition.css({"background-image":"url('"+r.image+"')"}),i.tween.set(o.$bgTransition,{scale:1.4,opacity:0}),i.tween.to(o.$bgTransition,.5,{scale:1,opacity:1,zIndex:-1,onComplete:function(){o.$bg.css({"background-image":"url('"+r.image+"')"}),i.tween.set(o.$bgTransition,{opacity:0,zIndex:-2})}}),i.tween.to(o.$contentWrapper,.5,{opacity:0,onComplete:function(){o.$content.html(r.content),r.content&&i.tween.to(o.$contentWrapper,.5,{opacity:1}),s&&s()}})}}function e(t){return Math.ceil(t/1e3)}(0,i.$)(".nk-image-slider").each(function(){var t=(0,i.$)(this),a=parseInt(t.attr("data-autoplay"),10)||!1,o=[];if(t.find(".nk-image-slider-item").each(function(){var t=(0,i.$)(this);o.push({image:t.find(".nk-image-slider-img").attr("src"),thumb:t.find(".nk-image-slider-img").attr("data-thumb"),content:t.find(".nk-image-slider-content").html()||""})}),o.length){var r="";o.forEach(function(t,n){r+='<li class="'+(0===n?"nk-image-slider-thumbs-active":"")+'" style="background-image: url(\''+t.thumb+'\');"><div class="nk-image-slider-thumbs-overlay"></div></li>'});var s='\n            <div class="nk-image-slider-bg" style="background-image: url(\''+o[0].image+'\');"></div>\n            <div class="nk-image-slider-bg-transition"></div>\n            <div class="nk-image-slider-content" style="'+(o[0].content?"":"opacity: 0;")+'">\n                <div class="nano">\n                    <div class="nano-content">'+o[0].content+'</div>\n                </div>\n            </div>\n            <div class="nk-image-slider-thumbs">\n                <ul>'+r+"</ul>\n            </div>\n        ";t.append(s);var l=t.find(".nk-image-slider-thumbs"),d=l.find("> ul"),c=!1,u=0,p=0,f=0,v=new Hammer.Manager(l[0]);v.add(new Hammer.Pan({pointers:1,threshold:0})),v.on("pan press",function(t){t.preventDefault(),!1===c&&(c=u,w(),l.addClass("is-dragging")),f>p&&(u=Math.min(0,Math.max(t.deltaX+c,p-f)),i.tween.set(d,{x:u})),t.isFinal&&(l.removeClass("is-dragging"),c=!1)});var h=void 0,g=new Date,m=void 0,k={slides:o,autoplay:a,$thumbs:l,$thumbsCont:d,$content:t.find(".nk-image-slider-content .nano-content"),$contentWrapper:t.find(".nk-image-slider-content"),$bg:t.find(".nk-image-slider-bg"),$bgTransition:t.find(".nk-image-slider-bg-transition"),runAutoplay:y,stopAutoplay:b,pauseAutoplay:function(){m=+new Date},resumeAutoplay:function(){g+=new Date-m,m=!1},selectThumb:function(t){l.find("li:eq("+t+")").addClass("nk-image-slider-thumbs-active").siblings().removeClass("nk-image-slider-thumbs-active");var n=l.find("li:eq("+(t+1)+")");n.length||(n=l.find("li:eq(0)")),w();var e=n.position().left;if(e<0)i.tween.to(d,.2,{x:u-e});else{var a=n.width();e+a>p&&i.tween.to(d,.2,{x:u-(e+a-p)})}}};t.data("nk-image-slider",k),y()}else t.remove();function w(){u=d[0]._gsTransform&&d[0]._gsTransform.x?d[0]._gsTransform.x:0,p=l.width(),f=d[0].scrollWidth}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;a&&(clearInterval(h),t||l.find(".nk-image-slider-thumbs-count").remove())}function y(){if(a){var o=l.find(".nk-image-slider-thumbs-active").next();o.length||(o=l.find("li:eq(0)")),l.find(".nk-image-slider-thumbs-count").remove();var r=(0,i.$)('<div class="nk-image-slider-thumbs-count"></div>').text(e(a));o.append(r),g=+new Date,b(1);var s=a;h=setInterval(function(){if(!m){var i=g+a-new Date;i>a&&(g=+new Date,i=a),s!==e(i)&&(s=e(i),r.text(s)),i<=0&&(b(),n(t))}},100)}}}),i.$doc.on("click",".nk-image-slider .nk-image-slider-thumbs li:not(.nk-image-slider-thumbs-active)",function(){var t=(0,i.$)(this);n(t.parents(".nk-image-slider:eq(0)"),t.index())}),i.$doc.on("mouseenter",".nk-image-slider",function(){var t=(0,i.$)(this).data("nk-image-slider");t&&t.pauseAutoplay()}),i.$doc.on("mouseleave",".nk-image-slider",function(){var t=(0,i.$)(this).data("nk-image-slider");t&&t.resumeAutoplay()})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initFacebook=void 0;var i=e(0);n.initFacebook=function(){(0,i.$)(".fb-page").length&&(i.$body.append('<div id="fb-root"></div>'),function(t,n,e){if("file:"!==window.location.protocol){var i=t.getElementsByTagName("script")[0];if(!t.getElementById(e)){var a=t.createElement("script");a.id=e,a.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4",i.parentNode.insertBefore(a,i)}}}(document,0,"facebook-jssdk"))}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initInstagram=void 0;var i=e(0);n.initInstagram=function(){var t=this,n=(0,i.$)(".nk-instagram");function e(t,n){for(var e=["link","image","caption"],i=0,a=e.length;i<a;i++)n=n.replace(new RegExp("{{"+e[i]+"}}","gi"),t[e[i]]);return n}n.length&&t.options.templates.instagram&&n.each(function(){var n=(0,i.$)(this),a={userID:n.attr("data-instagram-user-id")||null,count:n.attr("data-instagram-count")||6,template:n.attr("data-instagram-template")||t.options.templates.instagram,quality:n.attr("data-instagram-quality")||"sm",loadingText:t.options.templates.instagramLoadingText,failText:t.options.templates.instagramFailText,apiPath:t.options.templates.instagramApiPath};if("file:"===window.location.protocol)return n.html('<div class="col-12">'+a.failText+"</div>"),void console.error("You should run you website on webserver with PHP to get working Instagram");n.html('<div class="col-12">'+a.loadingText+"</div>"),i.$.getJSON(a.apiPath,{userID:a.userID,count:a.count},function(i){n.html("");for(var o=0;o<a.count;o++){var r=!1;if(i[o])r=i[o];else{if(!i.statuses||!i.statuses[o])break;r=i.statuses[o]}var s="thumbnail";"md"===a.quality&&(s="low_resolution"),"lg"===a.quality&&(s="standard_resolution");var l={link:r.link,image:r.images[s].url,caption:r.caption};n.append(e(l,a.template))}t.debounceResize()}).fail(function(t){n.html('<div class="col-12">'+a.failText+"</div>"),i.$.error(t.responseText)})})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initTwitter=void 0;var i=e(0);n.initTwitter=function(){var t=this,n=(0,i.$)(".nk-twitter-list");function e(t,n){for(var e=["date","tweet","avatar","url","retweeted","screen_name","user_name"],i=0,a=e.length;i<a;i++)n=n.replace(new RegExp("{{"+e[i]+"}}","gi"),t[e[i]]);return n}n.length&&t.options.templates.twitter&&n.each(function(){var n=(0,i.$)(this),a={username:n.attr("data-twitter-user-name")||null,list:null,hashtag:n.attr("data-twitter-hashtag")||null,count:n.attr("data-twitter-count")||2,hideReplies:"true"===n.attr("data-twitter-hide-replies"),template:n.attr("data-twitter-template")||t.options.templates.twitter,loadingText:t.options.templates.twitterLoadingText,failText:t.options.templates.twitterFailText,apiPath:t.options.templates.twitterApiPath};if("file:"===window.location.protocol)return n.html(a.failText),void console.error("You should run you website on webserver with PHP to get working Twitter");n.html("<span>"+a.loadingText+"</span>"),i.$.getJSON(a.apiPath,{username:a.username,list:a.list,hashtag:a.hashtag,count:a.count,exclude_replies:a.hideReplies},function(i){n.html("");for(var o=0;o<a.count;o++){var r=!1;if(i[o])r=i[o];else{if(!i.statuses||!i.statuses[o])break;r=i.statuses[o]}var s={user_name:r.user.name,date:r.date_formatted,tweet:r.text_entitled,avatar:'<img src="'+r.user.profile_image_url+'" />',url:"https://twitter.com/"+r.user.screen_name+"/status/"+r.id_str,retweeted:r.retweeted,screen_name:r.user.screen_name};n.append(e(s,a.template))}t.debounceResize()}).fail(function(t){n.html(a.failText),i.$.error(t.responseText)})})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginStickySidebar=void 0;var i=e(0);n.initPluginStickySidebar=function(){void 0!==i.$.fn.stick_in_parent&&(0,i.$)(".nk-sidebar-sticky").each(function(){var t=(0,i.$)(this),n=t.parent();n.addClass("nk-sidebar-sticky-parent"),t.wrapInner("<div>").children().stick_in_parent({parent:n,recalc_every:50,offset_top:parseInt(t.attr("data-offset-top"),10)||130,spacer:!1}).on("sticky_kit:unbottom sticky_kit:stick sticky_kit:bottom",function(){n.css("min-height",(0,i.$)(this).height())}).on("sticky_kit:unstick",function(){n.css("min-height","")})})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginFastClick=function(){"undefined"!=typeof FastClick&&FastClick.attach(document.body)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginNano=void 0;var i=e(0);n.initPluginNano=function(t){void 0!==i.$.fn.nanoScroller&&(t||i.$doc).find(".nano").nanoScroller()}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginJarallax=void 0;var i=e(0);n.initPluginJarallax=function(){void 0!==i.$.fn.jarallax&&((0,i.$)(".bg-video[data-video]").each(function(){(0,i.$)(this).attr("data-jarallax-video",(0,i.$)(this).attr("data-video")),(0,i.$)(this).removeAttr("data-video")}),(0,i.$)(".bg-image-parallax, .bg-video-parallax").jarallax({speed:this.options.parallaxSpeed}),(0,i.$)(".bg-video:not(.bg-video-parallax)").jarallax({speed:1}))}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginFlickity=void 0;var i=e(0);n.initPluginFlickity=function(){void 0!==window.Flickity&&(0,i.$)(".nk-carousel > .nk-carousel-inner").each(function(){var t,n;(0,i.$)(this).flickity({pageDots:"true"===(0,i.$)(this).parent().attr("data-dots")||!1,autoPlay:parseFloat((0,i.$)(this).parent().attr("data-autoplay"))||!1,prevNextButtons:!1,wrapAround:!0,imagesLoaded:!0,cellAlign:(0,i.$)(this).parent().attr("data-cell-align")||"center"}),"true"===(0,i.$)(this).parent().attr("data-arrows")&&(t=(0,i.$)(this),(0,i.$)('<div class="nk-flickity-arrow nk-flickity-arrow-prev"><span class="ion-ios-arrow-back"></span></div>').on("click",function(){t.flickity("previous")}).appendTo(t),(0,i.$)('<div class="nk-flickity-arrow nk-flickity-arrow-next"><span class="ion-ios-arrow-forward"></span></div>').on("click",function(){t.flickity("next")}).appendTo(t)),(n=(0,i.$)(this)).on("dragStart.flickity",function(){(0,i.$)(this).find(".flickity-viewport").addClass("is-dragging")}),n.on("dragEnd.flickity",function(){(0,i.$)(this).find(".flickity-viewport").removeClass("is-dragging")})})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginPhotoswipe=void 0;var i=e(0);n.initPluginPhotoswipe=function(){var t=(0,i.$)(".nk-popup-gallery");if("undefined"!=typeof PhotoSwipe&&t.length){i.$body.append('<div id="gallery" class="pswp" tabindex="-1" role="dialog" aria-hidden="true">\n          <div class="pswp__bg"></div>\n          <div class="pswp__scroll-wrap">\n            <div class="pswp__container">\n              <div class="pswp__item"></div>\n              <div class="pswp__item"></div>\n              <div class="pswp__item"></div>\n            </div>\n            <div class="pswp__ui pswp__ui--hidden">\n              <div class="pswp__top-bar">\n                <div class="pswp__counter"></div>\n                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>\n                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>\n                <div class="pswp__preloader">\n                  <div class="pswp__preloader__icn">\n                    <div class="pswp__preloader__cut">\n                      <div class="pswp__preloader__donut"></div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n              <div class="pswp__loading-indicator"><div class="pswp__loading-indicator__line"></div></div>\n              <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>\n              <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>\n              <div class="pswp__caption">\n                <div class="pswp__caption__center">\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>');var n=0;t.each(function(){var t=(0,i.$)(this);t.attr("data-pswp-uid",n+1),t.on("click","a.nk-gallery-item",function(n){n.preventDefault();var e=0,i=this;t.find("a.nk-gallery-item").each(function(t){return this!==i||(e=t,!1)}),a(e,t[0])}),n++});var e=function(){var t=window.location.hash.substring(1),n={};if(t.length<5)return n;for(var e=t.split("&"),i=0;i<e.length;i++)if(e[i]){var a=e[i].split("=");a.length<2||(n[a[0]]=a[1])}return n.gid&&(n.gid=parseInt(n.gid,10)),n}();e.pid&&e.gid&&a(e.pid,t.get(e.gid-1),!0,!0)}function a(t,n,e,a){var o,r,s,l,d,c=(0,i.$)(".pswp")[0],u=(o=n,r=[],s=void 0,l=void 0,d=void 0,(0,i.$)(o).find("a.nk-gallery-item").each(function(){s=(0,i.$)(this).next(".nk-gallery-item-description"),l=(this.getAttribute("data-size")||"1920x1080").split("x"),d={src:this.getAttribute("href"),w:parseInt(l[0],10),h:parseInt(l[1],10),author:this.getAttribute("data-author")},s.length&&(d.title=s.html());var t=this.getAttribute("data-med")||d.src;t&&(l=(this.getAttribute("data-med-size")||this.getAttribute("data-size")||"1920x1080").split("x"),d.m={src:t,w:parseInt(l[0],10),h:parseInt(l[1],10)}),d.o={src:d.src,w:d.w,h:d.h},r.push(d)}),r),p={captionAndToolbarShowEmptyCaptions:!1,mainClass:"pswp--minimal--dark",barsSize:{top:0,bottom:0},captionEl:!0,fullscreenEl:!1,shareEl:!1,bgOpacity:.85,tapToClose:!0,tapToToggleControls:!1,showHideOpacity:!0,addCaptionHTMLFn:function(t,n){if(!t.title&&!t.author)return n.children[0].innerHTML="",!1;var e="";return t.title&&(e+=t.title),t.author&&(t.title&&(e+="<br>"),e+="<small>"+t.author+"</small>"),n.children[0].innerHTML=e,!0},galleryUID:n.getAttribute("data-pswp-uid")};if(a)if(p.galleryPIDs){for(var f=0;f<u.length;f++)if(u[f].pid===t){p.index=f;break}}else p.index=parseInt(t,10)-1;else p.index=parseInt(t,10);if(!Number.isNaN(p.index)){e&&(p.showAnimationDuration=0);var v=new PhotoSwipe(c,PhotoSwipeUI_Default,u,p),h=void 0,g=!1,m=!0,k=void 0;v.listen("beforeResize",function(){var t=window.devicePixelRatio?window.devicePixelRatio:1;t=Math.min(t,2.5),(h=v.viewportSize.x*t)>=1200||!v.likelyTouchDevice&&h>800||i.wndW>1200?g||(g=!0,k=!0):g&&(g=!1,k=!0),k&&!m&&v.invalidateCurrItems(),m&&(m=!1),k=!1}),v.listen("gettingData",function(t,n){g?(n.src=n.o.src,n.w=n.o.w,n.h=n.o.h):(n.src=n.m.src,n.w=n.m.w,n.h=n.m.h)}),v.init()}}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginModal=void 0;var i=e(0);n.initPluginModal=function(){i.$doc.on("shown.bs.modal",function(){(0,i.$)(this).find("[autofocus]").focus()})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginTabs=void 0;var i=e(0);n.initPluginTabs=function(){var t=this;i.$wnd.on("shown.bs.tab",function(){t.debounceResize()})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginAccordions=void 0;var i=e(0);n.initPluginAccordions=function(){var t=this;i.$wnd.on("shown.bs.collapse",function(){t.debounceResize()})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginCountdown=void 0;var i=e(0);n.initPluginCountdown=function(){if(void 0!==i.$.fn.countdown&&"undefined"!=typeof moment&&void 0!==moment.tz){var t=this;(0,i.$)(".nk-countdown").each(function(){var n=(0,i.$)(this).attr("data-timezone"),e=(0,i.$)(this).attr("data-end");e=moment.tz(e,n).toDate(),(0,i.$)(this).countdown(e,function(n){(0,i.$)(this).html(n.strftime(t.options.templates.countdown))})})}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginSeiyriaBootstrapSlider=void 0;var i=e(0);n.initPluginSeiyriaBootstrapSlider=function(){function t(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<n.newValue.length;i++)void 0===t[i]||!e&&n.newValue[i]===n.oldValue[i]||t[i].text(n.newValue[i])}void 0!==i.$.fn.bootstrapSlider&&(0,i.$)(".nk-input-slider").each(function(){for(var n=(0,i.$)(this),e=n.find("input"),a=[],o=0;o<3;o++)a.push(n.find(".nk-input-slider-value-"+o));e.bootstrapSlider().on("change",function(n){n.value&&n.value.newValue&&t(a,n.value)}),t(a,{newValue:e.bootstrapSlider("getValue")},!0)})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initPluginSummernote=void 0;var i=e(0);n.initPluginSummernote=function(){void 0!==i.$.fn.summernote&&((0,i.$)(".nk-summernote").summernote({height:300,dialogsInBody:!0,toolbar:[["style",["bold","italic","underline"]],["fontsize",["fontsize"]],["color",["color"]],["insert",["link","picture","video"]],["para",["ul","ol","paragraph"]],["height",["height"]],["misc",["codeview"]]]}),(0,i.$)(".note-popover").hide())}}]);