1function getSliderSectionsHTML(elementsHTML){var html="",sectionSliderClass="stories-popup__section-slider",sectionSliderInnerClass;return html+='<div class="'+sectionSliderClass+'">',html+='<div class="'+sectionSliderClass+'-loader"><svg width="48" height="48" viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="M 150,0 a 150,150 0 0,1 106.066,256.066 l -35.355,-35.355 a -100,-100 0 0,0 -70.711,-170.711 z" fill="#0000001a"><animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0 150 150" to="360 150 150" begin="0s" dur=".8s" fill="freeze" repeatCount="indefinite"></animateTransform></path></svg></div>',html+='<div class="'+"stories-popup__section-slider-inner"+'">',html+=elementsHTML,html+="</div>",html+="</div>"}function getSliderElementsHTML(elementsHTML,elementsCount,sectionInfo){var html="",elementSliderClass="stories-popup__element-slider"+(sectionInfo.current?" stories-popup__element-slider--active":" stories-popup__element-slider--paused"),elementSliderHeaderClass="stories-popup__element-slider-header",elementSliderHeaderImgClass="stories-popup__element-slider-header-img",elementSliderHeaderNameClass="stories-popup__element-slider-header-name",elementSliderElementsWrapperClass="stories-popup__element-slider-elements",animationDefaultTime=5,topPanelHtml="",topPanelClass,topPanelElementClass="stories-popup__element-slider-panel-element";topPanelHtml+='<div class="'+"stories-popup__element-slider-panel"+'">';for(var i=0;i<elementsCount;i++)topPanelHtml+='<div class="'+topPanelElementClass+(0==i?" "+topPanelElementClass+"--active":"")+'"><div class="'+topPanelElementClass+'-line" style="animation-duration: 5s;"></div></div>';return topPanelHtml+="</div>",html+='<div class="'+elementSliderClass+'" data-section-id="'+sectionInfo.ID+'">',html+='<div class="'+elementSliderElementsWrapperClass+'">',html+=elementsHTML,html+="</div>",html+=topPanelHtml,html+='<div class="'+elementSliderHeaderClass+'">',sectionInfo.PICTURE&&(html+='<div class="'+elementSliderHeaderImgClass+'" style="background: url('+sectionInfo.PICTURE+') no-repeat center;" ></div>'),html+='<div class="'+elementSliderHeaderNameClass+'">'+sectionInfo.NAME+"</div>",html+="</div>",html+="</div>"}function generateElementHtml(elementInfo,elementKey){var html="",elementWrapperClass,elementImgClass="stories-popup__element-image",elementButtonClass="stories-popup__element-btn",elementSliderElementsNavWrapperClass="stories-popup__element-slider-navs",elementSliderElementsNavPrevClass="stories-popup__element-slider-navs-prev",elementSliderElementsNavNextClass="stories-popup__element-slider-navs-next";if(html+='<div class="'+("stories-popup__element"+(elementKey>0?"":" stories-popup__element--active"))+'" data-id="'+elementInfo.ID+'">',html+='<div class="'+elementImgClass+'" style="background: url('+elementInfo.PREVIEW_PICTURE+') no-repeat center;" ></div>',elementInfo.PROPERTY_BTN_TEXT_VALUE){var elementButtonTag=elementInfo.PROPERTY_BTN_LINK_VALUE?"a":"div",elementButtonHref;html+="<"+elementButtonTag+(elementInfo.PROPERTY_BTN_LINK_VALUE?' href="'+elementInfo.PROPERTY_BTN_LINK_VALUE+'"':"")+' class="btn '+elementButtonClass+" "+elementInfo.PROPERTY_BTN_CLASS_VALUE+'" >'+elementInfo.PROPERTY_BTN_TEXT_VALUE+"</"+elementButtonTag+">"}return html+='<div class="stories-popup__element-slider-navs"><div class="'+elementSliderElementsNavPrevClass+'"></div><div class="'+elementSliderElementsNavNextClass+'"></div></div>',html+="</div>"}function afterShowActions(sectionInfo){sectionsSliderInit(sectionInfo)}function sectionsSliderInit(sections){var index=0,activeSectionIndex=0;for(var key in sections){if(sections[key].current){activeSectionIndex=index;break}index++}var options={popup:$(".stories-popup"),activeSlideIndex:activeSectionIndex,activeSlideClass:"stories-popup__element-slider--active",pausedSlideClass:"stories-popup__element-slider--paused",slidesSelector:".stories-popup__element-slider",innerSelector:"> .stories-popup__section-slider-inner",activeElementClass:"stories-popup__element--active",elementsSelector:".stories-popup__element",elementNavPrevClass:"stories-popup__element-slider-navs-prev",elementNavNextClass:"stories-popup__element-slider-navs-next",elementPanelClass:"stories-popup__element-slider-panel-element",elementPanelActiveClass:"stories-popup__element-slider-panel-element--active",elementPanelFinishedClass:"stories-popup__element-slider-panel-element--finishied",changeSlideTime:5e3,transition:.25,activeSlideMargin:8,dragAmount:150,mobile:!1,breakpoints:{"(max-width: 1025px)":{activeSlideMargin:4},"(max-width: 566px)":{mobile:!0}}};
1InitAsproStoriesSectionSlider($(".stories-popup__section-slider"),options)}function generateSectionsHtml(sections,sectionData){var html="";html+=getPopupCloseIcon();var elementsHTML="";for(var sectionKey in sections){var section=sections[sectionKey];section.ID==sectionData.sectionId&&(section.current=!0),elementsHTML+=generateElementsHtml(section)}return html+=getSliderSectionsHTML(elementsHTML)}function generateElementsHtml(sectionInfo){var html="",elementsHTML="",elements=sectionInfo.CHILDS,elementsHTML="";for(var elementKey in elements){var element;elementsHTML+=generateElementHtml(elements[elementKey],elementKey)}return html+=getSliderElementsHTML(elementsHTML,elements.length,sectionInfo)}function getPopupCloseIcon(){var iconClass,icon;return'<div class="'+"stories-popup__close"+'"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L13 13M13 1L1 13" stroke="white" stroke-width="2" stroke-linecap="round"/></svg></div>'}function InitAsproStoriesSectionSlider(el,options){el.asproStoriesSectionsSlider(options)}$(document).on("touchstart",".front_stories .item",(function(e){window.touchStoriesX=e.originalEvent.changedTouches[0].clientX,window.touchStoriesY=e.originalEvent.changedTouches[0].clientY,setTimeout((function(){window.touchStoriesX=!1,window.touchStoriesY=!1}),300)})),$(document).on("touchend",".front_stories .item",(function(e){window.touchStoriesX==e.originalEvent.changedTouches[0].clientX&&window.touchStoriesY==e.originalEvent.changedTouches[0].clientY&&$(this).trigger("click")})),document.addEventListener("keydown",(function(e){27==e.keyCode&&$(".stories-popup").click()})),$(document).on("click",".front_stories .item",(function(){if(!window.asproStoriesLoading){window.asproStoriesLoading=!0;var _this=$(this),storiesPopupWrapper=$("body > .stories-popup");storiesPopupWrapper.length||(storiesPopupWrapper=$('<div class="stories-popup"></div>'));var ajaxData={sectionData:_this.data(),sortData:_this.closest(".front_stories").data()};$.ajax({url:arAsproOptions.SITE_DIR+"ajax/storiesInfo.php",data:ajaxData,dataType:"json",type:"POST",success:function(result){if(result&&result.error)console.log("Fail get stories! Reason: "+result.error);else if(result&&"object"==typeof result){var html=generateSectionsHtml(result,_this.data());html&&(storiesPopupWrapper.html(html),storiesPopupWrapper.addClass("stories-popup--visible"),$("body").append(storiesPopupWrapper),afterShowActions(result))}else console.log("Fail get stories! Reason: result is "+result);window.asproStoriesLoading=!1},error:function(jqXHR,error,errorThrown){console.log("Fail get stories! Reason: "+errorThrown),window.asproStoriesLoading=!1}})}})),$(document).on("click",".stories-popup__close",(function(){var _this,popup;$(this).parents(".stories-popup").remove()})),$(document).on("click",".stories-popup",(function(e){var _this=$(this),_target,popup;$(e.target).hasClass("stories-popup")&&_this.closest(".stories-popup").remove()})),$(document).on("click",".front_stories .top_block a",(function(e){e.preventDefault(),$(".front_stories .item").eq(0).trigger("click")})),$.fn.asproStoriesSectionsSlider=function(options){function _storiesSlider(slider,options){var _slider=$(slider),responsiveOptions=Object.assign({},options);for(var width in options.breakpoints)window.matchMedia(width).matches&&(responsiveOptions=Object.assign(responsiveOptions,options.breakpoints[width]));responsiveOptions.setStyles=function(){responsiveOptions.sliderInner.css({display:"flex","align-items":"center",transition:"margin-left "+responsiveOptions.transition+"s ease-in-out","margin-left":responsiveOptions.calculateMargin(responsiveOptions.activeSlideIndex)}),responsiveOptions.slider.css({overflow:"hidden"})},responsiveOptions.getCurrentSizes=function(){responsiveOptions.sliderWidth=responsiveOptions.slider.outerWidth(!0),responsiveOptions.sliderHeight=responsiveOptions.slider.outerHeight(!0),responsiveOptions.updateSlidesHeight()},responsiveOptions.calculateMargin=function(slideIndex){responsiveOptions.getCurrentSizes(),responsiveOptions.mobile?responsiveOptions.sliderInnerMargin=-responsiveOptions.slideWidth*(slideIndex+1)+responsiveOptions.sliderWidth/2+responsiveOptions.slideWidth/2:responsiveOptions.sliderInnerMargin=-responsiveOptions.slideWidth*(slideIndex+1)+responsiveOptions.sliderWidth/2+responsiveOptions.slideWidth/2-responsiveOptions.sliderWidth/100*responsiveOptions.activeSlideMargin},responsiveOptions.setCenter=function(slideIndex){responsiveOptions.calculateMargin(slideIndex),responsiveOptions.sliderInner.css({"margin-left":responsiveOptions.sliderInnerMargin})},responsiveOptions.closePopup=function(){responsiveOptions.popup.remove()},responsiveOptions.setActive=function(slideIndex){responsiveOptions.activeSlide.removeClass(responsiveOptions.activeSlideClass).addClass(responsiveOptions.pausedSlideClass),$(responsiveOptions.activeSlide.panelElements[responsiveOptions.activeElements[responsiveOptions.activeSlideIndex]]).removeClass(responsiveOptions.elementPanelActiveClass),responsiveOptions.activeSlideIndex=sli
1deIndex,responsiveOptions.activeSlide=$(responsiveOptions.slides[responsiveOptions.activeSlideIndex]),responsiveOptions.activeSlide.addClass(responsiveOptions.activeSlideClass).removeClass(responsiveOptions.pausedSlideClass),responsiveOptions.activeSlide.elements=null,responsiveOptions.activeSlide.panelElements=null,responsiveOptions.updateElementsInfo(responsiveOptions.activeSlide),responsiveOptions.setActiveElement(responsiveOptions.activeSlide,0),responsiveOptions.setCenter(slideIndex)},responsiveOptions.updateElementsInfo=function(slide){slide.elements&&slide.panelElements||(slide.elements=slide.find(responsiveOptions.elementsSelector),slide.panelElements=slide.find("."+responsiveOptions.elementPanelClass)),responsiveOptions.activeElements[slide.index()]||(responsiveOptions.activeElements[slide.index()]=0)},responsiveOptions.setNext=function(){responsiveOptions.activeSlideIndex+1<responsiveOptions.slides.length?responsiveOptions.setActive(responsiveOptions.activeSlideIndex+1):responsiveOptions.closePopup()},responsiveOptions.setPrev=function(){responsiveOptions.activeSlideIndex>0&&responsiveOptions.setActive(responsiveOptions.activeSlideIndex-1)},responsiveOptions.setNextElement=function(){responsiveOptions.updateElementsInfo(responsiveOptions.activeSlide),responsiveOptions.elementTimerContinue=null,responsiveOptions.activeElements[responsiveOptions.activeSlideIndex]+1<responsiveOptions.activeSlide.elements.length?responsiveOptions.setActiveElement(responsiveOptions.activeSlide,1):(responsiveOptions.clearSlide(responsiveOptions.activeSlide),responsiveOptions.setNext())},responsiveOptions.setPrevElement=function(){responsiveOptions.updateElementsInfo(responsiveOptions.activeSlide),responsiveOptions.activeElements[responsiveOptions.activeSlideIndex]>0?responsiveOptions.setActiveElement(responsiveOptions.activeSlide,-1):(responsiveOptions.clearSlide(responsiveOptions.activeSlide),responsiveOptions.setPrev())},responsiveOptions.clearSlide=function(slide){},responsiveOptions.setActiveElement=function(slide,newActiveIndex){responsiveOptions.elementTimer&&clearTimeout(responsiveOptions.elementTimer);var oldActive=slide.elements[responsiveOptions.activeElements[responsiveOptions.activeSlideIndex]],newActive=slide.elements[responsiveOptions.activeElements[responsiveOptions.activeSlideIndex]+newActiveIndex];$(oldActive).removeClass(responsiveOptions.activeElementClass),$(newActive).addClass(responsiveOptions.activeElementClass),responsiveOptions.activeElements[slide.index()]+=newActiveIndex,slide.panelElements.each((function(index,element){var _this=$(element);index<responsiveOptions.activeElements[slide.index()]?(_this.addClass(responsiveOptions.elementPanelFinishedClass),_this.removeClass(responsiveOptions.elementPanelActiveClass)):index==responsiveOptions.activeElements[slide.index()]?(_this.removeClass(responsiveOptions.elementPanelFinishedClass),_this.addClass(responsiveOptions.elementPanelActiveClass)):(_this.removeClass(responsiveOptions.elementPanelActiveClass),_this.removeClass(responsiveOptions.elementPanelFinishedClass))})),window.asproStoriesSliderStopped||(responsiveOptions.elementTimerStart=Date.now(),responsiveOptions.elementTimer=setTimeout((function(){responsiveOptions.setNextElement()}),responsiveOptions.changeSlideTime))},responsiveOptions.pauseSlide=function(slide){var index=slide.data("index");index=index||slide.index(),slide.addClass(responsiveOptions.pausedSlideClass),responsiveOptions.stoppedSlideIndex=index,responsiveOptions.elementTimer&&(clearTimeout(responsiveOptions.elementTimer),responsiveOptions.animationTimer=responsiveOptions.elementTimerContinue?responsiveOptions.elementTimerContinue:responsiveOptions.changeSlideTime,responsiveOptions.elementTimerContinue=responsiveOptions.animationTimer-(Date.now()-responsiveOptions.elementTimerStart))},responsiveOptions.playSlide=function(slide){var index=slide.data("index");(index=index||slide.index())==responsiveOptions.stoppedSlideIndex&&(slide.removeClass(responsiveOptions.pausedSlideClass),responsiveOptions.stoppedSlideIndex=null,window.asproStoriesSliderStopped||(responsiveOptions.elementTimerStart=Date.now(),responsiveOptions.elementTimer=setTimeout((function(){responsiveOptions.setNextElement()}),responsiveOptions.elementTimerContinue)))},responsiveOptions.addDragEvents=function(){responsiveOptions.slides.on("touchstart",(function(event){var _this=$(this),index=_this.data("index");(index=index||_this.index())==responsiveOptions.activeSlideIndex&&(responsiveOptions.mobile||(responsiveOptions.touch.posPrev=event.originalEvent.changedTouches[0].pageX))})),responsiveOptions.slides.on("touchmove",(function(event){var _this=$(this),index=_this.data("index");(index=index||_this.index())==responsiveOptions.activeSlideIndex&&(responsiveOptions.mobile||(responsiveOptions.touch.posCurrent=event.originalEvent.changedTouches[0].pageX-responsiveOptions.touch.posPrev,responsiveOptions.sliderInner.css({"margin-left":responsiveOptions.sliderInnerMargin+responsiveOptions.touch.posCurrent}),responsiveOptions.sliderInnerMargin=responsiveOptions.sliderInnerMargin+responsiveOptions.touch.posCurrent,responsiveOptions.touch.posPrev=event.originalEvent.changedTouches[0].pageX))})),responsiveOptions.slides.on("mousedown",(function(event){var _this=$(this),index=_this.data("index");if((index=index||_this.index())==responsiveOptions.activeSlideIndex&&!responsiveOptions.mobile){var startX=event.pageX;function moveAt(pageX){var left,movePercent=(pageX-startX>0?pageX-startX:startX-pageX)/responsiveOptions.dragAmount;if(pageX-startX>0&&responsiveOptions.activeSlideIndex>0||pageX-startX<0&&responsiveOptions.activeSlideIndex<responsiveOptions.slides.length){var dependSlide=pageX-startX>0?_this.prev():_this.next(),cssCurrent={"margin-left":responsiveOptions.activeSlideMargin-responsiveOptions.activeSlideMargin*movePercent+"vw","margin-right":responsiveOptions.activeSlideMargin-responsiveOptions.activeSlideMargin*movePercent+"vw",transform:"scale("+(1-.25*movePercent)+")"},cssDepend={"margin-left":responsiveOptions.activeSlideMargin*movePercent+"vw","margin-right":responsiveOptions.activeSlideMargin*movePercent+"vw",transform:"scale("+(.75+.25*movePercent)+")"};_this.css(cssCurrent),dependSlide.css(cssDepend),console.log(movePercent)}}function onMouseMove(event){moveAt(event.pageX)}document.addEventListener("mousemove",onMouseMove),$(document).on("mouseup",(function(){document.removeEventListener("mousemove",onMouseMove),this.onmouseup=null})),this.ondragstart=function(){return!1}}}))},responsiveOptions.addEvents=function(){BX.loadScript(arAsproOptions.SITE_TEMPLATE_PATH+"/js/jquery.mobile.custom.touch.min.js",()=>{responsiveOptions.slides.on("swiperight",(function(){responsiveOptions.mobile&&responsiveOptions.setPrev(
1)})),responsiveOptions.slides.on("swipeleft",(function(){responsiveOptions.mobile&&responsiveOptions.setNext()}))}),responsiveOptions.slides.on("click",(function(){var _this=$(this),index=_this.data("index");(index=index||_this.index())!=responsiveOptions.activeSlideIndex&&responsiveOptions.setActive(index)})),responsiveOptions.slides.on("taphold",(function(){var _this=$(this);responsiveOptions.pauseSlide(_this)})),responsiveOptions.slides.on("touchend",(function(){var _this=$(this);responsiveOptions.playSlide(_this)})),responsiveOptions.slides.on("mousedown",(function(){var _this=$(this),timeout=1e3;responsiveOptions.mousedownTimer=setTimeout((function(){responsiveOptions.mouseHold=!0,responsiveOptions.pauseSlide(_this)}),1e3)})),responsiveOptions.slides.on("mousemove",(function(){responsiveOptions.mousedownTimer&&(clearTimeout(responsiveOptions.mousedownTimer),responsiveOptions.mouseHold=!1)})),responsiveOptions.slides.on("mouseup",(function(e){if(responsiveOptions.mouseHold){var _this=$(this);responsiveOptions.playSlide(_this)}else responsiveOptions.mousedownTimer&&(clearTimeout(responsiveOptions.mousedownTimer),responsiveOptions.mouseHold=!1)})),responsiveOptions.slides.on("click","."+responsiveOptions.elementNavPrevClass,(function(e){if(responsiveOptions.mouseHold)responsiveOptions.mouseHold=!1;else{var _this,_thisSlide=$(this).closest(responsiveOptions.slidesSelector),index=_thisSlide.data("index");(index=index||_thisSlide.index())==responsiveOptions.activeSlideIndex&&(responsiveOptions.setPrevElement(),e.preventDefault(),e.stopPropagation())}})),responsiveOptions.slides.on("click","."+responsiveOptions.elementNavNextClass,(function(e){if(responsiveOptions.mouseHold)responsiveOptions.mouseHold=!1;else{var _this,_thisSlide=$(this).closest(responsiveOptions.slidesSelector),index=_thisSlide.data("index");(index=index||_thisSlide.index())==responsiveOptions.activeSlideIndex&&(responsiveOptions.setNextElement(),e.preventDefault(),e.stopPropagation())}})),BX.addCustomEvent("onWindowResize",(function(eventdata){try{responsiveOptions.update()}catch(e){console.log(e)}}))},responsiveOptions.updateSlidesHeight=function(){responsiveOptions.mobile?(responsiveOptions.slideWidth=responsiveOptions.sliderWidth,responsiveOptions.slides.css({width:""})):(responsiveOptions.slideWidth=(responsiveOptions.sliderHeight+80)/1.98,responsiveOptions.slides.css({width:responsiveOptions.slideWidth}))},responsiveOptions.update=function(){var activeSlide=responsiveOptions.activeSlideIndex;for(var width in responsiveOptions=Object.assign(responsiveOptions,options),options.breakpoints)window.matchMedia(width).matches&&(responsiveOptions=Object.assign(responsiveOptions,options.breakpoints[width]));responsiveOptions.activeSlideIndex=activeSlide,responsiveOptions.getCurrentSizes(),responsiveOptions.setCenter(responsiveOptions.activeSlideIndex)},responsiveOptions.init=function(_slider){responsiveOptions.slides=_slider.find(responsiveOptions.slidesSelector),responsiveOptions.activeSlide=$(responsiveOptions.slides[responsiveOptions.activeSlideIndex]),responsiveOptions.sliderInner=_slider.find(responsiveOptions.innerSelector),responsiveOptions.slider=_slider,responsiveOptions.sliderWidth=responsiveOptions.slider.outerWidth(!0),responsiveOptions.slides.addClass("swipeignore"),responsiveOptions.touch={},responsiveOptions.activeElements={},responsiveOptions.setStyles(),responsiveOptions.getCurrentSizes(),responsiveOptions.setCenter(responsiveOptions.activeSlideIndex),responsiveOptions.updateElementsInfo(responsiveOptions.activeSlide),responsiveOptions.setActiveElement(responsiveOptions.activeSlide,0),responsiveOptions.addEvents(),_slider.data("asproStoriesSlider",responsiveOptions)},responsiveOptions.init(_slider),setTimeout((function(){responsiveOptions.slider.addClass("aspro_slider_init")}),1e3*responsiveOptions.transition+10)}var el=$(this);if(el.hasClass("aspro_slider_init"))return!1;el.each((function(i,slider){_storiesSlider(slider,options)}))};
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.