!function(t){"use strict";var e=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function n(){this.reads=[],this.writes=[],this.raf=i.bind(t),e("initialized",this)}function o(t){t.scheduled||(t.scheduled=!0,t.raf(function(t){e("flush");var i,n=t.writes,r=t.reads;try{e("flushing reads",r.length),t.runTasks(r),e("flushing writes",n.length),t.runTasks(n)}catch(t){i=t}t.scheduled=!1,(r.length||n.length)&&o(t);if(i){if(e("task errored",i.message),!t.catch)throw i;t.catch(i)}}.bind(null,t)),e("flush scheduled"))}function r(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}n.prototype={constructor:n,runTasks:function(t){var i;for(e("run tasks");i=t.shift();)i()},measure:function(t,i){e("measure");var n=i?t.bind(i):t;return this.reads.push(n),o(this),n},mutate:function(t,i){e("mutate");var n=i?t.bind(i):t;return this.writes.push(n),o(this),n},clear:function(t){return e("clear",t),r(this.reads,t)||r(this.writes,t)},extend:function(t){if(e("extend",t),"object"!=typeof t)throw new Error("expected object");var i=Object.create(this);return function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(i,t),i.fastdom=this,i.initialize&&i.initialize(),i},catch:null};var a=t.fastdom=t.fastdom||new n;"function"==typeof define?define(function(){return a}):"object"==typeof module&&(module.exports=a)}("undefined"!=typeof window?window:this),function(t){function e(e,n,o){return o=y(n,o),this.on("click.pjax",e,function(e){var n=o;n.container||((n=t.extend({},o)).container=t(this).attr("data-pjax")),i(e,n)})}function i(e,i,n){n=y(i,n);var r=e.currentTarget,a=t(r);if("A"!==r.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";if(!(e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||location.protocol!==r.protocol||location.hostname!==r.hostname||r.href.indexOf("#")>-1&&_(r)==_(location)||e.isDefaultPrevented())){var s={url:r.href,container:a.attr("data-pjax"),target:r},l=t.extend({},s,n),c=t.Event("pjax:click");a.trigger(c,[l]),c.isDefaultPrevented()||(o(l),e.preventDefault(),a.trigger("pjax:clicked",[l]))}}function n(e,i,n){n=y(i,n);var r=e.currentTarget,a=t(r);if("FORM"!==r.tagName.toUpperCase())throw"$.pjax.submit requires a form element";var s={type:(a.attr("method")||"GET").toUpperCase(),url:a.attr("action"),container:a.attr("data-pjax"),target:r};if("GET"!==s.type&&void 0!==window.FormData)s.data=new FormData(r),s.processData=!1,s.contentType=!1;else{if(a.find(":file").length)return;s.data=a.serializeArray()}o(t.extend({},s,n)),e.preventDefault()}function o(e){e=t.extend(!0,{},t.ajaxSettings,o.defaults,e),t.isFunction(e.url)&&(e.url=e.url());var i=m(e.url).hash,n=t.type(e.container);if("string"!==n)throw"expected string value for 'container' option; got "+n;var r,s=e.context=t(e.container);if(!s.length)throw"the container selector '"+e.container+"' did not match anything";function l(i,n,o){o||(o={}),o.relatedTarget=e.target;var r=t.Event(i,o);return s.trigger(r,n),!r.isDefaultPrevented()}e.data||(e.data={}),t.isArray(e.data)?e.data.push({name:"_pjax",value:e.container}):e.data._pjax=e.container,e.beforeSend=function(t,n){if("GET"!==n.type&&(n.timeout=0),t.setRequestHeader("X-PJAX","true"),t.setRequestHeader("X-PJAX-Container",e.container),!l("pjax:beforeSend",[t,n]))return!1;n.timeout>0&&(r=setTimeout(function(){l("pjax:timeout",[t,e])&&t.abort("timeout")},n.timeout),n.timeout=0);var o=m(n.url);i&&(o.hash=i),e.requestUrl=g(o)},e.complete=function(t,i){r&&clearTimeout(r),l("pjax:complete",[t,i,e]),l("pjax:end",[t,e])},e.error=function(t,i,n){var o=(o=b("",t,e).url).split("§ion_id=")[0],r=l("pjax:error",[t,i,n,e]);"GET"==e.type&&"abort"!==i&&r&&a(o)},e.success=function(n,r,c){var d,p=o.state,f="function"==typeof t.pjax.defaults.version?t.pjax.defaults.version():t.pjax.defaults.version,h=c.getResponseHeader("X-PJAX-Version"),g=b(n,c,e),_=m(d=(d=g.url).split("§ion_id=")[0]);if(i&&(_.hash=i,d=_.href),f&&h&&f!==h)a(d);else if(g.contents){if(o.state={id:e.id||u(),url:d,title:g.title,offset:e.offset,container:e.container,fragment:e.fragment,timeout:e.timeout},(e.push||e.replace)&&window.history.replaceState(o.state,g.title,d),t.contains(s,document.activeElement))try{document.activeElement.blur()}catch(t){}g.title&&(document.title=g.title),l("pjax:beforeReplace",[g.contents,e],{state:o.state,previousState:p}),s.html(g.contents);var y=s.find("input[autofocus], textarea[autofocus]").last()[0];y&&document.activeElement!==y&&y.focus(),function(e){if(!e)return;var i=t("script[src]");e.each(function(){var e=this.src,n=i.filter(function(){return this.src===e});if(!n.length){var o=document.createElement("script"),r=t(this).attr("type");r&&(o.type=r),o.src=t(this).attr("src"),document.head.appendChild(o)}})}(g.scripts);var v=e.scrollTo;if(i){var w=decodeURIComponent(i.slice(1)),S=document.getElementById(w)||document.getElementsByName(w)[0];S&&(v=t(S).offset().top)}"number"==typeof v&&t(window).scrollTop(v),l("pjax:success",[n,r,c,e])}else a(d)},o.state||(o.state={id:u(),url:window.location.href,title:document.title,offset:e.offset,container:e.container,fragment:e.fragment,timeout:e.timeout},window.history.replaceState(o.state,document.title)),f(o.xhr),o.options=e;var c,d,p=o.xhr=t.ajax(e);if(p.readyState>0){if(e.push&&!e.replace){c=o.state.id,d=[e.container,h(s)],S[c]=d,k.push(c),C(x,0),C(k,o.defaults.maxCacheLength);var _=(_=e.requestUrl).split("§ion_id=")[0];window.history.pushState(null,"",_)}l("pjax:start",[p,e]),l("pjax:send",[p,e])}return o.xhr}function r(e,i){var n={url:window.location.href,push:!1,replace:!0,scrollTo:!1};return o(t.extend(n,y(e,i)))}function a(t){window.history.replaceState(null,"",o.state.url),window.location.replace(t)}var s=!0,l=window.location.href,c=window.history.state;function d(e){s||f(o.xhr);var i,n=o.state,r=e.state;if(r&&r.container){if(s&&l==r.url)return;if(n){if(n.id===r.id)return;i=n.id",{method:"GET"===n?"GET":"POST",action:i,style:"display:none"});"GET"!==n&&"POST"!==n&&o.append(t("",{type:"hidden",name:"_method",value:n.toLowerCase()}));var r=e.data;if("string"==typeof r)t.each(r.split("&"),function(e,i){var n=i.split("=");o.append(t("",{type:"hidden",name:n[0],value:n[1]}))});else if(t.isArray(r))t.each(r,function(e,i){o.append(t("",{type:"hidden",name:i.name,value:i.value}))});else if("object"==typeof r){var a;for(a in r)o.append(t("",{type:"hidden",name:a,value:r[a]}))}t(document.body).append(o),o.submit()}function f(e){e&&e.readyState<4&&(e.onreadystatechange=t.noop,e.abort())}function u(){return(new Date).getTime()}function h(e){var i=e.clone();return i.find("script").each(function(){this.src||t._data(this,"globalEval",!1)}),i.contents()}function g(t){return t.search=t.search.replace(/([?&])(_pjax|_)=[^&]*/g,"").replace(/^&/,""),t.href.replace(/\?($|#)/,"$1")}function m(t){var e=document.createElement("a");return e.href=t,e}function _(t){return t.href.replace(/#.*/,"")}function y(e,i){return e&&i?((i=t.extend({},i)).container=e,i):t.isPlainObject(e)?e:{container:e}}function v(t,e){return t.filter(e).add(t.find(e))}function w(e){return t.parseHTML(e,document,!0)}function b(e,i,n){var o,r,a={},s=/]*>([\s\S.]*)<\/body>/i)[0]));var c=e.match(/]*>([\s\S.]*)<\/head>/i);o=null!=c?t(w(c[0])):r}else o=r=t(w(e));if(0===r.length)return a;if(a.title=v(o,"title").last().text(),n.fragment){var d=r;"body"!==n.fragment&&(d=v(d,n.fragment).first()),d.length&&(a.contents="body"===n.fragment?d:d.contents(),a.title||(a.title=d.attr("title")||d.data("title")))}else s||(a.contents=r);return a.contents&&(a.contents=a.contents.not(function(){return t(this).is("title")}),a.contents.find("title").remove(),a.scripts=v(a.contents,"script[src]").remove(),a.contents=a.contents.not(a.scripts)),a.title&&(a.title=t.trim(a.title)),a}c&&c.container&&(o.state=c),"state"in window.history&&(s=!1);var S={},x=[],k=[];function C(t,e){for(;t.length>e;)delete S[t.shift()]}function j(){return t("meta").filter(function(){var e=t(this).attr("http-equiv");return e&&"X-PJAX-VERSION"===e.toUpperCase()}).attr("content")}function T(){t.fn.pjax=e,t.pjax=o,t.pjax.enable=t.noop,t.pjax.disable=z,t.pjax.click=i,t.pjax.submit=n,t.pjax.reload=r,t.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:j},t(window).on("popstate.pjax",d)}function z(){t.fn.pjax=function(){return this},t.pjax=p,t.pjax.enable=T,t.pjax.disable=t.noop,t.pjax.click=t.noop,t.pjax.submit=t.noop,t.pjax.reload=function(){window.location.reload()},t(window).off("popstate.pjax",d)}t.event.props&&t.inArray("state",t.event.props)<0?t.event.props.push("state"):"state"in t.Event.prototype||t.event.addProp("state"),t.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),t.support.pjax?T():z()}(jQuery_T4NT),function(){"use strict";function t(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,n),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var n in i)e.push(i[n]);for(var o=0,r=e.length;r>o;o++)e[o][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){for(var e in t.Context.refreshAll(),i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},o=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,o.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||o.isTouch)&&(e.didScroll=!0,o.requestAnimationFrame(t))})},e.prototype.handleResize=function(){o.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],o=n.newScroll>n.oldScroll?n.forward:n.backward;for(var r in this.waypoints[i]){var a=this.waypoints[i][r];if(null!==a.triggerPoint){var s=n.oldScroll=a.triggerPoint;(s&&l||!s&&!l)&&(a.queueTrigger(o),t[a.group.id]=a.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;o>n;n++)t[n].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a=t[r];for(var s in this.waypoints[r]){var l,c,d,p,f=this.waypoints[r][s],u=f.options.offset,h=f.triggerPoint,g=0,m=null==h;f.element!==f.element.window&&(g=f.adapter.offset()[a.offsetProp]),"function"==typeof u?u=u.apply(f):"string"==typeof u&&(u=parseFloat(u),f.options.offset.indexOf("%")>-1&&(u=Math.ceil(a.contextDimension*u/100))),l=a.contextScroll-a.contextOffset,f.triggerPoint=Math.floor(g+l-u),c=h=a.oldScroll,p=!c&&!d,!m&&(c&&d)?(f.queueTrigger(a.backward),n[f.group.id]=f.group):!m&&p?(f.queueTrigger(a.forward),n[f.group.id]=f.group):m&&a.oldScroll>=f.triggerPoint&&(f.queueTrigger(a.forward),n[f.group.id]=f.group)}}return o.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},o=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],o="up"===i||"left"===i;n.sort(o?e:t);for(var r=0,a=n.length;a>r;r+=1){var s=n[r];(s.options.continuous||r===n.length-1)&&s.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return n[t.axis][t.name]||new i(t)},o.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery_T4NT,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,n){t[n]=e[n]}),i.adapters.push({name:"jQuery_T4NT",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&((n=t.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var o=t.extend({},n,{element:this});"string"==typeof o.context&&(o.context=t(this).closest(o.context)[0]),i.push(new e(o))}),i}}var e=window.Waypoint;window.jQuery_T4NT&&(window.jQuery_T4NT.fn.waypoint=t(window.jQuery_T4NT)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.ResizeSensor=e()}("undefined"!=typeof window?window:this,function(){if("undefined"==typeof window)return null;var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)};function e(t,e){var i=Object.prototype.toString.call(t),n="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||"undefined"!=typeof jQuery_T4NT&&t instanceof jQuery_T4NT||"undefined"!=typeof Elements&&t instanceof Elements,o=0,r=t.length;if(n)for(;o
',e.appendChild(e.resizeSensor),e.resizeSensor.offsetParent!==e&&(e.style.position="relative");var r,a,s,l,c=e.resizeSensor.childNodes[0],d=c.childNodes[0],p=e.resizeSensor.childNodes[1],f=e.offsetWidth,u=e.offsetHeight,h=function(){d.style.width="100000px",d.style.height="100000px",c.scrollLeft=1e5,c.scrollTop=1e5,p.scrollLeft=1e5,p.scrollTop=1e5};h();var g=function(){a=0,r&&(f=s,u=l,e.resizedAttached&&e.resizedAttached.call())},m=function(){s=e.offsetWidth,l=e.offsetHeight,(r=s!=f||l!=u)&&!a&&(a=t(g)),h()},_=function(t,e,i){t.attachEvent?t.attachEvent("on"+e,i):t.addEventListener(e,i)};_(c,"scroll",m),_(p,"scroll",m)}}(e,o)}),this.detach=function(t){i.detach(n,t)}};return i.detach=function(t,i){e(t,function(t){t&&(t.resizedAttached&&"function"==typeof i&&(t.resizedAttached.remove(i),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))})},i}),function(t){t.fn.theiaStickySidebar=function(e){function i(e,i){return!0===e.initialized||!(t("body").width().theiaStickySidebar:after {content: ""; display: table; clear: both;}')),i.each(function(){function i(){o.fixedScrollTop=0,o.sidebar.css({"min-height":"1px"}),o.stickySidebar.css({position:"static",width:"",transform:"none"})}var o={};if(o.sidebar=t(this),o.options=e||{},o.container=t(o.options.containerSelector),0==o.container.length&&(o.container=o.sidebar.parent()),o.sidebar.parents().css("-webkit-transform","none"),o.sidebar.css({position:o.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),o.stickySidebar=o.sidebar.find(".theiaStickySidebar"),0==o.stickySidebar.length){var r=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;o.sidebar.find("script").filter(function(t,e){return 0===e.type.length||e.type.match(r)}).remove(),o.stickySidebar=t("
").addClass("theiaStickySidebar").append(o.sidebar.children()),o.sidebar.append(o.stickySidebar)}o.marginBottom=parseInt(o.sidebar.css("margin-bottom")),o.paddingTop=parseInt(o.sidebar.css("padding-top")),o.paddingBottom=parseInt(o.sidebar.css("padding-bottom"));var a=o.stickySidebar.offset().top,s=o.stickySidebar.outerHeight();o.stickySidebar.css("padding-top",1),o.stickySidebar.css("padding-bottom",1),a-=o.stickySidebar.offset().top,s=o.stickySidebar.outerHeight()-s-a,0==a?(o.stickySidebar.css("padding-top",0),o.stickySidebarPaddingTop=0):o.stickySidebarPaddingTop=1,0==s?(o.stickySidebar.css("padding-bottom",0),o.stickySidebarPaddingBottom=0):o.stickySidebarPaddingBottom=1,o.previousScrollTop=null,o.fixedScrollTop=0,i(),o.onScroll=function(o){if(o.stickySidebar.is(":visible")){if(t("body").width()o.container.width())return void i()}var a=t(document).scrollTop(),s="static";if(a>=o.sidebar.offset().top+(o.paddingTop-o.options.additionalMarginTop)){var l,c=o.paddingTop+e.additionalMarginTop,d=o.paddingBottom+o.marginBottom+e.additionalMarginBottom,p=o.sidebar.offset().top,f=o.sidebar.offset().top+function(e){var i=e.height();return e.children().each(function(){i=Math.max(i,t(this).height())}),i}(o.container),u=0+e.additionalMarginTop,h=o.stickySidebar.outerHeight()+c+d0?Math.min(_,u):Math.max(_,l-o.stickySidebar.outerHeight()),_=Math.max(_,g),_=Math.min(_,m-o.stickySidebar.outerHeight());var v=o.container.height()==o.stickySidebar.outerHeight();s=!v&&_==u||!v&&_==l-o.stickySidebar.outerHeight()?"fixed":a+_-o.sidebar.offset().top-o.paddingTop<=e.additionalMarginTop?"static":"absolute"}if("fixed"==s){var w=t(document).scrollLeft();o.stickySidebar.css({position:"fixed",width:n(o.stickySidebar)+"px",transform:"translateY("+_+"px)",left:o.sidebar.offset().left+parseInt(o.sidebar.css("padding-left"))-w+"px",top:"0px"})}else if("absolute"==s){var b={};"absolute"!=o.stickySidebar.css("position")&&(b.position="absolute",b.transform="translateY("+(a+_-o.sidebar.offset().top-o.stickySidebarPaddingTop-o.stickySidebarPaddingBottom)+"px)",b.top="0px"),b.width=n(o.stickySidebar)+"px",b.left="",o.stickySidebar.css(b)}else"static"==s&&i();"static"!=s&&1==o.options.updateSidebarHeight&&o.sidebar.css({"min-height":o.stickySidebar.outerHeight()+o.stickySidebar.offset().top-o.sidebar.offset().top+o.paddingBottom}),o.previousScrollTop=a}},o.onScroll(o),t(document).on("scroll."+o.options.namespace,function(t){return function(){t.onScroll(t)}}(o)),t(window).on("resize."+o.options.namespace,function(t){return function(){t.stickySidebar.css({position:"static"}),t.onScroll(t)}}(o)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(o.stickySidebar[0],function(t){return function(){t.onScroll(t)}}(o))})}(e,i),!0)}function n(t){var e;try{e=t[0].getBoundingClientRect().width}catch(t){}return void 0===e&&(e=t.width()),e}return(e=t.extend({containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"},e)).additionalMarginTop=parseInt(e.additionalMarginTop)||0,e.additionalMarginBottom=parseInt(e.additionalMarginBottom)||0,function(e,n){i(e,n)||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),t(document).on("scroll."+e.namespace,function(e,n){return function(o){i(e,n)&&t(this).unbind(o)}}(e,n)),t(window).on("resize."+e.namespace,function(e,n){return function(o){i(e,n)&&t(this).unbind(o)}}(e,n)))}(e,this),this}}(jQuery_T4NT),function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():window.noUiSlider=t()}(function(){"use strict";var t="14.6.0";function e(t){t.parentElement.removeChild(t)}function i(t){return null!=t}function n(t){t.preventDefault()}function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function r(t,e,i){0=e[i];)i+=1;return i}function g(e,i,n){var r;if("number"==typeof i&&(i=[i]),!Array.isArray(i))throw new Error("noUiSlider ("+t+"): 'range' contains invalid value.");if(!o(r="min"===e?0:"max"===e?100:parseFloat(e))||!o(i[0]))throw new Error("noUiSlider ("+t+"): 'range' value isn't numeric.");n.xPct.push(r),n.xVal.push(i[0]),r?n.xSteps.push(!isNaN(i[1])&&i[1]):isNaN(i[1])||(n.xSteps[0]=i[1]),n.xHighestCompleteStep.push(0)}function m(t,e,i){if(e)if(i.xVal[t]!==i.xVal[t+1]){i.xSteps[t]=u([i.xVal[t],i.xVal[t+1]],e,0)/f(i.xPct[t],i.xPct[t+1]);var n=(i.xVal[t+1]-i.xVal[t])/i.xNumSteps[t],o=Math.ceil(Number(n.toFixed(3))-1),r=i.xVal[t]+i.xNumSteps[t]*o;i.xHighestCompleteStep[t]=r}else i.xSteps[t]=i.xHighestCompleteStep[t]=i.xVal[t]}function _(t,e,i){var n;this.xPct=[],this.xVal=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var o=[];for(n in t)t.hasOwnProperty(n)&&o.push([t[n],n]);for(o.length&&"object"==typeof o[0][0]?o.sort(function(t,e){return t[0][0]-e[0][0]}):o.sort(function(t,e){return t[0]-e[0]}),n=0;nthis.xPct[o+1];)o++;else t===this.xPct[this.xPct.length-1]&&(o=this.xPct.length-2);i||t!==this.xPct[o+1]||o++;var r=1,a=e[o],s=0,l=0,c=0,d=0;for(n=i?(t-this.xPct[o])/(this.xPct[o+1]-this.xPct[o]):(this.xPct[o+1]-t)/(this.xPct[o+1]-this.xPct[o]);0=t.slice(-1)[0])return 100;var n,o,r=h(i,t),a=t[r-1],s=t[r],l=e[r-1],c=e[r];return l+(o=i,u(n=[a,s],n[0]<0?o+Math.abs(n[0]):o-n[0],0)/f(l,c))}(this.xVal,this.xPct,t)},_.prototype.fromStepping=function(t){return function(t,e,i){if(100<=i)return t.slice(-1)[0];var n,o=h(i,e),r=t[o-1],a=t[o],s=e[o-1];return n=[r,a],(i-s)*f(s,e[o])*(n[1]-n[0])/100+n[0]}(this.xVal,this.xPct,t)},_.prototype.getStep=function(t){return function(t,e,i,n){if(100===n)return n;var o,r,a=h(n,t),s=t[a-1],l=t[a];return i?(l-s)/2= 2) required for mode 'count'.");var o=i-1,r=100/o;for(i=[];o--;)i[o]=o*r;i.push(100),e="positions"}return"positions"===e?i.map(function(t){return x.fromStepping(n?x.getStep(t):t)}):"values"===e?n?i.map(function(t){return x.fromStepping(x.getStep(x.toStepping(t)))}):i:void 0}(p,e.values||!1,e.stepped||!1),m=(i=f,n=p,o=h,r={},a=x.xVal[0],s=x.xVal[x.xVal.length-1],c=l=!1,d=0,(o=o.slice().sort(function(t,e){return t-e}).filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==a&&(o.unshift(a),l=!0),o[o.length-1]!==s&&(o.push(s),c=!0),o.forEach(function(t,e){var a,s,p,f,u,h,g,m,_,y,v=t,w=o[e+1],b="steps"===n;if(b&&(a=x.xNumSteps[e]),a||(a=w-v),!1!==v&&void 0!==w)for(a=Math.max(a,1e-7),s=v;s<=w;s=(s+a).toFixed(7)/1){for(m=(u=(f=x.toStepping(s))-d)/i,y=u/(_=Math.round(m)),p=1;p<=_;p+=1)r[(h=d+p*y).toFixed(5)]=[x.fromStepping(h),0];g=-1i.stepAfter.startValue&&(r=i.stepAfter.startValue-n),a=n>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&n-i.stepBefore.highestStep,100===e?r=null:0===e&&(a=null);var s=x.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(s))),null!==a&&!1!==a&&(a=Number(a.toFixed(s))),[a,r]}return c(y=S,o.cssClasses.target),0===o.dir?c(y,o.cssClasses.ltr):c(y,o.cssClasses.rtl),0===o.ort?c(y,o.cssClasses.horizontal):c(y,o.cssClasses.vertical),c(y,"rtl"===getComputedStyle(y).direction?o.cssClasses.textDirectionRtl:o.cssClasses.textDirectionLtr),f=H(y,o.cssClasses.base),function(t,e){var i=H(e,o.cssClasses.connects);u=[],(h=[]).push(L(i,t[0]));for(var n=0;n0||i.closest(".mfp-wrap").length>0||(t(".pin__type.pin__opened").removeClass("pin__opened"),t(".pin__slider.pin_slider_opened").removeClass("pin_slider_opened"))}))},geckoShopify.initStickyMenu=function(){if(!(e.hasClass("header_sticky_false")||e.hasClass("des_header_7")&&s>1400)){var i=t("#ntheader"),n=0,o=!1,r=!0,l=window.pageYOffset,c=e.hasClass("hide_scrolld_true"),d=i.outerHeight();n=d;a.on("resize",function(){r=!0,i.removeClass("sticky_prepared").css("height",""),d1024||(r=!1,i.addClass("sticky_prepared").css({height:d}),t("#shopify-section-header_banner").length>0&&(n+=t("#shopify-section-header_banner").outerHeight()))}),a.on("scroll",function(){if(!r){var e=t(window).scrollTop();if(e>n?function(){if(o)return;o=!0,i.addClass("live_stuck"),i.on("animationend webkitAnimationEnd oAnimationEnd",function(){i.addClass("ani_none")})}():function(){if(!o)return;o=!1,i.addClass("trs_stuck").removeClass("live_stuck h_scroll_down"),i.removeClass("ani_none trs_stuck")}(),c){var a=window.pageYOffset;l>a&&e>n?i.addClass("h_scroll_up").removeClass("h_scroll_down"):e<=n?i.removeClass("h_scroll_down h_scroll_up"):i.addClass("h_scroll_down").removeClass("h_scroll_up"),l=a}}})}},geckoShopify.initStickyCat=function(){if(!(!e.hasClass("template-collection")||0==t(".cat_toolbar").length||e.hasClass("cat_sticky_false")||s>1024)){t("#ntheader");var i=t(".cat_toolbar"),n=i.outerHeight(),o=i.offset().top+n;t(".container_cat").outerHeight(),i.offset().top;i.before('
');var r=t(".clone_h_cat");r.css({height:n}),i.addClass("cat_stuck_prepared"),a.on("scroll",function(){var n=0,a=t(window).scrollTop();t(window).height(),t(document).height();a>o?(r.show(),t(".live_stuck:not(.h_scroll_down)").length>0&&e.hasClass("header_sticky_true")&&(n+=t(".ntheader_wrapper").outerHeight()),i.addClass("cat_stuck").css({top:n})):(r.hide(),i.removeClass("cat_stuck").css({top:0}))})}},geckoShopify.touchMegaMenu=function(){if(!i){var e=t(".nt_menu");t(document).on("click",function(i){var n=i.target;if(t(".is_hover").length>0&&!t(n).parents().is(".is_hover"))return e.find(".is_hover").removeClass("is_hover"),!1}),e.on("click",".menu-item.has-children>a",function(e){if(0!=t(this).siblings(".sub-menu").length){e.preventDefault();var i=t(this).closest(".has-children");i.hasClass("is_hover")||i.parent().find(".is_hover").removeClass("is_hover"),i.toggleClass("is_hover")}})}},geckoShopify.initMegaMenu=function(i){if(!(t(window).width()<=767)){var n=t(window),o=e.hasClass("des_header_7"),a=(t("#nt_menu_id").find(" > li.menu_has_offsets"),n.width()),s=t("#nt_wrapper"),l=s.outerWidth()+s.offset().left,c=e.hasClass("wrapper-boxed")||e.hasClass("wrapper-boxed-small")?l:a,d=i.find(" > .sub-menu");if(d.addClass("calc_pos").attr("style",""),o){var p=d.offset().top+d.outerHeight(),f=n.scrollTop()+n.outerHeight();p>f&&d.css({top:f-p-10})}if(!o){var u=d.outerWidth(),h=d.offset(),g=i.hasClass("menu_wid_full")?0:10;if(u&&h){var m=a-h.left-u;if(u>=0&&i.hasClass("menu_center")){var _=h.left+u/2-a/2;r?d.css({right:_}):d.css({left:-_})}else if(r&&(m+u>=c||i.hasClass("menu_wid_full"))&&i.hasClass("menu_has_offsets")){_=m+u-c;d.css({right:-_-g})}else if((h.left+u>=c||i.hasClass("menu_wid_full"))&&i.hasClass("menu_has_offsets")){var y=h.left+u-c;d.css({left:-y-g})}}}}},geckoShopify.cat_view=function(){e.on("click",".cat_view a:not(.active)",function(e){e.preventDefault();var i=t(this),n=i.data("col"),o=i.data("dev"),r=i.closest("div"),a=t(".container_cat .nt_pr"),s=t(".container_cat .nt_products_holder"),l=t(".cat_view,.container_cat .nt_products_holder");switch(l.removeClass("on_list_view_false").addClass("on_list_view_true"),"listt4"==n?l.removeClass("on_list_view_false").addClass("on_list_view_true"):l.removeClass("on_list_view_true").addClass("on_list_view_false"),r.removeClass("dev_view_cat").find("a").removeClass("active"),i.addClass("active"),o){case"mb":a.removeClass("col-2 col-3 col-4 col-6 col-12 col-15 col-listt4 done").addClass("done col-"+n);break;case"tb":a.removeClass("col-md-2 col-md-3 col-md-4 col-md-6 col-md-12 col-md-15 col-md-listt4 done").addClass("done col-md-"+n);break;default:a.removeClass("col-lg-2 col-lg-3 col-lg-4 col-lg-6 col-lg-12 col-lg-15 col-lg-listt4 done").addClass("done col-lg-"+n)}s.hasClass("js_isotope")&&s.isotope("layout"),lazySizesT4.autoSizer.checkElems(),fetch("/cart/update.js",{body:JSON.stringify({attributes:geckoShopify.defineProperty({},"cat_"+o+"_items_per_row",n)}),credentials:"same-origin",method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}})})},geckoShopify.catAccordion=function(){e.on("click",".btn_cats_toggle,.has_cats_toggle",function(e){e.preventDefault(),e.stopPropagation();var i=t(this),n=i.siblings(".btn_cats_toggle"),o=i.siblings("ul");o.hasClass("cat_shown")?(i.removeClass("active"),n.removeClass("active"),o.stop().slideUp(300).removeClass("cat_shown")):(o.parent().parent().find("> li > .cat_shown").slideUp().removeClass("list-shown"),o.parent().parent().find("> li > .active").removeClass("active"),i.addClass("active"),n.addClass("active"),o.stop().slideDown(300).addClass("cat_shown"))})},geckoShopify.updateResizeProductCard=function(){if(0!=t(u).length){var e={childList:!0,subtree:!0},i=new MutationObserver(function(e,i){t(u).isotope("layout")});t.each(t(u+" .product-info:not(.on_live)"),function(n,o){i.observe(this,e),t(this).addClass("on_live")})}},geckoShopify.loadMorePr=function(){var i=t(g),n=i.parent().siblings(".nt_products_holder"),o=nt_settings.prevOnHref;geckoShopify.clickOnScrollButton(i,n),e.on("click",".nt_cat_lm:not(.jscl_ld)",function(i){i.preventDefault();var n=t(this),r=n.parent(),a=r.hasClass("is_prev_cat_js"),s=a?"prepended":"appended",l=r[0].hasAttribute("data-js-paginate"),c=r.siblings(".nt_products_holder"),d=n.attr("data-get"),p=n.attr("data-offset"),h=d+"§ion_id="+n.attr("data-id"),g=t(window).scrollTop();f(c,h,n,d,function(i){var r=i.split("\x3c!--split--\x3e"),f=a?r[4]:r[3],h=r[2];a&&!o||geckoShopify.replaceStateURL(d);var m="Defaultjs";c.hasClass("nt_isotope")?m="isotopejs":c.hasClass("nt_packery")&&(m="packeryjs"),u[m](c,r[1],s),g&&t(window).scrollTop(g);var _=n.siblings(".js_progress_bar");if(l){var y=(t("[data-js-arr_offsets]").html()||"").split(";;;"),v=c.find(".nt_pr").length,w=y.indexOf(p);if(_.length>0&&!a){_.find(".js_current_bar").html(v);S=_.data("tt");_.find(".current_bar").css("width",v/S*100+"%")}if(e.hasClass("template-collection")&&!a&&t(".js_current_bar").html(v),a)b=y[w-1];else{c.attr("data-offset",p);var b=y[w+1]}c.find(".nt_pr:not(.got_offset)").attr("data-page",p).addClass("got_offset"),void 0!==b?(f=d.replace("for_offest%3d"+p,"for_offest%3d"+b),n.attr("data-get",f).attr("data-offset",b),!1,geckoShopify.clickOnScrollButton(n,c)):(!0,n.hide().attr("data-get","").removeClass("load-on-scroll"),n.siblings(".js_progress_bar").hide())}else{if(_.length>0&&!a){_.find(".js_current_bar").html(h);var S=_.data("tt");_.find(".current_bar").css("width",h/S*100+"%")}e.hasClass("template-collection")&&!a&&t(".js_current_bar").html(h),"no_prs"!=f?(n.attr("data-get",f),!1,geckoShopify.clickOnScrollButton(n,c)):(!0,n.hide().attr("data-get","").removeClass("load-on-scroll"),n.siblings(".js_progress_bar").hide())}})});var r,a,s="#shopify-section-collection_page",l="#shopify-section-wishlist_page",c="#shopify-section-search_page",d="body.template-search",p=!1;t(s).length>0?(p=!0,r=s,d="body.template-collection"):t(c).length>0?(p=!0,r=c):t(l).length>0&&(p=!0,r=l),p&&(t(d).on("click",r+" [data-linkhref],"+r+" .product-image>a,"+r+" .product-brand>a,"+r+" .sw_click_go>a,"+r+" .product-title>a,"+r+" .js_add_qv,"+r+" .js__qs",function(e){a=window.location.href;var i=t(this).closest(".nt_pr"),n=a,o=function(t,e){e||(e=window.location.href);t=t.replace(/[[\]]/g,"\\$&");var i=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}("page")||1,s=i.attr("data-page");if(""!=s){var l=t(r+" .nt_products_holder").attr("data-offset");geckoShopify.replaceStateURL(n.replace("page="+o,"page="+s).replace("for_offest%3d"+l,"for_offest%3d"+s))}}),e.on("refresh_hreft4",function(){geckoShopify.replaceStateURL(a)}));var f=function(i,n,o,r,a){i.addClass("loading").parent().addClass("element-loading");var s="jscl_ld";o.addClass(s),t.ajax({dataType:"html",type:"GET",url:n,success:function(t){o.removeClass(s),a(t)},error:function(t){console.log("ajax error")},complete:function(){geckoShopify.recalculateSwatches(),geckoShopify.updateResizeProductCard(),geckoShopify.InitCountdown(),i.removeClass("loading").parent().removeClass("element-loading"),o.removeClass(s),e.trigger("refresh_currency"),geckoShopify.lazyWishUpdate(),geckoShopify.class_sequentially(),geckoShopify.review()}})},u={isotopejs:function(e,i,n){i=t(i);"appended"==n?e.append(i).isotope("appended",i):e.prepend(i).isotope("prepended",i)},packeryjs:function(e,i,n){i=t(i);"appended"==n?e.append(i).packery("appended",i):e.prepend(i).packery("prepended",i)},Defaultjs:function(t,e,i){"appended"==i?t.append(e):t.prepend(e)}}},geckoShopify.replaceStateURL=function(t){history.replaceState&&window.history.replaceState({},document.title,t)},geckoShopify.clickOnScrollButton=function(t,e,i,n){0!=t.length&&0!=e.length&&t.hasClass("load-on-scroll")&&new Waypoint({element:e[0],handler:function(e){this.destroy(),t.trigger("click")},offset:"bottom-in-view"})},geckoShopify.catTabs=function(){t("ul.tab_cat_title li a").click(function(e){e.preventDefault();var i=t(this),n=i.data("bid"),o=t("#shopify-section-"+i.data("id")),r=o.find(".tab_se_header .tt_active"),a=o.find(".tab_se_content .ct_active"),s=t("#"+n),l=s.find(".js_carousel");r.removeClass("tt_active"),i.addClass("tt_active"),a.removeClass("ct_active"),s.addClass("ct_active"),0!=l.length&&l.flickity("resize")})},e.hasClass("swatch_list_size_large"))var m=63;else if(e.hasClass("swatch_list_size_small"))m=28;else m=38;geckoShopify.isotopeResposition=function(e,i){if(0!=t(".container_cat .nt_isotope").length&&void 0!==t.fn.isotope){var n=i||t(".container_cat .nt_isotope");e&&n.find(".swatch__list_js.lazyloaded").each(function(){t(this).height()>m&&n.isotope("layout")}),n.find(".swatch__list_js").on("lazyincluded",function(e){t(this).height()>m&&n.isotope("layout")})}},geckoShopify.flickityResposition=function(e,i){if(0!=t(".nt_products_holder.nt_slider").length&&void 0!==t.fn.flickity){var n=i||t(".nt_products_holder.flickity-enabled");e&&n.find(".swatch__list_js.lazyloaded").each(function(){n.flickity("resize")}),n.find(".swatch__list_js").on("lazyincluded",function(t){n.flickity("resize")})}},geckoShopify.ajaxFilters=function(){if(nt_settings.ajax_shop&&0!=t(".container_cat").length&&void 0!==t.fn.pjax){var i="#shopify-section-collection_page";t(document).pjax("#cat_shopify a,.nt_ajaxFilter .widget_product_categories a:not(.has_cats_toggle)","#nt_content",{fragment:"#nt_content",timeout:nt_settings.pjaxTimeout,scrollTo:!1}),t(document).pjax(h,".container_cat:not(.cat_des_ntt4)",{fragment:".container_cat:not(.cat_des_ntt4)",timeout:nt_settings.pjaxTimeout,scrollTo:!1}),e.on("click",i+" .paginate_ajax a",function(e){var n=t(this).attr("href")+"§ion_id=collection_page",o=t(this).attr("data-offset");t("[data-js-arr_offsetscurent]").html(o),t.pjax.click(e,i,{url:n,offset:o,fragment:i,timeout:nt_settings.pjaxTimeout,scrollTo:!1})}),t(document).on("pjax:beforeSend",function(t,e){}),t(document).on("pjax:timeout",function(t){t.preventDefault()}),t(document).on("pjax:error",function(t,e,i,n){console.log("pjax error "+i)}),t(document).on("pjax:start",function(o,r,a){e.addClass("ajax_loading"),n(),t.magnificPopup.close(),a.fragment!=i&&(t(".js_filter.opened").removeClass("opened"),t(".filter_area_js .section_nt_filter").slideUp(200))}),t(document).on("pjax:beforeReplace",function(t,e){}),t(document).on("pjax:complete",function(t,e,i){}),t(document).on("pjax:end",function(n,o,r){geckoShopify.InitCountdown(),geckoShopify.lazyWishUpdate(),geckoShopify.recalculateSwatches();var a=t(".container_cat .nt_products_holder"),s=r.fragment,l=t(g),c=l.parent().siblings(".nt_products_holder");if(geckoShopify.clickOnScrollButton(l,c),a.hasClass("nt_packery")?geckoShopify.refresh_packery(a):a.hasClass("nt_isotope")&&(geckoShopify.refresh_isotope(a),geckoShopify.updateResizeProductCard()),a.find(".lazyloading").addClass("lazyload"),s==i)t("[data-js-arr_offsetscurent]").html(r.offset),geckoShopify.VariantFilterRefresh();else{geckoShopify.initStickyCat(),geckoShopify.instagram();var d=!0;t(".js_sidebar").one("lazyincluded",function(i){geckoShopify.tbScrollLeft(),geckoShopify.instagram(),e.trigger("refresh_currency"),geckoShopify.RefreshPriceTitle(t(".js_sidebar")),d&&(d=!1,geckoShopify.VariantFilterRefresh());var n=t(".widget_product_categories .product-categories> li.current-cat");n.length>0&&n.find("> .btn_cats_toggle, .menu_nested2.current-cat:first > .btn_cats_toggle, .menu_nested2.current-cat:first li.current-cat > .btn_cats_toggle").click()}),t(".filter_area_js").one("lazyincluded",function(e){geckoShopify.tbScrollLeft(),geckoShopify.RefreshPriceTitle(t(".filter_area_js")),d&&(d=!1,geckoShopify.VariantFilterRefresh())}),"#nt_content"==s&&(geckoShopify.ideaIntent(),geckoShopify.mobileNav(),t(".nt_parallax_true_true").each(function(){t(this).parallaxBackground()}))}e.trigger("refresh_currency"),geckoShopify.class_sequentially(),geckoShopify.FilterUpdateJS(),geckoShopify.review(),e.removeClass("ajax_loading")});var n=function(){if(!nt_settings.ajax_scroll){var e=t(".container_cat:not(.cat_des_ntt4)").offset().top-nt_settings.ajax_scroll_offset;t("html, body").stop().animate({scrollTop:e},400)}}}},geckoShopify.InitSidebarFilter=function(){0!=t(".js_filter").length&&e.on("click",".js_filter",function(e){var i=t(this);i.toggleClass("opened");var n=t(i.data("id"));n.is(":hidden")?n.stop().slideDown(200):n.slideUp(200),e.preventDefault()})},geckoShopify.DropdownPicker=function(){0!=t(".dropdown_picker_js").length&&(t(".dropdown_picker_js").on("click",".header_picker",function(e){e.preventDefault();var i=t(this).closest(".nt_lt_fake");t(i).hasClass("opended")?t(i).removeClass("opended"):(t(i.closest(".dropdown_picker_js")).find(".nt_lt_fake.opended").removeClass("opended"),t(i).addClass("opended"))}),e.click(function(e){t(e.target).hasClass("header_picker")||t(".nt_lt_fake.opended").removeClass("opended")}))},geckoShopify.SortbyPicker=function(){0!=t(".cat_sortby_js").length&&(e.on("click","a.sortby_pick",function(e){e.preventDefault(),e.stopPropagation();var i=t(this).closest(".cat_sortby_js");t(i).hasClass("opended")?t(i).removeClass("opended"):t(i).addClass("opended")}),e.click(function(e){t(e.target).hasClass("sortby_pick")||t(".cat_sortby_js.opended").removeClass("opended")}))},geckoShopify.stickyJS=function(){if(0!=t(".is_sticky_sidebar").length&&!l){var i=20,n=t(".is_sticky_content"),o=t(".is_sticky_sidebar"),r=n.find(".theiaStickySidebar").outerHeight(),a=o.find(".theiaStickySidebar").outerHeight();if(r>a)var s=r-a,c=o;else if(null==r)s=a,c=o;else s=a-r,c=n;s<=200||(e.hasClass("header_sticky_true")&&(i=t(".sp_header_mid").outerHeight()+20),c.addClass("is_sticky").theiaStickySidebar({additionalMarginTop:i,additionalMarginBottom:20,minWidth:768}))}},geckoShopify.productSticky=function(){if(e.hasClass("template-product")&&nt_settings.use_sticky_des&&!l){var i=20,n=t(".pr_sticky_img"),o=t(".pr_sticky_su"),r=n.find(".theiaStickySidebar").outerHeight(),a=o.find(".theiaStickySidebar").outerHeight();if(r>a)var s=r-a;else if(null==r)s=a;else s=a-r;s<=200||(e.hasClass("header_sticky_true")&&(i=t(".sp_header_mid").outerHeight()+20),o.addClass("is_sticky").theiaStickySidebar({additionalMarginTop:i,additionalMarginBottom:20,minWidth:768}))}},geckoShopify.isVisible=function(e,i,n,o,r){if(!(e.length<1)){o=o||"both";var a=t(window),s=e.length>1?e.eq(0):e,l=null!=r,c=l?t(r):a,d=l?c.position():0,p=s.get(0),f=c.outerWidth(),u=c.outerHeight(),h=!0!==n||p.offsetWidth*p.offsetHeight;if("function"==typeof p.getBoundingClientRect){var g=p.getBoundingClientRect(),m=l?g.top-d.top>=0&&g.top=0&&g.top0&&g.bottom<=u+d.top:g.bottom>0&&g.bottom<=u,y=l?g.left-d.left>=0&&g.left=0&&g.left0&&g.right0&&g.right<=f,w=i?m||_:m&&_,b=i?y||v:y&&v;w=g.top<0&&g.bottom>u||w,b=g.left<0&&g.right>f||b;if("both"===o)return h&&w&&b;if("vertical"===o)return h&&w;if("horizontal"===o)return h&&b}else{var S=l?0:d,x=S+u,k=c.scrollLeft(),C=k+f,j=s.position(),T=j.top,z=T+s.height(),E=j.left,P=E+s.width(),A=!0===i?z:T,N=!0===i?T:z,M=!0===i?P:E,R=!0===i?E:P;if("both"===o)return!!h&&N<=x&&A>=S&&R<=C&&M>=k;if("vertical"===o)return!!h&&N<=x&&A>=S;if("horizontal"===o)return!!h&&R<=C&&M>=k}}},geckoShopify.tbScrollLeft=function(){var e=t(".kalles_toolbar_item:visible"),i=e.length,n="false";if(sp_nt_storage&&(n=sessionStorage.getItem("tb_mb_cl")),!(i<6||"true"==n)){var o=t(".kalles_toolbar"),r=i-5;if(r<2)var a=400;else a=250;o.addClass("pe_none"),o.stop(!0),o.animate({scrollLeft:e.last().offset().left},a*r,function(){o.animate({scrollLeft:0},150*r,function(){o.removeClass("pe_none"),sp_nt_storage&&sessionStorage.setItem("tb_mb_cl","true")})})}},geckoShopify.inc_lz=function(){0==t(".inc_lz").length&&t(".inl_cnt_js").length>0||(t(".inc_pr_laz").each(function(){t(this).addClass("lazyload").one("lazyincluded",function(i){if(i.detail.content){geckoShopify.InitCountdown(),e.trigger("refresh_currency"),geckoShopify.lazyWishUpdate(),geckoShopify.review();var n=t(i.target).find(".js_carousel");if(0==n.length)return;geckoShopify.refresh_flickity(n)}else t(i.target).hide().remove()})}),t(".inc_lb_laz, .inc_cat_laz, .inc_gl_laz, .inc_ins_laz").each(function(){t(this).addClass("lazyload").one("lazyincluded",function(e){if(e.detail.content){var i=t(e.target),n=i.find(".js_carousel"),o=i.find(".js_packery");n.length>0?geckoShopify.refresh_flickity(n):o.length>0&&geckoShopify.refresh_packery(o)}else t(e.target).hide().remove()})}))};var _=t("#shopify-section-wishlist_page").length>0,y=c.find(".txt_remve").text(),v=c.find(".txt_view").text(),w=nt_settings.wishlist_type;geckoShopify.wishlistUpdate=function(e,i){if(sp_nt_storage&&"1"==w){var n=localStorage.getItem("nt_wis");if(null!=n)if(e){var o=n.split(","),r=n.replace(/,/g," OR "),a=encodeURI(r),s=d+"?view=wish&type=product&options[unavailable_products]=last&q="+a;c.attr("href",s),""!=n?t(".jswcount").text(o.length):t(".jswcount").text(0),t("#shopify-section-wishlist_page .empty_cart_page").length>0&&o.length>0&&!designMode&&""!=n&&(window.location.href=s)}else{o=n.replace(/id:/g,"").split(",");if(i)return o.indexOf(i)>-1&&t('.wishlistadd[data-id="'+i+'"]:not(".wis_remve")').addClass("wis_added").removeClass("wishlistadd").find(".tt_txt").text(v),!1;_?t(".products.prs_wis .wishlistadd").addClass("wis_remve").removeClass("wishlistadd").find(".tt_txt").text(y):o.forEach(function(e,i){t('.wishlistadd[data-id="'+e+'"]').addClass("wis_added").removeClass("wishlistadd").find(".tt_txt").text(v)})}}},geckoShopify.wishlistUpdateApp=function(e,i){if(sp_nt_storage&&"2"==w){var n=c.find("#arr_wis_id").text();if(""!=n)if(n=t.trim(n.replace(/id:/g,"")),e){var o=n.split(" "),r=n.replace(/ /g," OR id:"),a=encodeURI("id:"+r),s=d+"?view=wish&type=product&options[unavailable_products]=last&q="+a;c.attr("href",s),""!=n?t(".jswcount").text(o.length):t(".jswcount").text(0),t("#shopify-section-wishlist_page .empty_cart_page").length>0&&o.length>0&&!designMode&&""!=n&&(window.location.href=s)}else{o=n.split(" ");if(i)return o.indexOf(i)>-1&&t('.wishlistadd[data-id="'+i+'"]').addClass("wis_added").removeClass("wishlistadd").find(".tt_txt").text(v),!1;_?t(".products.prs_wis .wishlistadd").addClass("wis_remve").removeClass("wishlistadd").find(".tt_txt").text(y):o.forEach(function(e,i){t('.wishlistadd[data-id="'+t.trim(e)+'"]').addClass("wis_added").removeClass("wishlistadd").find(".tt_txt").text(v)})}}};var b=nt_settings.added_text_cp;function S(e){nt_settings.ajax_shop&&0!=t(".container_cat").length&&void 0!==t.fn.pjax?t.pjax({container:".container_cat:not(.cat_des_ntt4)",fragment:".container_cat:not(.cat_des_ntt4)",timeout:nt_settings.pjaxTimeout,url:e,scrollTo:!1}):window.location.href=e}function x(t,e){o.trigger("ld_bar_star"),fetch("/cart/update.js",{body:JSON.stringify({attributes:geckoShopify.defineProperty({},"auto_hide_ofsock",t)}),credentials:"same-origin",method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}}).then(t=>t.json()).then(t=>{o.trigger("ld_bar_end"),S(e)}).catch(t=>{console.error("Error update_attributes:",t)})}if(geckoShopify.compareUpdate=function(e,i){if(sp_nt_storage&&0!=p.length){var n=localStorage.getItem("nt_cp");if(null!=n)if(e){var o=n.split(","),r=n.replace(/,/g," OR "),a=encodeURI(r),s=f+"?view=compe&type=product&options[unavailable_products]=last&q="+a;p.attr("href",s),""!=n?t(".jscpcount").text(o.length):t(".jscpcount").text(0),t("#shopify-section-compare_page .empty_cart_page").length>0&&o.length>0&&!designMode&&""!=n&&(window.location.href=s)}else{o=n.replace(/id:/g,"").split(",");if(i)return o.indexOf(i)>-1&&t('.compare_add[data-id="'+i+'"]').addClass("cpt4_added").removeClass("compare_add").find(".tt_txt").text(b),!1;o.forEach(function(e,i){t('.compare_add[data-id="'+e+'"]').addClass("cpt4_added").removeClass("compare_add").find(".tt_txt").text(b)})}}},geckoShopify.lazyWishUpdate=function(){!sp_nt_storage||"0"==w&&0==p.length||t(".nt_pr .product-image:not(.lazyloaded)").one("lazyincluded",function(t){"0"!=nt_settings.wishlist_type&&(geckoShopify.wishlistUpdate(0),geckoShopify.wishlistUpdateApp(0)),p.length>0&&geckoShopify.compareUpdate(0)})},geckoShopify.VariantFilterRefresh=function(){if("1"!=n){t(".sp_result_html").html(t("[data-js-getnumbertrue]").html());var e=t("[data-js-paginate]"),i=t("[data-js-getpagination]").html(),o=g,r=t(o),a=r.parent().siblings(".nt_products_holder");if(e.hasClass("use_pagination_default")&&"no_page"!=i){var s=t(i),l=s.find("[data-js-arr_offsets]").html();if(null==l)return;var c,d,p=l.split(";;;"),f=p.length,u=s.find("[data-js-arr_offsetscurent]").html(),h=s.find("[data-js-url-pagination]").html(),m=(t("[data-pagination-links]"),p.indexOf(u)),_=m+1,y=5,v="",w=f-_;switch(!0){case 1==_:case 0==w:break;case 4==_&&f>7:case 3==w&&f>7:y=8;break;case 3==_&&f>6:case 2==w&&f>6:y=7;break;case 2==_&&f>5:case 1==w&&f>5:y=6;break;case _>4&&f>8:y=9}if(f>y){var b,S=function(t,e,i){if(i<5)throw"maxLength must be at least 5";function n(t,e){return Array.from(Array(e-t+1),(e,i)=>i+t)}var o=i-2-3>>1,r=i-2-2>>1;return t<=i?n(1,t):e<=i-1-1-r?n(1,i-1-1).concat(0,n(t-1+1,t)):e>=t-1-1-r?n(1,1).concat(0,n(t-1-1-r-o,t)):n(1,1).concat(0,n(e-o,e+r),0,n(t-1+1,t))}(f,_,y),x=S.length;for(c=0;c...':v+=b==u?'
  • '+S[c]+"
  • ":'
  • '+S[c]+"
  • ";e.html(i),e.find("[data-pagination-links]").replaceWith(v),t("[data-js-paginate]>*").fadeIn("slow")}else{for(c=0,d=1;c'+d+"":'
  • '+d+"
  • ";e.html(i),e.find("[data-pagination-links]").replaceWith(v),t("[data-js-paginate]>*").fadeIn("slow")}1===_?e.find("a.prev").addClass("hide"):e.find("a.prev").attr("data-offset",p[m-1]).attr("href",h.replace("js_number",p[m-1])),_===f?e.find("a.next").addClass("hide"):e.find("a.next").attr("data-offset",p[_]).attr("href",h.replace("js_number",p[_]))}else if("no_page"!=i){t("[data-js-getpagination]").remove(),t("[data-js-paginate]").html(i,500),t("[data-js-paginate]>*").fadeIn("slow"),a=(r=t(o)).parent().siblings(".nt_products_holder"),geckoShopify.clickOnScrollButton(r,a);var k=t("[data-js-arr_offsets]"),C=k.html(),j=k.attr("data-offset");if(t("#shopify-section-collection_page .nt_pr").attr("data-page",j).addClass("got_offset"),C.length>0){C.split(";;;");t(".js_prev_url").length>0&&t("#shopify-section-collection_page").prepend(t(".js_prev_url").html())}}else e.slideUp(350),geckoShopify.clickOnScrollButton(r,a)}},geckoShopify.FilterUpdateJS=function(){if("1"!=n){var e=t("[data-filterntt4]");if(0!=e.length){var i=e.data("filterntt4"),o=JSON.stringify(i),r=JSON.stringify(e.data("attrsntt4")),a=parseInt(i.limit_ntt4),s=e.find(".nt_pr").length;st.json()).then(e=>{t(".filter_area_js,.js_sidebar").addClass("lazyload")}).catch(e=>{t(".filter_area_js,.js_sidebar").addClass("lazyload"),console.error("Error FilterUpdateJS:",e)}):t(".filter_area_js,.js_sidebar").addClass("lazyload")}}},geckoShopify.ClearFilterStockt4=function(){"1"!=n&&(e.on("click",".nt_cat_available",function(e){t(this).is(":checked")?x(!0,location.href):x(!1,location.href)}),e.on("click",".filter_title_btn",function(e){var i=t(this),n=i.siblings(".nt_cat_title"),o=n.data("url"),r=n.val();i.show(),S(o=r.length>0?o.replace("js_q_title",r):o.replace("+nt+filternt_title%3djs_q_title","").replace("filternt_title%3djs_q_title","").replace("?q=&sort_by=","?sort_by="))}),e.on("click",".price_slider_btn",function(e){var i=t(this).closest(".price_slider_amount"),n=i.find(".min_price"),o=i.find(".max_price"),r=i.find(".url_price").val(),a=n.data("min"),s=o.data("max"),l=i.find(".min_price").val(),c=i.find(".max_price").val();S(r=a==l&&s==c?r.replace("+nt+filternt_price%3dmin_price+ntprice+max_price","").replace("filternt_price%3dmin_price+ntprice+max_price","").replace("?q=&sort_by","?sort_by"):r.replace("min_price",l).replace("max_price",c))}),nt_settings.show_hide_ofsock&&e.on("click",".clear_filter_stockt4",function(t){t.preventDefault(),t.stopPropagation(),x(!1,location.href)}))},geckoShopify.RefreshPriceTitle=function(i){if(!("1"==n||i.length<1)){i.find(".filter_title_btn").show();var o=i.find(".price_slider_wrapper"),r=o.find(".price_slider_amount"),a=r.find(".min_price"),s=r.find(".max_price"),l=(r.find(".url_price").val(),a.data("min")),c=s.data("max"),d=r.data("step")||1,p=a.val(),f=s.val(),u="ltr";r.find("input.url_price, input.min_price, input.max_price").hide(),o.find(".price_slider, .price_label ,.price_slider_btn").show();var h=o.find(".price_steps_slider"),g=h[0],m=["span.from","span.to"],_=[".min_price",".max_price"],y=!0;h.length<1||(e.hasClass("rtl_true")&&(u="rtl"),noUiSlider.create(g,{start:[p,f],connect:!0,step:d,direction:u,range:{min:l,max:c}}),g.noUiSlider.on("update",function(e,i){var n=parseInt(e[i]);o.find(m[i]).html(geckoShopify.formatMoney(n)),r.find(_[i]).val(n),y&&function(e){t("[data-js-minprice]").html(geckoShopify.formatMoney(parseInt(e[0]))),t("[data-js-maxprice]").html(geckoShopify.formatMoney(parseInt(e[1]))),y=!1}(e)}))}},e.hasClass("swatch_list_size_large"))var k=57;else if(e.hasClass("swatch_list_size_small"))k=26;else k=36;var C=e.hasClass("prs_sw_limit_true");C&&nt_settings.sw_limit_click&&e.on("click",".swatch__list--more>a",function(e){e.preventDefault();var i=t(this).closest(".swatch__list--limit");i.hasClass("swatch__list--opended")?i.addClass("swatch__list_js").removeClass("swatch__list--opended"):(i.removeClass("swatch__list_js").addClass("swatch__list--opended"),window.dispatchEvent(new Event("resize")))}),geckoShopify.recalculateSwatches=function(e){if(C){if(e)var i=".swatch__list_js";else i=".swatch__list_js:not(.swatch__list--calced)";fastdom.measure(function(){t(i).each(function(e){var i=t(this),n=parseInt(i.attr("data-colorcount")),o=Math.floor(i.outerWidth()/k),r=n-o;fastdom.mutate(function(){i.addClass("swatch__list--calced"),i.removeClass("swatch__list--limit"),r>0&&r!=n&&(r+=1,i.addClass("swatch__list--limit"),i.attr("data-limit",o).attr("style",'--text : "+'+r+'";--text2 : "-'+r+'"'))})})})}}}(jQuery_T4NT),jQuery_T4NT(window).resize(function(){geckoShopify.recalculateSwatches(!0)}),jQuery_T4NT(document).ready(function(t){geckoShopify.updateResizeProductCard(),geckoShopify.tbScrollLeft(),geckoShopify.inc_lz(),geckoShopify.productSticky(),geckoShopify.stickyJS(),geckoShopify.touchMegaMenu(),geckoShopify.pin__type(),geckoShopify.cat_view(),geckoShopify.initStickyMenu(),geckoShopify.initStickyCat(),geckoShopify.catAccordion(),geckoShopify.loadMorePr(),geckoShopify.catTabs(),geckoShopify.ajaxFilters(),geckoShopify.flickityResposition(!0),geckoShopify.recalculateSwatches(),geckoShopify.DropdownPicker(),geckoShopify.SortbyPicker(),geckoShopify.InitSidebarFilter(),geckoShopify.FilterUpdateJS(),geckoShopify.ClearFilterStockt4(),t(window).resize();var e=t("body"),i=t(".lazy_menu:not(.calc_pos)");i.length>0&&i.each(function(){geckoShopify.initMegaMenu(t(this).closest("li.menu_has_offsets"))}),t(".lazy_menu_mega").one("lazyincluded",function(i){var n=t(i.target),o=JSON.parse(n.attr("data-jspackery"));if(o.originLeft=e.hasClass("rtl_false"),n.packery(o),e.trigger("refresh_currency"),geckoShopify.review(),geckoShopify.InitSeCountdown(),!(n.find(".js_carousel.flickity-enabled").length>0)){var r=n.find(".js_carousel");geckoShopify.lazyWishUpdate(),geckoShopify.refresh_flickity(r),geckoShopify.flickityResposition(!1,r),geckoShopify.recalculateSwatches()}}),t(".unlazy_menu_mega").length>0&&t(".unlazy_menu_mega").each(function(){var e=t(this),i=JSON.parse(e.attr("data-jspackery"));e.packery(i)}),t(".tab_se_element:not(.ct_active)").addClass("lazyload").one("lazyincludeloaded",function(t){if(t.detail.content){var e=t.detail.content,i=e.split("\x3c!--split--\x3e");t.detail.content=i[1]||e}}).one("lazyincluded",function(i){e.trigger("refresh_currency"),geckoShopify.review(),geckoShopify.InitCountdown(),geckoShopify.lazyWishUpdate(),geckoShopify.recalculateSwatches();var n=t(i.target)[0],o=t(n).find(".js_carousel"),r=t(n).find(".js_isotope");r.length>0&&(geckoShopify.refresh_isotope(r),geckoShopify.isotopeResposition(!1)),o.length>0&&(geckoShopify.refresh_flickity(o),geckoShopify.flickityResposition(!1,o))}),t("#shopify-section-wishlist_page").length>0&&history.replaceState?window.history.replaceState({},document.title,t("#wis_ntjs").attr("href")):t("#shopify-section-compare_page").length>0&&history.replaceState&&window.history.replaceState({},document.title,t("#cp_ntjs").attr("href"));var n=!0;t(".filter_area_js").one("lazyincluded",function(e){geckoShopify.RefreshPriceTitle(t(".filter_area_js")),n&&(n=!1,geckoShopify.VariantFilterRefresh()),geckoShopify.tbScrollLeft()}),t(".js_sidebar").one("lazyincluded",function(e){geckoShopify.RefreshPriceTitle(t(".js_sidebar")),n&&(n=!1,geckoShopify.VariantFilterRefresh()),geckoShopify.tbScrollLeft();var i=t(".widget_product_categories .product-categories> li.current-cat");i.length>0&&i.find("> .btn_cats_toggle, .menu_nested2.current-cat:first > .btn_cats_toggle, .menu_nested2.current-cat:first li.current-cat > .btn_cats_toggle").click()})}),jQuery_T4NT(window).resize(function(t){if(!(jQuery_T4NT(window).width()<=767)){var e=jQuery_T4NT(".calc_pos .lazy_menu");e.length>0&&e.each(function(){geckoShopify.initMegaMenu(jQuery_T4NT(this).closest("li.menu_has_offsets"))})}});