/** Generated: Wednesday, 30th of October 2024, 01:18:23 AM // Powered by AIOM+ (All In One Minify) created by FlipZoom Media Inc. - David Karich (flipzoom.de) **/
function ownKeys(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function getBodyScrollTop(){return self.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body&&document.body.scrollTop}function getScrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}function debounce(t,n){var r;return function(e){clearTimeout(r),r=setTimeout(function(){t(e)},n)}}function toNumber(e){return console.log(_typeof(e)),"string"==typeof e||e instanceof String?e.split(" ").join(""):e}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null}),function(){function t(e){return new RegExp("(^| )"+e+"( |$)")}function e(e,t,n){for(var r=0;r<e.length;r++)t.call(n,e[r])}function n(e){this.element=e}n.prototype={add:function(){e(arguments,function(e){this.contains(e)||(this.element.className+=" "+e)},this)},remove:function(){e(arguments,function(e){this.element.className=this.element.className.replace(t(e),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(e){return t(e).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),Element.prototype.toggleAttribute||(Element.prototype.toggleAttribute=function(e,t){return void 0!==t&&(t=!!t),this.hasAttribute(e)?!!t||(this.removeAttribute(e),!1):!1!==t&&(this.setAttribute(e,""),!0)}),function(e,t){"function"==typeof define&&define.amd?define(function(){return t(e)}):t(e)}(this,function(M){var s,o,u,n,r,i,a,c,l,d,f,p,m,e,t,h,y,v,g,b,w,E,S,k,t=(i=(r=[]).concat,a=r.filter,c=r.slice,l=M.document,d=/^\s*<(\w+|!)[^>]*>/,f=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,p=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,m=["val","css","html","text","data","width","height","offset"],e=l.createElement("table"),t=l.createElement("tr"),h={tr:l.createElement("tbody"),tbody:e,thead:e,tfoot:e,td:t,th:t,"*":l.createElement("div")},y=/complete|loaded|interactive/,v=/^[\w-]*$/,b=(g={}).toString,w={},E=l.createElement("div"),S=Array.isArray||function(e){return e instanceof Array},w.matches=function(e,t){if(!t||!e||1!==e.nodeType)return!1;var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(n)return n.call(e,t);var r=e.parentNode,n=!r;return n&&(r=E).appendChild(e),t=~w.qsa(r,t).indexOf(e),n&&E.removeChild(e),t},t=function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},n=function(n){return a.call(n,function(e,t){return n.indexOf(e)==t})},w.fragment=function(e,t,n){var r,o,i;return(r=f.test(e)?u(l.createElement(RegExp.$1)):r)||(e.replace&&(e=e.replace(p,"<$1></$2>")),t===s&&(t=d.test(e)&&RegExp.$1),(i=h[t=!(t in h)?"*":t]).innerHTML=""+e,r=u.each(c.call(i.childNodes),function(){i.removeChild(this)})),O(n)&&(o=u(r),u.each(n,function(e,t){-1<m.indexOf(e)?o[e](t):o.attr(e,t)})),r},w.Z=function(e,t){return new P(e,t)},w.isZ=function(e){return e instanceof w.Z},w.init=function(e,t){var n,r;if(!e)return w.Z();if("string"==typeof e)if("<"==(e=e.trim())[0]&&d.test(e))n=w.fragment(e,RegExp.$1,t),e=null;else{if(t!==s)return u(t).find(e);n=w.qsa(l,e)}else{if(A(e))return u(l).ready(e);if(w.isZ(e))return e;if(S(e))r=e,n=a.call(r,function(e){return null!=e});else if(x(e))n=[e],e=null;else if(d.test(e))n=w.fragment(e.trim(),RegExp.$1,t),e=null;else{if(t!==s)return u(t).find(e);n=w.qsa(l,e)}}return w.Z(n,e)},(u=function(e,t){return w.init(e,t)}).extend=function(t){var n,e=c.call(arguments,1);return"boolean"==typeof t&&(n=t,t=e.shift()),e.forEach(function(e){!function e(t,n,r){for(o in n)r&&(O(n[o])||S(n[o]))?(O(n[o])&&!O(t[o])&&(t[o]={}),S(n[o])&&!S(t[o])&&(t[o]=[]),e(t[o],n[o],r)):n[o]!==s&&(t[o]=n[o])}(t,e,n)}),t},w.qsa=function(e,t){var n,r="#"==t[0],o=!r&&"."==t[0],i=r||o?t.slice(1):t,a=v.test(i);return e.getElementById&&a&&r?(n=e.getElementById(i))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:c.call(a&&!r&&e.getElementsByClassName?o?e.getElementsByClassName(i):e.getElementsByTagName(t):e.querySelectorAll(t))},u.contains=l.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t=t&&t.parentNode;)if(t===e)return!0;return!1},u.type=_,u.isFunction=A,u.isWindow=j,u.isArray=S,u.isPlainObject=O,u.isEmptyObject=function(e){for(var t in e)return!1;return!0},u.inArray=function(e,t,n){return r.indexOf.call(t,e,n)},u.camelCase=t,u.trim=function(e){return null==e?"":String.prototype.trim.call(e)},u.uuid=0,u.support={},u.expr={},u.noop=function(){},u.map=function(e,t){var n,r,o,i,a=[];if(T(e))for(r=0;r<e.length;r++)null!=(n=t(e[r],r))&&a.push(n);else for(o in e)null!=(n=t(e[o],o))&&a.push(n);return 0<(i=a).length?u.fn.concat.apply([],i):i},u.each=function(e,t){var n,r;if(T(e)){for(n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e}else for(r in e)if(!1===t.call(e[r],r,e[r]))return e;return e},M.JSON&&(u.parseJSON=JSON.parse),u.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){g["[object "+t+"]"]=t.toLowerCase()}),u.fn={constructor:w.Z,length:0,forEach:r.forEach,reduce:r.reduce,push:r.push,sort:r.sort,splice:r.splice,indexOf:r.indexOf,concat:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=w.isZ(e=arguments[n])?e.toArray():e;return i.apply(w.isZ(this)?this.toArray():this,t)},map:function(n){return u(u.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return u(c.apply(this,arguments))},ready:function(e){return y.test(l.readyState)&&l.body?e(u):l.addEventListener("DOMContentLoaded",function(){e(u)},!1),this},get:function(e){return e===s?c.call(this):this[0<=e?e:e+this.length]},toArray:function(){return this.get()},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(n){return r.every.call(this,function(e,t){return!1!==n.call(e,t,e)}),this},filter:function(t){return A(t)?this.not(this.not(t)):u(a.call(this,function(e){return w.matches(e,t)}))},add:function(e,t){return u(n(this.concat(u(e,t))))},not:function(t){var n,r=[];return A(t)&&t.call!==s?this.each(function(e){t.call(this,e)||r.push(this)}):(n="string"==typeof t?this.filter(t):T(t)&&A(t.item)?c.call(t):u(t),this.forEach(function(e){n.indexOf(e)<0&&r.push(e)})),u(r)},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},find:function(e){var n=this,t=e?"object"==_typeof(e)?u(e).filter(function(){var t=this;return r.some.call(n,function(e){return u.contains(e,t)})}):1==this.length?u(w.qsa(this[0],e)):this.map(function(){return w.qsa(this,e)}):u();return t},closest:function(r,o){var i=[],a="object"==_typeof(r)&&u(r);return this.each(function(e,t){for(;t&&!(a?0<=a.indexOf(t):w.matches(t,r));)t=t!==o&&!(null!=(n=t)&&n.nodeType==n.DOCUMENT_NODE)&&t.parentNode;var n;t&&i.indexOf(t)<0&&i.push(t)}),u(i)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return u.map(this,function(e){return e[t]})},html:function(n){return 0 in arguments?this.each(function(e){var t=this.innerHTML;u(this).empty().append(q(this,n,e,t))}):0 in this?this[0].innerHTML:null},attr:function(t,n){var e;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(x(t))for(o in t)G(this,o,t[o]);else G(this,t,q(this,n,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(e=this[0].getAttribute(t))?e:s},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=q(this,t,e,this.value)})):this[0]&&(this[0].multiple?u(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)}},u.fn.detach=u.fn.remove,["after","prepend","before","append"].forEach(function(t,a){var c=a%2;u.fn[t]=function(){var n,r,o=u.map(arguments,function(e){var t=[];return"array"==(n=_(e))?(e.forEach(function(e){return e.nodeType!==s?t.push(e):u.zepto.isZ(e)?t=t.concat(e.get()):void(t=t.concat(w.fragment(e)))}),t):"object"==n||null==e?e:w.fragment(e)}),i=1<this.length;return o.length<1?this:this.each(function(e,t){r=c?t:t.parentNode,t=0==a?t.nextSibling:1==a?t.firstChild:2==a?t:null;var n=u.contains(l.documentElement,r);o.forEach(function(e){if(i)e=e.cloneNode(!0);else if(!r)return u(e).remove();r.insertBefore(e,t),n&&function e(t,n){n(t);for(var r=0,o=t.childNodes.length;r<o;r++)e(t.childNodes[r],n)}(e,function(e){var t;null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src||(t=e.ownerDocument?e.ownerDocument.defaultView:M).eval.call(t,e.innerHTML)})})})},u.fn[c?t+"To":"insert"+(a?"Before":"After")]=function(e){return u(e)[t](this),this}}),w.Z.prototype=P.prototype=u.fn,w.uniq=n,w.deserializeValue=function(t){try{return t&&("true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?u.parseJSON(t):t))}catch(e){return t}},u.zepto=w,u);function _(e){return null==e?String(e):g[b.call(e)]||"object"}function A(e){return"function"==_(e)}function j(e){return null!=e&&e==e.window}function x(e){return"object"==_(e)}function O(e){return x(e)&&!j(e)&&Object.getPrototypeOf(e)==Object.prototype}function T(e){var t=!!e&&"length"in e&&e.length,n=u.type(e);return"function"!=n&&!j(e)&&("array"==n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function P(e,t){for(var n=e?e.length:0,r=0;r<n;r++)this[r]=e[r];this.length=n,this.selector=t||""}function q(e,t,n,r){return A(t)?t.call(e,n,r):t}function G(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}return M.Zepto=t,void 0===M.$&&(M.$=t),function(l){function u(e){return"string"==typeof e}var d,t=1,f=Array.prototype.slice,p=l.isFunction,m={},i={},n="onfocusin"in M,r={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function y(e){return e._zid||(e._zid=t++)}function a(e,t,n,r){var o,i;return(t=v(t)).ns&&(i=t.ns,o=new RegExp("(?:^| )"+i.replace(" "," .* ?")+"(?: |$)")),(m[y(e)]||[]).filter(function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||o.test(e.ns))&&(!n||y(e.fn)===y(n))&&(!r||e.sel==r)})}function v(e){e=(""+e).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function g(e,t){return e.del&&!n&&e.e in r||!!t}function b(e){return h[e]||n&&r[e]||e}function w(o,e,t,i,a,c,s){var n=y(o),u=m[n]||(m[n]=[]);e.split(/\s/).forEach(function(e){if("ready"==e)return l(document).ready(t);var n=v(e);n.fn=t,n.sel=a,n.e in h&&(t=function(e){var t=e.relatedTarget;if(!t||t!==this&&!l.contains(this,t))return n.fn.apply(this,arguments)});var r=(n.del=c)||t;n.proxy=function(e){if(!(e=k(e)).isImmediatePropagationStopped()){e.data=i;var t=r.apply(o,e._args==d?[e]:[e].concat(e._args));return!1===t&&(e.preventDefault(),e.stopPropagation()),t}},n.i=u.length,u.push(n),"addEventListener"in o&&o.addEventListener(b(n.e),n.proxy,g(n,s))})}function E(t,e,n,r,o){var i=y(t);(e||"").split(/\s/).forEach(function(e){a(t,e,n,r).forEach(function(e){delete m[i][e.i],"removeEventListener"in t&&t.removeEventListener(b(e.e),e.proxy,g(e,o))})})}i.click=i.mousedown=i.mouseup=i.mousemove="MouseEvents",l.event={add:w,remove:E},l.proxy=function(e,t){var n=2 in arguments&&f.call(arguments,2);if(p(e)){function r(){return e.apply(t,n?n.concat(f.call(arguments)):arguments)}return r._zid=y(e),r}if(u(t))return n?(n.unshift(e[t],e),l.proxy.apply(null,n)):l.proxy(e[t],e);throw new TypeError("expected function")},l.fn.bind=function(e,t,n){return this.on(e,t,n)},l.fn.unbind=function(e,t){return this.off(e,t)},l.fn.one=function(e,t,n,r){return this.on(e,t,n,r,1)};var c=function(){return!0},S=function(){return!1},o=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,e={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function k(r,o){return!o&&r.isDefaultPrevented||(o=o||r,l.each(e,function(e,t){var n=o[e];r[e]=function(){return this[t]=c,n&&n.apply(o,arguments)},r[t]=S}),r.timeStamp||(r.timeStamp=Date.now()),(o.defaultPrevented!==d?o.defaultPrevented:"returnValue"in o?!1===o.returnValue:o.getPreventDefault&&o.getPreventDefault())&&(r.isDefaultPrevented=c)),r}function _(e){var t,n={originalEvent:e};for(t in e)o.test(t)||e[t]===d||(n[t]=e[t]);return k(n,e)}l.fn.delegate=function(e,t,n){return this.on(t,e,n)},l.fn.undelegate=function(e,t,n){return this.off(t,e,n)},l.fn.live=function(e,t){return l(document.body).delegate(this.selector,e,t),this},l.fn.die=function(e,t){return l(document.body).undelegate(this.selector,e,t),this},l.fn.on=function(t,o,n,i,a){var c,s,r=this;return t&&!u(t)?(l.each(t,function(e,t){r.on(e,o,n,t,a)}),r):(u(o)||p(i)||!1===i||(i=n,n=o,o=d),i!==d&&!1!==n||(i=n,n=d),!1===i&&(i=S),r.each(function(e,r){a&&(c=function(e){return E(r,e.type,i),i.apply(this,arguments)}),o&&(s=function(e){var t,n=l(e.target).closest(o,r).get(0);if(n&&n!==r)return t=l.extend(_(e),{currentTarget:n,liveFired:r}),(c||i).apply(n,[t].concat(f.call(arguments,1)))}),w(r,t,i,n,o,s||c)}))},l.fn.off=function(e,n,t){var r=this;return e&&!u(e)?(l.each(e,function(e,t){r.off(e,n,t)}),r):(u(n)||p(t)||!1===t||(t=n,n=d),!1===t&&(t=S),r.each(function(){E(this,e,t,n)}))},l.fn.trigger=function(e,t){return(e=u(e)||l.isPlainObject(e)?l.Event(e):k(e))._args=t,this.each(function(){e.type in r&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):l(this).triggerHandler(e,t)})},l.fn.triggerHandler=function(n,r){var o,i;return this.each(function(e,t){(o=_(u(n)?l.Event(n):n))._args=r,o.target=t,l.each(a(t,n.type||n),function(e,t){if(i=t.proxy(o),o.isImmediatePropagationStopped())return!1})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){l.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),l.Event=function(e,t){u(e)||(e=(t=e).type);var n=document.createEvent(i[e]||"Events"),r=!0;if(t)for(var o in t)"bubbles"==o?r=!!t[o]:n[o]=t[o];return n.initEvent(e,r,!0),k(n)}}(t),function(f){var p,m,l=+new Date,h=M.document,c=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,y=/^(?:text|application)\/javascript/i,v=/^(?:text|application)\/xml/i,g="application/json",b="text/html",w=/^\s*$/,E=h.createElement("a");function S(e,t,n,r){if(e.global)return t=t||h,n=n,r=r,n=f.Event(n),f(t).trigger(n,r),!n.isDefaultPrevented()}function k(e,t){var n=t.context;if(!1===t.beforeSend.call(n,e,t)||!1===S(t,n,"ajaxBeforeSend",[e,t]))return!1;S(t,n,"ajaxSend",[e,t])}function _(e,t,n,r){var o=n.context,i="success";n.success.call(o,e,i,t),r&&r.resolveWith(o,[e,i,t]),S(n,o,"ajaxSuccess",[t,n,e]),a(i,t,n)}function A(e,t,n,r,o){var i=r.context;r.error.call(i,n,t,e),o&&o.rejectWith(i,[n,t,e]),S(r,i,"ajaxError",[n,r,e||t]),a(t,n,r)}function a(e,t,n){var r=n.context;n.complete.call(r,t,e),S(n,r,"ajaxComplete",[t,n]),(n=n).global&&!--f.active&&S(n,null,"ajaxStop")}function j(){}function x(e,t){return""==t?e:(e+"&"+t).replace(/[&?]{1,2}/,"?")}function s(e,t,n,r){return f.isFunction(t)&&(r=n,n=t,t=void 0),f.isFunction(n)||(r=n,n=void 0),{url:e,data:t,success:n,dataType:r}}E.href=M.location.href,f.active=0,f.ajaxJSONP=function(n,r){if(!("type"in n))return f.ajax(n);function e(e){f(c).triggerHandler("error",e||"abort")}var o,i,t=n.jsonpCallback,a=(f.isFunction(t)?t():t)||"Zepto"+l++,c=h.createElement("script"),s=M[a],u={abort:e};return r&&r.promise(u),f(c).on("load error",function(e,t){clearTimeout(i),f(c).off().remove(),"error"!=e.type&&o?_(o[0],u,n,r):A(null,t||"error",u,n,r),M[a]=s,o&&f.isFunction(s)&&s(o[0]),s=o=void 0}),!1===k(u,n)?e("abort"):(M[a]=function(){o=arguments},c.src=n.url.replace(/\?(.+)=\?/,"?$1="+a),h.head.appendChild(c),0<n.timeout&&(i=setTimeout(function(){e("timeout")},n.timeout))),u},f.ajaxSettings={type:"GET",beforeSend:j,success:j,error:j,complete:j,context:null,global:!0,xhr:function(){return new M.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:g,xml:"application/xml, text/xml",html:b,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:j},f.ajax=function(e){var t,r=f.extend({},e||{}),o=f.Deferred&&f.Deferred();for(p in f.ajaxSettings)void 0===r[p]&&(r[p]=f.ajaxSettings[p]);(t=r).global&&0==f.active++&&S(t,null,"ajaxStart"),r.crossDomain||((n=h.createElement("a")).href=r.url,n.href=n.href,r.crossDomain=E.protocol+"//"+E.host!=n.protocol+"//"+n.host),r.url||(r.url=M.location.toString()),-1<(n=r.url.indexOf("#"))&&(r.url=r.url.slice(0,n)),(n=r).processData&&n.data&&"string"!=f.type(n.data)&&(n.data=f.param(n.data,n.traditional)),!n.data||n.type&&"GET"!=n.type.toUpperCase()&&"jsonp"!=n.dataType||(n.url=x(n.url,n.data),n.data=void 0);var i=r.dataType,n=/\?.+=\?/.test(r.url);if(n&&(i="jsonp"),!1!==r.cache&&(e&&!0===e.cache||"script"!=i&&"jsonp"!=i)||(r.url=x(r.url,"_="+Date.now())),"jsonp"==i)return n||(r.url=x(r.url,r.jsonp?r.jsonp+"=?":!1===r.jsonp?"":"callback=?")),f.ajaxJSONP(r,o);function a(e,t){s[e.toLowerCase()]=[e,t]}var c,n=r.accepts[i],s={},u=/^([\w-]+:)\/\//.test(r.url)?RegExp.$1:M.location.protocol,l=r.xhr(),d=l.setRequestHeader;if(o&&o.promise(l),r.crossDomain||a("X-Requested-With","XMLHttpRequest"),a("Accept",n||"*/*"),(n=r.mimeType||n)&&(-1<n.indexOf(",")&&(n=n.split(",",2)[0]),l.overrideMimeType&&l.overrideMimeType(n)),(r.contentType||!1!==r.contentType&&r.data&&"GET"!=r.type.toUpperCase())&&a("Content-Type",r.contentType||"application/x-www-form-urlencoded"),r.headers)for(m in r.headers)a(m,r.headers[m]);if(l.setRequestHeader=a,!(l.onreadystatechange=function(){if(4==l.readyState){l.onreadystatechange=j,clearTimeout(c);var e,t=!1;if(200<=l.status&&l.status<300||304==l.status||0==l.status&&"file:"==u){if(i=i||((n=(n=r.mimeType||l.getResponseHeader("content-type"))&&n.split(";",2)[0])&&(n==b?"html":n==g?"json":y.test(n)?"script":v.test(n)&&"xml")||"text"),"arraybuffer"==l.responseType||"blob"==l.responseType)e=l.response;else{e=l.responseText;try{e=function(e,t,n){if(n.dataFilter==j)return e;var r=n.context;return n.dataFilter.call(r,e,t)}(e,i,r),"script"==i?(0,eval)(e):"xml"==i?e=l.responseXML:"json"==i&&(e=w.test(e)?null:f.parseJSON(e))}catch(e){t=e}if(t)return A(t,"parsererror",l,r,o)}_(e,l,r,o)}else A(l.statusText||null,l.status?"error":"abort",l,r,o)}var n})===k(l,r))return l.abort(),A(null,"abort",l,r,o),l;n=!("async"in r)||r.async;if(l.open(r.type,r.url,n,r.username,r.password),r.xhrFields)for(m in r.xhrFields)l[m]=r.xhrFields[m];for(m in s)d.apply(l,s[m]);return 0<r.timeout&&(c=setTimeout(function(){l.onreadystatechange=j,l.abort(),A(null,"timeout",l,r,o)},r.timeout)),l.send(r.data||null),l},f.get=function(){return f.ajax(s.apply(null,arguments))},f.post=function(){var e=s.apply(null,arguments);return e.type="POST",f.ajax(e)},f.getJSON=function(){var e=s.apply(null,arguments);return e.dataType="json",f.ajax(e)},f.fn.load=function(e,t,n){if(!this.length)return this;var r,o=this,i=e.split(/\s/),n=s(e,t,n),a=n.success;return 1<i.length&&(n.url=i[0],r=i[1]),n.success=function(e){o.html(r?f("<div>").html(e.replace(c,"")).find(r):e),a&&a.apply(o,arguments)},f.ajax(n),this};var r=encodeURIComponent;f.param=function(e,t){var n=[];return n.add=function(e,t){null==(t=f.isFunction(t)?t():t)&&(t=""),this.push(r(e)+"="+r(t))},function n(r,e,o,i){var a,c=f.isArray(e),s=f.isPlainObject(e);f.each(e,function(e,t){a=f.type(t),i&&(e=o?i:i+"["+(s||"object"==a||"array"==a?e:"")+"]"),!i&&c?r.add(t.name,t.value):"array"==a||!o&&"object"==a?n(r,t,o,e):r.add(e,t)})}(n,e,t),n.join("&").replace(/%20/g,"+")}}(t),(k=t).fn.serializeArray=function(){function n(e){if(e.forEach)return e.forEach(n);t.push({name:r,value:e})}var r,o,t=[];return this[0]&&k.each(this[0].elements,function(e,t){o=t.type,(r=t.name)&&"fieldset"!=t.nodeName.toLowerCase()&&!t.disabled&&"submit"!=o&&"reset"!=o&&"button"!=o&&"file"!=o&&("radio"!=o&&"checkbox"!=o||t.checked)&&n(k(t).val())}),t},k.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},k.fn.submit=function(e){var t;return 0 in arguments?this.bind("submit",e):this.length&&(t=k.Event("submit"),this.eq(0).trigger(t),t.isDefaultPrevented()||this.get(0).submit()),this},t}),function(e,t){"function"==typeof define&&define.amd?define(["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.bodyScrollLock=t)}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t,n=!1;"undefined"!=typeof window&&(t={get passive(){n=!0}},window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t));function o(e){return e=e||window.event,!!p(e.target)||(1<e.touches.length||(e.preventDefault&&e.preventDefault(),!1))}function r(){void 0!==f&&(document.body.style.paddingRight=f,f=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)}function i(){var e,t;void 0!==d&&(e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10),document.body.style.position=d.position,document.body.style.top=d.top,document.body.style.left=d.left,window.scrollTo(t,e),d=void 0)}var a="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),c=[],s=!1,u=-1,l=void 0,d=void 0,f=void 0,p=function(t){return c.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))})};e.disableBodyScroll=function(r,e){var t;r?c.some(function(e){return e.targetElement===r})||(t={targetElement:r,options:e||{}},c=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(c),[t]),a?window.requestAnimationFrame(function(){var e,t,n,r;void 0===d&&(d={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left},e=window,t=e.scrollY,n=e.scrollX,r=e.innerHeight,document.body.style.position="fixed",document.body.style.top=-t+"px",document.body.style.left=-n+"px",setTimeout(function(){return window.requestAnimationFrame(function(){var e=r-window.innerHeight;e&&r<=t&&(document.body.style.top=-(t+e))})},300))}):(t=e,void 0===f&&(e=!!t&&!0===t.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth,e&&0<t&&(e=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10),f=document.body.style.paddingRight,document.body.style.paddingRight=e+t+"px")),void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")),a&&(r.ontouchstart=function(e){1===e.targetTouches.length&&(u=e.targetTouches[0].clientY)},r.ontouchmove=function(e){var t,n;1===e.targetTouches.length&&(n=r,e=(t=e).targetTouches[0].clientY-u,p(t.target)||(n&&0===n.scrollTop&&0<e||!!(n=n)&&n.scrollHeight-n.scrollTop<=n.clientHeight&&e<0?o(t):t.stopPropagation()))},s||(document.addEventListener("touchmove",o,n?{passive:!1}:void 0),s=!0))):console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},e.clearAllBodyScrollLocks=function(){a&&(c.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),s&&(document.removeEventListener("touchmove",o,n?{passive:!1}:void 0),s=!1),u=-1),(a?i:r)(),c=[]},e.enableBodyScroll=function(t){t?(c=c.filter(function(e){return e.targetElement!==t}),a&&(t.ontouchstart=null,t.ontouchmove=null,s&&0===c.length&&(document.removeEventListener("touchmove",o,n?{passive:!1}:void 0),s=!1)),(a?i:r)()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}),function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Maska={})}(this,function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function o(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach(function(e){var t,n;t=r,e=o[n=e],n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}var i={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function a(e,t){var a,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:i,r=!(3<arguments.length&&void 0!==arguments[3])||arguments[3];return 1<c(t).length?(a=c(t).sort(function(e,t){return e.length-t.length}),function(t,e,n){var r,o=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],i=a.map(function(e){return s(t,e,n,!1)}).pop();for(r in a)if(function(e,t,n){for(var r in n)n[r].escape&&(t=t.replace(new RegExp(r+".{1}","g"),""));return t.split("").filter(function(e){return n[e]&&n[e].pattern}).length>=e.length}(i,a[r],n))return s(t,a[r],n,o);return""}(e,t,n,r)):s(e,t,n,r)}function c(t){try{return JSON.parse(t)}catch(e){return[t]}}function s(e,t,n,r){for(var o,i=!(3<arguments.length&&void 0!==r)||r,a=0,c=0,s="",u="";a<t.length&&c<e.length;){var l,d=t[a],f=e[c],p=n[d];p&&p.pattern?(p.pattern.test(f)&&(s+=(l=f,(o=p).transform&&(l=o.transform(l)),o.uppercase?l.toLocaleUpperCase():o.lowercase?l.toLocaleLowerCase():l),a++,i&&t[a]&&(n[t[a]]?n[t[a]]&&n[t[a]].escape&&(s+=t[a+1],a+=2):(s+=t[a],a++))),c++):p&&p.repeat?(l=n[t[a-1]])&&!l.pattern.test(f)?a++:a--:(p&&p.escape&&(d=t[++a]),i&&(s+=d),f===d&&c++,a++)}for(;i&&a<t.length;){var m=t[a];if(n[m]){u="";break}u+=m,a++}return s+u}function r(e){return!(e instanceof HTMLInputElement)&&e.querySelector("input")||e}function u(e){return"[object String]"===Object.prototype.toString.call(e)}var l,d=(l=[{key:"init",value:function(){for(var n=this,e=0;e<this._el.length;e++)!function(e){var t=r(n._el[e]);!n._opts.mask||t.dataset.mask&&t.dataset.mask===n._opts.mask||(t.dataset.mask=n._opts.mask),setTimeout(function(){return n.updateValue(t)},0),t.dataset.maskInited||(t.dataset.maskInited=!0,t.addEventListener("input",n.inputEvent),t.addEventListener("beforeinput",n.beforeInput))}(e)}},{key:"destroy",value:function(){for(var e=0;e<this._el.length;e++){var t=r(this._el[e]);t.removeEventListener("input",this.inputEvent),t.removeEventListener("beforeinput",this.beforeInput),delete t.dataset.mask,delete t.dataset.maskInited}}},{key:"updateValue",value:function(e,t){if(e&&e.type){var n=e.type.match(/^number$/i)&&e.validity.badInput;if(!e.value&&!n||!e.dataset.mask)return e.dataset.maskRawValue="",void this.dispatch("maska",e,t);var r=e.selectionEnd,o=e.value,i=o[r-1];e.dataset.maskRawValue=a(e.value,e.dataset.mask,this._opts.tokens,!1);n=e.value;this._opts.preprocessor&&(n=this._opts.preprocessor(n)),e.value=a(n,e.dataset.mask,this._opts.tokens),function(e,t,n){for(;t&&t<e.value.length&&e.value.charAt(t-1)!==n;)t++;(e.type?e.type.match(/^(text|search|password|tel|url)$/i):!e.type)&&e===document.activeElement&&(e.setSelectionRange(t,t),setTimeout(function(){e.setSelectionRange(t,t)},0))}(e,r=t&&"insertText"===t.inputType&&r===o.length?e.value.length:r,i),this.dispatch("maska",e,t),e.value!==o&&this.dispatch("input",e,t)}}},{key:"beforeInput",value:function(e){e&&e.target&&e.target.type&&e.target.type.match(/^number$/i)&&e.data&&isNaN(e.target.value+e.data)&&e.preventDefault()}},{key:"dispatch",value:function(e,t,n){t.dispatchEvent(function(e,t){var n=1<arguments.length&&void 0!==t?t:null,t=document.createEvent("Event");return t.initEvent(e,!0,!0),n&&(t.inputType=n),t}(e,n&&n.inputType||null))}}],t(f.prototype,l),f);function f(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),!e)throw new Error("Maska: no element for mask");if(null!=n.preprocessor&&"function"!=typeof n.preprocessor)throw new Error("Maska: preprocessor must be a function");if(n.tokens)for(var r in n.tokens)n.tokens[r]=o({},n.tokens[r]),n.tokens[r].pattern&&u(n.tokens[r].pattern)&&(n.tokens[r].pattern=new RegExp(n.tokens[r].pattern));this._opts={mask:n.mask,tokens:o(o({},i),n.tokens),preprocessor:n.preprocessor},this._el=u(e)?document.querySelectorAll(e):e.length?e:[e],this.inputEvent=function(e){return t.updateValue(e.target,e)},this.init()}var p,m=(p=new WeakMap,function(e,t){var n;t.value&&(p.has(e)&&(u((n=t).value)&&n.value===n.oldValue||Array.isArray(n.value)&&JSON.stringify(n.value)===JSON.stringify(n.oldValue)||n.value&&n.value.mask&&n.oldValue&&n.oldValue.mask&&n.value.mask===n.oldValue.mask)||p.set(e,new d(e,(e=t.value,t={},e.mask?(t.mask=Array.isArray(e.mask)?JSON.stringify(e.mask):e.mask,t.tokens=e.tokens?o({},e.tokens):{},t.preprocessor=e.preprocessor):t.mask=Array.isArray(e)?JSON.stringify(e):e,t))))});function h(e){e.directive("maska",m)}"undefined"!=typeof window&&window.Vue&&window.Vue.use&&window.Vue.use(h),e.create=function(e,t){return new d(e,t)},e.default=h,e.install=h,e.mask=a,e.maska=m,e.tokens=i,Object.defineProperty(e,"__esModule",{value:!0})}),document.addEventListener("touchstart",function(){},!0);var maskaPhone=Maska.create('.input[type="tel"]',{mask:"+7 (###) ###-##-##",preprocessor:function(e){e=8==e.charAt(0)?e.slice(1):e;return e}}),inputPhone=".js-inputPhone";function chrome(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(e,"px"))}document.querySelectorAll(inputPhone).forEach(function(e){var t=e.placeholder;e.placeholder?(e.addEventListener("focus",function(){this.placeholder="+7 (___) ___-__-__"}),e.addEventListener("blur",function(){this.placeholder=t})):e.placeholder="+7 (___) ___-__-__"}),window.addEventListener("resize",function(){chrome()}),navigator.userAgent.match(/android/i)&&(document.querySelectorAll(".modal").forEach(function(e){e.classList.add("android")}),chrome());var MG=MG||{},main,recommended__slider,main__slider,product__slider,image__slider;function onYouTubeIframeAPIReady(){MG.tools.youtube()}MG.lighthouse={init:function(){return-1===navigator.userAgent.indexOf("Lighthouse")}},MG.message={processStart:function(e){e=e.querySelector(".message__process");e&&e.setAttribute("open","")},processEnd:function(e){e=e.querySelector(".message__process");e&&e.removeAttribute("open")},message:function(e,t,n){var r,n=n||!1;t&&((r=e.querySelector(".message"))&&r.setAttribute("open",""),r&&(r.innerHTML=t),MG.message.processEnd(e),n&&setTimeout(function(){MG.message.clean(e)},2e3))},error:function(e,t){var n;(n=e.querySelector(".message__error"))&&(n.innerHTML=t),MG.message.processEnd(e)},clean:function(e){var t=e.querySelector(".message"),e=e.querySelector(".message__error");t&&t.removeAttribute("open"),t&&(t.innerHTML=""),e&&e.removeAttribute("open"),e&&(e.innerHTML="")},cleanInput:function(e){var t=e.querySelectorAll(".input__send"),e=e.querySelectorAll(".input__checkbox");t.forEach(function(e){e.value=""}),e.forEach(function(e){e.checked=!1})}},MG.validate={search:function(e,t){for(key in t){var n=e.querySelector('input[name="'+key+'"]');n&&MG.validate.check(n,t[key])}},check:function(e,t){void 0!==e.value&&e.value.length<t?e.classList.add("error"):e.classList.remove("error")},searchAll:function(e,t){for(key in t){var n=e.querySelectorAll("input["+key+"]");n&&MG.validate.checkAll(n,t[key])}},checkAll:function(e,t){e.forEach(function(e){void 0!==e.value&&e.value.length<t?e.classList.add("error"):e.classList.remove("error")})}},MG.nav={init:function(){this.toggle(),this.click()},toggle:function(){var e=document.querySelectorAll(".js-btnNav"),t=document.querySelector(".js-nav");0<e.length&&e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.toggleAttribute("open"),e.target.toggleAttribute("data-open")})})},click:function(){var e=document.querySelectorAll(".js-nextNav"),t=document.querySelectorAll(".js-prevNav");document.querySelector(".js-listNav");e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();e=e.target.closest(".item").querySelector(".list__item");e&&e.setAttribute("data-open","")})}),t.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),e.target.closest(".list__item").removeAttribute("data-open")})})}},MG.nav.init(),MG.slide={main:function(){return!!document.querySelector(".js-main")&&new Swiper(".js-main",{loop:!0,speed:1200,slidesPerView:"auto",spaceBetween:0,slidesOffsetBefore:24,breakpoints:{320:{slidesPerView:"auto",spaceBetween:24},990:{slidesPerView:"auto",spaceBetween:28}},autoplay:{delay:5e3,disableOnInteraction:!1},navigation:{nextEl:".js-main + .arrows .__right",prevEl:".js-main + .arrows .__left"}})},image__slider:function(){return!!document.querySelector("#image__slider")&&new Swiper("#image__slider",{speed:1200,slidesPerView:1,spaceBetween:0,autoHeight:!0,autoplay:{delay:5e3,disableOnInteraction:!1},effect:"fade",fadeEffect:{crossFade:!0},lazy:{loadPrevNext:!0,elementClass:"lazy-load"},pagination:{el:".image__slider .pagination",type:"bullets",clickable:!0}})},recommended__slider:function(){return!!document.querySelector("#recommended__slider")&&new Swiper("#recommended__slider",{speed:1e3,slidesPerView:"auto",slidesOffsetBefore:24,spaceBetween:16,breakpoints:{320:{slidesOffsetBefore:24,slidesPerView:"auto",spaceBetween:16},990:{slidesOffsetBefore:24,slidesPerView:"auto",spaceBetween:24}},navigation:{nextEl:".recommended__wrap .__right",prevEl:".recommended__wrap .__left"}})},main__slider:function(){return!!document.querySelector("#main__slider")&&new Swiper("#main__slider",{speed:1e3,slidesPerView:1,spaceBetween:0,autoplay:{delay:11e3,disableOnInteraction:!1},effect:"fade",fadeEffect:{crossFade:!0}})},product__slider:function(){return!!document.querySelector("#product__slider")&&(!(990<=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth))&&new Swiper("#product__slider",{speed:1e3,slidesPerView:1,spaceBetween:8,navigation:{nextEl:".product__images .__right",prevEl:".product__images .__left"}}))}},MG.lighthouse.init()&&(main=MG.slide.main(),recommended__slider=MG.slide.recommended__slider(),main__slider=MG.slide.main__slider(),product__slider=MG.slide.product__slider(),image__slider=MG.slide.image__slider()),MG.modal={init:function(){this.open(),this.close(),this.key(),this.send()},body:function(){return document.querySelector("body")},modals:function(){return document.querySelectorAll(".modal")},openElement:function(){return document.querySelectorAll(".js-modal")},closeElement:function(){return document.querySelectorAll(".js-modalClose")},open:function(){var s=this.body();this.openElement().forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t,n,r,o=getBodyScrollTop(),i=getScrollbarWidth(),a=this.getAttribute("href")||this.getAttribute("data-href"),c=document.querySelector(a);c.style.display="block",c.offsetHeight,c.setAttribute("open",""),c.style.top=o+"px","#modalFilter"!==a&&(s.style.position="fixed",0<i&&(s.style.overflowY="scroll"),s.style.top=-o+"px",e.target.getAttribute("data-title")&&(t=e.target.getAttribute("data-title"),c.querySelector(".js-modalHeader").innerHTML=t,c.querySelector(".js-modalTitle").value=t),e.target.getAttribute("data-product")&&(t=e.target.getAttribute("data-product"),c.querySelector(".js-formProductID").value=t),e.target.getAttribute("data-pack")&&(n=e.target.getAttribute("data-pack"),c.querySelector(".js-formProductPack").value=n),e.target.getAttribute("data-name")&&(n=e.target.getAttribute("data-name"),c.querySelector(".js-formProductName").innerHTML=n),e.target.getAttribute("data-price")&&(r=e.target.getAttribute("data-price"),c.querySelector(".js-formProductPrice").innerHTML=r),e.target.getAttribute("data-image")&&(r=e.target.getAttribute("data-image"),c.querySelector(".js-formProductImage").style.backgroundImage="url('"+r+"')"),e.target.getAttribute("data-focus")&&(e=e.target.getAttribute("data-focus"),c.querySelector("#"+e).focus()))})})},close:function(){this.closeElement().forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),MG.modal.closeFunc()})})},closeFunc:function(){var e=this.body(),t=e.style.top,t=-1*parseInt(t,10);this.modals().forEach(function(e){e.removeAttribute("open"),setTimeout(function(){e.style.display="",e.style.top=""},500),e.querySelectorAll(".input__send").forEach(function(e){e.value=""})}),e.style.position="",e.style.overflowY="",e.style.top="",isNaN(t)||window.scrollTo(0,t)},key:function(){window.addEventListener("keydown",function(e){if(("Escape"==e.key||"Esc"==e.key||27==e.which||27==e.keyCode)&&0<document.querySelectorAll(".modal[open]").length)return e.preventDefault(),MG.modal.closeFunc(),!1},!0)},send:function(){$(".js-modalForm").on("submit",function(e){e.preventDefault();var e=$(this),t=this;if(MG.validate.search(t,{name:"3",phone:"18"}),0<t.querySelectorAll("input.error").length)return!1;e=e.serialize();return MG.message.processStart(t),$.ajax({type:"POST",url:"/api/modal/",cache:!1,data:e,success:function(e){return(e=JSON.parse(e)).ok?(MG.message.message(t,e.msg,!0),MG.message.processEnd(t),MG.message.cleanInput(t),setTimeout(function(){MG.modal.closeFunc()},1500),MG.modal.reachGoal("form"),!1):e.error?(MG.message.error(t,e.msg),MG.message.processEnd(t),!1):e.bad?(MG.message.processEnd(t),alert("Ошибка"),!1):void 0},error:function(e,t){alert("Ошибка сервера: "+e.responseCode)}}),!1})},reachGoal:function(e){"undefined"!=typeof ym?(ym(56718745,"reachGoal",e),console.log("goal "+e)):console.log("ym no")}},MG.modal.init(),MG.tools={init:function(){this.listNavigate(),this.viewBox(),this.more(),this.fixed(),this.customSelect(),this.back(),this.testAlert()},listNavigate:function(){document.querySelectorAll(".js-openListNav").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();e=e.target.closest(".item").querySelector(".list__nav");if(e){if(e.hasAttribute("data-open"))return e.removeAttribute("data-open"),!1;document.querySelectorAll(".header .list__nav").forEach(function(e){e.removeAttribute("data-open")}),e.setAttribute("data-open","")}})})},back:function(){var e;(e=document.querySelector(".js-back"))&&e.addEventListener("click",function(e){return e.preventDefault(),history.length&&history.back(),!1})},testAlert:function(){var e=document.querySelector(".js-testAlert");e&&e.addEventListener("click",function(e){e.preventDefault(),e.target.closest(".form").querySelector(".message__process").setAttribute("open",""),setTimeout(function(){alert("Включен тестовй режим. Отправка заказа не выполнена.")},300)})},viewBox:function(){document.querySelector(".js-viewBox")&&new SimpleLightbox(".js-viewBox",{history:!1,sourceAttr:"data-all"})},more:function(){document.querySelectorAll(".js-more").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();e=e.target.getAttribute("data-more");document.querySelector("#"+e).setAttribute("open","")})})},fixed:function(){var t,n=document.querySelector(".js-header"),r=!1;window.addEventListener("scroll",function(e){t=window.scrollY,r||(window.requestAnimationFrame(function(){t>=n.clientHeight/1.2?document.querySelector("body").classList.add("is-scrolled"):document.querySelector("body").classList.remove("is-scrolled"),r=!1}),r=!0)})},youtubeAPI:function(){var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)},youtube:function(){document.querySelectorAll(".js-youtube").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t=e.target,n=t.getAttribute("data-youtube"),e=t.getAttribute("data-id");new YT.Player(e,{height:t.offsetHeight,width:t.offsetWidth,videoId:n,playerVars:{playsinline:1,controls:0,modestbranding:1,rel:0},events:{onReady:function(e){e.target.playVideo()}}})})})},customSelect:function(){document.querySelectorAll(".js-selectCustom").forEach(function(n){n.addEventListener("click",function(e){e.preventDefault();var t=document.querySelectorAll(".js-selectCustom[open]");console.log(e.target),n==e.target&&(e.target.toggleAttribute("open"),t.forEach(function(e){return e.removeAttribute("open")}))})}),document.addEventListener("click",function(e){var t;document.querySelectorAll(".js-selectCustom[open]").length&&((t=e.target)==(e=document.querySelector(".select__custom .current__wrap[open]+.list__select"))||e.contains(t)||t.classList.contains("js-selectCustom")||document.querySelectorAll(".js-selectCustom[open]").forEach(function(e){return e.removeAttribute("open")}))})},infinityScroll:function(){lazyload(),MG.product.like()},filterCallback:function(){lazyload(),MG.product.like(),MG.product.filterEnd(),MG.tools.filterClose()},filterClose:function(){var e=document.querySelector("#modalFilter");e&&e.removeAttribute("style")}},MG.tools.init(),MG.map={init:function(){},src:function(e){var t;MG.lighthouse.init()&&((t=document.createElement("script")).src="//api-maps.yandex.ru/2.1/?lang=ru-RU&onload=MG.map.getYaMap",document.getElementsByTagName("body")[0].appendChild(t))},getYaMap:function(){ymaps.ready(MG.map.create)},create:function(){var e=new ymaps.Map("map",{center:[org.y,org.x],zoom:13},{searchControlProvider:"yandex#search"}),t=new ymaps.Placemark([org.y,org.x],{balloonContent:'<div><div class="bold"><b>«'+org.name+'»</b></div><address class="mtb_8">'+org.address+'</address><div><a href="tel:'+org.phone+'">'+org.phone+"</a></div></div>"},{iconLayout:"default#image",iconImageHref:org.icon,iconImageSize:[48,72],iconImageOffset:[-24,-72],balloonPanelMaxMapArea:0,closeButton:!1});e.geoObjects.add(t)},object:function(){var e;MG.lighthouse.init()&&((e=document.createElement("script")).src="//api-maps.yandex.ru/2.1/?lang=ru-RU&onload=MG.map.getObject",document.getElementsByTagName("body")[0].appendChild(e))},getObject:function(){ymaps.ready(MG.map.createObject)},createObject:function(){var e=new ymaps.Map("map_object",{center:[mapObject.y,mapObject.x],zoom:14},{searchControlProvider:"yandex#search"}),t=new ymaps.Placemark([mapObject.y,mapObject.x],{balloonContent:'<div><div class="bold"><b>«'+org.name+'»</b></div><address class="mtb_8">'+org.address+'</address><div><a href="tel:'+org.phone+'" class="bold">'+org.phone+"</a></div></div>"},{iconLayout:"default#image",iconImageHref:org.icon,iconImageSize:[36,50],iconImageOffset:[-18,-50],balloonPanelMaxMapArea:0,closeButton:!1});e.geoObjects.add(t)},list:function(){var e;MG.lighthouse.init()&&((e=document.createElement("script")).src="//api-maps.yandex.ru/2.1/?lang=ru-RU&onload=MG.map.getList",document.getElementsByTagName("body")[0].appendChild(e))},getList:function(){ymaps.ready(initObjectList)}},MG.map.init(),MG.lazyload={init:function(e){switch(console.log(e),e){case"MG.map.src":MG.map.src();break;case"MG.map.object":MG.map.object();break;case"MG.tools.youtubeAPI":MG.tools.youtubeAPI();break;case"MG.map.list":MG.map.list();break;default:console.log("Func not found")}}},MG.product={init:function(){this.like(),this.zoomProduct()},add:function(e,t,n){var t={id:e,pack:t},r=n;r.setAttribute("processing",""),$.ajax({type:"POST",url:"/api/product/add/",cache:!1,data:t,success:function(e){if((e=JSON.parse(e)).ok&&(r.removeAttribute("processing"),r.setAttribute("successed",""),setTimeout(function(){r.removeAttribute("successed")},1e3),buttonWrap=r.closest(".js-buttonWrap"),buttonWrap&&(buttonWrap.querySelector(".js-buttonText").innerHTML="в корзине",buttonWrap.querySelector(".js-buttonCount").innerHTML=e.count+" шт."),MG.count.set(e.totalCount),e.recommend&&e.recommend.product&&MG.recommend.create(e.recommend),MG.cartProduct.load(),setTimeout(function(){MG.product.openCart()},1700)),e.bad)return r.removeAttribute("processing"),r.setAttribute("successed",""),setTimeout(function(){r.removeAttribute("successed")},1e3),alert("Ошибка"),!1},error:function(e,t){alert("Ошибка сервера: "+e.responseCode)}})},openCart:function(){var e=document.querySelector('.js-modal[href="#modalCart"]');e&&e.click()},like:function(){document.querySelectorAll(".js-like").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t=e.target.getAttribute("id"),n=MG.product.getCookie("like"),t=t+"|";n?-1!==n.indexOf(t)?(n=n.replace(t,""),MG.product.setCookie("like",n,{"max-age":88888888}),e.target.removeAttribute("open")):(MG.product.setCookie("like",n+=t,{"max-age":88888888}),e.target.setAttribute("open","")):(MG.product.setCookie("like",t,{"max-age":88888888}),e.target.setAttribute("open",""))})})},getCookie:function(e){e=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0},setCookie:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};(n=_objectSpread({path:"/"},n)).expires instanceof Date&&(n.expires=n.expires.toUTCString());var r,o=encodeURIComponent(e)+"="+encodeURIComponent(t);for(r in n){o+="; "+r;var i=n[r];!0!==i&&(o+="="+i)}document.cookie=o},deleteCookie:function(e){setCookie(e,"",{"max-age":-1})},changePack:function(e,t){var n=document.querySelector(".js-btnAddProduct"),r=document.querySelector(".js-btnQuickOrder");n&&n.setAttribute("onclick","MG.product.add("+e+", "+t+", this)"),r&&r.setAttribute("data-pack",t)},filterStart:function(){var e=document.querySelector("#product-list");e&&(e.style.opacity="0.57")},filterEnd:function(){var e=document.querySelector("#product-list");e&&(e.style.opacity="1")},zoomProduct:function(){if((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<1240)return!1;document.querySelectorAll("#product__slider .swiper-slide").forEach(function(e){var t=e.getAttribute("data-all"),n=document.createElement("img");n.src=t,n.style.display="none",e.appendChild(n),new ImageZoom(e,{zoomPosition:"original",scale:1,width:e.clientWidth,height:e.clientHeight,offset:{vertical:0,horizontal:10}})})}},MG.product.init(),MG.count={set:function(t){cartCount=document.querySelectorAll(".js-cartCount"),cartCount.forEach(function(e){e.hasAttribute("data-count")?e.setAttribute("data-count",t):e.innerHTML=t})}},MG.order={init:function(){this.submit(),this.quickOrder()},submit:function(){$(".js-formOrder").on("submit",function(e){e.preventDefault();var e=$(this),t=this;if(MG.validate.search(t,{name:"2",login:"17",city:"2",street:"2",house:"1"}),0<t.querySelectorAll("input.error").length)return!1;e=e.serialize();return MG.message.processStart(t),$.ajax({type:"POST",url:"/api/order/",cache:!1,data:e,success:function(e){return(e=JSON.parse(e)).ok?(window.location.href=e.url,!1):e.error?(MG.message.processEnd(t),alert(e.msg),!1):e.bad?(alert("Ошибка"),!1):void 0},error:function(e,t){alert("Ошибка сервера: "+e.responseCode)}}),!1})},quickOrder:function(){$(".js-quickOrder").on("submit",function(e){e.preventDefault();var e=$(this),t=this;if(MG.validate.search(t,{order_name:"2",order_phone:"18",order_email:"6"}),0<t.querySelectorAll("input.error").length)return!1;e=e.serialize();return MG.message.processStart(t),$.ajax({type:"POST",url:"/api/order/quick/",cache:!1,data:e,success:function(e){return(e=JSON.parse(e)).ok?(MG.message.message(t,e.msg),MG.message.processEnd(t),MG.modal.reachGoal("form"),!1):e.error?(MG.message.processEnd(t),alert(e.msg),!1):e.bad?(alert("Ошибка"),!1):void 0},error:function(e,t){alert("Ошибка сервера: "+e.responseCode)}}),!1})},reachGoal:function(e){"undefined"!=typeof ym?(ym(56718745,"reachGoal",e),console.log("goal "+e)):console.log("ym no")}},MG.order.init(),PROBA.video={init:function(){this.video(),this.playByTouch()},video:function(){document.querySelectorAll(".js-video").forEach(function(o,e){setTimeout(function(){var e=window.matchMedia("(min-width: 670px)"),t=document.createElement("source"),n=o.nextElementSibling.nextElementSibling;t.setAttribute("type","video/mp4"),o.appendChild(t);var r=o.getAttribute("data-id");e.matches?t.setAttribute("src",srcVideo[r][0]):t.setAttribute("src",srcVideo[r][670]),e.addEventListener("change",function(e){e.matches?t.setAttribute("src",srcVideo[r][0]):t.setAttribute("src",srcVideo[r][670])}),o.addEventListener("playing",function(){n.style.display="none"})},7e3*e)})},playByTouch:function(){var t=document.querySelector(".js-video"),n=document.querySelector(".js-play"),r=!1;document.addEventListener("touchstart",function(){var e;t&&!r&&(void 0!==(e=t.play())&&e.then(function(e){n.style.display="none"}).catch(function(e){console.log("Кнопка есть")}),r=!0)})}},PROBA.video.init();var modalScrollbar=window.Scrollbar;document.querySelectorAll(".js-scrollbar").forEach(function(e){modalScrollbar.init(e,{alwaysShowTracks:!0,thumbMinSize:64})});
//# sourceMappingURL=main.js.map

function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){"use strict";var p,e;function c(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,t=e.width*e.height,e=this.intersectionRect,e=e.width*e.height;this.intersectionRatio=t?Number((e/t).toFixed(4)):this.isIntersecting?1:0}function t(t,e){var n,o,i,e=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(e.root&&1!=e.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function(){i=i||setTimeout(function(){n(),i=null},o)}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(e.rootMargin),this.thresholds=this._initThresholds(e.threshold),this.root=e.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function n(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function o(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function l(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?e=!e.width||!e.height?{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}:e:{top:0,bottom:0,left:0,right:0,width:0,height:0}}function i(t,e){for(var n=e;n;){if(n==t)return!0;n=d(n)}return!1}function d(t){t=t.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}"object"==("undefined"==typeof window?"undefined":_typeof(window))&&("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}):(p=window.document,e=[],t.prototype.THROTTLE_TIMEOUT=100,t.prototype.POLL_INTERVAL=null,t.prototype.USE_MUTATION_OBSERVER=!0,t.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},t.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},t.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},t.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},t.prototype._initThresholds=function(t){t=t||[0];return(t=!Array.isArray(t)?[t]:t).sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||1<t)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},t.prototype._parseRootMargin=function(t){t=(t||"0px").split(/\s+/).map(function(t){t=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},t.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(n(window,"resize",this._checkForIntersections,!0),n(p,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(p,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},t.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(window,"resize",this._checkForIntersections,!0),o(p,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},t.prototype._checkForIntersections=function(){var s=this._rootIsInDom(),h=s?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(t){var e=t.element,n=l(e),o=this._rootContainsTarget(e),i=t.entry,r=s&&o&&this._computeTargetAndRootIntersection(e,h),r=t.entry=new c({time:window.performance&&performance.now&&performance.now(),target:e,boundingClientRect:n,rootBounds:h,intersectionRect:r});i?s&&o?this._hasCrossedThreshold(i,r)&&this._queuedEntries.push(r):i&&i.isIntersecting&&this._queuedEntries.push(r):this._queuedEntries.push(r)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},t.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=window.getComputedStyle(t).display){for(var n,o,i,r,s=l(t),h=d(t),c=!1;!c;){var u=null,a=1==h.nodeType?window.getComputedStyle(h):{};if("none"==a.display)return;if(h==this.root||h==p?(c=!0,u=e):h!=p.body&&h!=p.documentElement&&"visible"!=a.overflow&&(u=l(h)),u&&(i=u,r=s,n=Math.max(i.top,r.top),o=Math.min(i.bottom,r.bottom),a=Math.max(i.left,r.left),u=o-n,!(s=0<=(r=(i=Math.min(i.right,r.right))-a)&&0<=u&&{top:n,bottom:o,left:a,right:i,width:r,height:u})))break;h=d(h)}return s}},t.prototype._getRootRect=function(){var t,e;return e=this.root?l(this.root):(t=p.documentElement,e=p.body,{top:0,left:0,right:t.clientWidth||e.clientWidth,width:t.clientWidth||e.clientWidth,bottom:t.clientHeight||e.clientHeight,height:t.clientHeight||e.clientHeight}),this._expandRectByRootMargin(e)},t.prototype._expandRectByRootMargin=function(n){var t=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?n.width:n.height)/100}),t={top:n.top-t[0],right:n.right+t[1],bottom:n.bottom+t[2],left:n.left-t[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t},t.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},t.prototype._rootIsInDom=function(){return!this.root||i(p,this.root)},t.prototype._rootContainsTarget=function(t){return i(this.root||p,t)},t.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},t.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=t,window.IntersectionObserverEntry=c))}();
//# sourceMappingURL=lazy-polyfill.js.map

function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=e(t):"function"==typeof define&&define.amd?define([],e):t.LazyLoad=e(t)}("undefined"!=typeof global?global:this.window||this.global,function(t){"use strict";"function"==typeof define&&define.amd&&(t=window);function i(){var s={},r=!1,t=0,e=arguments.length;for("[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(r=arguments[0],t++);t<e;t++)!function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r&&"[object Object]"===Object.prototype.toString.call(t[e])?s[e]=i(!0,s[e],t[e]):s[e]=t[e])}(arguments[t]);return s}var s={src:"data-src",srcset:"data-srcset",selector:".lazyload",isLoading:null,slide:"swiper-container",bg:"lazy_bg",frame:"lazy_frame",func:"lazy_func",stop:"data-stop",update:"data-update",simple:"lazy_simple",root:null,rootMargin:"0px",threshold:0};function r(t,e){this.settings=i(s,e||{}),this.images=t||document.querySelectorAll(this.settings.selector),this.observer=null,this.slide=document.querySelectorAll(this.settings.slide),this.init()}return r.prototype={init:function(){var o=this,t={root:this.settings.root,rootMargin:this.settings.rootMargin,threshold:[this.settings.threshold]};this.observer=new IntersectionObserver(function(t){Array.prototype.forEach.call(t,function(t){var e,s,r,i,a;t.isIntersecting?(e=t.target.getAttribute(o.settings.src),s=t.target.getAttribute(o.settings.srcset),"img"===t.target.tagName.toLowerCase()?(o.observer.unobserve(t.target),e&&(t.target.src=e),s&&(t.target.srcset=s)):"picture"===t.target.tagName.toLowerCase()?(o.observer.unobserve(t.target),t.target.querySelectorAll("source").forEach(function(t){var e=t.getAttribute(o.settings.srcset);e&&(t.srcset=e)})):"video"===t.target.tagName.toLowerCase()?t.target.classList.contains(o.settings.simple)||(e=t.target.getAttribute("data-src"),s=t.target.getAttribute("data-srcset"),document.body.clientWidth<670||window.devicePixelRatio<2?t.target.src=e:t.target.src=s,o.observer.unobserve(t.target)):t.target.classList.contains(o.settings.bg)&&!t.target.classList.contains(o.settings.slide)?(window.devicePixelRatio<2?null===(r=t.target.getAttribute("data-src"))&&(r=t.target.getAttribute("data-all")):null===(r=t.target.getAttribute("data-src-2x"))&&(r=t.target.getAttribute("data-all")),o.observer.unobserve(t.target),r&&(t.target.style.backgroundImage="url("+r+")")):t.target.classList.contains(o.settings.frame)&&!t.target.classList.contains(o.settings.slide)?(i=t.target.getAttribute("data-src"),o.observer.unobserve(t.target),t.target.src=i):t.target.classList.contains(o.settings.func)&&!t.target.classList.contains(o.settings.slide)&&(i=t.target.getAttribute("data-func"),o.observer.unobserve(t.target),MG.lazyload.init(i)),t.target.classList.contains(o.settings.slide)&&(a=t.target.id,t.target.classList.contains("swiper-initialized")&&(window[a].autoplay.start(),t.target.setAttribute(o.settings.stop,"false"),"false"==t.target.getAttribute("data-update")&&(setTimeout(function(){window[a].update()},1e3),t.target.setAttribute(o.settings.update,"true")))),t.target.classList.add("loaded"),o.settings.isLoading&&t.target.addEventListener("load",function(){t.target.classList.remove(isLoading)})):"false"==t.target.getAttribute("data-stop")&&t.target.classList.contains(o.settings.slide)&&(a=t.target.id,window[a].autoplay.stop(),t.target.setAttribute(o.settings.stop,"true"))})},t),Array.prototype.forEach.call(this.images,function(t){o.observer.observe(t)})},loadAndDestroy:function(){this.settings&&this.destroy()},destroy:function(){this.settings&&(this.observer.disconnect(),this.settings=null)}},t.lazyload=function(t,e){return new r(t,e)},r});
//# sourceMappingURL=lazy.js.map


