PageSourceSearch

https://centrluch.ru/local/templates/rossait/js/app.js

js centrluch.ru collected 2026-10-08 03:27:49 UTC 25,559 bytes, 1 lines download raw bytes

1function _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},_typeof(e)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:String(t)}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw s}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}!function(e){"function"==typeof define&&define.amd?define("app",e):e()}((function(){"use strict";document.querySelector("[data-spollers]")&&function(){var r=document.querySelectorAll("[data-spollers]");if(r.forEach((function(e){if(e){var t=e.querySelectorAll('[class*="_item"]');e.classList.add("spollers"),t.forEach((function(e){if(e){var t=e.querySelector('[class*="_title"]'),r=e.querySelector('[class*="_body"]');e.classList.add("spollers__item"),t&&t.classList.add("spollers__title"),r&&r.classList.add("spollers__body")}}))}})),r.length>0){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.forEach((function(e){e=t?e.item:e,t.matches||!t?(e.classList.add("_spoller-init"),o(e),e.addEventListener("click",s)):(e.classList.remove("_spoller-init"),o(e,!1),e.removeEventListener("click",s))}))},o=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.querySelectorAll("[data-spoller]");r.length&&(r=Array.from(r).filter((function(t){return t.closest("[data-spollers]")===e}))).forEach((function(e){t?(e.removeAttribute("tabindex"),e.classList.contains("_spoller-active")||(e.closest(".spollers__item").querySelector(".spollers__body").hidden=!0)):(e.setAttribute("tabindex","-1"),e.closest(".spollers__item").querySelector(".spollers__body").hidden=!1)}))},s=function(e){var r=e.target;if(r.closest("[data-spoller]")){var n=r.closest("[data-spoller]"),o=n.closest("[data-spollers]"),s=o.hasAttribute("data-one-spoller"),a=o.dataset.spollersSpeed?parseInt(o.dataset.spollersSpeed):500;o.querySelectorAll("._slide").length||(s&&!n.classList.contains("_spoller-active")&&i(o),n.classList.toggle("_spoller-active"),t(n.closest(".spollers__item").querySelector(".spollers__body"),a)),e.preventDefault()}},i=function(t){var r=t.querySelector("[data-spoller]._spoller-active"),n=t.dataset.spollersSpeed?parseInt(t.dataset.spollersSpeed):500;r&&!t.querySelectorAll("._slide").length&&(r.classList.remove("_spoller-active"),e(r.nextElementSibling,n))},a=Array.from(r).filter((function(e,t,r){return!e.dataset.spollers.split(",")[0]}));a.length&&n(a);var l=function(e,t){var r=Array.from(e).filter((function(e,r,n){if(e.dataset[t])return e.dataset[t].split(",")[0]}));if(r.length){var n=[];r.forEach((function(e){var r={},o=e.dataset[t].split(",");r.value=o[0],r.type=o[1]?o[1].trim():"max",r.item=e,n.push(r)}));var o=n.map((function(e){return"("+e.type+"-width: "+e.value+"px),"+e.value+","+e.type}));o=function(e){return e.filter((function(e,t,r){return r.indexOf(e)===t}))}(o);var s=[];if(o.length)return o.forEach((function(e){var t=e.split(","),r=t[1],o=t[2],i=window.matchMedia(t[0]),a=n.filter((function(e){if(e.value===r&&e.type===o)return!0}));s.push({itemsArray:a,matchMedia:i})})),s}}(r,"spollers");l&&l.length&&l.forEach((function(e){e.matchMedia.addEventListener("change",(function(){n(e.itemsArray,e.matchMedia)})),n(e.itemsArray,e.matchMedia)}));var c=document.querySelectorAll("[data-spoller-close]");c.length&&document.addEventListener("click",(function(t){t.target.closest("[data-spollers]")||c.forEac
1h((function(t){var r=t.closest("[data-spollers]");if(r.classList.contains("_spoller-init")){var n=r.dataset.spollersSpeed?parseInt(r.dataset.spollersSpeed):500;t.classList.remove("_spoller-active"),e(t.nextElementSibling,n)}}))}))}}();var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;e.classList.contains("_slide")||(e.classList.add("_slide"),e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout((function(){e.hidden=!0,e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("_slide")}),t))},t=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return t.hidden?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;if(!e.classList.contains("_slide")){e.classList.add("_slide"),e.hidden&&(e.hidden=!1);var r=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=r+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout((function(){e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("_slide")}),t)}}(t,r):e(t,r)};var r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},n=function(){function e(e,t,n){var o=this;this.endVal=t,this.options=n,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){o.startTime||(o.startTime=e);var t=e-o.startTime;o.remaining=o.duration-t,o.useEasing?o.countDown?o.frameVal=o.startVal-o.easingFn(t,0,o.startVal-o.endVal,o.duration):o.frameVal=o.easingFn(t,o.startVal,o.endVal-o.startVal,o.duration):o.frameVal=o.startVal+(o.endVal-o.startVal)*(t/o.duration);var r=o.countDown?o.frameVal<o.endVal:o.frameVal>o.endVal;o.frameVal=r?o.endVal:o.frameVal,o.frameVal=Number(o.frameVal.toFixed(o.options.decimalPlaces)),o.printValue(o.frameVal),t<o.duration?o.rAF=requestAnimationFrame(o.count):null!==o.finalEndVal?o.update(o.finalEndVal):o.options.onCompleteCallback&&o.options.onCompleteCallback()},this.formatNumber=function(e){var t,r,n,s,i=e<0?"-":"";t=Math.abs(e).toFixed(o.options.decimalPlaces);var a=(t+="").split(".");if(r=a[0],n=a.length>1?o.options.decimal+a[1]:"",o.options.useGrouping){s="";for(var l=3,c=0,u=0,d=r.length;u<d;++u)o.options.useIndianSeparators&&4===u&&(l=2,c=1),0!==u&&c%l==0&&(s=o.options.separator+s),c++,s=r[d-u-1]+s;r=s}return o.options.numerals&&o.options.numerals.length&&(r=r.replace(/[0-9]/g,(function(e){return o.options.numerals[+e]})),n=n.replace(/[0-9]/g,(function(e){return o.options.numerals[+e]}))),i+o.options.prefix+r+n+o.options.suffix},this.easeOutExpo=function(e,t,r,n){return r*(1-Math.pow(2,-10*e/n))*1024/1023+t},this.options=r(r({},this.defaults),n),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(t),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof e?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return o.handleScroll(o)})),window.onscroll=function(){window.onScrollFns.forEach((function(e){return e()}))},this.handleScroll(this)))}return e.prototype.handleScroll=function(e){if(e&&window&&!e.once){var t=window.innerHeight+window.scrollY,r=e.el.getBoundingClientRect(),n=r.top+window.pageYOffset,o=r.top+r.height+window.pageYOffset;o<t&&o>window.scrollY&&e.paused?(e.paused=!1,setTimeout((function(){return e.start()}),e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>o||n>t)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var r=this.countDown?1:-1;
1this.endVal=e+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var r=this.formattingFn(e);if(null===(t=this.options.plugin)||void 0===t?void 0:t.render)this.options.plugin.render(this.el,r);else if("INPUT"===this.el.tagName)this.el.value=r;else"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();document.querySelectorAll(".counter").forEach((function(e){var t,r=e.textContent,o=null===(t=r.toString().match(/\.(\d+)/))||void 0===t?void 0:t[1].length;new n(e,r,{decimalPlaces:o||0,useGrouping:!0,useIndianSeparators:!1,separator:" ",decimal:",",enableScrollSpy:!0,scrollSpyOnce:!0,duration:2})}));var o=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);function s(e){var t=e.target;o&&(t.closest(".menu__dropdown-arrow")&&t.closest(".menu__dropdown").classList.toggle("hover"),t.closest(".menu__list")||document.querySelectorAll(".menu__dropdown.hover").forEach((function(e,t){e.classList.remove("hover")}))),t.closest(".menu-burger")&&(t.closest(".menu-burger").classList.toggle("active"),document.body.classList.toggle("mobile-menu-opened"),document.querySelector(".menu:not(.second-menu)").classList.toggle("active"),document.querySelector("[data-js-overlay]").classList.toggle("active")),t.closest(".mobile-menu-close")&&(document.querySelector(".menu-burger").classList.toggle("active"),document.body.classList.toggle("mobile-menu-opened"),document.querySelector(".menu:not(.second-menu)").classList.toggle("active"),document.querySelector("[data-js-overlay]").classList.toggle("active")),t.closest(".menu__dropdown-arrow")&&t.nextElementSibling.classList.add("is-active"),t.closest(".switch-back")&&t.parentNode.classList.remove("is-active");var r=document.querySelector(".header-search input");t.closest(".header-search-open")&&(document.body.classList.contains("search-is-open")?document.body.classList.remove("search-is-open"):(document.body.classList.add("search-is-open"),r.focus())),document.body.classList.contains("search-is-open")&&(t.closest(".header")||document.body.classList.remove("search-is-open"),t.closest('.header-search button[type="reset"]')&&document.body.classList.remove("search-is-open")),o&&t.closest(".lang-picker")&&t.closest(".lang-picker").classList.toggle("hover")}function i(){a.forEach((function(e){!function(e){var t=e.elements,r=e.duration,n=e.delay,o=e.direction,s=document.querySelectorAll(t),i={"bottom-up":{from:{opacity:0,transform:"translateY(100px)"},to:{opacity:1,transform:"translateY(0)"}},"up-bottom":{from:{opacity:0,transform:"translateY(-30px)"},to:{opacity:1,transform:"translateY(0)"}},"left-right":{from:{opacity:0,transform:"translateX(-100px)"},to:{opacity:1,transform:"translateX(0)"}},"right-left":{from:{opacity:0,transform:"translateX(100px)"},to:{opacity:1,transform:"translateX(0)"}},fade:{from:{opacity:0}
1,to:{opacity:1}},scale:{from:{transform:"scale(0)",opacity:0},to:{transform:"scale(1)",opacity:1}},rotate:{from:{transform:"rotateY(90deg)"},to:{transform:"rotateY(0deg)"}}},a={root:null,rootMargin:"0px",threshold:.1};s.forEach((function(e){e.setAttribute("data-original-style",e.getAttribute("style")||"");var t=(i[o.replace("--every","")]||{from:{}}).from;Object.assign(e.style,t),e.style.transition="all ".concat(r,"s ease-out"),e.setAttribute("data-animation","false")}));var l=new IntersectionObserver((function(e){e.forEach((function(e,t){if(e.isIntersecting&&"false"===e.target.getAttribute("data-animation")){e.target.setAttribute("data-animation","true");var s=i[o.replace("--every","")];if(s){var a=n+(o.includes("--every")?n*t:0);setTimeout((function(){Object.assign(e.target.style,s.to),setTimeout((function(){e.target.setAttribute("style",e.target.getAttribute("data-original-style"))}),1e3*r)}),1e3*a)}l.unobserve(e.target)}}))}),a);s.forEach((function(e){return l.observe(e)}))}({elements:e.elements,duration:e.duration||.5,delay:e.delay||.2,direction:e.direction||"bottom-up"})}))}var a=[{elements:".about"},{elements:".services__head"},{elements:".services__item",direction:"bottom-up--every"},{elements:".rs-metrics-2__wrapper"},{elements:".fos__column",direction:"bottom-up--every"},{elements:".rs-feedback__head"},{elements:".feedback-card",direction:"bottom-up--every"},{elements:".footer__column",direction:"bottom-up--every"},{elements:".rs-banner"},{elements:".room-catalog__filter"},{elements:".room-card",direction:"bottom-up--every"},{elements:".single-room-head"},{elements:".single-room-gallery"},{elements:".single-room-content"},{elements:".team__head"},{elements:".team-card",direction:"bottom-up--every"},{elements:".rs-worker__column",direction:"bottom-up--every"},{elements:".vacancy-card",direction:"bottom-up--every"},{elements:".contacts__head"},{elements:".contacts-grid > *",direction:"bottom-up--every"},{elements:".ya-map"}];var l=function(){function e(t){_classCallCheck(this,e),this.$component=t,this.$slider=this.$component.querySelector('[class*="__slider"]'),this.paging=this.$component.querySelector('[class*="-paging"]'),this.render()}return _createClass(e,[{key:"render",value:function(){this.swiper=new Swiper(this.$slider,{slidesPerView:1,spaceBetween:0,autoHeight:!1,speed:600,loop:!0,effect:"fade",fadeEffect:{crossFade:!0},pagination:{el:this.paging,type:"bullets",clickable:!0}})}}]),e}();var c=function(){function e(t){_classCallCheck(this,e),this.$component=t,this.$slider=this.$component.querySelector('[class*="__slider"]'),this.arrowNext=this.$component.querySelector('[class*="_next"]'),this.arrowPrev=this.$component.querySelector('[class*="_prev"]'),this.paging=this.$component.querySelector('[class*="-paging"]'),this.render()}return _createClass(e,[{key:"render",value:function(){this.swiper=new Swiper(this.$slider,{slidesPerView:1,spaceBetween:0,autoHeight:!1,speed:800,grabCursor:!0,pagination:{el:this.paging,type:"bullets",clickable:!0},navigation:{nextEl:this.arrowNext,prevEl:this.arrowPrev}})}}]),e}();var u=function(){function e(t){_classCallCheck(this,e),this.$component=t,this.$slider=this.$component.querySelector('[class*="__slider"]'),this.arrowNext=this.$component.querySelector('[class*="_next"]'),this.arrowPrev=this.$component.querySelector('[class*="_prev"]'),this.paging=this.$component.querySelector('[class*="-paging"]'),this.render()}return _createClass(e,[{key:"render",value:function(){this.swiper=new Swiper(this.$slider,{slidesPerView:1.2,spaceBetween:30,autoHeight:!1,speed:500,loop:!1,pagination:{el:this.paging,type:"bullets",clickable:!0},navigation:{nextEl:this.arrowNext,prevEl:this.arrowPrev},breakpoints:{767.98:{slidesPerView:2},1023.98:{slidesPerView:3}}})}}]),e}();var d=function(){function e(t){_classCallCheck(this,e),this.$component=t,this.$slider=this.$component.querySelector('[class*="__slider"]'),this.paging=this.$component.querySelector('[class*="-paging"]'),this.render()}return _createClass(e,[{key:"render",value:function(){this.swiper=new Swiper(this.$slider,{slidesPerView:1,spaceBetween:0,autoHeight:!1,speed:800,loop:!1,pagination:{el:this.paging,type:"fraction",renderFraction:function(e,t){return'<span class="'+e+'"></span> РёР· <span class="'+t+'"></span>'}}})}}]),e}();var p=function(){function e(t){_classCallCheck(this,e),this.$component=t,this.$form=t.querySelector(".team-filter-form"),this.$count=t.querySelector(".count"),this.checkboxes=t.querySelectorAll('input[type="checkbox"]'),this.count=0,this.render()}return _createClass(e,[{key:"render",value:function(){var e=this;this.$form.addEventListener("input",(function(t){e.checkboxes.forEac
1h((function(t){t.checked&&(e.count=e.count+1)})),e.count>0?e.$count.textContent=e.count<10?"0"+e.count:e.count:e.$count.textContent="",e.count=0}))}}]),e}();function h(){document.querySelectorAll(".content-tabs").forEach((function(e){!function(e){var t=_objectSpread({anchor:!0,history:!0,sectionClass:"tab-section",tabsClass:"tabs",tabClass:"tab",selClass:"sel",onClose:null,onBefore:null,onAfter:null},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=document.createElement("nav");r.setAttribute("role","tablist");var n={};r.classList.add(t.tabsClass),e.classList.add("tinytabs"),e.prepend(r);var o=null;Array.from(e.querySelectorAll(".".concat(t.sectionClass))).forEach((function(e){var a=e.id;if(a){o&&!e.dataset.default||(o=a),n[a]={section:e};var l=e.dataset.name||"Tab",c=document.createElement("button");if(c.className="".concat(t.tabClass," ").concat(a),c.setAttribute("role","tab"),c.dataset.id=a,c.innerText=l,"closable"in e.dataset){var u=document.createElement("span");u.className="tab-close",u.innerHTML="×",u.setAttribute("role","button"),u.setAttribute("aria-label","Close tab"),u.onclick=function(e){i(a),e.stopPropagation()},n[a]=_objectSpread(_objectSpread({},n[a]),{},{tab:c}),c.append(u)}c.onclick=function(e){return s(a),t.anchor},n[a].tab=c,r.append(c)}}));var s=function(e){var r,o,s=n[e];return!!s&&(null===(r=t.onBefore)||void 0===r||r.call(t,e),a(),s.tab.classList.add(t.selClass),s.section.style.display="block",null===(o=t.onAfter)||void 0===o||o.call(t,e),t.anchor&&(location.hash="".concat(e)),!0)},i=function(e){var r,i=n[e];if(!i)return!1;var a=i.tab.previousElementSibling,l=i.tab.nextElementSibling;i.tab.remove(),i.section.remove(),delete n[e],null===(r=t.onClose)||void 0===r||r.call(t,e),s((null==l?void 0:l.dataset.id)||(null==a?void 0:a.dataset.id)||o)},a=function(){Object.keys(n).forEach((function(e){var r=n[e];r.section.style.display="none",r.tab.classList.remove(t.selClass)}))},l=location.hash.replace("#","");s(t.anchor&&l&&n[l]?l:o),t.history&&window.addEventListener("popstate",(function(){return s(location.hash.replace("#",""))}))}(e,{anchor:!1,sectionClass:"content-tabs__section",tabsClass:"content-tabs__tabs",tabClass:"content-tabs__tab"})}))}window.addEventListener("DOMContentLoaded",(function(e){var t;document.body.classList.add("content-loaded"),document.addEventListener("click",s),function(){var e=document.querySelector("header");if(e){var t=document.body,r=e.getBoundingClientRect().top,n=0,o=!1;window.addEventListener("scroll",(function(){o||(window.requestAnimationFrame(s),o=!0)})),s()}function s(){var s=window.pageYOffset||document.documentElement.scrollTop;t.classList.add("header-is-show"),e.classList.toggle("_header-scroll",s>r),s>300&&(s>n?(e.style.transform="translateY(-".concat(e.clientHeight+1,"px)"),t.classList.remove("header-is-show")):(e.style.transform="translateY(0)",t.classList.add("header-is-show"))),n=s<=0?0:s,o=!1}}(),(t=document.querySelectorAll('[class*="__swiper"]:not(.swiper-wrapper)'))&&t.forEach((function(e){e.parentElement.classList.add("swiper"),e.classList.add("swiper-wrapper");var t,r=_createForOfIteratorHelper(e.children);try{for(r.s();!(t=r.n()).done;)t.value.classList.add("swiper-slide")}catch(e){r.e(e)}finally{r.f()}})),document.querySelectorAll(".hero-slider").forEach((function(e){new l(e)})),document.querySelectorAll(".content-slider").forEach((function(e){new u(e)})),document.querySelectorAll(".pst-gallery").forEach((function(e){new c(e)})),document.querySelectorAll(".fbx-gallery").forEach((function(e){new d(e)})),document.querySelectorAll(".input-file").forEach((function(e,t){var r=e.querySelector("label");e.querySelector("input").onchange=function(){var e="";(e=this.files&&this.files.length>1?"Выбрано "+this.files.length+" файла(ов)":this.value.replace(/C:\\fakepath\\/i,""))&&(r.innerHTML=e)}})),i(),function(){if(document.querySelector(".screen-split")){var e=gsap.utils.toArray(".screen-split .features-card:not(:first-child)"),t=gsap.utils.toArray(".screen-split .desktop-photo:not(:first-child)");gsap.set(t,{yPercent:101}),gsap.utils.toArray(".screen-split .desktop-photo"),gsap.matchMedia().add("(min-width: 1023.98px)",(function(){return ScrollTrigger.create({trigger:".gallery",start:"top top",end:"bottom bottom",pin:".gallery__media"}),e.forEach((function(e,r){var n=gsap.timeline().to(t[r],{yPercent:0});ScrollTrigger.create({trigger:e,start:"top 70%",end:"top 30%",animation:n,scrub:!0,markers:!1})})),function(){}}))}}(),document.querySelectorAll(".team-filter").forEach((function(e){new p(e)})),h(),Fancybox.bind("[data-fancybox]",{})}))}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.