{"version":3,"sources":["scripts.min.js"],"names":["Element","prototype","matches","selector","this","matchesSelector","msMatchesSelector","webkitMatchesSelector","call","document","window","embed","svg","g","viewBox","getAttribute","fragment","createDocumentFragment","clone","cloneNode","setAttribute","childNodes","length","appendChild","firstChild","loadreadystatechange","xhr","onreadystatechange","readyState","x","createElement","innerHTML","responseText","s","splice","map","array","querySelector","replace","$uses","polyfill","requestAnimationFrame","$svgCache","getElementsByTagName","test","navigator","userAgent","match","setTimeout","oninterval","use","i","parentNode","nodeName","$url","split","url_root","url_hash","removeChild","XMLHttpRequest","open","send","push","getElementById","$helpers","$$","_is_document","$node","nodeType","DOCUMENT_NODE","_is_window","_is_array","$obj","Object","toString","_is_input","tagName","_query","context","$nodes","slice","substr","getElementsByClassName","querySelectorAll","_create_element","html","$div","trim","$filtered_nodes","len","toLowerCase","_get_filtered_nodes","_get_scroll_offset","top","left","pageXOffset","pageYOffset","scrollTop","scrollLeft","_get_vendor_property","property","css_prefixes","cap_name","charAt","toUpperCase","orig_name","style","_get_prefixed_event","type","$types","prefix","$prefixes","_get_event_type","documentMode","_get_event_type_wheel","animation","MozAnimation","WebkitAnimation","msAnimation","_get_event_type_animatedend","transition","MozTransition","WebkitTransition","msTransition","_get_event_type_transitionend","is_helper","find","$this","concat","reduce","a","b","indexOf","children","$child_node","$filtered_child_nodes","nextSibling","get_parent","maybe_class","name_only","tag_name","class_name","className","append","j","obj_len","prepend","insertBefore","before","after","remove","remove_children","empty","next_sibling","prev_sibling","previousSibling","get_siblings","$siblings","$children","get_attribute","attribute","value","set_attribute","removeAttribute","set_text","text","textContent","get_text","insert_html","outer","outerHTML","get_html","get_file","$file","filename","filetype","filesize","files","name","size","is_tag","tagname","is_visible","$styles","getComputedStyle","offsetWidth","offsetHeight","display","parentElement","index","element","for_each","callback","is_checked","checked","add_class","trimmed_classes","classes","$selector","updated","String","selector_len","sort","join","remove_class","has_class","classList","contains","focus","click","set_style","property_vendor","hasOwnProperty","all","letter","get_style","getPropertyValue","set_data","key","get_data","get_width","width","documentElement","clientWidth","Math","max","body","scrollWidth","get_height","height","clientHeight","scrollHeight","get_offset_top","offsetTop","offsetParent","get_offset_left","offsetLeft","get_scroll_top","scroll_top","get_scroll_left","scroll_left","set_value","get_value","add_event","listener","event_listener","event","types_len","addEventListener","load_script","url","$head","$script","src","random","onload","get","$ajax","status","set_hash","hash","history","replaceState","location","pathname","title","merge_objects","$obj1","$obj2","constructor","scroll_to","to","duration","diff","step","scrollBy","abs","get_touch_range","dist_x","dist_y","degrees","theta","atan2","PI","floor","is_top","is_right","is_bottom","is_left","$html","_find","needle","device","iphone","ipod","ipad","ios","android","android_phone","android_tablet","windows","windows_phone","windows_tablet","mobile","tablet","add","support","touch","msMaxTouchPoints","css_property_found","prefixes","_has_css_property","Prefetch","$prefetch_link","_$prefetch_link","_$options","init","_prefetch","_prerender","$link","$prefetch_links","$links","target","$button","$buttons","keyCode","FocusMethod","focus_method","last_focus_method","_this","_on_key_down","bind","passive","_on_mouse_down","_on_touch_start","_on_focus","_on_blur","_on_window_blur","$cookie_banner","$body","$close","now","Date","getTime","storage","localStorage","getItem","domain","preventDefault","setItem","$cookie_spacing","$footer","paddingBottom","SeoHighlightKeywords","$article","current_url","href","previous_url","referrer","keyword","_get_keyword","regex","RegExp","keywords","decodeURIComponent","Tooltip","$tooltip_wrapper","$tooltip","_temp_disabled","_perm_disabled","_focused","tooltip_id","$tooltip_trigger","_check_tooltip","_hide_tooltip","_keyboard_nav","_show_tooltip","disabled","stopPropagation","$tooltip_wrappers","DropdownMenu","$dropdown_menu","id","$main_menuitems","$sub_menuitems","$sub_menuitems_with_sub_sub_menu","$main_menuitems_with_sub_menu","main_menu_index","event_type","$key","tab","enter","escape","space","arrow_left","arrow_up","arrow_right","arrow_down","_init_accessibility","_init_keyboard","$main_menuitem","$li","_on_mouseenter_main_menuitem","_on_mouseover_main_menuitem","_on_mouseout_main_menuitem","_on_focus_main_menuitem","_on_keydown_main_menuitem","$sub_menuitem","_on_keydown_sub_menuitem","_get_main_menuitem_index","$sub_menu","nextElementSibling","shiftKey","_close_sub_menus","_open_sub_menu","sub_menu_is_open","_close_sub_menu","_focus_prev_main_menuitem","_focus_prev_menuitem","_focus_next_main_menuitem","Array","activeElement","clearTimeout","close_sub_menu_timeout","sub_menu_index","_focus_prev_sub_menuitem","_focus_next_sub_menuitem","_open_sub_sub_menu","$menuitem","is_current_menuitem","$sub_sub_menu","is_sub_sub_menuitem","_close_sub_sub_menus","focus_last_sub_menuitem","OffCanvasMenuAccordion","$toggle_offcanvas_menu","controls","$main_menuitem_with_sub_menu","_on_click_main_menuitem","_window_size_changed","$element","maxHeight","$main_menuitem_selected","OffCanvasMenu","$offcanvas_menu","$focus_elements","focus_element","$offcanvas_menu_state","_focus_element_with_shift_tab_key","_focus_element_with_tab_key","tab_index","$focus_element","_toggle_sub_menus","is_active_menuitem","$parent_menuitems","_get_parent_menu_elements","toggle","$findings","False","OffCanvasMenuOpener","$open_offcanvas_menu","$close_offcanvas_menu","_toggle_menu","_open_menu","_close_menu","_scroll_to_top","interval","setInterval","$anchor","clearInterval","FormHelpers","$el","_file_upload","_select","$file_name","$file_button","FormValidation","$form","_$form","_$inputs","_$inputs_checkbox","_$selects","_$button","_$error_msg_button","inputs_len","$input","_input_keyup","_input_blur","inputs_checkbox_len","$input_checkbox","_input_checkbox_click","_input_checkbox_keyup","_input_checkbox_blur","selects_len","$select","_select_change","_select_blur","_submit","_check_submit_status","_validate_input","$error_warning","min","parseInt","pattern","regexp","_validate_input_file","required","_validate_input_checkbox","_validate_select","$wrapper","error_msg_button_id","enable_submit_button","_show_first_error","$first_input_error","top_position","$forms","$secure_targets","$secure_target","options","selectedIndex","$location_data","$locations_data","FormCache","_form_name","_$cache","_init_events","_restore_cache","_save_cache","_reset_cache","JSON","stringify","$cache","parse","is_valid","removeItem","_get_style","FormTextareaAutogrow","$textarea","default_height","line_height","padding_bottom","padding_top","_set_textarea_height","_set_style","$textareas","FormUrlParameters","_get_url_parameters","$parameters","_set_inputs_value","$inputs","$pair","$parameter","selected_select","_checked_input_radio","defaultChecked","defaultValue","$option","$options","defaultSelected","FormSearchDataList","$search","$submit","datalist","list","datalist_loaded","datalist_inserted","_focus","_get_datalist","_get_url","$datalist","sessionStorage","_get_sorted_datalist","_create_datalist","$a","$b","a_value","b_value","$datalist_entry","label","FormSearch","$input_search","_on_input","SteuernewsIssues","issues_select","$issues_select","$active_option","$steuernews_issues_select","AnimationHelpers","$animated_element","_$animated_element","_offset","$show_animation","_is_in_viewport","_offset_top","offset_top","_remove_scroll_event","removeEventListener","$animated_elements","scrolled_down","_is_scrolled_down","VpiDiagram","$vpi_diagram","$grid","$grid_text","$grid_points","$months","$legend","$year_label","$select_year","$switch_view","$infolist_section","$output","svg_namespace","$months_and_values","$legend_text","bounds","timer","_get_data_for_year","_year_changed","_year_selected_by_user","_switch_view","_display_months_two_row","getBBox","setAttributeNS","_calc_grid_bounds","_change_grid","_change_months_label","_change_lines","_change_points","_change_legend","_change_year_label","_change_table_view","year","$table","innerText","month","parseFloat","avg","middle","_calc_x_coordinate","array_position","_calc_y_coordinate","toFixed","$old_texts","$svg_text","createElementNS","createTextNode","$old_circles","$svg_circle","y","x_coordinate","y_coordinate","_change_output","$old_lines","$svg_line","getBoundingClientRect","MapChartData","$map_chart","parent_country","$countries","country_codes","AC","AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BU","BV","BW","BY","BZ","CA","CC","CD","CE","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CR","CS","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","FI","FJ","FK","FM","FO","FR","FX","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NT","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SU","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","YU","ZA","ZM","ZR","ZW","$sections","costs_by_country_name","country_codes_by_name","code","daily_fee","nightly_fee","tds","country","additional_values","total","h","country_name","costs","MapChart","$map_chart_image","$zoom_in","$zoom_out","$drag_area","$touch_info","zoom","zoom_increase","min_zoom","max_zoom","x_offset","y_offset","start_event","old_event","_zoom_in","_zoom_out","_drag","touches","_setup_map_chart","_update_map_chart","_proof_zoom","_proof_offest","transform","WebkitTransform","msTransform","_convert_event","changedTouches","pageX","pageY","_calc_offset_for_drag","_manage_touch_interaction","hypotenuse_now","sqrt","pow","hypotenuse_start","$country","removeProperty","fillOpacity","_show_output","$show_more_content","content_id","$content","$share_button","innerHeight","innerWidth","$vcards","$vcard","Slider","$slider","$slider_wrapper","$slides","$prev","$next","time","intervall","touch_start_x","stop_on_hover","_init_mouse","_init_touch","_next_slide","_set_height","_prev_slide","touch_x","_slide","_manage_control","highest","$sliders","GoogleMaps","data_id","map_is_ready","_infowindow_is_open","static_map_urls","_extend","$extended","deep","arguments","merge","obj","prop","map_type","direction_color","timeout","_geocoder_response","$mapdata","mapdata","street_address","postal_code","locality","$geocoder","geocode","address","$results","google","maps","GeocoderStatus","OK","latlng","geometry","latitude","lat","longitude","lng","OVER_QUERY_LIMIT","Geocoder","LatLng","_latlng_loaded","undefined","_init_map","$map","Map","center","mapTypeId","MapTypeId","scrollwheel","disableDefaultUI","disable_default_ui","styles","map_style","zoomControlOptions","position","ControlPosition","TOP_RIGHT","mapTypeControlOptions","TOP_LEFT","streetViewControlOptions","$bounds","LatLngBounds","_init_infowindow","_change_travel_mode","_set_markers","_init_directions","_limit_zoomlevel","_init_autoselect","_init_static_maps","map_resize","debug","addDomListener","console","log","getCenter","_$infowindow","InfoWindow","maxWidth","addListener","close","$travel_mode","marker_href","marker_width","marker_height","infowindow","_remove_duplicated_markers","$marker","Marker","Animation","DROP","clickable","icon","scaledSize","Size","optimized","zIndex","open_infowindow","getZIndex","extend","fitBounds","addListenerOnce","getZoom","setZoom","_remove_all_markers","original_infowindow","$latlng","$duplicates","_clean_map","$polylines","setMap","$static_maps","len_i","_update_static_maps","paths","daddr","$direction","$panel_wrapper","$panel_title","$panel","$directions_service","DirectionsService","$saddr","$daddr","travel_mode","directionsmode","destination","saddr","$input_error","DirectionsTravelMode","DRIVING","TRANSIT","BICYCLING","WALKING","route","origin","travelMode","$result","DirectionsStatus","$polyline","$route","routes","$legs","legs","$steps","steps","warnings","distance_text","duration_text","static_paths","template","$route_bounds","distance","start_address","steps_len","instructions","start_location","Polyline","path","strokeColor","strokeOpacity","strokeWeight","end_address","copyrights","$start_marker","start_marker_href","start_marker_width","start_marker_height","mapdata_len","setVisible","_google_analytics_tracking","has_google_analytics","ga","show_marker","_get_current_index","panTo","_$infowindow_mapdata","setContent","trigger","setCenter","$google_maps_data","Accordion","$accordion","$tab","anchor","one_tab_open","_setup_accordion","_open_tabpanel","_toggle_tabpanel","_on_resize","_close_tabpanel","$tabpanel","_get_tabpanel","max_height","13","32","35","36","37","38","39","40","_change_focused_tab","$accordions","$popup","$iframe","_close","OnlinetoolPopup","$onlinetool","zms_common","html_len","_create_popup","which","$onlinetools","SmoothScroll","has_animationend_event","_scroll_to","$target","offset","$callback","$highlighted_target","_get_offset_top","_remove_highlight_class","_click_link","_change_select","parameter","$hash","search","scrollTo","global","factory","exports","module","define","amd","Swiper","doc","blur","createEvent","initEvent","win","CustomEvent","Image","screen","Dom7","arr","$","els","tempParent","toCreate","unique","uniqueArray","fn","Class","Methods","addClass","removeClass","hasClass","toggleClass","attr","attrs","arguments$1","attrName","removeAttr","data","el","dom7ElementDataStorage","dataKey","elStyle","webkitTransform","webkitTransitionDuration","transitionDuration","on","assign","args","eventType","targetSelector","capture","handleLiveEvent","e","eventData","dom7EventData","unshift","is","apply","parents","k","handleEvent","events","event$1","dom7LiveListeners","proxyListener","dom7Listeners","off","handlers","handler","evt","detail","bubbles","cancelable","filter","dataIndex","dispatchEvent","transitionEnd","dom","fireCallBack","outerWidth","includeMargins","outerHeight","box","clientTop","clientLeft","scrollY","scrollX","css","props","each","compareWith","child","eq","returnIndex","newChild","tempDiv","this$1","next","nextAll","nextEls","prev","previousElementSibling","prevAll","prevEls","parent","closest","foundElements","found","toAdd","keys","forEach","methodName","testDiv","Utils","deleteProps","object","nextTick","delay","getTranslate","axis","matrix","curTransform","transformMatrix","curStyle","WebKitCSSMatrix","MozTransform","OTransform","MsTransform","m41","m42","parseUrlQuery","params","param","query","urlToParse","paramsPart","isObject","o","len$1","nextSource","keysArray","nextIndex","nextKey","desc","getOwnPropertyDescriptor","enumerable","Support","Modernizr","DocumentTouch","pointerEvents","pointerEnabled","PointerEvent","prefixedPointerEvents","msPointerEnabled","transforms3d","csstransforms3d","flexbox","observer","passiveListener","supportsPassive","opts","defineProperty","gestures","SwiperClass","self","eventsListeners","eventName","staticAccessors","components","configurable","priority","method","once","onceHandler","eventHandler","emit","isArray","useModulesParams","instanceParams","instance","modules","moduleName","useModules","modulesParams","moduleParams","modulePropName","moduleProp","moduleEventName","create","set","installModule","proto","static","install","m","defineProperties","update","updateSize","swiper","isHorizontal","isVertical","updateSlides","$wrapperEl","swiperSize","rtl","rtlTranslate","wrongRTL","isVirtual","virtual","enabled","previousSlidesLength","slides","slidesLength","snapGrid","slidesGrid","slidesSizesGrid","offsetBefore","slidesOffsetBefore","offsetAfter","slidesOffsetAfter","previousSnapGridLength","previousSlidesGridLength","spaceBetween","slidePosition","prevSlideSize","slidesNumberEvenToRows","slideSize","virtualSize","marginLeft","marginTop","marginRight","marginBottom","slidesPerColumn","ceil","slidesPerView","slidesPerColumnFill","newSlidesGrid","slidesPerRow","numFullColumns","slide","newSlideOrderIndex","column","row","-webkit-box-ordinal-group","-moz-box-ordinal-group","-ms-flex-order","-webkit-order","order","slideStyles","currentTransform","currentWebKitTransform","roundLengths","swiperSlideSize","centeredSlides","slidesPerGroup","effect","setWrapperSize","i$1","slidesGridItem","i$2","slidesGridItem$1","centerInsufficientSlides","allSlidesSize","slideSizeValue","allSlidesOffset","snap","snapIndex","watchOverflow","checkOverflow","watchSlidesProgress","watchSlidesVisibility","updateSlidesOffset","updateAutoHeight","speed","activeSlides","newHeight","setTransition","activeIndex","swiperSlideOffset","updateSlidesProgress","translate","offsetCenter","slideVisibleClass","visibleSlidesIndexes","visibleSlides","slideProgress","minTranslate","slideBefore","slideAfter","progress","updateProgress","translatesDiff","maxTranslate","isBeginning","isEnd","wasBeginning","wasEnd","updateSlidesClasses","activeSlide","realIndex","slideActiveClass","loop","slideDuplicateClass","slideDuplicateActiveClass","nextSlide","slideNextClass","prevSlide","slidePrevClass","slideDuplicateNextClass","slideDuplicatePrevClass","updateActiveIndex","newActiveIndex","previousIndex","previousRealIndex","previousSnapIndex","normalizeSlideIndex","updateClickedSlide","slideFound","clickedSlide","clickedIndex","slideToClickedSlide","virtualTranslate","currentTranslate","setTranslate","byController","previousTranslate","transition$1","transitionStart","runCallbacks","direction","autoHeight","dir","animating","slideTo","internal","slideIndex","preventInteractionOnTransition","initialSlide","initialized","allowSlideNext","allowSlidePrev","onSlideToWrapperTransitionEnd","destroyed","slideToLoop","newIndex","loopedSlides","slideNext","loopFix","_clientLeft","slidePrev","normalize","val","prevIndex","normalizedTranslate","normalizedSnapGrid","prevSnap","slideReset","slideToClosest","currentSnap","slidesPerViewDynamic","slideToIndex","loopCreate","loopFillGroupWithBlank","blankSlidesNum","blankNode","loopAdditionalSlides","prependSlides","appendSlides","loopDestroy","grabCursor","setGrabCursor","moving","simulateTouch","isLocked","cursor","unsetGrabCursor","manipulation","appendSlide","prependSlide","addSlide","activeIndexBuffer","baseLength","slidesBuffer","currentSlide","removeSlide","slidesIndexes","indexToRemove","removeAllSlides","Device","ua","androidChrome","desktop","cordova","phonegap","os","osVersion","webView","osVersionArr","metaViewport","minimalUi","pixelRatio","devicePixelRatio","onResize","breakpoints","setBreakpoint","freeMode","newTranslate","attachEvents","touchEvents","wrapperEl","onTouchStart","touchEventsData","originalEvent","isTouchEvent","button","isTouched","isMoved","noSwiping","noSwipingSelector","allowClick","swipeHandler","currentX","targetTouches","currentY","startX","startY","edgeSwipeDetection","iOSEdgeSwipeDetection","edgeSwipeThreshold","iOSEdgeSwipeThreshold","allowTouchCallbacks","isScrolling","startMoving","touchStartTime","swipeDirection","threshold","allowThresholdMove","formElements","allowTouchMove","touchStartPreventDefault","onTouchMove","preventedByNestedSwiper","touchReleaseOnEdges","touchAngle","diffX","diffY","touchMoveStopPropagation","nested","startTranslate","allowMomentumBounce","touchRatio","disableParentSwiper","resistanceRatio","resistance","followFinger","velocities","onTouchEnd","currentPos","touchEndTime","timeDiff","lastClickTime","clickTimeout","freeModeMomentum","lastMoveEvent","pop","velocityEvent","velocity","freeModeMinimumVelocity","freeModeMomentumVelocityRatio","momentumDuration","freeModeMomentumRatio","momentumDistance","newPosition","afterBouncePosition","needsLoopFix","doBounce","bounceAmount","freeModeMomentumBounceRatio","freeModeMomentumBounce","freeModeSticky","longSwipesMs","stopIndex","groupSize","ratio","longSwipes","longSwipesRatio","shortSwipes","onClick","preventClicks","preventClicksPropagation","stopImmediatePropagation","touchEventsTarget","start","passiveListeners","move","end","detachEvents","breakpoint","getBreakpoint","currentBreakpoint","breakPointsParams","originalParams","needsReLoop","points","point","breakpointsInverse","Browser","isIE","isEdge","isSafari","isUiWebView","defaults","uniqueNavElements","preloadImages","updateOnImagesReady","noSwipingClass","containerModifierClass","slideClass","slideBlankClass","wrapperClass","runCallbacksOnInit","prototypes","wasLocked","navigation","addClasses","classNames","suffixes","suffix","removeClasses","images","loadImage","imageEl","srcset","sizes","checkForComplete","image","onReady","complete","onerror","imagesLoaded","imagesToLoad","currentSrc","extendedDefaults","SwiperClass$$1","prototypeGroup","protoMethod","moduleParamName","swiperParams","passedParams","swipers","containerEl","newParams","touchEventsTouch","touchEventsDesktop","__proto__","spv","breakLoop","translateValue","destroy","deleteInstance","cleanStyles","extendDefaults","newDefaults","Device$1","Support$1","Browser$1","browser","Resize","resize","resizeHandler","orientationChangeHandler","Observer","func","MutationObserver","WebkitMutationObserver","attach","mutations","observerUpdate","observe","attributes","childList","characterData","observers","observeParents","containerParents","disconnect","Observer$1","Virtual","force","ref","ref$1","addSlidesBefore","addSlidesAfter","ref$2","previousFrom","from","previousTo","previousSlidesGrid","renderSlide","previousOffset","offsetProp","slidesAfter","slidesBefore","onRendered","lazy","load","renderExternal","slidesToRender","prependIndexes","appendIndexes","cache","$slideEl","newCache","cachedIndex","Virtual$1","beforeInit","overwriteParams","Keyboard","handle","kc","charCode","altKey","ctrlKey","metaKey","keyboard","onlyInViewport","inView","windowWidth","windowHeight","swiperOffset","swiperCoord","returnValue","enable","disable","Keyboard$1","Mousewheel","lastScrollTime","isSupported","implementation","hasFeature","isEventSupported","sX","sY","pX","pY","wheelDelta","wheelDeltaY","wheelDeltaX","HORIZONTAL_AXIS","deltaY","deltaX","deltaMode","spinX","spinY","pixelX","pixelY","handleMouseEnter","mouseEntered","handleMouseLeave","mousewheel","releaseOnEdges","delta","rtlFactor","forceToAxis","invert","sensitivity","autoplay","autoplayDisableOnInteraction","stop","eventsTarged","Navigation","$nextEl","$prevEl","disabledClass","lockClass","nextEl","prevEl","Pagination","pagination","current","paginationType","bullets","firstIndex","lastIndex","midIndex","dynamicBullets","bulletSize","dynamicMainBullets","dynamicBulletIndex","bullet","$bullet","bulletIndex","bulletActiveClass","$firstDisplayedBullet","$lastDisplayedBullet","dynamicBulletsLength","bulletsOffset","formatFractionCurrent","formatFractionTotal","progressbarDirection","progressbarOpposite","scale","scaleX","scaleY","renderCustom","render","paginationHTML","numberOfBullets","renderBullet","bulletClass","renderFraction","currentClass","totalClass","renderProgressbar","progressbarFillClass","clickableClass","modifierClass","progressbarOppositeClass","hiddenClass","Scrollbar","scrollbar","dragSize","trackSize","$dragEl","newSize","newPos","hide","opacity","divider","moveDivider","scrollbarHide","setDragPosition","positionRatio","clientX","clientY","onDragStart","dragTimeout","onDragMove","onDragEnd","snapOnRelease","enableDraggable","activeListener","disableDraggable","$swiperEl","dragEl","draggable","Parallax","setTransform","p","currentOpacity","currentScale","parallax","slideEl","parallaxEl","$parallaxEl","parallaxDuration","Zoom","getDistanceBetweenTouches","x1","y1","x2","y2","onGestureStart","gesture","fakeGestureTouched","fakeGestureMoved","scaleStart","$imageEl","$imageWrapEl","maxRatio","isScaling","onGestureChange","scaleMove","minRatio","onGestureEnd","touchesStart","slideWidth","slideHeight","scaledWidth","scaledHeight","minX","maxX","minY","maxY","touchesCurrent","prevPositionX","prevPositionY","prevTime","momentumDurationX","momentumDurationY","momentumDistanceX","newPositionX","momentumDistanceY","newPositionY","onTransitionEnd","out","in","touchX","touchY","translateX","translateY","imageWidth","imageHeight","translateMinX","translateMinY","translateMaxX","translateMaxY","Lazy","loadInSlide","loadInDuplicate","$images","elementClass","loadedClass","loadingClass","imageIndex","background","slideOriginalIndex","originalSlide","duplicatedSlide","slideExist","initialImageLoaded","elIndex","loadPrevNext","loadPrevNextAmount","amount","maxIndex","minIndex","Controller","LinearSpline","guess","i1","i3","binarySearch","interpolate","getInterpolateFunction","c","controller","spline","setTranslate$1","multiplier","controlledTranslate","controlled","control","setControlledTranslate","by","inverse","setControlledTransition","a11y","makeElFocusable","addElRole","role","addElLabel","disableEl","enableEl","onEnterKey","$targetEl","notify","lastSlideMessage","nextSlideMessage","firstSlideMessage","prevSlideMessage","message","notification","liveRegion","updateNavigation","updatePagination","bulletEl","$bulletEl","paginationBulletMessage","History","pushState","hashNavigation","getPathValues","scrollToSlide","setHistoryPopState","pathArray","part","setHistory","slugify","includes","currentState","state","HashNavigation","onHashCange","newHash","setHash","watchState","Autoplay","run","$activeSlideEl","reverseDirection","stopOnLastSlide","running","pause","paused","waitForTransition","Fade","tx","ty","slideOpacity","fadeEffect","crossFade","eventTriggered","triggerEvents","Cube","$cubeShadowEl","swiperWidth","swiperHeight","cubeEffect","wrapperRotate","shadow","slideAngle","round","tz","slideShadows","shadowBefore","shadowAfter","-webkit-transform-origin","-moz-transform-origin","-ms-transform-origin","transform-origin","shadowOffset","shadowAngle","sin","cos","scale1","shadowScale","scale2","zFactor","Flip","flipEffect","limitRotation","rotateY","rotateX","Coverflow","coverflowEffect","rotate","depth","offsetMultiplier","modifier","translateZ","stretch","slideTransform","$shadowBeforeEl","$shadowAfterEl","perspectiveOrigin","Thumbs","thumbsParams","thumbs","swiperCreated","thumbsContainerClass","onThumbClick","thumbsSwiper","currentIndex","initial","newThumbsIndex","currentThumbsIndex","prevThumbsIndex","nextThumbsIndex","thumbsToActivate","thumbActiveClass","slideThumbActiveClass","hideOnClick","toEdge","fromEdge","bulletElement","number","activeIndexChange","snapIndexChange","slidesLengthChange","snapGridLengthChange","dragClass","containerClass","zoomedSlideClass","touchStart","touchEnd","doubleTap","loadOnTransitionStart","preloaderClass","scroll","scrollbarDragMove","notificationClass","paginationUpdate","disableOnInteraction","beforeTransitionStart","sliderFirstMove","slideChange","beforeDestroy","dummySrc","fixRespimg","findPictureImgs","mq","HTMLPictureElement","$1","img","source","picture","firstElementChild","_pfLastSize","imgs","matchMedia","eminpx","alwaysCheckWDescriptor","evalId","pf","isSupportTestReady","noop","getImgAttr","setImgAttr","removeImgAttr","docElem","types","cfg","algorithm","srcAttr","srcsetAttr","supportAbort","curSrcProp","regWDesc","regSize","setOptions","picturefillCFG","fsCss","isVwDirty","cssCache","sizeLengthCache","DPR","units","px","alreadyRun","regexLeadingSpaces","regexLeadingCommasOrSpaces","regexLeadingNotSpaces","regexTrailingCommas","regexNonNegativeInteger","regexFloatingPoint","attachEvent","memoize","input","isSpace","regLength","buildStr","image2","width1","isDomReady","wait","timestamp","later","regReady","timerId","lastClientWidth","typeUri","evalCSS","string","parsedLength","Function","setResolution","candidate","sizesattr","w","cWidth","calcListLength","res","d","picturefill","opt","elements","plen","qsa","reevaluate","reselect","sel","selShort","setupRun","fillImg","teardownRun","ascendingSort","getCandidateForSrc","candidates","parseSet","makeUrl","warn","ns","supSrcset","supSizes","supPicture","u","setSize","matchesMedia","media","mMQ","calcLength","sourceSizeValue","supportsType","parseSize","sourceSizeStr","cands","collectCharacters","regEx","chars","exec","substring","pos","descriptors","currentDescriptor","inputLength","parseDescriptors","lastChar","intVal","floatVal","pError","has1x","tokenize","parseSrcset","getEmValue","div","originalHTMLCSS","cssText","originalBodyCSS","sourceSizeListStr","uT","winningLength","strValue","unparsedSizesList","unparsedSizesListLength","unparsedSize","lastComponentValue","regexCssLengthWithUnits","regexCssCalc","str","chrctr","component","componentArray","listArray","parenDepth","inComment","pushComponent","pushComponentArray","parseComponentValues","parseSizes","setRes","applySetCandidate","bestCandidate","curSrc","curCan","candidateSrc","abortCurSrc","lowerValue","higherValue","dprValue","isCached","bonusFactor","bonus","imageData","dpr","sets","setSrcToCur","cached","setSrc","origWidth","getSet","parseSets","srcsetAttribute","imageSet","isWDescripor","srcsetParsed","hasPicture","pic","sources","getAllSourceElements","supported","parsed","extreme","evaled","srcSetCandidates","matchingSet","evaluated","applyBestCandidate","vw","vh","em","rem","fillImgs","last","_","shift","scripts_path","slider","auto","browser_width","swiper0_height","set_height"],"mappings":"CAIA,WACI,IAAKA,QAAQC,UAAUC,QAAS,CAK5BF,QAAQC,UAAUC,QAJJ,SAASC,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,EAChB0oE,MAEDjhB,GAAMt+C,OAAS,WACdk8D,EAAOrlE,IAAyB,IAAhBynD,GAAMxgD,MACtByhE,MAEDjhB,GAAMx+C,IAAM4+D,GACL,YAtPT,CAw7CK/tE,OAAQD,UAMZ,WACG,IAAIm9B,EAAkB35B,GAAG,WAEpB25B,EAAgBt8B,QAIrB2C,GAAGwL,YAAYunE,aAAe,gBAAiB,WAC7B/yE,GAAGgzE,OAAOr5C,EAAiB,CACrCs5C,MAAO,IAGHtjE,SAZhB,GAmBA,IAAIxF,WAAa,WAEb,IAAI+oE,EAAgBz2E,OAAO68B,WAGvB65C,eADAD,EAAgB,IACC,IAEZA,EAAgB,IACJ,IAEZA,EAAgB,IACJ,IAEZA,EAAgB,IACJ,IAEZA,EAAgB,KACJ,IAEZA,EAAgB,KACJ,IAGA,KAIrBE,WAAa,WACbj+B,OAAO,GAAGnE,OAAO5mC,OAAS+oE,eAC1Bh+B,OAAO,GAAGF,UAGd9qC,aAEA,IAAIgrC,OAAS,IAAI9L,OAAO,oBAAqB,CACzCiU,UAAW,WACX5B,MAAM,EACN6B,YAAY,EACZnzC,OAAQ+oE,eACRx8B,aAAc,EAEd8X,KAAM,CACF0N,cAAc,GAGlB3S,WAAY,CACRwJ,OAAQ,sBACRC,OAAQ,yBAIZ9d,OAAO93C,SACP+1E,aAEA32E,OAAO8O,iBAAiB,SAAU,WAC9BpB,aACAipE","file":"scripts.min.js","sourcesContent":["// MATCHES\n// Support für IE 9+, Edge und Android bis Version 4.4.4\n// -------------------------------------------------------------------------------------------------\n\n(function() {\n if (!Element.prototype.matches) {\n var matches = function(selector) {\n return (this.matchesSelector || this.msMatchesSelector || this.webkitMatchesSelector).call(this, selector);\n };\n\n Element.prototype.matches = matches;\n }\n})();\n\n\n// SVG4EVERYBODY\n// SVG-Support für alle IE-Versionen\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n /* jshint nocomma: false */\n\n function embed(svg, g) {\n if (g) {\n var viewBox = !svg.getAttribute('viewBox') && g.getAttribute('viewBox'),\n fragment = document.createDocumentFragment(), clone = g.cloneNode(!0);\n\n for (viewBox && svg.setAttribute('viewBox', viewBox); clone.childNodes.length;) {\n fragment.appendChild(clone.firstChild);\n }\n\n svg.appendChild(fragment);\n }\n }\n\n function loadreadystatechange(xhr) {\n xhr.onreadystatechange = function() {\n if (xhr.readyState === 4) {\n var x = document.createElement('x');\n\n x.innerHTML = xhr.responseText, xhr.s.splice(0).map(function(array) {\n embed(array[0], x.querySelector('#' + array[1].replace(/(\\W)/g, '\\\\$1')));\n });\n }\n }, xhr.onreadystatechange();\n }\n\n function svg4everybody() {\n var $uses = document.getElementsByTagName('use'),\n polyfill = /\\bFirefox\\b|\\bEdge\\b|\\bTrident\\/[567]\\b|\\bVersion\\/7.0 Safari\\b/.test(navigator.userAgent) || (navigator.userAgent.match(/AppleWebKit\\/(\\d+)/) || [])[1] < 537,\n requestAnimationFrame = window.requestAnimationFrame || setTimeout,\n $svgCache = {};\n\n function oninterval() {\n for (var use, svg, i = 0; i < $uses.length;) {\n if (use = $uses[i], svg = use.parentNode, svg && /svg/i.test(svg.nodeName)) {\n var src = use.getAttribute('xlink:href'),\n $url = src.split('#'),\n url_root = $url[0],\n url_hash = $url[1];\n\n if (svg.removeChild(use), url_root.length) {\n var xhr = $svgCache[url_root] = $svgCache[url_root] || new XMLHttpRequest();\n xhr.s || (xhr.s = [], xhr.open('GET', url_root), xhr.send()), xhr.s.push([ svg, url_hash ]),\n loadreadystatechange(xhr);\n }\n else {\n embed(svg, document.getElementById(url_hash));\n }\n } else {\n i += 1;\n }\n }\n requestAnimationFrame(oninterval, 17);\n }\n\n if (polyfill) {\n oninterval();\n }\n }\n\n svg4everybody();\n}(document, window));\n\n// HELPERS\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n var $helpers,\n $$;\n\n // Interne Funktion\n\n function _is_document($node) {\n return $node !== null && $node.nodeType === $node.DOCUMENT_NODE;\n }\n\n function _is_window($node) {\n return $node !== null && $node === window;\n }\n\n function _is_array($obj) {\n return Object.prototype.toString.call($obj) === '[object Array]';\n }\n\n function _is_input($node) {\n return $node.tagName === 'INPUT' ||\n $node.tagName === 'SELECT' ||\n $node.tagName === 'TEXTAREA';\n }\n\n function _query(selector, context) {\n var simpleRe = /^(#?[\\w-]+|\\.[\\w-.]+)$/,\n periodRe = /\\./g,\n slice = [].slice,\n $nodes;\n\n if (simpleRe.test(selector)) {\n switch(selector[0]) {\n case '#':\n $nodes = context.getElementById(selector.substr(1));\n break;\n case '.':\n $nodes = slice.call(context.getElementsByClassName(selector.substr(1).replace(periodRe, ' ')));\n break;\n default:\n $nodes = slice.call(context.getElementsByTagName(selector));\n }\n }\n else {\n $nodes = slice.call(context.querySelectorAll(selector));\n }\n\n return $nodes ? (_is_array($nodes) ? $nodes : [$nodes]) : [];\n }\n\n function _get_filtered_nodes($nodes, selector) {\n var $filtered_nodes = [];\n\n for (var i = 0, len = $nodes.length; $nodes !== null && (i < len); i++) {\n if ($nodes[i].nodeType === 1) {\n if (typeof selector === 'undefined') {\n $filtered_nodes.push($nodes[i]);\n }\n else if($nodes[i].tagName.toLowerCase() === selector) {\n $filtered_nodes.push($nodes[i]);\n }\n }\n }\n\n return $filtered_nodes;\n }\n\n function _create_element(html) {\n var $div = document.createElement('div');\n\n $div.innerHTML = html.trim(); // textContent/nodeValue funktionieren hier nicht,\n // Bug bei Popups: http://stackoverflow.com/a/25896886\n\n return _get_filtered_nodes($div.childNodes);\n }\n\n function _get_scroll_offset($node) {\n var top,\n left;\n\n if (_is_window($node)) {\n if (window.pageXOffset !== null) {\n top = window.pageYOffset;\n left = window.pageXOffset;\n }\n }\n else {\n top = $node.scrollTop;\n left = $node.scrollLeft;\n }\n\n return {\n top : top,\n left : left\n };\n }\n\n function _get_vendor_property(property) {\n var css_prefixes = ['Moz', 'ms', 'Webkit'],\n $div = document.createElement('div');\n\n if (property in $div) {\n return property;\n }\n\n var cap_name = property.charAt(0).toUpperCase() + property.slice(1),\n orig_name = property;\n\n for (var i = css_prefixes.length; i > 0; i--) {\n property = css_prefixes[i] + cap_name;\n\n if (property in $div.style) {\n return property;\n }\n }\n\n return orig_name;\n }\n\n function _camel_case_property(property) {\n return property.replace(/-([\\da-z])/gi, function(all, letter) {\n return letter.toUpperCase();\n });\n }\n\n function _get_prefixed_event(type, $types) {\n var $div = document.createElement('div').style,\n $prefixes = ['', 'Moz', 'ms', 'Webkit'],\n prefix;\n\n for (var i = 0, len = $prefixes.length; i < len; i++) {\n prefix = $prefixes[i] + type.charAt(0).toUpperCase() + type.substr(1, type.length - 4);\n\n if (prefix in $div) {\n return $types[prefix];\n }\n }\n\n return type;\n }\n\n function _get_event_type_wheel(type) {\n return type === 'wheel' ? 'onwheel' in document || document.documentMode >= 9 ? 'wheel' : 'mousewheel' : type;\n }\n\n function _get_event_type_animatedend(type) {\n return _get_prefixed_event(type, {\n 'animation' : 'animationend',\n 'MozAnimation' : 'animationend',\n 'WebkitAnimation' : 'webkitAnimationEnd',\n 'msAnimation' : 'MSAnimationEnd'\n });\n }\n\n function _get_event_type_transitionend(type) {\n return _get_prefixed_event(type, {\n 'transition' : 'transitionend',\n 'MozTransition' : 'transitionend',\n 'WebkitTransition' : 'webkitTransitionEnd',\n 'msTransition' : 'MSTransitionEnd'\n });\n }\n\n function _get_event_type(type) {\n type = _get_event_type_animatedend(type) || _get_event_type_transitionend(type);\n type = _get_event_type_wheel(type);\n\n return type;\n }\n\n // Erstellt Helpers Object\n\n $$ = function(selector, context) {\n context = context || document;\n return new $helpers(selector, context);\n };\n\n $helpers = function(selector, context) {\n var _this = this,\n $nodes = [];\n\n if (selector) {\n if (typeof selector === 'string') {\n selector = selector.trim();\n\n if (/<[a-z][\\s\\S]*>/i.test(selector)) {\n $nodes = _create_element(selector);\n }\n else {\n $nodes = _query(selector, context);\n }\n }\n else if (_is_array(selector)) {\n $nodes = selector;\n }\n else {\n $nodes = [selector];\n }\n }\n\n for (var i = 0, len = $nodes.length; i < len; i++) {\n _this[i] = $nodes[i];\n }\n\n _this.length = $nodes.length;\n\n return _this;\n };\n\n // Helpers API\n\n $helpers.prototype = {\n is_helper: true,\n\n find: function(selector) {\n var $this = this,\n $nodes = [],\n context;\n\n if ($this.length !== 0) {\n if ($this.length === 1) {\n $nodes = _query(selector, $this[0]);\n }\n else {\n for (var i = 0, len = $this.length; i < len; i++) {\n $nodes = $nodes.concat(\n _query(selector, $this[i])\n );\n }\n\n $nodes = $nodes.reduce(function(a, b) {\n if (a.indexOf(b) < 0) {\n a.push(b);\n }\n\n return a;\n }, []);\n }\n }\n\n return $$($nodes, context);\n },\n\n children: function(selector) {\n var $this = this,\n $filtered_child_nodes = [],\n $child_node;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n $child_node = this[i].firstChild;\n\n while ($child_node) {\n if ($child_node.nodeType === 1 && $child_node.matches(selector)) {\n $filtered_child_nodes.push($child_node);\n }\n\n $child_node = $child_node.nextSibling;\n }\n }\n\n return $$($filtered_child_nodes);\n },\n\n get_parent: function(selector) {\n var $this = this,\n maybe_class,\n name_only,\n tag_name,\n class_name,\n $obj;\n\n if ($this.length === 1) {\n $obj = $this[0];\n\n if (typeof selector !== 'undefined') {\n maybe_class = selector[0] === '.';\n name_only = maybe_class ? selector.slice(1) : selector;\n tag_name = name_only.toUpperCase();\n }\n\n do {\n $obj = $obj.parentNode;\n class_name = (' ' + $obj.className + ' ').replace(/[\\t\\r\\n\\f]/g, ' ');\n\n if ((typeof selector === 'undefined' && $obj.nodeType === 1) ||\n (maybe_class && class_name.indexOf(' ' + name_only + ' ') > -1) ||\n $obj.tagName === tag_name) {\n\n return $$($obj);\n }\n }\n while ($obj && $obj.nodeType !== 9);\n }\n },\n\n append: function($obj) {\n var $this = this;\n\n if (typeof $obj === 'string') {\n $obj = _create_element($obj);\n }\n\n for (var i = 0, len = $this.length; i < len; i++) {\n for (var j = 0, obj_len = $obj.length; j < obj_len; j++) {\n $this[i].appendChild($obj[j]);\n }\n }\n },\n\n prepend: function($obj) {\n var $this = this;\n\n if (typeof $obj === 'string') {\n $obj = _create_element($obj);\n }\n\n for (var i = 0, len = $this.length; i < len; i++) {\n for (var j = 0, obj_len = $obj.length; j < obj_len; j++) {\n $this[i].insertBefore($obj[j], $this[i].childNodes[0]);\n }\n }\n },\n\n before: function($obj) {\n var $this = this;\n\n if (typeof $obj === 'string') {\n $obj = _create_element($obj);\n }\n\n for (var i = 0, len = $this.length; i < len; i++) {\n for (var j = 0, obj_len = $obj.length; j < obj_len; j++) {\n $this[i].parentNode.insertBefore($obj[j], $this[i]);\n }\n }\n },\n\n after: function($obj) {\n var $this = this;\n\n if (typeof $obj === 'string') {\n $obj = _create_element($obj);\n }\n\n for (var i = 0, len = $this.length; i < len; i++) {\n for (var j = 0, obj_len = $obj.length; j < obj_len; j++) {\n $this[i].parentNode.insertBefore($obj[j], $this[i].nextSibling);\n }\n }\n },\n\n remove: function() {\n var $this = this;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n $this[i].parentNode.removeChild($this[i]);\n }\n },\n\n remove_children: function() {\n var $this = this;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n while ($this[i].firstChild) {\n $this[i].removeChild($this[i].firstChild);\n }\n }\n },\n\n empty: function() {\n var $this = this;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n while ($this[i].firstChild) {\n $this[i].removeChild($this[i].firstChild);\n }\n }\n },\n\n clone: function() {\n var $this = this;\n\n if ($this.length === 1) {\n return $$($this[0].cloneNode(true));\n }\n },\n\n next_sibling: function() {\n var $this = this;\n\n if ($this.length === 1) {\n var $obj = $this[0];\n\n do {\n $obj = $obj.nextSibling;\n }\n while ($obj && $obj.nodeType !== 1);\n\n return $$($obj);\n }\n },\n\n prev_sibling: function() {\n var $this = this;\n\n if ($this.length === 1) {\n var $obj = $this[0];\n\n do {\n $obj = $obj.previousSibling;\n }\n while ($obj && $obj.nodeType !== 1);\n\n return $$($obj);\n }\n },\n\n get_siblings: function() {\n var $this = this,\n $siblings = [];\n\n if ($this.length === 1) {\n var $obj = $this[0],\n $children = $obj.parentNode.children;\n\n for (var i = 0, len = $children.length; i < len; i++) {\n if ($children[i].nodeType === 1 && $children[i] !== $obj) {\n $siblings.push($children[i]);\n }\n }\n }\n\n return $$($siblings);\n },\n\n get_attribute: function(attribute) {\n var $this = this,\n value = null;\n\n if ($this.length === 1) {\n if (_is_input($this[0]) && attribute === 'value') {\n value = $this[0][attribute];\n }\n else {\n value = $this[0].getAttribute(attribute);\n }\n }\n\n return value === null ? '' : value;\n },\n\n set_attribute: function(attribute, value) {\n var $this = this;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n if (_is_input($this[i]) && attribute === 'value') {\n $this[i][attribute] = value;\n }\n else if (value) {\n $this[i].setAttribute(attribute, value);\n }\n else {\n $this[i].removeAttribute(attribute);\n }\n }\n },\n\n set_text: function(text) {\n var $this = this;\n\n if ($this.length === 1) {\n $this[0].textContent = text.toString().trim();\n }\n },\n\n get_text: function() {\n var $this = this,\n text = '';\n\n if ($this.length === 1) {\n text = $this[0].textContent.trim();\n }\n\n return text;\n },\n\n insert_html: function(html, outer) {\n var $this = this;\n\n if ($this.length === 1) {\n if (outer === true) {\n $this[0].outerHTML = html;\n }\n else {\n $this[0].innerHTML = html;\n }\n }\n },\n\n get_html: function(outer) {\n var $this = this,\n html = '';\n\n if ($this.length === 1) {\n if (outer === true) {\n html = $this[0].outerHTML;\n }\n else {\n html = $this[0].innerHTML;\n }\n }\n\n return html.trim();\n },\n\n get_file: function() {\n var $this = this,\n filename = '',\n filetype = '',\n filesize = 0,\n $file;\n\n if ($this.length === 1) {\n $file = $this[0].files;\n\n if ($file.length) {\n filename = $file[0].name;\n filesize = $file[0].size;\n filetype = $file[0].type;\n }\n }\n\n return {\n 'filename' : filename,\n 'filesize' : filesize,\n 'filetype' : filetype\n };\n },\n\n is_tag: function(tagname) {\n var $this = this,\n is_tag = false;\n\n if ($this.length === 1) {\n is_tag = $this[0].tagName.toLowerCase() === tagname;\n }\n\n return is_tag;\n },\n\n is_visible: function() {\n var $this = this,\n is_visible = false,\n $styles,\n $obj;\n\n if ($this.length === 1) {\n $obj = $this[0];\n is_visible = true;\n\n while ($obj && $obj.nodeType !== 9) {\n $styles = window.getComputedStyle($obj, null);\n\n if ($obj.offsetWidth === 0 &&\n $obj.offsetHeight === 0 &&\n $styles.display === 'none') {\n\n is_visible = false;\n break;\n }\n\n $obj = $obj.parentElement;\n }\n }\n\n return is_visible;\n },\n\n index: function(element) {\n var $this = this;\n\n if (typeof element === 'object') {\n for (var i = 0, len = $this.length; i < len; i++) {\n if ($this[i] === element) {\n return i;\n }\n }\n }\n else if (typeof element === 'number') {\n if (element === -1) {\n element = $this.length - 1;\n }\n\n return $$($this[element]);\n }\n },\n\n for_each: function(callback) {\n var $this = this;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n callback.call($this[i], i);\n }\n },\n\n is_checked: function() {\n var $this = this,\n is_checked = false;\n\n if ($this.length === 1) {\n is_checked = $this[0].checked;\n }\n\n return is_checked;\n },\n\n add_class: function(selector) {\n var $this = this,\n $selector = selector.split(' '),\n updated = false,\n trimmed_classes,\n classes;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n trimmed_classes = String.prototype.trim.call($this[i].getAttribute('class') || '');\n classes = trimmed_classes ? trimmed_classes.split(/\\s+/) : [];\n\n for (var j = 0, selector_len = $selector.length; j < selector_len; j++) {\n if (classes.indexOf($selector[j]) === -1) {\n classes.push($selector[j]);\n updated = true;\n }\n }\n\n if (updated) {\n $this[i].setAttribute('class', classes.sort().join(' '));\n updated = false;\n }\n }\n },\n\n remove_class: function(selector) {\n var $this = this,\n $selector = selector.split(' '),\n updated = false,\n trimmed_classes,\n classes,\n index;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n trimmed_classes = String.prototype.trim.call($this[i].getAttribute('class') || '');\n classes = trimmed_classes ? trimmed_classes.split(/\\s+/) : [];\n\n for (var j = 0, selector_len = $selector.length; j < selector_len; j++) {\n index = classes.indexOf($selector[j]);\n\n if (index > -1) {\n classes.splice(index, 1);\n updated = true;\n }\n }\n\n if (updated) {\n if (classes.length) {\n $this[i].setAttribute('class', classes.sort().join(' '));\n }\n else {\n $this[i].removeAttribute('class');\n }\n updated = false;\n }\n }\n },\n\n has_class: function(selector) {\n var $this = this,\n has_class = false;\n\n if ($this.length === 1) {\n has_class = $this[0].classList.contains(selector);\n }\n\n return has_class;\n },\n\n focus: function() {\n var $this = this;\n\n if ($this.length) {\n $this[0].focus();\n }\n },\n\n click: function() {\n var $this = this;\n\n if ($this.length) {\n $this[0].click();\n }\n },\n\n set_style: function($styles) {\n var $this = this,\n property_camel_case,\n property_vendor;\n\n for (var i = 0, len = $this.length; i < len; i++) {\n for (var property in $styles) {\n if ($styles.hasOwnProperty(property)) {\n property_camel_case = _camel_case_property(property);\n property_vendor = _get_vendor_property(property_camel_case);\n\n $this[i].style[property_vendor] = $styles[property];\n }\n }\n }\n },\n\n get_style: function(property) {\n var $this = this,\n style = '',\n $styles;\n\n if ($this.length === 1) {\n $styles = window.getComputedStyle($this[0], null);\n style = $styles.getPropertyValue(property);\n }\n\n return style;\n },\n\n set_data: function(key, value) {\n var $this = this;\n\n if ($this.length === 1) {\n $this[0][key] = value;\n }\n },\n\n get_data: function(key) {\n var $this = this;\n\n if ($this.length === 1) {\n return $this[0][key];\n }\n },\n\n get_width: function() {\n var $this = this,\n width = 0;\n\n if ($this.length === 1) {\n if (_is_window($this[0])) {\n width = document.documentElement.clientWidth;\n }\n else if (_is_document($this[0])) {\n width = Math.max(\n document.body.scrollWidth,\n document.body.offsetWidth\n );\n }\n else {\n width = this[0].offsetWidth;\n }\n }\n\n return width;\n },\n\n get_height: function() {\n var $this = this,\n height = 0;\n\n if ($this.length === 1) {\n if (_is_window($this[0])) {\n height = document.documentElement.clientHeight;\n }\n else if (_is_document($this[0])) {\n height = Math.max(\n document.body.scrollHeight,\n document.body.offsetHeight\n );\n }\n else {\n height = this[0].offsetHeight;\n }\n }\n\n return height;\n },\n\n get_offset_top: function() {\n var $this = this,\n top = 0,\n $obj;\n\n if ($this.length === 1) {\n $obj = $this[0];\n top = $obj.offsetTop;\n\n while ($obj = $obj.offsetParent) {\n top += $obj.offsetTop;\n }\n }\n\n return top;\n },\n\n get_offset_left: function() {\n var $this = this,\n left = 0,\n $obj;\n\n if ($this.length === 1) {\n $obj = $this[0];\n left = $obj.offsetLeft;\n\n while ($obj = $obj.offsetParent) {\n left += $obj.offsetLeft;\n }\n }\n\n return left;\n },\n\n get_scroll_top: function() {\n var $this = this,\n scroll_top = 0;\n\n if ($this.length === 1) {\n scroll_top = _get_scroll_offset($this[0]).top;\n }\n\n return scroll_top;\n },\n\n get_scroll_left: function() {\n var $this = this,\n scroll_left = 0;\n\n if ($this.length === 1) {\n scroll_left = _get_scroll_offset($this[0]).left;\n }\n\n return scroll_left;\n },\n\n set_value: function(value) {\n return this.set_attribute('value', value);\n },\n\n get_value: function() {\n return this.get_attribute('value');\n },\n\n add_event: function(type, listener) {\n var $this = this,\n $types = type.split(','),\n event_listener;\n\n event_listener = function(event) {\n listener.call(this, event);\n };\n\n for (var i = 0, len = $this.length; i < len; i++) {\n for (var j = 0, types_len = $types.length; j < types_len; j++) {\n type = _get_event_type($types[j].trim());\n\n $this[i].addEventListener(type, event_listener, false);\n }\n }\n },\n };\n\n // Ladet JavaScript-Code nach\n\n $$.load_script = function(url, callback) {\n var $head = document.getElementsByTagName('head')[0],\n $script = document.createElement('script');\n\n $script.src = (navigator.userAgent.indexOf('MSIE ') > 0) ? url + '?' + Math.random() : url;\n\n if (callback && typeof(callback) === 'function') {\n $script.onload = callback;\n }\n\n $head.appendChild($script);\n };\n\n // Ajax\n\n $$.get = function(url, callback) {\n if (window.XMLHttpRequest) {\n var $ajax = new XMLHttpRequest();\n\n $ajax.open('GET', url, true);\n\n $ajax.onload = function() {\n if (this.status === 200) {\n callback.call(this, this.responseText);\n }\n };\n\n $ajax.send();\n }\n };\n\n // Setzt hash\n\n $$.set_hash = function(hash) {\n if (window.history && window.history.replaceState) { // IE 10+\n hash = hash || window.location.pathname;\n window.history.replaceState(null, document.title, hash);\n }\n };\n\n // Verbindet zwei Objekte\n\n $$.merge_objects = function($obj1, $obj2) {\n for (var key in $obj2) {\n if ($obj2[key].constructor === Object) {\n $obj2[key] = $$.merge_objects($obj1[key], $obj2[key]);\n }\n else {\n $obj1[key] = $obj2[key];\n }\n }\n\n return $obj1;\n };\n\n // Scrollt zu\n\n $$.scroll_to = function(to, duration, callback) {\n var diff = to - $$(window).get_scroll_top(),\n step = diff / duration * 10;\n\n setTimeout(function() {\n window.scrollBy(0, step);\n\n if (Math.abs(diff) <= Math.abs(step)) {\n\n if (typeof callback === 'function') {\n callback();\n }\n\n return;\n }\n\n $$.scroll_to(to, duration - 10, callback);\n }, 10);\n };\n\n\n // Gibt die Touch-Richtung zurück\n\n $$.get_touch_range = function(dist_x, dist_y) {\n var theta = Math.atan2(-dist_x, dist_y),\n degrees;\n\n if (theta < 0) {\n theta += 2 * Math.PI;\n }\n\n degrees = Math.floor(theta * (180 / Math.PI) - 180);\n\n if (degrees < 0 && degrees > -180) {\n degrees = 360 - Math.abs(degrees);\n }\n\n return {\n is_top : degrees <= 40 || degrees >= 320,\n is_right : degrees >= 50 && degrees <= 130,\n is_bottom : degrees >= 140 && degrees <= 220,\n is_left : degrees >= 230 && degrees <= 310\n };\n };\n\n window.$$ = $$;\n}(document, window));\n\n// DEVICE\n// -------------------------------------------------------------------------------------------------\n\n(function(document, navigator, window) {\n var $html = document.querySelector('html');\n\n function _find(needle) {\n return navigator.userAgent.toLowerCase().indexOf(needle) !== -1;\n }\n\n window.device = {};\n\n device.iphone = _find('iphone');\n device.ipod = _find('ipod');\n device.ipad = _find('ipad');\n device.ios = device.iphone || device.ipod || device.ipad;\n device.android = _find('android');\n device.android_phone = device.android && _find('mobile');\n device.android_tablet = device.android && !_find('mobile');\n device.windows = _find('windows');\n device.windows_phone = device.windows && _find('phone');\n device.windows_tablet = device.windows && _find('touch');\n device.mobile = device.android_phone || device.iphone || device.ipod || device.windows_phone;\n device.tablet = device.ipad || device.android_tablet || device.windows_tablet;\n\n if (device.ios) {\n if (device.ipad) {\n $html.classList.add('ios', 'ipad', 'tablet');\n }\n else if (device.iphone || device.ipod) {\n $html.classList.add('ios', 'iphone', 'mobile');\n }\n }\n else if (device.android) {\n if (device.android_tablet) {\n $html.classList.add('android', 'tablet');\n }\n else {\n $html.classList.add('android', 'mobile');\n }\n }\n else if (device.windows) {\n if (device.windows_tablet) {\n $html.classList.add('windows', 'tablet');\n }\n else if (device.windows_phone) {\n $html.classList.add('windows', 'mobile');\n }\n else {\n $html.classList.add('desktop');\n }\n }\n else {\n $html.classList.add('desktop');\n }\n}(document, navigator, window));\n\n// BROWSER SUPPORT\n// -------------------------------------------------------------------------------------------------\n\n(function(document, navigator, window) {\n var $html = document.querySelector('html'),\n $div = document.createElement('div');\n\n // Überprüft die Browser-Unterstützung für CSS-Attribute wie z. B. transition\n\n function _has_css_property(property) {\n var css_property_found = false,\n prefixes = ['Moz', 'Webkit'];\n\n if (property in $div.style) {\n css_property_found = true;\n }\n else {\n property = property.charAt(0).toUpperCase() + property.substr(1);\n\n for (var i = 0, len = prefixes.length; i < len; i++) {\n if (typeof $div.style[prefixes[i] + property] !== 'undefined') {\n css_property_found = true;\n break;\n }\n }\n }\n\n return css_property_found;\n }\n\n window.support = {\n touch : window.navigator.msMaxTouchPoints || 'ontouchstart' in document.documentElement,\n transition : _has_css_property('transition') && 'TransitionEvent' in window // TransitionEvent wird benötigt für Android 4.1.x (https://bugs.dojotoolkit.org/ticket/17164#comment:13)\n };\n\n // Setzt Klassen auf den HTML-Tag\n\n $html.classList.remove('no_js');\n $html.classList.add(support.touch ? 'touch' : 'no_touch');\n $html.classList.add(support.transition ? 'csstransitions' : 'no_csstransitions');\n}(document, navigator, window));\n\n// PREFETCH\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var Prefetch = function($prefetch_link) {\n var _this = this;\n\n _this._$prefetch_link = $prefetch_link;\n _this._$options = _this._$prefetch_link.getAttribute('data-performance');\n };\n\n Prefetch.prototype = {\n init: function() {\n var _this = this;\n\n if (_this._$options.indexOf('prefetch') > -1) {\n _this._prefetch();\n }\n\n if (_this._$options.indexOf('prerender') > -1) {\n _this._prerender();\n }\n },\n\n _prefetch: function() {\n var _this = this,\n $link = document.createElement('link');\n\n $link.setAttribute('rel', 'prefetch');\n $link.setAttribute('href', _this._$prefetch_link.getAttribute('href'));\n\n document.querySelector('head').appendChild($link);\n },\n\n _prerender: function() {\n var _this = this,\n $link = document.createElement('link');\n\n $link.setAttribute('rel', 'prerender');\n $link.setAttribute('href', _this._$prefetch_link.getAttribute('href'));\n\n document.querySelector('head').appendChild($link);\n }\n };\n\n var $prefetch_links = document.querySelectorAll('[data-performance]');\n\n for (var i = 0, len = $prefetch_links.length; i < len; i++) {\n new Prefetch($prefetch_links[i]).init();\n }\n})(document);\n\n// BARRIEREFREIHEIT\n// Wird gebraucht für alle Projekte\n\n// EXTERNER LINK\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var $links = document.querySelectorAll('[href*=http]');\n\n for (var i = 0, $link; $link = $links[i]; i++) {\n var target = $link.getAttribute('target'),\n title = $link.getAttribute('title');\n\n if (title && target === '_blank') {\n $link.setAttribute('title', title + ' (Neues Fenster)');\n }\n }\n})(document);\n\n\n// TASTATURSTEUERUNG FÜR ELEMENTE MIT ROLE BUTTON\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var $buttons = document.querySelectorAll('[role=\"button\"]');\n\n for (var i = 0, $button; $button = $buttons[i]; i++) {\n $button.addEventListener('keyup', function(event) {\n if (event.keyCode === 13 && this.tagName !== 'A' || event.keyCode === 32) {\n this.click();\n }\n });\n }\n})(document);\n\n\n// ERKENNUNG DER FOKUSMETHODE FÜR LINKS\n// Wird verwendet für verbesserten Fokus auf Links (siehe default.less)\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var FocusMethod = function($link) {\n var _this = this;\n\n _this.$link = $link;\n\n _this.focus_method = false;\n _this.last_focus_method = false;\n };\n\n FocusMethod.prototype = {\n init: function() {\n var _this = this;\n\n _this.$link.addEventListener('keydown',\n _this._on_key_down.bind(this), {\n 'passive' : true\n }\n );\n\n _this.$link.addEventListener('mousedown',\n _this._on_mouse_down.bind(this), {\n 'passive' : true\n }\n );\n\n _this.$link.addEventListener('touchstart',\n _this._on_touch_start.bind(this), {\n 'passive' : true\n }\n );\n\n _this.$link.addEventListener('focus', _this._on_focus.bind(this));\n _this.$link.addEventListener('blur', _this._on_blur.bind(this));\n\n window.addEventListener('blur', this._on_window_blur.bind(this));\n },\n\n _on_key_down: function() {\n var _this = this;\n\n _this.focus_method = 'key';\n },\n\n _on_mouse_down: function() {\n var _this = this;\n\n if (_this.focus_method === 'touch') {\n return;\n }\n\n _this.focus_method = 'mouse';\n },\n\n _on_touch_start: function() {\n var _this = this;\n\n _this.focus_method = 'touch';\n },\n\n _on_focus: function() {\n var _this = this;\n\n if (!_this.focus_method) {\n _this.focus_method = _this.last_focus_method;\n }\n\n _this.$link.setAttribute('data-focus-method', _this.focus_method);\n\n this.last_focus_method = this.focus_method;\n this.focus_method = false;\n },\n\n _on_blur: function() {\n var _this = this;\n\n _this.$link.removeAttribute('data-focus-method');\n },\n\n _on_window_blur: function() {\n var _this = this;\n\n _this.focus_method = false;\n }\n };\n\n var $links = document.querySelectorAll('a, [tabindex=\"0\"]');\n\n for (var i = 0, $link; $link = $links[i]; i++) {\n new FocusMethod($link).init();\n }\n})(document);\n\n// COOKIE-HINWEIS\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var $cookie_banner = document.querySelector('#cookie_banner'),\n $body = document.querySelector('body');\n\n if (!$cookie_banner) {\n return;\n }\n\n var $close = $cookie_banner.querySelector('.close'),\n now = new Date().getTime(),\n storage = localStorage.getItem(domain + '_cookie_banner');\n\n if (storage === null || now > storage) {\n $cookie_banner.classList.remove('hideme');\n $body.classList.add('cb_visible');\n }\n\n $close.addEventListener('click', function(event) {\n event.preventDefault();\n\n localStorage.setItem(domain + '_cookie_banner', now + 31536000);\n $cookie_banner.classList.add('hideme');\n $body.classList.remove('cb_visible');\n });\n}(document));\n\n// COOKIE-HINWEIS FUSSZEILE VERLÄNGERN\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var $cookie_banner = document.querySelector('#cookie_banner'),\n $footer = document.querySelector('footer'),\n $close = $cookie_banner.querySelector('.close'),\n $cookie_spacing;\n\n if (!$cookie_banner) {\n return;\n }\n\n $close.addEventListener('click', function() {\n if ($footer) {\n $footer.removeChild($cookie_spacing);\n }\n });\n\n if ($footer) {\n $cookie_spacing = document.createElement('div');\n $footer.appendChild($cookie_spacing);\n $cookie_spacing.style.paddingBottom = $cookie_banner.clientHeight + 'px';\n window.addEventListener('resize', function() {\n $cookie_spacing.style.paddingBottom = $cookie_banner.clientHeight + 'px';\n }, false);\n }\n\n}(document));\n\n// SEO: KEYWORDS IN STEUERNEWS ARTIKEL HERVORHEBEN\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var SeoHighlightKeywords = function($article) {\n var _this = this;\n\n _this.$article = $article;\n _this.current_url = document.location.href;\n _this.previous_url = document.referrer;\n };\n\n SeoHighlightKeywords.prototype = {\n init: function() {\n var _this = this;\n\n if (_this.previous_url.indexOf('/thema/') > -1 &&\n _this.current_url.indexOf('/thema/') === -1) {\n\n var keyword = _this._get_keyword(),\n regex = new RegExp('(?![^<]*>)' + '(' + keyword + ')', 'gi');\n\n _this.$article.innerHTML = _this.$article.innerHTML.replace(regex , '$1');\n }\n },\n\n _get_keyword: function() {\n var _this = this,\n keywords = _this.previous_url.split('/thema/');\n\n return decodeURIComponent(keywords[1]);\n }\n };\n\n var $article = document.getElementById('highlight_keywords');\n\n if ($article) { // has_seo raus, wenn SEO-Baustein\n new SeoHighlightKeywords($article).init();\n }\n})(document);\n\n// TOOLTIP\n// Wird gebraucht für: google_maps,newsletter_quick_subscribe, formular\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var Tooltip = function($tooltip_wrapper) {\n var _this = this;\n\n _this.$tooltip_wrapper = $tooltip_wrapper;\n _this.$tooltip = $tooltip_wrapper.querySelector('[role=\"tooltip\"]');\n\n _this._temp_disabled = false;\n _this._perm_disabled = false;\n _this._focused = false;\n\n var tooltip_id = _this.$tooltip.getAttribute('id');\n\n _this.$tooltip_trigger = $tooltip_wrapper.querySelector('[aria-describedby=\"' + tooltip_id + '\"]');\n };\n\n Tooltip.prototype = {\n init: function() {\n var _this = this;\n\n _this.$tooltip_trigger.addEventListener('keyup', _this._check_tooltip.bind(_this));\n _this.$tooltip_trigger.addEventListener('focus', _this._check_tooltip.bind(_this));\n _this.$tooltip_trigger.addEventListener('blur', _this._hide_tooltip.bind(_this));\n\n if (!support.touch) {\n _this.$tooltip.addEventListener('mouseenter', _this._check_tooltip.bind(_this));\n _this.$tooltip.addEventListener('mouseleave', _this._hide_tooltip.bind(_this));\n _this.$tooltip_trigger.addEventListener('mouseenter', _this._check_tooltip.bind(_this));\n _this.$tooltip_trigger.addEventListener('mouseleave', _this._hide_tooltip.bind(_this));\n }\n\n _this._keyboard_nav();\n },\n\n _check_tooltip: function(event) {\n var _this = this;\n\n if (_this.$tooltip_trigger.getAttribute('aria-invalid') === 'true') {\n _this._perm_disabled = false;\n _this._show_tooltip(event);\n }\n else {\n _this._perm_disabled = true;\n _this._hide_tooltip(event);\n }\n },\n\n _show_tooltip: function(event) {\n var _this = this;\n\n if (_this.disabled) {\n return;\n }\n\n if (event.type === 'keyup' || event.type === 'focus') {\n _this._focused = true;\n }\n\n if (!_this._temp_disabled && !_this._perm_disabled ||\n event.type === 'mouseenter' && !_this._perm_disabled) {\n _this.$tooltip.setAttribute('aria-hidden', 'false');\n }\n },\n\n _hide_tooltip: function(event) {\n var _this = this;\n\n if (event.type === 'blur') {\n _this._temp_disabled = false;\n _this._focused = false;\n }\n\n if (!_this._focused || _this._perm_disabled || _this._temp_disabled) {\n _this.$tooltip.setAttribute('aria-hidden', 'true');\n }\n },\n\n _keyboard_nav: function() {\n var _this = this;\n\n _this.$tooltip_trigger.addEventListener('keydown', function(event) {\n if (event.keyCode === 27 && _this.$tooltip.getAttribute('aria-hidden') === 'false') {\n event.stopPropagation();\n\n _this._temp_disabled = true;\n _this._hide_tooltip(event);\n }\n });\n }\n };\n\n var $tooltip_wrappers = document.querySelectorAll('.tooltip_wrapper');\n\n for (var i = 0, len = $tooltip_wrappers.length; i < len; i++) {\n new Tooltip($tooltip_wrappers[i]).init();\n }\n\n window.Tooltip = Tooltip;\n})(document);\n\n// DROPDOWN MENU\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var DropdownMenu = function($dropdown_menu) {\n var _this = this,\n id = $dropdown_menu.getAttribute('id');\n\n _this.$dropdown_menu = $dropdown_menu;\n _this.$main_menuitems = $dropdown_menu.querySelectorAll('#' + id + ' > ul > li > a');\n _this.$sub_menuitems = $dropdown_menu.querySelectorAll('#' + id + ' > ul > li li > a');\n _this.$sub_menuitems_with_sub_sub_menu = $dropdown_menu.querySelectorAll('#' + id + ' > ul > li li > a.has_sub_sub_menu');\n _this.$main_menuitems_with_sub_menu = $dropdown_menu.querySelectorAll('[href^=\"#\"]');\n _this.main_menu_index = 0;\n _this.event_type = false;\n\n _this.$key = {\n 'tab' : 9,\n 'enter' : 13,\n 'escape' : 27,\n 'space' : 32,\n 'arrow_left' : 37,\n 'arrow_up' : 38,\n 'arrow_right' : 39,\n 'arrow_down' : 40\n };\n };\n\n DropdownMenu.prototype = {\n init: function() {\n var _this = this;\n\n _this._init_accessibility();\n _this._init_keyboard();\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems[i]; i++) {\n var $li = $main_menuitem.parentElement;\n\n $li.addEventListener('mouseenter',\n _this._on_mouseenter_main_menuitem.bind(_this, $main_menuitem)\n );\n\n $li.addEventListener('mouseover',\n _this._on_mouseover_main_menuitem.bind(_this, $main_menuitem)\n );\n\n $li.addEventListener('mouseout',\n _this._on_mouseout_main_menuitem.bind(_this)\n );\n\n $main_menuitem.addEventListener('focus',\n _this._on_focus_main_menuitem.bind(_this, $main_menuitem)\n );\n }\n },\n\n _init_accessibility: function() {\n var _this = this;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems_with_sub_menu[i]; i++) {\n $main_menuitem.setAttribute('aria-expanded', 'false');\n\n $main_menuitem.addEventListener('click', function(event) {\n event.preventDefault();\n });\n }\n },\n\n _init_keyboard: function() {\n var _this = this;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems[i]; i++) {\n $main_menuitem.addEventListener('keydown',\n _this._on_keydown_main_menuitem.bind(_this, $main_menuitem)\n );\n }\n\n for (var j = 0, $sub_menuitem; $sub_menuitem = _this.$sub_menuitems[j]; j++) {\n $sub_menuitem.addEventListener('keydown',\n _this._on_keydown_sub_menuitem.bind(_this, $sub_menuitem)\n );\n }\n },\n\n _on_keydown_main_menuitem: function($main_menuitem, event) {\n var _this = this;\n\n _this.event_type = event.type;\n _this.main_menu_index = _this._get_main_menuitem_index();\n _this.$main_menuitem = $main_menuitem;\n _this.$sub_menu = $main_menuitem.nextElementSibling;\n\n switch(event.keyCode) {\n case _this.$key.tab:\n if (event.shiftKey) {\n _this.main_menu_index -= 1;\n }\n else {\n _this.main_menu_index += 1;\n }\n\n break;\n\n case _this.$key.enter:\n if (_this.$sub_menu) {\n event.preventDefault();\n _this._close_sub_menus();\n this._open_sub_menu(false);\n }\n\n break;\n\n case _this.$key.escape:\n event.preventDefault();\n\n if (_this.sub_menu_is_open) {\n event.stopPropagation();\n }\n\n _this._close_sub_menu();\n\n break;\n\n case _this.$key.arrow_left:\n event.preventDefault();\n\n _this._focus_prev_main_menuitem();\n\n break;\n\n case _this.$key.arrow_up:\n event.preventDefault();\n\n if (_this.sub_menu_is_open) {\n _this._focus_prev_menuitem();\n }\n\n break;\n\n case _this.$key.arrow_right:\n event.preventDefault();\n\n _this._focus_next_main_menuitem();\n\n break;\n\n case _this.$key.arrow_down:\n event.preventDefault();\n\n if (_this.$sub_menu) {\n this._open_sub_menu(false);\n }\n else {\n _this._focus_next_main_menuitem();\n }\n\n break;\n }\n },\n\n _get_main_menuitem_index: function() {\n var _this = this;\n\n return Array.prototype.indexOf.call(_this.$main_menuitems, document.activeElement);\n },\n\n _focus_prev_menuitem: function() {\n var _this = this;\n\n _this.main_menu_index -= 1;\n\n if (_this.main_menu_index < 0) {\n _this.main_menu_index = 0;\n\n return;\n }\n\n _this.$main_menuitem = _this.$main_menuitems[_this.main_menu_index];\n _this.$sub_menu = _this.$main_menuitem.nextElementSibling;\n\n if (_this.$sub_menu && _this.sub_menu_is_open) {\n this._open_sub_menu(true);\n }\n else {\n _this.$main_menuitem.focus();\n }\n },\n\n _focus_prev_main_menuitem: function() {\n var _this = this;\n\n _this.main_menu_index -= 1;\n\n if (_this.main_menu_index < 0) {\n _this.main_menu_index = 0;\n\n return;\n }\n\n _this.$main_menuitem = _this.$main_menuitems[_this.main_menu_index];\n\n _this.$main_menuitem.focus();\n },\n\n _focus_next_main_menuitem: function() {\n var _this = this;\n\n _this.main_menu_index += 1;\n\n if (_this.main_menu_index === _this.$main_menuitems.length) {\n _this.main_menu_index = _this.$main_menuitems.length - 1;\n\n return;\n }\n\n _this.$main_menuitem = _this.$main_menuitems[_this.main_menu_index];\n\n _this.$main_menuitem.focus();\n },\n\n _on_mouseenter_main_menuitem: function($main_menuitem, event) {\n var _this = this;\n\n _this.event_type = event.type;\n _this.$main_menuitem = $main_menuitem;\n _this.$sub_menu = $main_menuitem.nextElementSibling;\n\n _this._close_sub_menus();\n\n if (_this.$sub_menu) {\n _this._open_sub_menu(false);\n }\n },\n\n _on_mouseover_main_menuitem: function() {\n var _this = this;\n\n clearTimeout(_this.close_sub_menu_timeout);\n },\n\n _on_mouseout_main_menuitem: function() {\n var _this = this;\n\n _this.close_sub_menu_timeout = setTimeout(function() {\n _this._close_sub_menus();\n }, 1000);\n },\n\n _on_focus_main_menuitem: function($main_menuitem, event) {\n var _this = this;\n\n _this.event_type = event.type;\n\n if (_this.sub_menu_is_open) {\n _this.$main_menuitem = $main_menuitem;\n _this.$sub_menu = $main_menuitem.nextElementSibling;\n\n _this._close_sub_menus();\n\n if (_this.$sub_menu) {\n _this._open_sub_menu();\n }\n }\n },\n\n _on_keydown_sub_menuitem: function($sub_menuitem, event) {\n var _this = this;\n\n switch(event.keyCode) {\n case _this.$key.tab:\n\n if (event.shiftKey) {\n _this.sub_menu_index -= 1;\n }\n else {\n _this.sub_menu_index += 1;\n }\n\n break;\n\n case _this.$key.escape:\n event.preventDefault();\n event.stopPropagation();\n\n _this._close_sub_menu();\n\n break;\n\n case _this.$key.arrow_left:\n event.preventDefault();\n\n _this.sub_menu_index = 0;\n _this._focus_prev_sub_menuitem();\n\n break;\n\n case _this.$key.arrow_up:\n event.preventDefault();\n\n _this._focus_prev_sub_menuitem();\n\n break;\n\n case _this.$key.arrow_right:\n event.preventDefault();\n\n _this.sub_menu_index = 0;\n _this._focus_prev_sub_menuitem();\n\n break;\n\n case _this.$key.arrow_down:\n event.preventDefault();\n\n _this._focus_next_sub_menuitem();\n\n break;\n }\n\n _this._open_sub_sub_menu();\n },\n\n _open_sub_sub_menu: function() {\n var _this = this;\n $sub_menuitem = _this.$main_menuitem.nextElementSibling.querySelectorAll('li li > a')[_this.sub_menu_index];\n\n if($sub_menuitem) {\n\n for (var i = 0, $menuitem; $menuitem = _this.$sub_menuitems[i]; i++) {\n var is_current_menuitem = $sub_menuitem === $menuitem,\n $sub_sub_menu = $sub_menuitem.parentNode.querySelector('ul');\n is_sub_sub_menuitem = $sub_menuitem.classList.contains('sub_sub_menuitem');\n\n if (is_current_menuitem && $sub_sub_menu) {\n $menuitem.parentElement.classList.add('hover');\n $menuitem.setAttribute('aria-expanded', true);\n }\n\n else if (is_current_menuitem && is_sub_sub_menuitem) {\n $menuitem.parentElement.parentElement.parentElement.classList.add('hover');\n $menuitem.parentElement.parentElement.parentElement.setAttribute('aria-expanded', true);\n }\n\n else {\n $menuitem.parentElement.classList.remove('hover');\n $menuitem.setAttribute('aria-expanded', false);\n }\n }\n }\n\n else {\n _this._close_sub_sub_menus();\n }\n },\n\n _close_sub_sub_menus: function() {\n var _this = this;\n\n for (var i = 0, $sub_menuitem; $sub_menuitem = _this.$sub_menuitems_with_sub_sub_menu[i]; i++) {\n $sub_menuitem.parentElement.classList.remove('hover');\n $sub_menuitem.setAttribute('aria-expanded', 'false');\n }\n },\n\n _focus_prev_sub_menuitem: function() {\n var _this = this,\n $sub_menuitems = _this.$main_menuitem.nextElementSibling.querySelectorAll('a'),\n $sub_menuitem,\n $main_menuitem;\n\n _this.sub_menu_index -= 1;\n\n $sub_menuitem = $sub_menuitems[_this.sub_menu_index];\n\n if (_this.sub_menu_index < 0) {\n $main_menuitem = _this.$main_menuitems[_this.main_menu_index];\n\n if ($main_menuitem) {\n $main_menuitem.focus();\n }\n }\n else if ($sub_menuitem) {\n $sub_menuitem.focus();\n }\n },\n\n _focus_next_sub_menuitem: function() {\n var _this = this,\n $sub_menuitems = _this.$main_menuitem.nextElementSibling.querySelectorAll('a'),\n $sub_menuitem,\n $main_menuitem;\n\n _this.sub_menu_index += 1;\n\n $sub_menuitem = $sub_menuitems[_this.sub_menu_index];\n\n if (_this.sub_menu_index === $sub_menuitems.length) {\n _this.main_menu_index += 1;\n\n $main_menuitem = _this.$main_menuitems[_this.main_menu_index];\n\n if ($main_menuitem) {\n $main_menuitem.focus();\n }\n else {\n _this.main_menu_index -= 1;\n _this.sub_menu_index -= 1;\n }\n }\n else {\n $sub_menuitem.focus();\n }\n },\n\n _open_sub_menu: function(focus_last_sub_menuitem) {\n var _this = this,\n $sub_menuitems;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems_with_sub_menu[i]; i++) {\n var is_current_menuitem = _this.$main_menuitem === $main_menuitem;\n\n if (is_current_menuitem) {\n $main_menuitem.parentElement.classList.add('hover');\n }\n else {\n $main_menuitem.parentElement.classList.remove('hover');\n }\n\n $main_menuitem.setAttribute('aria-expanded', is_current_menuitem);\n }\n\n _this.sub_menu_index = 0;\n\n if (_this.event_type === 'keydown') {\n $sub_menuitems = _this.$sub_menu.querySelectorAll('a');\n\n if (focus_last_sub_menuitem) {\n _this.sub_menu_index = $sub_menuitems.length - 1;\n }\n\n $sub_menuitems[_this.sub_menu_index].focus();\n\n _this.event_type = false;\n }\n\n _this.sub_menu_is_open = true;\n },\n\n _close_sub_menu: function() {\n var _this = this;\n\n _this.$main_menuitem.parentElement.classList.remove('hover');\n _this.$main_menuitem.setAttribute('aria-expanded', 'false');\n\n _this.sub_menu_is_open = false;\n\n _this.$main_menuitem.focus();\n },\n\n _close_sub_menus: function() {\n var _this = this;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems_with_sub_menu[i]; i++) {\n $main_menuitem.parentElement.classList.remove('hover');\n $main_menuitem.setAttribute('aria-expanded', 'false');\n }\n\n _this._close_sub_sub_menus();\n }\n };\n\n var $dropdown_menu = document.getElementsByClassName('dropdown_menu');\n\n for (var i = 0, len = $dropdown_menu.length; i < len; i++) {\n new DropdownMenu($dropdown_menu[i]).init();\n }\n})(document);\n\n// OFFCANVAS MENU ACORDION\n// MUSS VOR DEM EIGENTLICHEN ACORDION GELADEN WERDEN\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var OffCanvasMenuAccordion = function($toggle_offcanvas_menu) {\n var _this = this,\n controls;\n\n controls = $toggle_offcanvas_menu.querySelector('.open_offcanvas_menu').getAttribute('aria-controls');\n\n\n _this.$main_menuitems_with_sub_menu = document.getElementById(controls).querySelectorAll('[href^=\"#\"]');\n };\n\n OffCanvasMenuAccordion.prototype = {\n init: function() {\n var _this = this;\n\n _this._init_accessibility();\n\n for (var j = 0, $main_menuitem_with_sub_menu; $main_menuitem_with_sub_menu = _this.$main_menuitems_with_sub_menu[j]; j++) {\n $main_menuitem_with_sub_menu.addEventListener('click',\n _this._on_click_main_menuitem.bind(_this, $main_menuitem_with_sub_menu)\n );\n }\n\n window.addEventListener('resize',\n _this._window_size_changed.bind(_this, $main_menuitem_with_sub_menu)\n );\n\n },\n\n _init_accessibility: function() {\n var _this = this;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems_with_sub_menu[i]; i++) {\n if ($main_menuitem.classList.contains('active')) {\n $element = $main_menuitem.parentElement.querySelector('ul');\n $element.style.height = $element.scrollHeight + 'px';\n }\n }\n },\n\n _window_size_changed: function() {\n var _this = this;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems_with_sub_menu[i]; i++) {\n if ($main_menuitem.getAttribute('aria-expanded') === 'true') {\n var $element = $main_menuitem.parentElement.querySelector('ul');\n // reset height font.size manipulates height of element\n $element.style.maxHeight = 'auto';\n $element.style.maxHeight = $element.scrollHeight + 'px';\n }\n }\n },\n\n _on_click_main_menuitem: function($main_menuitem_selected) {\n var _this = this;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems_with_sub_menu[i]; i++) {\n var $element = $main_menuitem.parentElement.querySelector('ul');\n\n if ($main_menuitem_selected === $main_menuitem) {\n $element.style.maxHeight = '0px';\n if ($main_menuitem.getAttribute('aria-expanded') === 'false') {\n $element.style.maxHeight = '400px';\n } else {\n $element.style.maxHeight = '0px';\n }\n }\n else {\n $element.style.maxHeight = '0px';\n }\n }\n }\n };\n\n // init OffCanvasMenu only once\n if (document.getElementsByClassName('toggle_offcanvas_menu') > 0) {\n new OffCanvasMenuAccordion(document.getElementsByClassName('toggle_offcanvas_menu')[0]).init();\n var $toggle_offcanvas_menu = document.getElementsByClassName('toggle_offcanvas_menu');\n\n // create an Opener for each button\n for (var i = 0, len = $toggle_offcanvas_menu.length; i < len; i++) {\n new OffCanvasMenuAccordion($toggle_offcanvas_menu[i]).init();\n }\n }\n\n\n})(document);\n\n// OFFCANVAS MENU\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var OffCanvasMenu = function($toggle_offcanvas_menu) {\n var _this = this,\n controls;\n\n controls = $toggle_offcanvas_menu.querySelector('.open_offcanvas_menu').getAttribute('aria-controls');\n\n _this.$offcanvas_menu = document.getElementById(controls);\n _this.$main_menuitems_with_sub_menu = _this.$offcanvas_menu.querySelectorAll('[href^=\"#\"]');\n // _this.$offcanvas_menu_content = _this.$offcanvas_menu.querySelector('.offcanvas_menu_content');\n _this.$focus_elements = _this.$offcanvas_menu.querySelectorAll('a');\n _this.focus_element = false;\n _this.$offcanvas_menu_state = false;\n\n _this.$key = {\n 'tab' : 9,\n };\n };\n\n OffCanvasMenu.prototype = {\n init: function() {\n var _this = this;\n\n _this._init_accessibility();\n _this._init_keyboard();\n\n for (var j = 0, $main_menuitem_with_sub_menu; $main_menuitem_with_sub_menu = _this.$main_menuitems_with_sub_menu[j]; j++) {\n $main_menuitem_with_sub_menu.addEventListener('click',\n _this._on_click_main_menuitem.bind(_this, $main_menuitem_with_sub_menu)\n );\n }\n },\n\n _init_accessibility: function() {\n var _this = this;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems_with_sub_menu[i]; i++) {\n $main_menuitem.setAttribute('aria-expanded', $main_menuitem.classList.contains('active'));\n }\n },\n\n _init_keyboard: function() {\n var _this = this;\n\n document.addEventListener('keydown', function(event) {\n if (!_this.$offcanvas_menu_state.checked) {\n return;\n }\n\n if (event.keyCode === _this.$key.tab) {\n event.preventDefault();\n\n if (event.shiftKey) {\n _this._focus_element_with_shift_tab_key(event);\n }\n else {\n _this._focus_element_with_tab_key(event);\n }\n }\n });\n },\n\n _focus_element_with_shift_tab_key: function() {\n var _this = this;\n\n _this.tab_index -= 1;\n\n if (_this.tab_index < 0) {\n _this.tab_index = _this.$focus_elements.length - 1;\n }\n\n for (var i = _this.tab_index, $focus_element; $focus_element = _this.$focus_elements[i]; i--) {\n if ($focus_element.offsetParent === null || $focus_element.offsetWidth === 0) {\n _this.tab_index -= 1;\n continue;\n }\n\n _this.$focus_elements[_this.tab_index].focus();\n break;\n }\n },\n\n _focus_element_with_tab_key: function() {\n var _this = this;\n\n if (_this.tab_index === _this.$focus_elements.length - 1) {\n _this.tab_index = 0;\n }\n else {\n _this.tab_index += 1;\n }\n\n for (var i = _this.tab_index, $focus_element; $focus_element = _this.$focus_elements[i]; i++) {\n if ($focus_element.offsetParent === null || $focus_element.offsetWidth === 0) {\n _this.tab_index += 1;\n\n if (_this.tab_index > _this.$focus_elements.length - 1) {\n _this.tab_index = 0;\n }\n else {\n continue;\n }\n }\n\n _this.$focus_elements[_this.tab_index].focus();\n break;\n }\n },\n\n _on_click_main_menuitem: function($main_menuitem, event) {\n var _this = this;\n\n event.preventDefault();\n\n _this.$main_menuitem = $main_menuitem;\n\n _this._toggle_sub_menus();\n },\n\n _toggle_sub_menus: function() {\n var _this = this;\n\n for (var i = 0, $main_menuitem; $main_menuitem = _this.$main_menuitems_with_sub_menu[i]; i++) {\n var is_active_menuitem = _this.$main_menuitem === $main_menuitem,\n $parent_menuitems = _this._get_parent_menu_elements();\n\n if (is_active_menuitem) {\n _this.sub_menu_is_open = $main_menuitem.getAttribute('aria-expanded') === 'false';\n\n $main_menuitem.parentElement.classList.toggle('expanded', _this.sub_menu_is_open);\n $main_menuitem.setAttribute('aria-expanded', _this.sub_menu_is_open);\n }\n else if ($parent_menuitems.indexOf($main_menuitem) !== -1) { // Check parents\n $main_menuitem.parentElement.classList.toggle('expanded', 'true');\n $main_menuitem.setAttribute('aria-expanded', 'true');\n }\n else {\n $main_menuitem.parentElement.classList.remove('expanded');\n $main_menuitem.setAttribute('aria-expanded', 'false');\n }\n }\n },\n\n _get_parent_menu_elements: function() {\n var _this = this.$main_menuitem,\n $findings = [];\n\n while (_this.parentNode) {\n _this = _this.parentNode;\n\n if (_this.nodeName.toLowerCase() === 'li') {\n $findings.push(_this.querySelector('a'));\n }\n }\n\n return $findings || False;\n }\n };\n\n var OffCanvasMenuOpener = function($toggle_offcanvas_menu) {\n var _this = this;\n var controls = $toggle_offcanvas_menu.querySelector('.open_offcanvas_menu').getAttribute('aria-controls');\n\n _this.$toggle_offcanvas_menu = $toggle_offcanvas_menu.querySelector('label');\n _this.$open_offcanvas_menu = $toggle_offcanvas_menu.querySelector('.open_offcanvas_menu');\n _this.$close_offcanvas_menu = $toggle_offcanvas_menu.querySelector('.close_offcanvas_menu');\n _this.$offcanvas_menu_state = document.querySelector('#' + _this.$toggle_offcanvas_menu.getAttribute('for'));\n _this.$offcanvas_menu = document.getElementById(controls);\n _this.$focus_elements = _this.$offcanvas_menu.querySelectorAll('a');\n\n _this.$key = {\n 'enter' : 13,\n 'escape' : 27,\n 'space' : 32\n };\n };\n\n OffCanvasMenuOpener.prototype = {\n init: function() {\n var _this = this;\n\n _this._init_keyboard();\n\n _this.$toggle_offcanvas_menu.addEventListener('click', _this._toggle_menu.bind(_this));\n _this.$open_offcanvas_menu.addEventListener('click', _this._open_menu.bind(_this));\n _this.$close_offcanvas_menu.addEventListener('click', _this._close_menu.bind(_this));\n\n _this.$offcanvas_menu.addEventListener('transitionend', function(event) {\n\n // var _this = this;\n if (event.target !== this) {\n return;\n }\n\n if (_this.$offcanvas_menu_state.checked) {\n if (_this.focus_element) {\n _this.focus_element = false;\n _this.$focus_elements[0].focus();\n }\n }\n else if (_this.focus_element) {\n _this.focus_element = false;\n _this.$open_offcanvas_menu.focus();\n }\n });\n },\n\n _init_keyboard: function() {\n var _this = this;\n\n _this.$open_offcanvas_menu.addEventListener('keydown', function(event) {\n if (event.keyCode === _this.$key.space || event.keyCode === _this.$key.enter) {\n _this.focus_element = true;\n }\n\n if (event.keyCode === _this.$key.space) {\n event.preventDefault();\n }\n });\n\n _this.$close_offcanvas_menu.addEventListener('keydown', function(event) {\n if (event.keyCode === _this.$key.space) {\n event.preventDefault();\n }\n });\n\n document.addEventListener('keydown', function(event) {\n if (!_this.$offcanvas_menu_state.checked) {\n return;\n }\n\n if (event.keyCode === _this.$key.escape) {\n _this.focus_element = true;\n _this._close_menu(event);\n }\n });\n },\n\n _scroll_to_top: function() {\n var _this = this;\n\n setTimeout(function() {\n var duration = 300,\n interval;\n\n interval = setInterval(function() {\n var diff = -window.pageYOffset,\n step = diff / duration * 10;\n\n if (Math.abs(diff) <= Math.abs(step)) {\n if (_this.$anchor) {\n _this.$anchor.focus();\n }\n\n clearInterval(interval);\n }\n\n window.scrollBy(0, step);\n duration -= 10;\n }, 10);\n }, 300);\n },\n\n _toggle_menu: function(event) {\n var _this = this;\n\n if (_this.$offcanvas_menu_state.checked) {\n _this._close_menu(event);\n }\n else {\n _this._open_menu(event);\n }\n },\n\n _open_menu: function(event) {\n var _this = this;\n\n event.preventDefault();\n\n _this.$offcanvas_menu_state.checked = true;\n _this.tab_index = 0;\n\n _this._scroll_to_top();\n },\n\n _close_menu: function(event) {\n var _this = this;\n\n event.preventDefault();\n\n _this.$offcanvas_menu_state.checked = false;\n _this.tab_index = 0;\n }\n };\n\n var $offcanvas_menu = document.getElementsByClassName('toggle_offcanvas_menu');\n\n if ($offcanvas_menu.length) {\n new OffCanvasMenu($offcanvas_menu[0]).init(); // init once\n\n // create an opener for each button\n for (var i = 0, len = $offcanvas_menu.length; i < len; i++) {\n new OffCanvasMenuOpener($offcanvas_menu[i]).init();\n }\n }\n})(document);\n\n// FORMULARE\n// -------------------------------------------------------------------------------------------------\n\n(function() {\n var FormHelpers = function(element) {\n var _this = this;\n\n _this.$el = $$(element);\n };\n\n FormHelpers.prototype = {\n init: function() {\n var _this = this;\n\n _this._file_upload();\n _this._select();\n },\n\n _file_upload: function() {\n var _this = this;\n\n if (_this.$el.get_attribute('type') !== 'file') {\n return;\n }\n\n var $file_name = _this.$el.get_parent().children('.file_name'),\n $file_button = _this.$el.get_parent().children('.file_button');\n\n _this.$el.add_event('focus', function() {\n $file_button.add_class('focus');\n });\n\n _this.$el.add_event('blur', function() {\n $file_button.remove_class('focus');\n });\n\n _this.$el.add_event('change', function() {\n $file_name.set_text(_this.$el.get_file().filename);\n });\n },\n\n _select: function() {\n var _this = this;\n\n if (!_this.$el.is_tag('select')) {\n return;\n }\n\n _this.$el.add_event('focus', function() {\n _this.$el.get_parent('.select').add_class('focus');\n });\n\n _this.$el.add_event('blur', function() {\n _this.$el.get_parent('.select').remove_class('focus');\n });\n }\n };\n\n $$('input, select, textarea').for_each(function() {\n new FormHelpers(this).init();\n });\n})();\n\n// FORM VALIDIERUNG\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n var FormValidation = function($form) {\n var _this = this;\n\n _this._$form = $form;\n _this._$inputs = _this._$form.querySelectorAll('input.validate, textarea.validate');\n _this._$inputs_checkbox = _this._$form.querySelectorAll('input[type=checkbox][required]');\n _this._$selects = _this._$form.querySelectorAll('select[required]');\n _this._$button = _this._$form.querySelector('[type=\"submit\"]');\n _this._$error_msg_button = _this._$form.querySelector('.error_msg_button');\n };\n\n FormValidation.prototype = {\n init: function() {\n var _this = this;\n\n for (var j = 0, inputs_len = _this._$inputs.length; j < inputs_len; j++) {\n var $input = this._$inputs[j];\n\n $input.addEventListener('keyup', _this._input_keyup.bind(_this, $input));\n $input.addEventListener('blur', _this._input_blur.bind(_this, $input));\n }\n\n for (var i = 0, inputs_checkbox_len = _this._$inputs_checkbox.length; i < inputs_checkbox_len; i++) {\n var $input_checkbox = this._$inputs_checkbox[i];\n\n $input_checkbox.addEventListener('click', _this._input_checkbox_click.bind(_this, $input_checkbox));\n $input_checkbox.addEventListener('keyup', _this._input_checkbox_keyup.bind(_this, $input_checkbox));\n $input_checkbox.addEventListener('blur', _this._input_checkbox_blur.bind(_this, $input_checkbox));\n }\n\n for (var x = 0, selects_len = _this._$selects.length; x < selects_len; x++) {\n var $select = this._$selects[x];\n\n $select.addEventListener('change', _this._select_change.bind(_this, $select));\n $select.addEventListener('blur', _this._select_blur.bind(_this, $select));\n }\n\n _this._$form.addEventListener('submit', _this._submit.bind(_this));\n\n _this._check_submit_status();\n },\n\n _input_keyup: function($input, event) {\n if (event.keyCode === 9 || event.keyCode === 27) {\n // No validation on TAB or ESC\n return;\n }\n\n this._validate_input($input, event);\n },\n\n _input_blur: function($input, event) {\n this._validate_input($input, event);\n },\n\n _validate_input: function($input, event) {\n var _this = this,\n id = $input.getAttribute('id'),\n $error_warning = document.querySelector('[for=\"' + id + '\"] .error_warning'),\n min = parseInt($input.getAttribute('min')),\n pattern = $input.getAttribute('pattern'),\n regexp = new RegExp(pattern),\n value = $input.value;\n\n if ($input.type === 'file') {\n _this._validate_input_file($input);\n }\n else if (value) {\n if (pattern && value.match(regexp) || value >= min || !pattern && $input.required) {\n $input.setAttribute('aria-invalid', 'false');\n\n if (!event || event.type === 'blur') {\n $input.classList.remove('error');\n\n if ($error_warning) {\n $error_warning.classList.remove('show');\n }\n }\n }\n else {\n $input.setAttribute('aria-invalid', 'true');\n\n if (!event || event.type === 'blur') {\n $input.classList.add('error');\n\n if ($error_warning) {\n $error_warning.classList.add('show');\n }\n }\n }\n }\n else if ($input.required) {\n $input.setAttribute('aria-invalid', 'true');\n\n if (!event || event.type === 'blur') {\n $input.classList.add('error');\n\n if ($error_warning) {\n $error_warning.classList.add('show');\n }\n }\n }\n else {\n $input.setAttribute('aria-invalid', 'false');\n\n if (!event || event.type === 'blur') {\n $input.classList.remove('error');\n\n if ($error_warning) {\n $error_warning.classList.remove('show');\n }\n }\n }\n _this._check_submit_status();\n },\n\n _validate_input_file: function($input) {\n var _this = this,\n id = $input.getAttribute('id'),\n $error_warning = document.querySelector('[for=\"' + id + '\"] .error_warning'),\n value = $input.value;\n\n while ($input && $input.nodeType !== 9) {\n $input = $input.parentNode;\n\n if ($input.classList.contains('file')) {\n break;\n }\n }\n\n if (value) {\n $input.classList.remove('error');\n if ($error_warning) {\n $error_warning.classList.remove('show');\n }\n }\n else {\n $input.classList.add('error');\n if ($error_warning) {\n $error_warning.classList.add('show');\n }\n }\n\n _this._check_submit_status();\n },\n\n _input_checkbox_click: function($input_checkbox, event) {\n this._validate_input_checkbox($input_checkbox, event);\n },\n\n _input_checkbox_keyup: function($input_checkbox, event) {\n if (event.keyCode === 32) { // SPACE\n this._validate_input_checkbox($input_checkbox, event);\n }\n },\n\n _input_checkbox_blur: function($input_checkbox, event) {\n this._validate_input_checkbox($input_checkbox, event);\n },\n\n _validate_input_checkbox: function($input_checkbox, event) {\n var _this = this,\n id = $input_checkbox.getAttribute('id'),\n $error_warning = document.querySelector('#label_' + id + ' .error_warning');\n\n if ($input_checkbox.checked && !event ||\n $input_checkbox.checked && event && event.type !== 'keyup' ||\n !$input_checkbox.checked && event && event.type === 'keyup') {\n $input_checkbox.setAttribute('aria-invalid', 'false');\n $input_checkbox.classList.remove('error');\n $error_warning.classList.remove('show');\n }\n else {\n $input_checkbox.setAttribute('aria-invalid', 'true');\n $input_checkbox.classList.add('error');\n $error_warning.classList.add('show');\n }\n\n _this._check_submit_status();\n },\n\n _select_change: function($select, event) {\n this._validate_select($select, event);\n },\n\n _select_blur: function($select, event) {\n this._validate_select($select, event);\n },\n\n _validate_select: function($select, event) {\n var _this = this,\n id = $select.getAttribute('id'),\n $wrapper = $select,\n $error_warning = document.querySelector('#label_' + id + ' .error_warning'),\n value = $select.value;\n\n while ($wrapper && $wrapper.nodeType !== 9) {\n $wrapper = $wrapper.parentNode;\n\n if ($wrapper.classList.contains('select')) {\n break;\n }\n }\n\n if (value) {\n $select.setAttribute('aria-invalid', 'false');\n\n if (!event || event.type === 'blur') {\n $wrapper.classList.remove('error');\n $error_warning.classList.remove('show');\n }\n }\n else {\n $select.setAttribute('aria-invalid', 'true');\n\n if (!event || event.type === 'blur') {\n $wrapper.classList.add('error');\n $error_warning.classList.add('show');\n }\n }\n\n _this._check_submit_status();\n },\n\n _check_submit_status: function() {\n var _this = this,\n error_msg_button_id = _this._$error_msg_button.getAttribute('id'),\n enable_submit_button = true;\n\n for (var j = 0, inputs_len = _this._$inputs.length; j < inputs_len; j++) {\n if (_this._$inputs[j].getAttribute('aria-invalid') === 'true' ||\n _this._$inputs[j].required && !_this._$inputs[j].value) {\n enable_submit_button = false;\n break;\n }\n }\n\n for (var i = 0, inputs_checkbox_len = _this._$inputs_checkbox.length; i < inputs_checkbox_len; i++) {\n if (!_this._$inputs_checkbox[i].checked) {\n enable_submit_button = false;\n break;\n }\n }\n\n for (var x = 0, selects_len = _this._$selects.length; x < selects_len; x++) {\n if (!_this._$selects[x].value) {\n enable_submit_button = false;\n break;\n }\n }\n\n if (enable_submit_button) {\n _this._$button.classList.remove('disabled');\n _this._$button.removeAttribute('aria-describedby');\n }\n else {\n _this._$button.classList.add('disabled');\n _this._$button.setAttribute('aria-describedby', error_msg_button_id);\n }\n },\n\n _show_first_error: function() {\n var _this = this,\n $first_input_error = _this._$form.querySelector('[aria-invalid=\"true\"]'),\n top_position = 0,\n offset_top = 60,\n duration = 300,\n interval,\n $obj;\n\n if ($first_input_error) {\n $obj = $first_input_error;\n top_position = $obj.offsetTop - offset_top;\n\n while ($obj = $obj.offsetParent) {\n top_position += $obj.offsetTop;\n }\n\n if (window.pageYOffset < top_position) {\n $first_input_error.focus();\n return;\n }\n\n interval = setInterval(function() {\n var diff = top_position - window.pageYOffset,\n step = diff / duration * 10;\n\n if (Math.abs(diff) <= Math.abs(step)) {\n $first_input_error.focus();\n clearInterval(interval);\n }\n\n window.scrollBy(0, step);\n duration -= 10;\n }, 10);\n }\n },\n\n _submit: function(event) {\n var _this = this;\n\n _this._check_submit_status();\n\n if (_this._$button.classList.contains('disabled')) {\n event.preventDefault();\n\n for (var j = 0, inputs_len = _this._$inputs.length; j < inputs_len; j++) {\n _this._validate_input(this._$inputs[j]);\n }\n\n for (var i = 0, inputs_checkbox_len = _this._$inputs_checkbox.length; i < inputs_checkbox_len; i++) {\n _this._validate_input_checkbox(this._$inputs_checkbox[i]);\n }\n\n for (var x = 0, selects_len = _this._$selects.length; x < selects_len; x++) {\n _this._validate_select(this._$selects[x]);\n }\n\n _this._show_first_error();\n }\n }\n };\n\n var $forms = document.querySelectorAll('[data-form*=\"validate\"]');\n\n for (var i = 0, len = $forms.length; i < len; i++) {\n new FormValidation($forms[i]).init();\n }\n})(document, window);\n\n// FORMULARE: STANDORT AUSWAHL\n// Wird verwendet für: formular\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var $secure_targets = document.querySelectorAll('[name=\"secure_target\"]');\n\n if (!$secure_targets.length) {\n return;\n }\n\n for (var i = 0, $secure_target; $secure_target = $secure_targets[i]; i++) {\n $secure_target.addEventListener('change', function() {\n var id = this.options[this.selectedIndex].getAttribute('id');\n\n if (id) {\n var $locations_data = document.querySelectorAll('[data-forms-location=' + id + '] span');\n\n for (var j = 0, $location_data; $location_data = $locations_data[j]; j++) {\n var title = $location_data.getAttribute('title'),\n $input = document.querySelector('input[name=\"to_' + title + '\"]');\n\n $input.value = $location_data.textContent.trim();\n }\n }\n });\n }\n})(document);\n\n// FORMULARE: EINGABE ZWISCHENSPEICHERN\n// Wird verwendet für: formular\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var FormCache = function($form) {\n var _this = this;\n\n _this._$form = $form;\n _this._form_name = _this._$form.getAttribute('data-form-cache');\n _this._$inputs = _this._$form.querySelectorAll('input, select, textarea');\n _this._$cache = {};\n };\n\n FormCache.prototype = {\n init: function() {\n var _this = this;\n\n _this._init_events();\n _this._restore_cache();\n },\n\n _init_events: function() {\n var _this = this,\n $input,\n type,\n event_listener;\n\n for (var i = 0, len = _this._$inputs.length; i < len; i++) {\n $input = _this._$inputs[i];\n type = $input.type;\n\n if (type === 'checkbox') {\n event_listener = 'click';\n }\n else if (type === 'select-one') {\n event_listener = 'change';\n }\n else {\n event_listener = 'input';\n }\n\n $input.addEventListener(event_listener, _this._save_cache.bind(_this, $input), false);\n }\n\n _this._$form.addEventListener('submit', _this._reset_cache.bind(_this), false);\n },\n\n _save_cache: function($input) {\n var _this = this,\n name = $input.getAttribute('name'),\n type = $input.type;\n\n if (type === 'checkbox') {\n _this._$cache[name] = $input.checked;\n }\n else if (type === 'select-one') {\n _this._$cache[name] = $input.selectedIndex;\n }\n else {\n _this._$cache[name] = $input.value;\n }\n\n localStorage.setItem(domain + '_form_cache_' + _this._form_name, JSON.stringify(_this._$cache));\n },\n\n _restore_cache: function() {\n var _this = this,\n $cache = localStorage.getItem(domain + '_form_cache_' + _this._form_name),\n $input,\n type;\n\n if (!$cache) {\n return;\n }\n\n _this._$cache = JSON.parse($cache);\n\n for (var key in _this._$cache) {\n if (_this._$cache.hasOwnProperty(key)) {\n $input = _this._$form.querySelector('[name=\"' + key + '\"]');\n type = $input.type;\n\n if (type === 'checkbox') {\n $input.checked = _this._$cache[key];\n }\n else if (type === 'select-one') {\n $input.selectedIndex = _this._$cache[key];\n }\n else {\n $input.value = _this._$cache[key];\n }\n }\n }\n },\n\n _reset_cache: function() {\n var _this = this,\n is_valid = true;\n\n for (var i = 0, len = _this._$inputs.length; i < len; i++) {\n if (_this._$inputs[i].getAttribute('aria-invalid') === 'true') {\n is_valid = false;\n break;\n }\n }\n\n if (is_valid) {\n localStorage.removeItem(domain + '_form_cache_' + _this._form_name);\n }\n }\n };\n\n var $forms = document.querySelectorAll('[data-form-cache]');\n\n for (var i = 0, len = $forms.length; i < len; i++) {\n new FormCache($forms[i]).init();\n }\n})(document);\n\n// FORMULARE: TEXTAREA AUTOGROW\n// Wird gebraucht für alle \n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n function _camel_case_property(property) {\n return property.replace(/-([\\da-z])/gi, function(all, letter) {\n return letter.toUpperCase();\n });\n }\n\n function _get_style($element, property) {\n var $styles = window.getComputedStyle($element, null),\n style = $styles.getPropertyValue(property);\n\n return style;\n }\n\n function _set_style($element, $styles) {\n for (var property in $styles) {\n if ($styles.hasOwnProperty(property)) {\n $element.style[_camel_case_property(property)] = $styles[property];\n }\n }\n }\n\n var FormTextareaAutogrow = function($textarea) {\n var _this = this;\n\n _this.$textarea = $textarea;\n _this.default_height = $textarea.offsetHeight;\n _this.line_height = parseInt(_get_style($textarea, 'line-height'));\n _this.padding_bottom = parseInt(_get_style($textarea, 'padding-bottom'));\n _this.padding_top = parseInt(_get_style($textarea, 'padding-top'));\n };\n\n FormTextareaAutogrow.prototype = {\n init: function() {\n var _this = this;\n\n _this.$textarea.addEventListener('blur', _this._set_textarea_height.bind(_this));\n _this.$textarea.addEventListener('focus', _this._set_textarea_height.bind(_this));\n _this.$textarea.addEventListener('keyup', _this._set_textarea_height.bind(_this));\n\n _this._set_textarea_height();\n },\n\n _set_textarea_height: function() {\n var _this = this,\n $lines = _this.$textarea.value.split('\\n'),\n length = $lines.length,\n height = (length + 2) * _this.line_height + _this.padding_bottom + _this.padding_top;\n\n _set_style(_this.$textarea, {\n 'height' : height >= _this.default_height ? height / 16 + 'rem' : _this.default_height / 16 + 'rem'\n });\n }\n };\n\n var $textareas = document.getElementsByTagName('textarea');\n\n for (var i = 0, $textarea; $textarea = $textareas[i]; i++) {\n new FormTextareaAutogrow($textarea).init();\n }\n})(document);\n\n// FORMULARE: ÜBERNIMMT URL-PARAMETER FÜR DIE INPUTS\n// Wird gebraucht für: formular\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n var FormUrlParameters = function($form) {\n var _this = this;\n\n _this._$form = $form;\n };\n\n FormUrlParameters.prototype = {\n init: function() {\n var _this = this,\n href = window.location.href;\n\n if (href.indexOf('?') > -1) {\n _this._get_url_parameters(href);\n }\n },\n\n _get_url_parameters: function(href) {\n var _this = this,\n $parameters = href.split('?')[1].split('&');\n\n _this._set_inputs_value($parameters);\n },\n\n _set_inputs_value: function($parameters) {\n var _this = this,\n $inputs,\n $pair,\n key,\n value,\n tagname,\n type;\n\n for (var i = 0, $parameter; $parameter = $parameters[i]; i++) {\n $pair = $parameter.split('=');\n key = $pair[0];\n value = decodeURIComponent($pair[1].replace(/\\+/g,' '));\n $inputs = _this._$form.querySelectorAll('[name=' + key + ']');\n\n if (!value || !$inputs.length) {\n continue;\n }\n\n tagname = $inputs[0].tagName;\n\n if (tagname === 'SELECT') {\n _this.selected_select($inputs[0], value);\n }\n else if (tagname === 'INPUT' || tagname === 'TEXTAREA') {\n type = $inputs[0].type;\n\n if (type === 'radio') {\n _this._checked_input_radio($inputs, value);\n }\n else if (type === 'checkbox') {\n $inputs[0].defaultChecked = value;\n }\n else {\n $inputs[0].defaultValue = value;\n }\n }\n }\n },\n\n selected_select: function($select, value) {\n var $options = $select.querySelectorAll('option');\n\n for (var j = 0, $option; $option = $options[j]; j++) {\n if ($option.getAttribute('value') === value) {\n $option.defaultSelected = true;\n }\n else {\n $option.defaultSelected = false;\n }\n }\n },\n\n _checked_input_radio: function($inputs, value) {\n for (var j = 0, $input; $input = $inputs[j]; j++) {\n if ($input.getAttribute('value') === value) {\n $input.defaultChecked = true;\n }\n else {\n $input.defaultChecked = false;\n }\n }\n }\n };\n\n var $forms = document.querySelectorAll('[data-form*=\"url-parameters\"]');\n\n for (var i = 0, $form; $form = $forms[i]; i++) {\n new FormUrlParameters($form).init();\n }\n})(document, window);\n\n// FORMULARE: SUCHBEGRIFF-VORSCHLÄGE FÜR DIE SUCHE\n// Wird gebraucht in: steuernews_search, search\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var FormSearchDataList = function($form) {\n var _this = this;\n\n _this.$form = $form;\n _this.$search = $form.querySelector('input[type=\"search\"]');\n _this.$submit = $form.querySelector('button[type=\"submit\"]');\n _this.datalist = $form.getAttribute('data-datalist');\n _this.list = _this.$search.getAttribute('list');\n\n _this.datalist_loaded = false;\n _this.datalist_inserted = false;\n };\n\n FormSearchDataList.prototype = {\n init: function() {\n var _this = this;\n\n _this.$form.addEventListener('submit', _this._submit.bind(this));\n _this.$search.addEventListener('focus', _this._focus.bind(this));\n\n _this._init_keyboard();\n _this._get_datalist();\n },\n\n _init_keyboard: function() {\n var _this = this,\n $key = {\n 'enter' : 13\n };\n\n _this.$search.addEventListener('keyup', function(event) {\n if (event.keyCode !== $key.enter) {\n return;\n }\n\n var url = _this._get_url();\n\n if (url) {\n location.href = url;\n }\n });\n },\n\n _get_datalist: function() {\n var _this = this,\n $datalist = sessionStorage.getItem(domain + '_datalist_search'),\n $ajax,\n $options;\n\n if (!_this.datalist) {\n return;\n }\n\n if ($datalist) {\n $options = _this._get_sorted_datalist($datalist);\n _this._create_datalist($options);\n }\n else {\n $ajax = new XMLHttpRequest();\n $ajax.open('GET', _this.datalist, true);\n\n $ajax.onload = function() {\n if (this.status === 200) {\n sessionStorage.setItem(domain + '_datalist_search', this.responseText);\n\n $options = _this._get_sorted_datalist(this.responseText);\n _this._create_datalist($options);\n }\n };\n\n $ajax.send();\n }\n },\n\n _get_sorted_datalist: function($datalist) {\n var $options = JSON.parse($datalist);\n\n $options = $options.sort(function($a, $b) {\n var a_value = $a.value.toLowerCase(),\n b_value = $b.value.toLowerCase();\n\n if (a_value < b_value) {\n return -1;\n }\n\n if (b_value < a_value) {\n return 1;\n }\n });\n\n return $options;\n },\n\n _create_datalist: function($options) {\n var _this = this,\n $datalist = document.createDocumentFragment(),\n $datalist_entry;\n\n for (var i = 0, $option; $option = $options[i]; i++) {\n $datalist_entry = document.createElement('option');\n\n if ($option.url) {\n $datalist_entry.setAttribute('data-url', $option.url);\n }\n\n if ($option.label && /Chrome\\b/.test(navigator.userAgent)) {\n if (!(/Edge\\b/.test(navigator.userAgent))) {\n $datalist_entry.setAttribute('label', $option.label);\n }\n }\n\n $datalist_entry.setAttribute('data-value', $option.value.toLowerCase());\n $datalist_entry.textContent = $option.value;\n $datalist.appendChild($datalist_entry);\n }\n\n _this.$datalist = $datalist;\n },\n\n _focus: function() {\n var _this = this;\n\n if (_this.$datalist && !_this.datalist_inserted) {\n document.querySelector('#' + _this.list).appendChild(_this.$datalist);\n _this.datalist_inserted = true;\n _this.$submit.removeAttribute('disabled');\n }\n },\n\n _get_url: function() {\n var _this = this,\n value = _this.$search.value.toLowerCase(),\n $option = document.querySelector('#' + _this.list + ' option[data-value=\"' + value + '\"]');\n\n return $option ? $option.getAttribute('data-url') : '';\n },\n\n _submit: function(event) {\n var _this = this,\n url = _this._get_url();\n\n if (url) {\n event.preventDefault();\n\n location.href = url;\n }\n }\n };\n\n var $forms = document.querySelectorAll('[data-form*=\"datalist\"]');\n\n for (var i = 0, $form; $form = $forms[i]; i++) {\n new FormSearchDataList($form).init();\n }\n})(document);\n\n// SUCHE\n// Wird gebraucht in: steuernews_search, suche\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var FormSearch = function($search) {\n var _this = this;\n\n _this.$search = $search;\n _this.$input_search = $search.querySelector('input[type=\"search\"]');\n _this.$button = $search.querySelector('button[type=\"submit\"]');\n };\n\n FormSearch.prototype = {\n init: function() {\n var _this = this;\n\n _this.$button.setAttribute('disabled', 'disabled');\n _this.$input_search.addEventListener('input', _this._on_input.bind(_this));\n },\n\n _on_input: function() {\n var _this = this;\n\n if (_this.$input_search.value.length > 0) {\n _this.$button.removeAttribute('disabled');\n }\n else {\n _this.$button.setAttribute('disabled', 'disabled');\n }\n }\n };\n\n var $search = document.querySelectorAll('[role=\"search\"]');\n\n if ($search.length) {\n for (var i = 0, len = $search.length; i < len; i++) {\n new FormSearch($search[i]).init();\n }\n }\n})(document);\n\n// STEUERNEWS SEO - ALLE AUSGABEN\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var SteuernewsIssues = function(issues_select) {\n var _this = this;\n\n _this.$issues_select = issues_select;\n _this.$select = issues_select.querySelector('select');\n _this.$button = issues_select.querySelector('.button');\n _this.$active_option = _this.$select.querySelector('option:checked');\n };\n\n SteuernewsIssues.prototype = {\n init: function() {\n var _this = this;\n\n _this.$select.addEventListener('change', function() {\n this.querySelectorAll('option')[this.selectedIndex];\n href = this.querySelectorAll('option')[this.selectedIndex].value;\n _this.$button.href = href;\n });\n },\n };\n\n var $steuernews_issues_select = document.querySelectorAll('.steuernews_issues_select');\n\n for (var i = 0; i < $steuernews_issues_select.length; i++) {\n new SteuernewsIssues($steuernews_issues_select[i]).init();\n }\n\n})(document);\n\n// ANIMATION HELPERS\n// Wird standardmaeßig in keinem Template gebraucht.\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n var AnimationHelpers = function($animated_element) {\n var _this = this;\n\n _this._$animated_element = $animated_element;\n _this._offset = _this._$animated_element.getAttribute('data-animation-offset');\n };\n\n AnimationHelpers.prototype = {\n init: function() {\n var _this = this;\n\n _this.$show_animation = this._is_in_viewport.bind(_this);\n\n window.addEventListener('load', _this.$show_animation, true);\n window.addEventListener('scroll', _this.$show_animation, true);\n },\n\n _offset_top: function() {\n var _this = this,\n $node = _this._$animated_element,\n top = $node.offsetTop;\n\n while ($node = $node.offsetParent) {\n top += $node.offsetTop;\n }\n\n return top;\n },\n\n _is_in_viewport: function() {\n var _this = this,\n scroll_top = window.pageYOffset + document.documentElement.clientHeight,\n offset_top = _this._offset_top() + _this._$animated_element.offsetHeight;\n\n if (_this._offset) {\n offset_top = offset_top - _this._offset;\n }\n\n if (scroll_top >= offset_top) {\n _this._$animated_element.classList.add('animated');\n _this._remove_scroll_event();\n }\n },\n\n _remove_scroll_event: function() {\n var _this = this;\n\n window.removeEventListener('scroll', _this.$show_animation, true);\n }\n };\n\n var $animated_elements = document.querySelectorAll('[data-animated]');\n\n for (var i = 0, len = $animated_elements.length; i < len; i++) {\n new AnimationHelpers($animated_elements[i]).init();\n }\n}(document, window));\n\n// SCROLL DOWN HEADER\n// Vergibt eine Klasse scrolled_down auf den Header\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n var scrolled_down = function($animated_element) {\n var _this = this;\n _this._$animated_element = $animated_element;\n };\n\n scrolled_down.prototype = {\n\n init: function() {\n var _this = this;\n\n window.addEventListener('scroll', this._is_scrolled_down.bind(_this), true);\n },\n\n _is_scrolled_down: function() {\n var _this = this;\n\n if (window.pageYOffset > 40) {\n _this._$animated_element.classList.add('scrolled_down');\n } else {\n _this._$animated_element.classList.remove('scrolled_down');\n }\n }\n };\n\n var $animated_elements = document.querySelectorAll('header[role=\"banner\"]');\n\n for (var i = 0, len = $animated_elements.length; i < len; i++) {\n new scrolled_down($animated_elements[i]).init();\n }\n\n}(document, window));\n\n// INFOLISTEN AT: DIAGRAMM (LINE CHART)\n// Wird verwendet für Verbraucherpreisindizes (infolist_list_content)\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var VpiDiagram = function($vpi_diagram) {\n\n var _this = this;\n _this.$vpi_diagram = $vpi_diagram;\n _this.$grid = _this.$vpi_diagram.querySelector('.vpi_diagram_grid');\n _this.$grid_text = _this.$grid.querySelectorAll('text');\n _this.$grid_points = _this.$vpi_diagram.querySelector('.vpi_diagram_points');\n _this.$months = _this.$vpi_diagram.querySelector('.vpi_diagram_months');\n _this.$legend = _this.$vpi_diagram.querySelector('.vpi_diagram_legend');\n _this.$year_label = _this.$vpi_diagram.querySelector('.vpi_diagram_year_label');\n _this.$select_year = document.querySelector('.select_year');\n _this.$switch_view = document.querySelector('.switch_view');\n _this.$infolist_section = document.querySelectorAll('.infolist_section');\n _this.$output = document.querySelector('.vpi_diagram_output');\n _this.svg_namespace = 'http://www.w3.org/2000/svg';\n _this.$months_and_values;\n _this.$legend_text;\n _this.bounds;\n _this.timer;\n };\n\n VpiDiagram.prototype = {\n init: function() {\n var _this = this;\n\n _this._get_data_for_year(_this.$select_year.value);\n _this._year_changed();\n\n _this.$select_year.addEventListener('change', function(event) {\n _this._year_selected_by_user(event);\n });\n\n _this.$switch_view.addEventListener('click', function(event) {\n event.preventDefault();\n _this._switch_view();\n });\n\n window.addEventListener('resize', function() {\n _this._display_months_two_row();\n });\n },\n\n _display_months_two_row: function() {\n var _this = this,\n $months = _this.$months.querySelectorAll('text'),\n width = 0;\n\n // Die Breite aller Monate\n var i = 0;\n\n for (i = 0; i < $months.length; i++) {\n width += $months[i].getBBox().width;\n }\n\n if (width > _this.$months.clientWidth - 20 * $months.length) {\n for (i = 0; i < $months.length; i++) {\n if (i % 2 === 0) {\n $months[i].setAttributeNS(null, 'y' , '25%');\n } else {\n $months[i].setAttributeNS(null, 'y' , '75%');\n }\n }\n } else {\n for (i = 0; i < $months.length; i++) {\n $months[i].setAttributeNS(null, 'y' , '50%');\n }\n }\n },\n\n _year_selected_by_user: function(event) {\n var _this = this;\n\n _this._get_data_for_year(event.target.value);\n _this._year_changed();\n },\n\n _year_changed: function() {\n var _this = this;\n\n _this._calc_grid_bounds();\n _this._change_grid();\n _this._change_months_label();\n _this._change_lines();\n _this._change_points();\n _this._display_months_two_row();\n _this._change_legend();\n _this._change_year_label();\n _this._change_table_view();\n },\n\n\n _get_data_for_year: function(year) {\n var _this = this;\n\n _this.$months_and_values = [];\n\n $table = document.querySelector(year).querySelector('table').querySelectorAll('tr');\n\n for (var i = 0; i < $table.length; i++) {\n\n // Table Header = Monatsname\n\n if (i === 0) {\n _this.$legend_text = $table[i].querySelectorAll('th', 'td')[1].innerText;\n }\n\n // i[0] => Überschriften\n // i[1] => Beschreibungstexte\n // i[n] => Tabellenwerte (Wert der Inflation)\n\n else if (i > 1 && i <= 13) {\n var month = $table[i].querySelectorAll('td')[0].innerText;\n var value = $table[i].querySelectorAll('td')[1].innerText.replace(',', '.');\n _this.$months_and_values.push([month, value]);\n }\n }\n },\n\n // Berechnung der Wert-Grenzen innerhalb eines Jahres (vertikale Tabellenbeschriftung)\n\n _calc_grid_bounds: function() {\n var _this = this,\n min = parseFloat(_this.$months_and_values[0][1]),\n max = parseFloat(_this.$months_and_values[0][1]);\n\n for (var i = 1; i < _this.$months_and_values.length; i++) {\n if (_this.$months_and_values[i][1] > max) {\n max = parseFloat(_this.$months_and_values[i][1]);\n }\n if (_this.$months_and_values[i][1] < min) {\n min = parseFloat(_this.$months_and_values[i][1]);\n }\n }\n\n // 10 sorgt für die Kommastellenrundung\n\n min = min * 10;\n max = max * 10;\n\n var avg = (min + max) / 2;\n var middle = ((max + avg) / 2) - avg;\n\n middle = middle / 10;\n avg = avg / 10;\n\n if (middle === 0) {\n middle = avg;\n }\n\n max = (middle * 2 + avg);\n min = (-middle * 2 + avg);\n\n _this.bounds = {\n 'min': min,\n 'max': max,\n 'middle': middle\n };\n },\n\n _calc_x_coordinate: function(array_position) {\n var _this = this;\n\n // + 1 wegen dem Abstand links und rechts\n return ((array_position + 1) / (_this.$months_and_values.length + 1) * 100) + '%';\n },\n\n _calc_y_coordinate: function(array_position) {\n var _this = this;\n\n return (88 - (_this.$months_and_values[array_position][1] - _this.bounds['min']) / (_this.bounds['max'] - _this.bounds['min']) * 88) + 6 + '%';\n },\n\n _change_grid: function() {\n var _this = this;\n\n for (var i = 0; i < _this.$grid_text.length; i++) {\n _this.$grid_text[i].textContent = ((_this.bounds['max'] - _this.bounds['middle'] * i)).toFixed(2);\n }\n },\n\n _change_months_label: function() {\n var _this = this,\n $old_texts = _this.$months.querySelectorAll('text');\n\n // Alte Monatsbeschriftungen löschen\n\n for (var j = 0; j < $old_texts.length; j++) {\n _this.$months.removeChild($old_texts[j]); // IE11 Bug: .remove() funktioniert nicht\n }\n\n // Neue Elemente erzeugen\n\n for (var i = 0; i < _this.$months_and_values.length; i++) {\n var $svg_text = document.createElementNS(_this.svg_namespace, 'text');\n $svg_text.setAttributeNS(null, 'x' , _this._calc_x_coordinate(i));\n $svg_text.setAttributeNS(null, 'y' , '50%');\n\n // Text einfügen\n\n $svg_text.appendChild(document.createTextNode(_this.$months_and_values[i][0].substr(0, 3)));\n _this.$months.appendChild($svg_text);\n }\n },\n\n _change_points: function() {\n var _this = this,\n $old_circles = _this.$grid_points.querySelectorAll('circle');\n\n // Alte Punkte/Werte löschen\n\n for (var j = 0; j < $old_circles.length; j++) {\n _this.$grid_points.removeChild($old_circles[j]); // IE11 Bug: .remove() funktioniert nicht\n }\n\n // Neue Elemente erzeugen\n\n for (var i = 0; i < _this.$months_and_values.length; i++) {\n var $svg_circle = document.createElementNS(_this.svg_namespace, 'circle');\n var x = _this._calc_x_coordinate(i);\n var y = _this._calc_y_coordinate(i);\n $svg_circle.setAttributeNS(null, 'cx', x);\n $svg_circle.setAttributeNS(null, 'cy', y);\n $svg_circle.setAttributeNS(null, 'r', '5');\n _this.$grid_points.appendChild($svg_circle);\n\n // Vergrößerung für den klickbaren Bereich\n\n $svg_circle = document.createElementNS(_this.svg_namespace, 'circle');\n $svg_circle.setAttributeNS(null, 'cx', x);\n $svg_circle.setAttributeNS(null, 'cy', y);\n $svg_circle.setAttributeNS(null, 'r', '12');\n $svg_circle.setAttributeNS(null, 'opacity', '0');\n\n // Ausgabe der Punkte\n\n $svg_circle.x_coordinate = x;\n $svg_circle.y_coordinate = y;\n $svg_circle.month = _this.$months_and_values[i][0];\n $svg_circle.value = _this.$legend_text + ': ' + _this.$months_and_values[i][1];\n\n $svg_circle.addEventListener('mouseenter', function(event) {\n _this._change_output(event);\n });\n\n $svg_circle.addEventListener('mouseleave', function() {\n _this.$output.classList.remove('show');\n });\n\n $svg_circle.addEventListener('touchstart', function(event) {\n _this._change_output(event);\n });\n\n $svg_circle.addEventListener('touchend', function() {\n if (_this.timer) {\n clearTimeout(_this.timer)\n }\n _this.timer = setTimeout(function() {\n _this.$output.classList.remove('show');\n }, 3000);\n });\n\n _this.$grid_points.appendChild($svg_circle);\n }\n },\n\n _change_lines: function() {\n var _this = this,\n $old_lines = _this.$grid_points.querySelectorAll('line');\n\n // Alte Linien löschen\n\n for (var j = 0; j < $old_lines.length; j++) {\n _this.$grid_points.removeChild($old_lines[j]); // IE11 Bug: .remove() funktioniert nicht\n }\n\n // Neue Linien erzeugen\n\n for (var i = 0; i < _this.$months_and_values.length - 1; i++) {\n var $svg_line = document.createElementNS(_this.svg_namespace, 'line');\n $svg_line.setAttributeNS(null, 'x1', _this._calc_x_coordinate(i));\n $svg_line.setAttributeNS(null, 'y1', _this._calc_y_coordinate(i));\n $svg_line.setAttributeNS(null, 'x2', _this._calc_x_coordinate(i + 1));\n $svg_line.setAttributeNS(null, 'y2', _this._calc_y_coordinate(i + 1));\n _this.$grid_points.appendChild($svg_line);\n }\n },\n\n _change_legend: function() {\n var _this = this,\n $label = _this.$legend.querySelector('text');\n\n $label.textContent = _this.$legend_text;\n },\n\n _change_year_label: function() {\n var _this = this;\n\n _this.$year_label.innerText = _this.$select_year[_this.$select_year.selectedIndex].text;\n },\n\n // Ansicht umschalten\n\n _switch_view: function() {\n var _this = this;\n\n if (_this.$switch_view.classList.contains('data')) {\n _this.$vpi_diagram.parentNode.classList.remove('hideme');\n\n for (var i = 0; i < _this.$infolist_section.length; i++) {\n _this.$infolist_section[i].classList.add('visible_for_screen_reader');\n }\n\n _this.$switch_view.classList.remove('data');\n _this.$switch_view.querySelector('.text').innerHTML = 'zur Tabellenansicht';\n }\n else {\n _this.$vpi_diagram.parentNode.classList.add('hideme');\n document.querySelector([_this.$select_year.value]).classList.remove('visible_for_screen_reader');\n _this.$switch_view.classList.add('data');\n _this.$switch_view.querySelector('.text').innerHTML = 'zur grafischen Ansicht';\n }\n },\n\n _change_table_view: function() {\n var _this = this;\n\n if (_this.$switch_view.classList.contains('data')) {\n for (var i = 0; i < _this.$infolist_section.length; i++) {\n _this.$infolist_section[i].classList.add('visible_for_screen_reader');\n }\n\n document.querySelector([_this.$select_year.value]).classList.remove('visible_for_screen_reader');\n }\n },\n\n // Koordinatenberechnung vom Ausgabefeld\n\n _change_output: function(event) {\n var _this = this;\n\n _this.$output.classList.add('show');\n _this.$output.querySelector('.month').innerText = event.target.month;\n _this.$output.querySelector('.value').innerText = event.target.value;\n\n _this.$output.style.top = event.target.y_coordinate;\n _this.$output.style.left = event.target.x_coordinate;\n\n if (_this.$vpi_diagram.getBoundingClientRect().width + _this.$vpi_diagram.getBoundingClientRect().x <\n event.target.getBoundingClientRect().x + _this.$output.getBoundingClientRect().width / 2 + 12) {\n _this.$output.classList.add('right');\n } else {\n _this.$output.classList.remove('right');\n }\n }\n };\n\n var $vpi_diagram = document.querySelector('.vpi_diagram');\n\n if ($vpi_diagram) {\n new VpiDiagram($vpi_diagram).init();\n }\n\n})(document);\n\n// INFOLISTEN AT: DIAGRAMM (MAP CHART)\n// Wird verwendet für Reisekosten (infolist_list_content)\n// -------------------------------------------------------------------------------------------------\n\n// Datensammlung\n\n(function(document) {\n var MapChartData = function($map_chart) {\n this.$map_chart = $map_chart;\n };\n\n MapChartData.prototype = {\n init: function() {\n var $countries = this.$map_chart.querySelectorAll('path');\n var country_codes = {\n 'AC': 'Ascension',\n 'AD': 'Andorra',\n 'AE': 'Vereinigte Arabische Emirate',\n 'AF': 'Afghanistan',\n 'AG': 'Antigua und Barbuda',\n 'AI': 'Anguilla',\n 'AL': 'Albanien',\n 'AM': 'Armenien',\n 'AN': 'Niederländische Antillen',\n 'AO': 'Angola',\n 'AQ': 'Antarktika',\n 'AR': 'Argentinien',\n 'AS': 'Amerikanisch-Samoa',\n 'AT': 'Österreich',\n 'AU': 'Australien',\n 'AW': 'Aruba',\n 'AX': 'Åland',\n 'AZ': 'Aserbaidschan',\n 'BA': 'Bosnien - Herzegowina',\n 'BB': 'Barbados',\n 'BD': 'Bangladesch',\n 'BE': 'Belgien',\n 'BF': 'Burkina Faso',\n 'BG': 'Bulgarien',\n 'BH': 'Bahrain',\n 'BI': 'Burundi',\n 'BJ': 'Benin',\n 'BL': 'Saint-Barthélemy',\n 'BM': 'Bermuda',\n 'BN': 'Brunei',\n 'BO': 'Bolivien',\n 'BQ': 'Bonaire, Sint Eustatius und Saba(Niederlande)',\n 'BR': 'Brasilien',\n 'BS': 'Bahamas',\n 'BT': 'Bhutan',\n 'BU': 'Burma (Myanmar)',\n 'BV': 'Bouvetinsel',\n 'BW': 'Botswana',\n 'BY': 'Belarus',\n 'BZ': 'Belize',\n 'CA': 'Kanada',\n 'CC': 'Kokosinseln',\n 'CD': 'Demokrat. Republik Kongo',\n 'CE': 'Europäische Gemeinschaft',\n 'CF': 'Zentralafrikanische Republik',\n 'CG': 'Republik Kongo',\n 'CH': 'Schweiz',\n 'CI': 'Côte d`lvoire',\n 'CK': 'Cookinseln',\n 'CL': 'Chile',\n 'CM': 'Kamerun',\n 'CN': 'China',\n 'CO': 'Kolumbien',\n 'CP': 'Clipperton',\n 'CR': 'Costa Rica',\n 'CS': 'Tschechoslowakei (ehemalig)',\n 'CU': 'Kuba',\n 'CV': 'Kap Verde',\n 'CW': 'Curaçao',\n 'CX': 'Weihnachtsinsel',\n 'CY': 'Zypern',\n 'CZ': 'Tschechien',\n 'DE': 'Deutschland und österreichische Zollausschlussgebiete',\n 'DG': 'Diego Garcia',\n 'DJ': 'Dschibuti',\n 'DK': 'Dänemark',\n 'DM': 'Dominica',\n 'DO': 'Dominikanische Republik',\n 'DZ': 'Algerien',\n 'EA': 'Ceuta, Melilla',\n 'EC': 'Ecuador',\n 'EE': 'Estland',\n 'EG': 'Ägypten',\n 'EH': 'Westsahara',\n 'ER': 'Eritrea',\n 'ES': 'Spanien',\n 'ET': 'Äthiopien',\n 'EU': 'Europäische Union',\n 'FI': 'Finnland',\n 'FJ': 'Fidschi',\n 'FK': 'Falklandinseln',\n 'FM': 'Mikronesien',\n 'FO': 'Färöer',\n 'FR': 'Frankreich',\n 'FX': 'Frankreich, France métropolitaine',\n 'GA': 'Gabun',\n 'GB': 'Großbritannien und Nordirland',\n 'GD': 'Grenada',\n 'GE': 'Georgien',\n 'GF': 'Französisch-Guayana',\n 'GG': 'Guernsey (Kanalinsel)',\n 'GH': 'Ghana',\n 'GI': 'Gibraltar',\n 'GL': 'Grönland',\n 'GM': 'Gambia',\n 'GN': 'Guinea',\n 'GP': 'Guadeloupe',\n 'GQ': 'Äquatorialguinea',\n 'GR': 'Griechenland',\n 'GS': 'Südgeorgien und die Südlichen Sandwichinseln',\n 'GT': 'Guatemala',\n 'GU': 'Guam',\n 'GW': 'Guinea-Bissau',\n 'GY': 'Guyana',\n 'HK': 'Hongkong',\n 'HM': 'Heard und McDonaldinseln',\n 'HN': 'Honduras',\n 'HR': 'Kroatien',\n 'HT': 'Haiti',\n 'HU': 'Ungarn',\n 'IC': 'Kanarische Inseln',\n 'ID': 'Indonesien',\n 'IE': 'Irland',\n 'IL': 'Israel',\n 'IM': 'Insel Man',\n 'IN': 'Indien',\n 'IO': 'Britisches Territorium im Indischen Ozean',\n 'IQ': 'Irak',\n 'IR': 'Iran',\n 'IS': 'Island',\n 'IT': 'Italien',\n 'JE': 'Jersey (Kanalinsel)',\n 'JM': 'Jamaika',\n 'JO': 'Jordanien',\n 'JP': 'Japan',\n 'KE': 'Kenia',\n 'KG': 'Kirgisistan',\n 'KH': 'Kambodscha',\n 'KI': 'Kiribati',\n 'KM': 'Komoren',\n 'KN': 'St. Kitts und Nevis',\n 'KP': 'Korea, Demokratische Volksrepublik',\n 'KR': 'Korea, Republik',\n 'KW': 'Kuwait',\n 'KY': 'Kaimaninseln',\n 'KZ': 'Kasachstan',\n 'LA': 'Laos',\n 'LB': 'Libanon',\n 'LC': 'St. Lucia',\n 'LI': 'Liechtenstein',\n 'LK': 'Sri Lanka',\n 'LR': 'Liberia',\n 'LS': 'Lesotho',\n 'LT': 'Litauen',\n 'LU': 'Luxemburg',\n 'LV': 'Lettland',\n 'LY': 'Libyen',\n 'MA': 'Marokko',\n 'MC': 'Monaco',\n 'MD': 'Moldawien (Republik Moldau)',\n 'ME': '\"Jugoslawien\"',\n 'MF': 'Saint-Martin (franz. Teil)',\n 'MG': 'Madagaskar',\n 'MH': 'Marshallinseln',\n 'MK': 'Mazedonien, ehem. jugoslawische Republik',\n 'ML': 'Mali',\n 'MM': 'Myanmar',\n 'MN': 'Mongolei',\n 'MO': 'Macao',\n 'MP': 'Nördliche Marianen',\n 'MQ': 'Martinique',\n 'MR': 'Mauretanien',\n 'MS': 'Montserrat',\n 'MT': 'Malta',\n 'MU': 'Mauritius',\n 'MV': 'Malediven',\n 'MW': 'Malawi',\n 'MX': 'Mexiko',\n 'MY': 'Malaysia',\n 'MZ': 'Mosambik',\n 'NA': 'Namibia',\n 'NC': 'Neukaledonien',\n 'NE': 'Niger',\n 'NF': 'Norfolkinsel',\n 'NG': 'Nigeria',\n 'NI': 'Nicaragua',\n 'NL': 'Niederlande',\n 'NO': 'Norwegen',\n 'NP': 'Nepal',\n 'NR': 'Nauru',\n 'NT': 'Neutrale Zone',\n 'NU': 'Niue',\n 'NZ': 'Neuseeland',\n 'OM': 'Oman',\n 'PA': 'Panama',\n 'PE': 'Peru',\n 'PF': 'Französisch-Polynesien',\n 'PG': 'Papua-Neuguinea',\n 'PH': 'Philippinen',\n 'PK': 'Pakistan',\n 'PL': 'Polen',\n 'PM': 'Saint-Pierre und Miquelon',\n 'PN': 'Pitcairninseln',\n 'PR': 'Puerto Rico',\n 'PS': 'Palästinensische Autonomiegebiete',\n 'PT': 'Portugal',\n 'PW': 'Palau',\n 'PY': 'Paraguay',\n 'QA': 'Katar',\n 'RE': 'Réunion',\n 'RO': 'Rumänien',\n 'RS': '\"Jugoslawien\"',\n 'RU': 'Russische Föderation',\n 'RW': 'Ruanda',\n 'SA': 'Saudi-Arabien',\n 'SB': 'Salomonen',\n 'SC': 'Seychellen',\n 'SD': 'Sudan',\n 'SE': 'Schweden',\n 'SG': 'Singapur',\n 'SH': 'St. Helena',\n 'SI': 'Slowenien',\n 'SJ': 'Svalbard und Jan Mayen',\n 'SK': 'Slowakei',\n 'SL': 'Sierra Leone',\n 'SM': 'San Marino',\n 'SN': 'Senegal',\n 'SO': 'Somalia',\n 'SR': 'Suriname',\n 'SS': 'Südsudan',\n 'ST': 'São Tomé und Príncipe',\n 'SU': 'UdSSR (jetzt: Russische Föderation)',\n 'SV': 'El Salvador',\n 'SX': 'Sint Maarten (niederl. Teil)',\n 'SY': 'Syrien',\n 'SZ': 'Swasiland',\n 'TA': 'Tristan da Cunha (verwaltet von St. Helena, reserviert für UPU)',\n 'TC': 'Turks- und Caicosinseln',\n 'TD': 'Tschad',\n 'TF': 'Französische Süd- und Antarktisgebiete',\n 'TG': 'Togo',\n 'TH': 'Thailand',\n 'TJ': 'Tadschikistan',\n 'TK': 'Tokelau',\n 'TL': 'Osttimor (Timor-Leste)',\n 'TM': 'Turkmenistan',\n 'TN': 'Tunesien',\n 'TO': 'Tonga',\n 'TR': 'Türkei',\n 'TT': 'Trinidad und Tobago',\n 'TV': 'Tuvalu',\n 'TW': 'Taiwan',\n 'TZ': 'Tansania',\n 'UA': 'Ukraine',\n 'UG': 'Uganda',\n 'UM': 'United States Minor Outlying Islands',\n 'US': 'USA',\n 'UY': 'Uruguay',\n 'UZ': 'Usbekistan',\n 'VA': 'Vatikanstadt',\n 'VC': 'St. Vincent und die Grenadinen',\n 'VE': 'Venezuela',\n 'VG': 'Britische Jungferninseln',\n 'VI': 'Amerikanische Jungferninseln',\n 'VN': 'Vietnam',\n 'VU': 'Vanuatu',\n 'WF': 'Wallis und Futuna',\n 'WS': 'Samoa',\n 'YE': 'Jemen',\n 'YT': 'Mayotte',\n 'YU': '\"Jugoslawien\"',\n 'ZA': 'Südafrika',\n 'ZM': 'Sambia',\n 'ZR': 'Zaire (jetzt Demokratische Republik Kongo)',\n 'ZW': 'Simbabwe'\n };\n\n var $sections = document.querySelectorAll('.infolist_section table tbody tr'),\n costs_by_country_name = {},\n country_codes_by_name = {},\n parent_country;\n\n for (var code in country_codes) {\n if (country_codes.hasOwnProperty(code)) {\n country_codes_by_name[country_codes[code]] = code;\n }\n }\n\n for (var i = 0; i < $sections.length; i++) {\n var tds = $sections[i].children,\n country = '',\n daily_fee,\n nightly_fee;\n\n\n if (tds.length > 2) { // Tabellenzeile hat 3 Spalten mit Land, Tag- und Nachtgeld\n country = tds[0].textContent;\n daily_fee = tds[1].textContent;\n nightly_fee = tds[2].textContent;\n\n if (country in country_codes_by_name) {\n parent_country = country;\n\n costs_by_country_name[country] = {\n 'additional_values' : '',\n 'daily_fee' : daily_fee,\n 'nightly_fee' : nightly_fee,\n 'total' : parseInt(parseInt(daily_fee.split('€')[1], 10) + parseInt(nightly_fee.split('€')[1], 10))\n };\n }\n else if (country[0] === '-' && parent_country) {\n var additional_values = '' + '' + country + 'Tagesgebühr: ' + daily_fee + 'Nachtgebühr: ' + nightly_fee;\n costs_by_country_name[parent_country].additional_values += additional_values;\n }\n }\n }\n\n for (var h = 0; h < $countries.length; h++) {\n if (costs_by_country_name[country_codes[$countries[h].getAttribute('id')]]) {\n $countries[h].country_name = country_codes[$countries[h].getAttribute('id')];\n $countries[h].costs = costs_by_country_name[$countries[h].country_name];\n }\n }\n }\n };\n\n var $map_chart = document.getElementById('map_chart');\n\n if ($map_chart) {\n new MapChartData($map_chart).init();\n }\n})(document);\n\n// User-Interface\n\n(function(document) {\n var MapChart = function($map_chart) {\n\n var _this = this;\n _this.$map_chart = $map_chart;\n _this.$map_chart_image = _this.$map_chart.querySelector('svg');\n _this.$zoom_in = _this.$map_chart.querySelector('.zoom_in');\n _this.$zoom_out = _this.$map_chart.querySelector('.zoom_out');\n _this.$drag_area = _this.$map_chart.querySelector('.drag_area');\n _this.$countries = _this.$map_chart.querySelectorAll('path');\n _this.$output = _this.$map_chart.querySelector('.output');\n _this.$touch_info = _this.$map_chart.querySelector('.touch_info');\n _this.$switch_view = document.querySelector('.switch_view');\n _this.$infolist_section = document.querySelectorAll('.infolist_section');\n _this.zoom = 1.00;\n _this.zoom_increase = 1.3;\n _this.min_zoom = 1;\n _this.max_zoom = 10;\n _this.x_offset = 0;\n _this.y_offset = 0;\n _this.start_event;\n _this.old_event;\n };\n\n MapChart.prototype = {\n\n init: function() {\n var _this = this;\n\n _this.$zoom_in.addEventListener('click', function(event) { // Zoom-In-Button: Click\n _this._zoom_in(event);\n });\n\n _this.$zoom_in.addEventListener('touchstart', function(event) { // Zoom-In-Button: Touch\n _this._zoom_in(event);\n });\n\n _this.$zoom_out.addEventListener('click', function(event) { // Zoom-Out-Button: Click\n _this._zoom_out(event);\n });\n\n _this.$zoom_out.addEventListener('touchstart', function(event) { // Zoom-Out-Button: Touch\n _this._zoom_out(event);\n });\n\n _this.$map_chart.addEventListener('mousedown', function(event) { // Start moving map with mousedown\n event.preventDefault();\n _this.old_event = event;\n _this.$drag_area.classList.add('visible');\n\n _this.$drag_area.addEventListener('mousemove', function(event) {\n _this._drag(event, _this);\n });\n }, false);\n\n document.addEventListener('mouseup', function() { // End moving map (with mouseup)\n _this.$drag_area.classList.remove('visible');\n\n _this.$drag_area.removeEventListener('mousemove', function(event) {\n _this._drag(event);\n });\n }, false);\n\n document.addEventListener('resize', function() {\n _this.$output.classList.remove('show');\n }, false);\n\n // Scrollen in Karte mittels touch\n _this.$map_chart.addEventListener('touchstart', function(event) { // Start moving map on touch-device\n if (!event.touches || event.touches.length > 1) {\n event.preventDefault();\n }\n\n _this.old_event = event;\n _this.start_event = event;\n _this.$drag_area.classList.remove('visible');\n\n _this.$map_chart.addEventListener('touchmove', function(event) { // Moving map on touch-device\n _this._drag(event);\n });\n }, false);\n\n _this.$map_chart.addEventListener('touchend', function() { // End moving map on touch-device\n _this.$touch_info.classList.add('hideme');\n }, false);\n\n _this.$switch_view.addEventListener('click', function(event) { // Switch between table-view and map-view\n event.preventDefault();\n var i;\n\n if (this.classList.contains('data')) {\n _this.$map_chart.classList.remove('hideme');\n\n for (i = 0; i < _this.$infolist_section.length; i++) {\n _this.$infolist_section[i].classList.add('visible_for_screen_reader');\n }\n\n this.classList.remove('data');\n this.querySelector('.text').innerHTML = 'zur Tabellenansicht';\n }\n else {\n _this.$map_chart.classList.add('hideme');\n\n for (i = 0; i < _this.$infolist_section.length; i++) {\n _this.$infolist_section[i].classList.remove('visible_for_screen_reader');\n }\n\n this.classList.add('data');\n this.querySelector('.text').innerHTML = 'zur grafischen Ansicht';\n }\n }, false);\n\n _this._setup_map_chart();\n },\n\n _zoom_in: function(event) {\n event.preventDefault();\n var _this = this;\n\n _this.$map_chart_image.style.transition = 'transform 0.2s';\n _this.$map_chart_image.addEventListener('transitionend', function() {\n this.style.transition = 'none';\n }, false);\n\n if (_this.zoom <= _this.max_zoom) {\n _this.zoom = _this.zoom * _this.zoom_increase;\n _this._update_map_chart();\n }\n },\n\n _zoom_out: function(event) {\n event.preventDefault();\n var _this = this;\n\n _this.$map_chart_image.style.transition = 'transform 0.2s';\n _this.$map_chart_image.addEventListener('transitionend', function() {\n this.style.transition = 'none';\n }, false);\n\n if (_this.zoom > _this.min_zoom) {\n _this.zoom = _this.zoom / _this.zoom_increase;\n _this._update_map_chart();\n }\n },\n\n _proof_zoom: function() { // checks zoom-parameters\n var _this = this;\n\n if (_this.zoom <= _this.min_zoom) {\n _this.zoom = _this.min_zoom;\n _this.$zoom_out.classList.add('disabled');\n _this.x_offset = 0;\n _this.y_offset = 0;\n }\n else {\n _this.$zoom_in.classList.remove('disabled');\n }\n\n if (_this.zoom >= _this.max_zoom) {\n _this.zoom = _this.max_zoom;\n _this.$zoom_in.classList.add('disabled');\n }\n else if (_this.zoom > _this.min_zoom) {\n _this.$zoom_out.classList.remove('disabled');\n }\n },\n\n _proof_offest: function() { // Checks, if map is in frame\n var _this = this;\n\n if (_this.x_offset > 70 * _this.zoom) {\n _this.x_offset = 70 * _this.zoom;\n }\n\n if (_this.x_offset < -70 * _this.zoom) {\n _this.x_offset = -70 * _this.zoom;\n }\n\n if (_this.y_offset > 45 * _this.zoom) {\n _this.y_offset = 45 * _this.zoom;\n }\n\n if (_this.y_offset < -45 * _this.zoom) {\n _this.y_offset = -45 * _this.zoom;\n }\n },\n\n _update_map_chart: function() {\n var _this = this;\n\n _this._proof_offest();\n _this._proof_zoom();\n _this.$map_chart_image.style.transform = 'scale(' + _this.zoom + ') translateX(' + _this.x_offset + 'px) translateY(' + _this.y_offset + 'px)';\n _this.$map_chart_image.style.WebkitTransform = 'scale(' + _this.zoom + ') translateX(' + _this.x_offset + 'px) translateY(' + _this.y_offset + 'px)';\n _this.$map_chart_image.style.msTransform = 'scale(' + _this.zoom + ') translateX(' + _this.x_offset + 'px) translateY(' + _this.y_offset + 'px)';\n },\n\n _convert_event: function(event) {\n var result;\n\n if (event.changedTouches) {\n result = {\n x:event.changedTouches[0].pageX,\n y:event.changedTouches[0].pageY\n };\n } else {\n result = {\n x:event.pageX,\n y:event.pageY\n };\n }\n\n return result;\n },\n\n _calc_offset_for_drag: function(event) {\n var _this = this;\n\n _this.x_offset = _this.x_offset + (-_this._convert_event(_this.old_event)['x'] + _this._convert_event(event)['x']) / _this.zoom;\n _this.y_offset = _this.y_offset + (-_this._convert_event(_this.old_event)['y'] + _this._convert_event(event)['y']) / _this.zoom;\n },\n\n _drag: function(event) {\n event.preventDefault();\n var _this = this;\n\n if (event.touches) { // Touch\n if (event.touches.length <= 1) { // 1 Finger\n _this.$touch_info.classList.remove('hideme');\n _this.$output.classList.remove('show');\n }\n else { // > 1 Finger\n _this._manage_touch_interaction(event);\n _this.$output.classList.remove('show');\n }\n }\n else { // Mouse\n _this._calc_offset_for_drag(event);\n }\n\n _this._update_map_chart();\n _this.old_event = event;\n },\n\n _manage_touch_interaction: function(event) {\n var _this = this,\n hypotenuse_now = Math.sqrt(Math.pow(event.touches[0].pageX - event.touches[1].pageX, 2) +\n Math.pow(event.touches[0].pageY - event.touches[1].pageY, 2)),\n hypotenuse_start = Math.sqrt(Math.pow(_this.start_event.touches[0].pageX - _this.start_event.touches[1].pageX, 2) +\n Math.pow(_this.start_event.touches[0].pageY - _this.start_event.touches[1].pageY, 2));\n\n if (hypotenuse_now < 40) {\n _this._calc_offset_for_drag(event);\n return;\n }\n\n if (hypotenuse_now > hypotenuse_start - 30 && Math.abs(event.touches[0].pageX - event.touches[1].pageX) < Math.abs(_this.start_event.touches[0].pageX - _this.start_event.touches[1].pageX) + 30) {\n _this._calc_offset_for_drag(event);\n return;\n }\n\n if (hypotenuse_now > hypotenuse_start - 30 && Math.abs(event.touches[0].pageY - event.touches[1].pageY) < Math.abs(_this.start_event.touches[0].pageY - _this.start_event.touches[1].pageY) + 30) {\n _this._calc_offset_for_drag(event);\n return;\n }\n if (hypotenuse_now > 400) {\n hypotenuse_now = 400;\n }\n\n if (hypotenuse_now < hypotenuse_start) {\n hypotenuse_now = -hypotenuse_now;\n }\n\n _this.zoom = _this.zoom + hypotenuse_now / 50000;\n },\n\n _setup_map_chart: function() { // set styling and classes\n var _this = this;\n\n for (var i = 0; i < _this.$countries.length; i++) {\n var $country = _this.$countries[i];\n\n $country.style.removeProperty('fill');\n\n if ($country.costs && $country.costs['total']) {\n\n // IE11-Fallback (don't likes classList.add on svgs)\n $country.setAttribute('class', 'hasData');\n $country.style.fillOpacity = ($country.costs['total'] - 20) / 100;\n\n $country.addEventListener('mousemove', function(event) { // Infobox moves with mouse\n _this._show_output(event);\n });\n\n $country.addEventListener('mouseleave', function() {\n this.style.fillOpacity = (this.costs['total'] - 20) / 100;\n }, false);\n\n _this.$map_chart.addEventListener('mouseleave', function() {\n _this.$output.classList.remove('show');\n }, false);\n\n $country.addEventListener('touchstart', function(event) {\n _this._show_output(event);\n }, false);\n\n }\n else {\n $country.setAttribute('class', 'noData');\n }\n }\n },\n\n _show_output: function(event) { // Shows country-information-box\n var _this = this,\n $country = event.target,\n offsetTop = _this.$map_chart.offsetTop + _this.$map_chart.offsetParent.offsetTop,\n offsetLeft = _this.$map_chart.offsetLeft + _this.$map_chart.offsetParent.offsetLeft;\n\n _this.$output.innerHTML = '' + $country.country_name + 'Tagesgebühr: ' + $country.costs['daily_fee'] + 'Nachtgebühr: ' + $country.costs['nightly_fee'] + $country.costs['additional_values'];\n\n if (_this._convert_event(event)['x'] + _this.$output.offsetWidth > _this.$map_chart.offsetWidth + offsetLeft - 15) {\n _this.$output.style.left = _this.$map_chart.offsetWidth - _this.$output.offsetWidth - 15 + 'px';\n }\n else {\n _this.$output.style.left = _this._convert_event(event)['x'] - offsetLeft + 15 + 'px';\n }\n\n _this.$output.style.top = _this._convert_event(event)['y'] - offsetTop + 15 + 'px';\n _this.$output.classList.add('show');\n $country.style.fillOpacity = ($country.costs['total'] - 20) / 100 + 0.3;\n\n }\n };\n\n var $map_chart = document.getElementById('map_chart');\n\n if ($map_chart) {\n new MapChart($map_chart).init();\n }\n})(document);\n\n// INFOLISTEN: WEITERE WERTE\r\n// Wird verwendet für Wichtige Beträge (show_more_content)\r\n// -------------------------------------------------------------------------------------------------\r\n\r\n(function() {\r\n var $show_more_content = document.querySelectorAll('.show_more_content');\r\n\r\n for (var i = 0, len = $show_more_content.length; i < len; i++) {\r\n $show_more_content[i].addEventListener('click', function(event) {\r\n event.preventDefault();\r\n\r\n var _this = this,\r\n content_id = _this.getAttribute('aria-controls'),\r\n $content = document.querySelector('#' + content_id);\r\n\r\n if (_this.getAttribute('aria-pressed') === 'true') {\r\n _this.setAttribute('aria-expanded', 'false');\r\n _this.setAttribute('aria-pressed', 'false');\r\n $content.setAttribute('aria-hidden', 'true');\r\n $content.classList.add('hideme');\r\n }\r\n else {\r\n _this.setAttribute('aria-expanded', 'true');\r\n _this.setAttribute('aria-pressed', 'true');\r\n $content.setAttribute('aria-hidden', 'false');\r\n $content.classList.remove('hideme');\r\n }\r\n });\r\n }\r\n}());\r\n\n// INFOLISTEN: WEITERE WERTE\r\n// Wird verwendet für Wichtige Beträge (show_more_content)\r\n// -------------------------------------------------------------------------------------------------\r\n\r\n(function(window) {\r\n var $share_button = document.querySelectorAll('.share_button');\r\n\r\n for (var i = 0, len = $share_button.length; i < len; i++) {\r\n $share_button[i].addEventListener('click', function(event) {\r\n event.preventDefault();\r\n\r\n var _this = this,\r\n href = _this.getAttribute('href');\r\n\r\n window.open(href,'Inhalt teilen','height=450, width=550, top=' + (window.innerHeight / 2 - 275) + ', left=' + (window.innerWidth / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');\r\n });\r\n }\r\n}(window));\r\n\n// VCARD SWITCHER FÜR DESKTOP/MOBIL\n// Wird verwendet für: team_overview, team_entry, address_vcard_button, steuernews_contact_person\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n if (device.mobile || device.tablet) {\n return;\n }\n\n var $vcards = document.querySelectorAll('[data-vcard-href]');\n\n for (var i = 0, len = $vcards.length; i < len; i++) {\n var $vcard = $vcards[i],\n href = $vcard.getAttribute('data-vcard-href');\n\n if (href) {\n $vcard.setAttribute('href', href);\n $vcard.removeAttribute('data-vcard-href');\n }\n }\n}(document));\n\n// SLIDER HORIZONTAL\n// Wird verwendet für: steuernews_article_slider\n// -------------------------------------------------------------------------------------------------\n\n(function(document) {\n var Slider = function($slider) {\n var _this = this;\n\n _this.$slider_wrapper = $slider;\n _this.$slider = $slider.querySelector('.slider');\n _this.$slides = $slider.querySelectorAll('.slide');\n _this.$prev = $slider.querySelector('.prev_slide');\n _this.$next = $slider.querySelector('.next_slide');\n _this.index = 0;\n _this.time = 4000;\n _this.intervall;\n _this.touch_start_x;\n\n // Stoppen wenn Maus über Objekt ist\n _this.stop_on_hover = false;\n };\n\n Slider.prototype = {\n init: function() {\n var _this = this;\n\n _this._init_mouse();\n _this._init_touch();\n\n if (_this.stop_on_hover) {\n _this.$slider.addEventListener('mouseover', function() {\n clearInterval(_this.intervall);\n });\n\n _this.$slider.addEventListener('mouseout', function() {\n _this.intervall = setInterval(_this._next_slide.bind(_this), _this.time);\n });\n }\n\n // Im Skript vergeben, wenn kein javascript aktiviert ist soll Button ausgeblendet sein\n _this.$next.classList.add('show');\n _this.intervall = setInterval(_this._next_slide.bind(_this), _this.time);\n\n window.addEventListener('resize', function() {\n _this._set_height();\n });\n\n window.addEventListener('load', function() {\n _this._set_height();\n });\n\n },\n\n _init_mouse: function() {\n var _this = this;\n\n _this.$prev.addEventListener('click', function(event) {\n event.preventDefault();\n event.stopPropagation();\n _this._prev_slide();\n });\n\n _this.$next.addEventListener('click', function(event) {\n event.preventDefault();\n event.stopPropagation();\n _this._next_slide();\n });\n },\n\n _init_touch: function() {\n var _this = this\n\n _this.$slider.addEventListener('touchstart', function(event) {\n clearInterval(_this.intervall);\n _this.touch_start_x = event.changedTouches[0].pageX;\n });\n\n _this.$slider.addEventListener('touchmove', function(event) {\n var touch = event.touches[0] || event.changedTouches[0],\n touch_x = touch.pageX;\n\n if ((touch_x - _this.touch_start_x > 50) || (touch_x - _this.touch_start_x < -50)) {\n event.preventDefault();\n }\n });\n\n _this.$slider.addEventListener('touchend', function(event) {\n var touch = event.touches[0] || event.changedTouches[0],\n touch_x = touch.pageX;\n\n if (touch_x - _this.touch_start_x > 50) {\n if (_this.index > 0) {\n _this._prev_slide();\n } else {\n _this.intervall = setInterval(_this._next_slide.bind(_this), _this.time);\n }\n }\n else if (touch_x - _this.touch_start_x < -50) {\n if (_this.index < _this.$slides.length - 1) {\n _this._next_slide();\n } else {\n _this.intervall = setInterval(_this._next_slide.bind(_this), _this.time);\n }\n }\n });\n },\n\n _prev_slide: function() {\n var _this = this;\n\n _this.index--;\n if (_this.index < 0) {\n _this.index = _this.$slides.length - 1;\n }\n\n _this._slide();\n },\n\n _next_slide: function() {\n var _this = this;\n\n _this.index++;\n if (_this.index >= _this.$slides.length) {\n _this.index = 0;\n }\n\n _this._slide();\n },\n\n _slide: function() {\n var _this = this,\n value = 'translate(-' + _this.index * 100 / _this.$slides.length + '%)';\n\n clearInterval(_this.intervall);\n _this.$slider.style.transform = value;\n _this.$slider.style.WebkitTransform = value;\n _this.$slider.style.msTransform = value;\n _this.intervall = setInterval(_this._next_slide.bind(_this), _this.time);\n _this._manage_control();\n },\n\n _manage_control: function() {\n var _this = this;\n\n if (_this.index >= 0 && _this.index < _this.$slides.length - 1) {\n _this.$next.classList.add('show');\n } else {\n _this.$next.classList.remove('show');\n }\n\n if (_this.index > 0 && _this.index < _this.$slides.length) {\n _this.$prev.classList.add('show');\n } else {\n _this.$prev.classList.remove('show');\n }\n },\n\n _set_height: function() {\n var _this = this,\n highest = 0,\n height = 0;\n\n // reset height\n _this.$slider_wrapper.style.height = 'auto';\n _this.$slider.style.height = 'auto';\n\n for (var i = 0; i < _this.$slides.length; i++) {\n height = _this.$slides[i].clientHeight;\n if (height > highest) {\n highest = height;\n }\n }\n\n height = height + 10;\n\n _this.$slider_wrapper.style.height = highest + 'px';\n _this.$slider.style.height = highest + 'px';\n }\n };\n\n var $sliders = document.querySelectorAll('.steuernews_article_slider');\n\n for (var i = 0, len = $sliders.length; i < len; i++) {\n new Slider($sliders[i]).init();\n }\n\n})(document);\n\n// GOOGLE MAPS\n// -------------------------------------------------------------------------------------------------\n\n(function(navigator, window, document) {\n var GoogleMaps = function(id, $options) {\n var _this = this;\n\n _this.$el = document.querySelector(id);\n _this.id = _this.$el.getAttribute('id');\n _this.data_id = _this.$el.getAttribute('data-id');\n\n _this.map_is_ready = false;\n _this._infowindow_is_open = false;\n _this.static_map_urls = [];\n\n _this.$options = _extend({\n max_zoom : 0,\n min_zoom : 0,\n map_type : 'ROADMAP',\n direction_color : '#f60'\n }, $options);\n };\n\n function _extend() {\n var $extended = {},\n deep = false,\n index = 0,\n length = arguments.length;\n\n if (Object.prototype.toString.call(arguments[0]) === '[object Boolean]') {\n deep = arguments[0];\n index++;\n }\n\n function merge(obj) {\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n if (deep && Object.prototype.toString.call(obj[prop]) === '[object Object]') {\n $extended[prop] = _extend(true, $extended[prop], obj[prop]);\n }\n else {\n $extended[prop] = obj[prop];\n }\n }\n }\n }\n\n for (; index < length; index++) {\n var obj = arguments[index];\n merge(obj);\n }\n\n return $extended;\n }\n\n // function _set_marker_visible(_this,_zoom) {\n // for (var cnt = 0, len = _this.$options.mapdata.length; cnt < len; cnt++) {\n // if (_this.$options.mapdata[cnt].min_zoom_visible >= _zoom && _this.$options.mapdata[cnt].min_zoom_visible > 1) {\n // _this.$options.mapdata[cnt].$marker.setVisible(false);\n // } else {\n // _this.$options.mapdata[cnt].$marker.setVisible(true);\n // }\n // }\n // return _this;\n // }\n\n GoogleMaps.prototype = {\n init: function() {\n var _this = this,\n timeout;\n\n function _latlng_loaded() {\n timeout = setTimeout(function() {\n for (var i = 0, len = _this.$options.mapdata.length; i < len; i++) {\n if (_this.$options.mapdata[i].latlng === undefined) {\n clearTimeout(timeout);\n _latlng_loaded();\n return;\n }\n }\n\n _this._init_map();\n }, 10);\n }\n\n function _geocoder_response(s) {\n var $mapdata = _this.$options.mapdata[s],\n street_address = $mapdata.street_address,\n postal_code = $mapdata.postal_code,\n locality = $mapdata.locality,\n country = $mapdata.country;\n\n if (country && locality) {\n _this.$geocoder.geocode({\n address: street_address + ', ' + postal_code + ' ' + locality + ' ' + country\n }, function($results, status) {\n if (status === google.maps.GeocoderStatus.OK) {\n $mapdata.latlng = $results[0].geometry.location;\n $mapdata.latitude = $mapdata.latlng.lat();\n $mapdata.longitude = $mapdata.latlng.lng();\n }\n else if (status === google.maps.GeocoderStatus.OVER_QUERY_LIMIT) {\n setTimeout(function() {\n _geocoder_response(s);\n }, 10);\n }\n });\n }\n }\n\n if (_this.$options.mapdata) {\n _this.$geocoder = new google.maps.Geocoder();\n\n for (var s = 0, len = _this.$options.mapdata.length; s < len; s++) {\n var $mapdata = _this.$options.mapdata[s],\n latitude = $mapdata.latitude,\n longitude = $mapdata.longitude;\n\n if (latitude && longitude) {\n $mapdata.latlng = new google.maps.LatLng(latitude, longitude);\n }\n else {\n _geocoder_response(s);\n }\n }\n\n _latlng_loaded();\n }\n },\n\n _init_map: function() {\n var _this = this;\n\n if (_this.$options.latitude > 0 && _this.$options.longitude > 0) {\n _this.$options.latlng = new google.maps.LatLng(_this.$options.latitude, _this.$options.longitude);\n }\n\n _this.$map = new google.maps.Map(document.getElementById(_this.id), {\n 'center' : _this.$options.latlng || _this.$options.mapdata[0].latlng,\n 'mapTypeId' : google.maps.MapTypeId[_this.$options.map_type],\n 'scrollwheel' : false,\n 'zoom' : _this.$options.zoom,\n 'disableDefaultUI' : _this.$options.disable_default_ui,\n 'styles' : _this.$options.map_style,\n 'zoomControlOptions' : {\n 'position' : google.maps.ControlPosition.TOP_RIGHT\n },\n 'mapTypeControlOptions' : {\n 'position' : google.maps.ControlPosition.TOP_LEFT\n },\n 'streetViewControlOptions' : {\n 'position' : google.maps.ControlPosition.TOP_RIGHT\n }\n });\n\n _this.$bounds = new google.maps.LatLngBounds();\n\n _this._init_infowindow();\n _this._change_travel_mode();\n _this._set_markers();\n _this._init_directions();\n _this._limit_zoomlevel();\n _this._init_autoselect();\n _this._init_static_maps();\n // _this._watch_marker_zoom();\n\n window.addEventListener('resize', function() {\n _this.map_resize();\n });\n\n if (_this.$options.debug) {\n google.maps.event.addDomListener(_this.$map, 'drag', function() {\n console.log('Center: ' + _this.$map.getCenter());\n });\n }\n\n _this.map_is_ready = true;\n },\n\n _init_infowindow: function() {\n var _this = this;\n\n _this._$infowindow = new google.maps.InfoWindow({\n 'maxWidth' : 600\n });\n\n google.maps.event.addListener(_this.$map, 'click', function() {\n _this._infowindow_is_open = false;\n _this._$infowindow.close();\n });\n },\n\n _change_travel_mode: function() {\n var _this = this,\n $travel_mode = document.querySelector('[name=\"travel_mode_' + _this.data_id + '\"]');\n\n // don't do anything if this map has no route planning\n if (!$travel_mode) {\n return;\n }\n\n $travel_mode.addEventListener('click', function() {\n this.checked = true;\n });\n },\n\n _set_markers: function() {\n var _this = this,\n marker_href,\n marker_width,\n marker_height,\n latlng,\n infowindow;\n\n _this._remove_duplicated_markers();\n\n for (var index = 0, $mapdata; $mapdata = _this.$options.mapdata[index]; index++) {\n if ($mapdata.disabled) {\n continue;\n }\n\n marker_href = $mapdata.marker_href || _this.$options.marker_href;\n marker_width = $mapdata.marker_width || _this.$options.marker_width;\n marker_height = $mapdata.marker_height || _this.$options.marker_height;\n latlng = $mapdata.latlng;\n infowindow = $mapdata.infowindow;\n\n $mapdata.$marker = new google.maps.Marker({\n 'animation' : google.maps.Animation.DROP,\n 'clickable' : infowindow ? true : false,\n 'icon' : marker_href ? {\n url : marker_href,\n scaledSize : new google.maps.Size(marker_width, marker_height)\n } : undefined,\n 'map' : _this.$map,\n 'optimized' : true,\n 'position' : latlng,\n 'zIndex' : index\n });\n\n $mapdata.$marker.index = index;\n\n if (infowindow) {\n $mapdata.$marker.addListener('click', function() {\n _this.open_infowindow(this.getZIndex());\n });\n }\n\n _this.$bounds.extend(latlng);\n }\n\n if (_this.$options.mapdata.length > 1) {\n _this.$map.fitBounds(_this.$bounds);\n\n google.maps.event.addListenerOnce(_this.$map, 'idle', function() {\n if (_this.$options.zoom > 0 && _this.$map.getZoom() > _this.$options.zoom) {\n _this.$map.setZoom(_this.$options.max_zoom);\n }\n });\n }\n },\n\n _remove_all_markers: function() {\n\n },\n\n _remove_duplicated_markers: function() {\n var _this = this,\n $latlng = [],\n $original_map_data,\n original_infowindow,\n latlng,\n index;\n\n for (var i = 0, $mapdata; $mapdata = _this.$options.mapdata[i]; i++) {\n latlng = $mapdata.latitude + ',' + $mapdata.longitude;\n index = $latlng.indexOf(latlng);\n\n _this.$options.mapdata[i].$duplicates = [];\n\n if (index > -1) {\n $original_map_data = _this.$options.mapdata[index];\n original_infowindow = $original_map_data.infowindow;\n\n original_infowindow += _this.$options.mapdata[i].infowindow;\n _this.$options.mapdata[index].infowindow = original_infowindow;\n\n _this.$options.mapdata[index].$duplicates.push(i);\n _this.$options.mapdata[i].disabled = true;\n }\n\n $latlng.push(latlng);\n }\n },\n\n _clean_map: function() {\n var _this = this;\n\n for (var i = 0, len = _this.$polylines.length; i < len; i++) {\n _this.$polylines[i].setMap(null);\n }\n\n _this.$polylines = [];\n },\n\n _init_static_maps: function() {\n var _this = this;\n\n _this.$static_maps = document.querySelectorAll('#static_map_' + _this.id + ' .static_map');\n\n for (var i = 0, len_i = _this.$static_maps.length; i < len_i; i++) {\n _this.static_map_urls.push(_this.$static_maps[i].src);\n }\n },\n\n _update_static_maps: function(paths, daddr) {\n var _this = this;\n\n for (var i = 0, len_i = _this.$static_maps.length; i < len_i; i++) {\n if (i === parseInt(daddr) || !daddr) {\n\n _this.$static_maps[i].classList.remove('hideme');\n\n if (paths) {\n _this.$static_maps[i].src = _this.static_map_urls[i] + paths;\n }\n else {\n _this.$static_maps[i].src = _this.static_map_urls[i];\n }\n }\n else {\n _this.$static_maps[i].classList.add('hideme');\n }\n }\n },\n\n _init_directions: function() {\n var _this = this,\n $direction = document.querySelector('#direction_' + _this.data_id),\n $panel_wrapper = document.querySelector('#panel_wrapper_' + _this.data_id),\n $panel_title = document.querySelector('[id=\"panel_title_' + _this.data_id + '\"]'),\n $panel = document.querySelector('#panel_' + _this.data_id),\n $directions_service = new google.maps.DirectionsService();\n\n // don't do anything if this map has no route planning\n if (!$direction) {\n return;\n }\n\n _this.$saddr = document.querySelector('#saddr_' + _this.data_id);\n _this.$daddr = document.querySelector('#daddr_' + _this.data_id);\n _this.$polylines = [];\n\n $direction.addEventListener('submit', function(event) {\n var saddr = _this.$saddr.value,\n daddr = _this.$daddr.value,\n $travel_mode = document.querySelector('[name=\"travel_mode_' + _this.data_id + '\"]:checked'),\n travel_mode,\n directionsmode,\n destination;\n\n event.preventDefault();\n\n $panel_wrapper.classList.add('hideme');\n\n // Setzt Fehlerklasse wenn Start- oder Ziel-Adresse leer ist\n\n if (!saddr.length) {\n _this.$saddr.classList.add('error');\n _this.$saddr.setAttribute('aria-invalid', 'true');\n }\n else {\n _this.$saddr.classList.remove('error');\n _this.$saddr.setAttribute('aria-invalid', 'false');\n }\n\n if (_this.$daddr.tagName === 'SELECT') {\n if (!daddr.length) {\n _this.$daddr.parentElement.classList.add('error');\n _this.$daddr.setAttribute('aria-invalid', 'true');\n }\n else {\n _this.$daddr.parentElement.classList.remove('error');\n _this.$daddr.setAttribute('aria-invalid', 'false');\n }\n }\n\n var $input_error = $direction.querySelector('.error');\n\n if ($input_error) {\n $input_error.focus();\n }\n\n // Gibt die Route aus wenn Start- oder Ziel-Adresse vorhanden sind\n\n if (saddr.length && daddr.length) {\n destination = _this.$options.mapdata[daddr].latlng;\n directionsmode = $travel_mode.value;\n\n if (directionsmode === 'driving') {\n travel_mode = google.maps.DirectionsTravelMode.DRIVING;\n }\n else if (directionsmode === 'transit') {\n travel_mode = google.maps.DirectionsTravelMode.TRANSIT;\n }\n else if (directionsmode === 'bicycling') {\n travel_mode = google.maps.DirectionsTravelMode.BICYCLING;\n }\n else {\n travel_mode = google.maps.DirectionsTravelMode.WALKING;\n }\n\n $directions_service.route({\n origin : saddr,\n destination : destination,\n travelMode : travel_mode\n }, function($result, status) {\n if (status === google.maps.DirectionsStatus.OK) {\n var $route = $result.routes[0],\n $legs = $route.legs[0],\n $steps = $legs.steps,\n warnings = $route.warnings,\n distance_text = _this.$el.getAttribute('data-lang-distance'),\n duration_text = _this.$el.getAttribute('data-lang-duration'),\n static_paths = '',\n template = '',\n $polyline;\n\n _this._clean_map();\n\n _this.$route_bounds = $route.bounds;\n _this.$map.fitBounds(_this.$route_bounds);\n\n if (warnings.length && directionsmode !== 'transit') {\n template += '' + warnings + '';\n }\n\n template += '' + distance_text + ' ' + $legs.distance.text + ', ' + duration_text + ' ' + $legs.duration.text + '';\n template += '';\n template += '';\n template += '' + $legs.start_address + '';\n template += '';\n\n for (var i = 0, steps_len = $steps.length; i < steps_len; i++) {\n template += '';\n template += '' + $steps[i].instructions.replace(/ style=.+\"/gi, '').replace('', '').replace('', '') + '';\n template += '' + distance_text + ' ' + $steps[i].distance.text + '';\n template += '';\n\n var lat = $steps[i].start_location.lat(),\n lng = $steps[i].start_location.lng();\n\n static_paths += '%7C' + lat + ',' + lng;\n\n $polyline = new google.maps.Polyline({\n path : $steps[i].path,\n strokeColor : _this.$options.direction_color,\n strokeOpacity : 0.8,\n strokeWeight : 5\n });\n\n $polyline.setMap(_this.$map);\n _this.$polylines.push($polyline);\n }\n\n _this._update_static_maps(static_paths, daddr);\n\n template += '';\n template += '' + _this.$options.mapdata[daddr]['street_address'] + ', ' + _this.$options.mapdata[daddr]['postal_code'] + ' ' + _this.$options.mapdata[daddr]['locality'] + ', ' + $legs.end_address.split(', ')[$legs.end_address.split(', ').length - 1] + '';\n template += '';\n template += '';\n template += '' + $route.copyrights + '';\n\n if (typeof _this.$start_marker === 'object') {\n _this.$start_marker.setMap(null);\n }\n\n _this.$start_marker = new google.maps.Marker({\n clickable : false,\n icon : _this.$options.start_marker_href ? {\n url : _this.$options.start_marker_href,\n scaledSize : new google.maps.Size(_this.$options.start_marker_width, _this.$options.start_marker_height)\n } : undefined,\n map : _this.$map,\n optimized : false,\n position : $legs.start_location\n });\n\n for (var j = 0, mapdata_len = _this.$options.mapdata.length; j < mapdata_len; j++) {\n _this.$options.mapdata[j].$marker.setVisible(false);\n }\n\n _this.$options.mapdata[daddr].$marker.setVisible(true);\n\n // Blendet zusätzliche Marker zB Parkplatz in der Routenansicht aus (jc)\n // _this = _set_marker_visible(_this, '1');\n\n if (device.ios) {\n document.location = 'maps://maps.google.com/maps?saddr=' + saddr + '&daddr=' + destination + '&directionsmode=' + directionsmode;\n }\n else if (!device.ios && (device.mobile || device.tablet)) {\n document.location = 'https://maps.google.com/maps?saddr=' + saddr + '&daddr=' + destination + '&directionsmode=' + directionsmode;\n }\n else {\n $panel_wrapper.classList.remove('hideme');\n $panel_title.focus();\n\n if ($panel.firstChild) {\n $panel.removeChild($panel.firstChild);\n }\n\n $panel.innerHTML = template;\n }\n }\n });\n\n _this._google_analytics_tracking();\n }\n else if ($panel.firstChild) {\n $panel.removeChild($panel.firstChild);\n }\n });\n },\n\n _google_analytics_tracking: function() {\n if (has_google_analytics) {\n ga('send', 'event', 'Google Maps', 'Route berechnet');\n }\n },\n\n _limit_zoomlevel: function() {\n var _this = this;\n\n if (_this.$options.max_zoom === 0 && _this.$options.min_zoom === 0 ||\n _this.$options.max_zoom !== 0 && _this.$options.min_zoom !== 0 &&\n _this.$options.max_zoom < _this.$options.min_zoom) {\n return;\n }\n\n google.maps.event.addDomListener(_this.$map, 'zoom_changed', function() {\n if (_this.$options.min_zoom !== 0 && this.getZoom() < _this.$options.min_zoom) {\n this.setZoom(_this.$options.min_zoom);\n }\n\n if (_this.$options.max_zoom !== 0 && this.getZoom() > _this.$options.max_zoom) {\n this.setZoom(_this.$options.max_zoom);\n }\n });\n },\n\n _init_autoselect: function() {\n var _this = this;\n\n // don't do anything if this map has no route planning\n if (!_this.$daddr) {\n return;\n }\n\n _this.$daddr.addEventListener('change', function() {\n var index = this.options[this.selectedIndex].value;\n\n _this._clean_map();\n _this.$route_bounds = '';\n\n if (typeof _this.$start_marker === 'object') {\n _this.$start_marker.setMap(null);\n }\n\n for (var i = 0, len = _this.$options.mapdata.length; i < len; i++) {\n _this.$options.mapdata[i].$marker.setVisible(true);\n }\n\n _this._update_static_maps(false, index);\n _this.show_marker(index);\n });\n },\n\n // Blendet zusätzliche Marker, zB Parkplatz, ab einer im CMS-Objekt gegebenen Zoomstufe aus (jc)\n\n // _watch_marker_zoom: function() {\n // var _this = this;\n //\n // google.maps.event.addDomListener(_this.$map, 'zoom_changed', function() {\n // _this = _set_marker_visible(_this, _this.$map.getZoom());\n // });\n // },\n\n _get_current_index: function(index) {\n var _this = this;\n\n for (var i = 0, $mapdata; $mapdata = _this.$options.mapdata[i]; i++) {\n if ($mapdata.$duplicates.indexOf(parseInt(index)) > -1) {\n index = i;\n break;\n }\n }\n\n return index;\n },\n\n show_marker: function(index) {\n var _this = this,\n $mapdata;\n\n if (index) {\n index = _this._get_current_index(index);\n $mapdata = _this.$options.mapdata[index];\n\n _this.$map.setZoom(_this.$options.zoom);\n _this.$map.panTo($mapdata.latlng);\n\n if ($mapdata.infowindow) {\n _this.open_infowindow(index);\n }\n }\n else {\n _this.$map.fitBounds(_this.$bounds);\n }\n },\n\n open_infowindow: function(index) {\n var _this = this,\n $mapdata;\n\n index = _this._get_current_index(index);\n $mapdata = _this.$options.mapdata[index];\n\n _this._infowindow_is_open = true;\n _this._$infowindow_mapdata = $mapdata;\n\n _this._$infowindow.setContent('' + $mapdata.infowindow + '');\n _this._$infowindow.open(_this.$map, $mapdata.$marker);\n },\n\n map_resize: function() {\n var _this = this,\n center = _this.$map.getCenter();\n\n google.maps.event.trigger(_this.$map, 'resize');\n\n _this._$infowindow.close();\n\n if (_this.$route_bounds) {\n _this.$map.setCenter(center);\n _this.$map.fitBounds(_this.$route_bounds);\n }\n else if (_this._infowindow_is_open) {\n _this.$map.panTo(_this._$infowindow_mapdata.latlng);\n }\n else if (_this.$options.mapdata.length > 1) {\n _this.$map.setCenter(center);\n _this.$map.fitBounds(_this.$bounds);\n }\n else {\n _this.$map.panTo(_this.$options.mapdata[0].latlng);\n }\n }\n };\n\n if (window.$google_maps_data) {\n for (var i = 0, len = window.$google_maps_data.length; i < len; i++) {\n var id = window.$google_maps_data[i].id,\n $options = window.$google_maps_data[i].options;\n\n new GoogleMaps('#' + id, $options).init();\n }\n }\n})(navigator, window, document);\n\n// ACCORDION\n// Wird verwendet für: infolist_list_content, listfoldercontent, u_online_benefits_1\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n var Accordion = function($accordion) {\n var _this = this;\n\n _this.$accordion = $accordion;\n _this.$tab = $accordion.querySelectorAll('[role=tab]');\n _this.anchor = location.hash;\n\n _this.one_tab_open = true; // only one Tab open\n }\n Accordion.prototype = {\n init: function() {\n var _this = this;\n\n _this._setup_accordion();\n _this._keyboard_nav();\n\n if (_this.anchor.length > 0) {\n _this._open_tabpanel(_this.$accordion.querySelector(_this.anchor));\n }\n\n for (var i = 0; i < _this.$tab.length; i++) {\n _this.$tab[i].addEventListener('click', function(event) {\n event.preventDefault();\n _this._toggle_tabpanel(this);\n });\n }\n\n window.addEventListener('resize', function() {\n _this._on_resize();\n });\n\n },\n\n _toggle_tabpanel: function($tab) {\n var _this = this;\n\n if ($tab.getAttribute('aria-expanded') === 'true') {\n _this._close_tabpanel($tab);\n }\n else {\n _this._open_tabpanel($tab);\n }\n },\n\n _close_tabpanel: function($tab) {\n var _this = this,\n $tabpanel = _this._get_tabpanel($tab);\n\n $tab.setAttribute('aria-expanded', 'false');\n $tab.setAttribute('tabindex', '-1');\n $tabpanel.setAttribute('aria-hidden', 'true');\n $tabpanel.style.maxHeight = 0;\n $tabpanel.addEventListener('transitionend', function() {\n if (this.getAttribute('aria-hidden') === 'true') {\n this.classList.add('hideme');\n }\n }, false);\n },\n\n _open_tabpanel: function($tab) {\n var _this = this,\n $tabpanel = _this._get_tabpanel($tab);\n\n if (_this.one_tab_open) {\n for (var i = 0; i < _this.$tab.length; i++) {\n if (_this.$tab[i] !== $tab) {\n _this._close_tabpanel(_this.$tab[i]);\n }\n }\n }\n\n $tab.setAttribute('aria-expanded', 'true');\n $tab.setAttribute('tabindex', '0');\n $tabpanel.setAttribute('aria-hidden', 'false');\n $tabpanel.classList.remove('hideme');\n setTimeout(function() {\n $tabpanel.style.maxHeight = $tabpanel.max_height + 'px';\n }, 20);\n },\n\n _get_tabpanel: function($tab) {\n return document.querySelector('#' + $tab.getAttribute('aria-controls'));\n },\n\n _setup_accordion: function() {\n var _this = this,\n $tabpanel;\n\n for (var i = 0; i < _this.$tab.length; i++) {\n _this.$tab[i].index = i;\n $tabpanel = _this._get_tabpanel(_this.$tab[i]);\n $tabpanel.classList.remove('hideme');\n $tabpanel.max_height = $tabpanel.clientHeight;\n _this._close_tabpanel(_this.$tab[i]);\n $tabpanel.classList.add('animated');\n $tabpanel.classList.add('hideme');\n }\n _this.$tab[0].setAttribute('tabindex', '0');\n },\n\n _on_resize: function() {\n var _this = this,\n $tabpanel;\n\n for (var i = 0; i < _this.$tab.length; i++) {\n $tabpanel = _this._get_tabpanel(_this.$tab[i]);\n $tabpanel.removeAttribute('style');\n $tabpanel.classList.remove('animated');\n $tabpanel.classList.remove('hideme');\n $tabpanel.max_height = $tabpanel.clientHeight;\n\n if (_this.$tab[i].getAttribute('aria-expanded') === 'true') {\n _this._open_tabpanel(_this.$tab[i]);\n } else {\n _this._close_tabpanel(_this.$tab[i]);\n }\n\n $tabpanel.classList.add('animated');\n }\n },\n\n _keyboard_nav: function() {\n var _this = this,\n $map = {\n 13 : false, // Eingabe\n 32 : false, // Leertaste\n 35 : false, // Pos1\n 36 : false, // Ende\n 37 : false, // Pfeil nach links\n 38 : false, // Pfeil nach oben\n 39 : false, // Pfeil nach rechts\n 40 : false // Pfeil nach unten\n },\n index;\n\n for (var i = 0; i < _this.$tab.length; i++) {\n\n _this.$tab[i].addEventListener('keydown', function(event) {\n index = this.index;\n if (event.keyCode in $map) {\n event.preventDefault();\n $map[event.keyCode] = true;\n\n if ($map[13] || $map[32]) {\n _this._toggle_tabpanel(this);\n }\n else if ($map[35]) {\n _this._change_focused_tab(_this.$tab.length - 1);\n }\n else if ($map[36]) {\n _this._change_focused_tab(0);\n }\n else if ($map[37] || $map[38]) {\n _this._change_focused_tab(index - 1);\n }\n else if ($map[39] || $map[40]) {\n _this._change_focused_tab(index + 1);\n }\n }\n });\n\n _this.$tab[i].addEventListener('keyup', function(event) {\n if (event.keyCode in $map) {\n $map[event.keyCode] = false;\n }\n });\n }\n },\n\n _change_focused_tab: function(index) {\n var _this = this;\n\n if (index === _this.$tab.length) {\n index = 0;\n }\n\n if (index === -1) {\n index = _this.$tab.length - 1;\n }\n\n $tab = _this.$tab[index];\n\n for (var i = 0; i < _this.$tab.length; i++) {\n _this.$tab[i].setAttribute('tabindex', '-1');\n _this.$tab[i].setAttribute('aria-selected', 'false');\n }\n\n $tab.setAttribute('tabindex', '0');\n $tab.setAttribute('aria-selected', 'true');\n\n $tab.focus();\n }\n };\n\n var $accordions = document.querySelectorAll('.accordion');\n\n for (var i = 0; i < $accordions.length; i++) {\n new Accordion($accordions[i]).init();\n }\n\n})(document, window);\n\n// ONLINETOOL POPUP\n// Wird verwendet für: download_overview, onlinetools_popup_overview, video_tutorials_overview\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n var OnlinetoolPopup = function($onlinetool) {\n var _this = this;\n\n _this.$onlinetool = $onlinetool;\n\n _this.title = $onlinetool.getAttribute('title');\n _this.id = '#' + $onlinetool.getAttribute('data-popup-id');\n _this.href = $onlinetool.getAttribute('href');\n },\n\n $body = document.querySelector('body'),\n $popup,\n $content,\n $close,\n $iframe;\n\n // Private\n\n function _create_element(html) {\n var $div = document.createElement('div'),\n $filtered_nodes = [],\n $nodes;\n\n $div.innerHTML = html.trim();\n $nodes = $div.childNodes;\n\n for (var i = 0, len = $nodes.length; $nodes !== null && i < len; i++) {\n if ($nodes[i].nodeType === 1) {\n $filtered_nodes.push($nodes[i]);\n }\n }\n\n return $filtered_nodes;\n }\n\n function _create_popup() {\n var html = '',\n $html;\n\n html += '';\n html += '';\n html += '';\n html += '';\n html += '';\n html += '';\n html += '';\n html += '';\n html += '';\n html += '';\n html += '';\n\n $html = _create_element(html);\n\n for (var j = 0, html_len = $html.length; j < html_len; j++) {\n $body.appendChild($html[j]);\n }\n\n $popup = document.querySelector('.popup_overlay');\n $content = $popup.querySelector('.popup_content');\n $close = $popup.querySelector('.popup_close');\n $iframe = $popup.querySelector('iframe');\n\n $iframe.addEventListener('load', function() {\n if ($iframe.getAttribute('src').length && $popup.classList.contains('show')) {\n $iframe.classList.add('show');\n }\n });\n }\n\n function _close_popup() {\n var _close = function() {\n $body.classList.remove('no_scroll');\n $content.classList.remove('show');\n $iframe.classList.remove('show');\n\n window.history.replaceState(null, document.title, window.location.pathname);\n };\n\n $close.addEventListener('click', function(event) {\n event.preventDefault();\n _close();\n });\n\n document.addEventListener('keydown', function(event) {\n if ($popup.classList.contains('show') && event.which === 27) {\n _close();\n }\n });\n\n $content.addEventListener('transitionend', function() {\n if (!$content.classList.contains('show')) {\n $popup.classList.remove('show');\n }\n });\n }\n\n _create_popup();\n _close_popup();\n\n // Public\n\n OnlinetoolPopup.prototype = {\n init: function() {\n var _this = this;\n\n _this.$onlinetool.addEventListener('click', function(event) {\n event.preventDefault();\n _this.open();\n });\n },\n\n open: function() {\n var _this = this;\n\n $body.classList.add('no_scroll');\n $popup.classList.add('show');\n $content.classList.add('show');\n $iframe.setAttribute('src', _this.href);\n\n window.history.replaceState(null, document.title, _this.id);\n }\n };\n\n if (window.device.mobile || window.device.tablet) {\n return;\n }\n\n var $onlinetools = document.querySelectorAll('[data-popup=\"true\"]'),\n $onlinetool;\n\n for (var i = 0, len = $onlinetools.length; i < len; i++) {\n $onlinetool = new OnlinetoolPopup($onlinetools[i]);\n\n $onlinetool.init();\n\n if ($onlinetool.id === window.location.hash) {\n $onlinetool.open();\n }\n }\n})(document, window);\n\n// SANFTES SCROLLEN\n// -------------------------------------------------------------------------------------------------\n\n(function(document, window) {\n var SmoothScroll = function($link) {\n var _this = this;\n\n _this.$link = $link;\n _this.has_animationend_event = false;\n },\n offset_top = 230;\n\n function _get_offset_top($target) {\n var $obj = $target,\n top_position = $obj.offsetTop;\n\n while ($obj = $obj.offsetParent) {\n top_position += $obj.offsetTop;\n }\n return top_position;\n }\n\n function _remove_highlight_class($highlighted_target) {\n if ($highlighted_target.has_animationend_event) {\n return;\n }\n\n $highlighted_target.addEventListener('animationend', function(event) {\n if (event.target !== this) {\n return;\n }\n\n $highlighted_target.has_animationend_event = true;\n $highlighted_target.classList.remove('highlighted');\n });\n }\n\n function _scroll_to($target, offset, $callback) {\n var top_position = _get_offset_top($target) - offset,\n duration = 300,\n $highlighted_target,\n interval;\n\n if ($target.getAttribute('id')) {\n $highlighted_target = $target.parentElement;\n }\n else {\n $highlighted_target = $target;\n }\n\n interval = setInterval(function() {\n var diff = top_position - window.pageYOffset,\n step = diff / duration * 10;\n\n if (Math.abs(diff) <= Math.abs(step)) {\n clearInterval(interval);\n $highlighted_target.classList.add('highlighted');\n\n if (typeof $callback === 'function') {\n $callback();\n }\n }\n\n window.scrollBy(0, step);\n duration -= 10;\n }, 10);\n\n _remove_highlight_class($highlighted_target);\n }\n\n function _auto_scroll() {\n var hash = location.hash,\n parameter = location.search,\n $target;\n\n if (hash.length <= 1) {\n return;\n }\n\n $target = document.querySelector(hash) || document.querySelector('a[id=\"' + hash.slice(1) + '\"]');\n\n if (!$target || $target.classList.contains('no_smooth_scroll')) {\n return;\n }\n\n location.hash = ''; // IE und Edge Bug - Scroll beginnt nicht am Seitenanfang\n window.history.replaceState(null, document.title, location.pathname + parameter);\n\n setTimeout(function() { // Firefox Bug - Scroll beginnt nicht am Seitenanfang\n window.scrollTo(0, 0);\n\n _scroll_to($target, offset_top, function() {\n $target.focus();\n window.history.replaceState(null, document.title, parameter + hash);\n });\n }, 10);\n }\n\n SmoothScroll.prototype = {\n init: function() {\n var _this = this;\n\n if (_this.$link.classList.contains('no_smooth_scroll')) {\n return;\n }\n\n if (_this.$link.tagName === 'A' || _this.$link.tagName === 'a') {\n _this._click_link();\n }\n else {\n _this._change_select();\n }\n },\n\n _click_link: function() {\n var _this = this;\n\n _this.$link.addEventListener('click', function(event) {\n var hash = this.getAttribute('href') || this.getAttribute('xlink:href'),\n parameter,\n $parameter,\n $hash,\n $target;\n\n if (hash.length === 1) {\n return;\n }\n\n $hash = hash.split('#');\n $parameter = $hash[0].split('?');\n parameter = $parameter.length === 2 ? '?' + $parameter[1] : '';\n hash = $hash[1];\n $target = document.querySelector('#' + hash) || document.querySelector('a[id=\"' + hash + '\"]');\n\n if (!$target) {\n return;\n }\n\n event.preventDefault();\n\n _scroll_to($target, offset_top, function() {\n $target.focus();\n window.history.replaceState(null, document.title, parameter + '#' + hash);\n });\n });\n },\n\n _change_select: function() {\n var _this = this;\n\n _this.$link.addEventListener('change', function(event) {\n var hash = this.options[this.selectedIndex].value,\n $target;\n\n if (hash.length === 1) {\n return;\n }\n\n hash = hash.split('#')[1];\n $target = document.querySelector('#' + hash) || document.querySelector('a[id=\"' + hash + '\"]');\n\n if (!$target) {\n return;\n }\n\n event.preventDefault();\n\n _scroll_to($target, offset_top, function() {\n $target.focus();\n window.history.replaceState(null, document.title, hash);\n });\n });\n }\n };\n\n var $links = document.querySelectorAll('a[*|href*=\"#\"], select');\n\n for (var i = 0, len = $links.length; i < len; i++) {\n new SmoothScroll($links[i]).init();\n }\n\n _auto_scroll();\n})(document, window);\n\n/**\r\n * Swiper 4.4.1\r\n * Most modern mobile touch slider and framework with hardware accelerated transitions\r\n * http://www.idangero.us/swiper/\r\n *\r\n * Copyright 2014-2018 Vladimir Kharlampidi\r\n *\r\n * Released under the MIT License\r\n *\r\n * Released on: September 14, 2018\r\n */\r\n\r\n(function (global, factory) {\r\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\r\n typeof define === 'function' && define.amd ? define(factory) :\r\n (global.Swiper = factory());\r\n}(this, (function () { 'use strict';\r\n\r\n /**\r\n * SSR Window 1.0.1\r\n * Better handling for window object in SSR environment\r\n * https://github.com/nolimits4web/ssr-window\r\n *\r\n * Copyright 2018, Vladimir Kharlampidi\r\n *\r\n * Licensed under MIT\r\n *\r\n * Released on: July 18, 2018\r\n */\r\n var doc = (typeof document === 'undefined') ? {\r\n body: {},\r\n addEventListener: function addEventListener() {},\r\n removeEventListener: function removeEventListener() {},\r\n activeElement: {\r\n blur: function blur() {},\r\n nodeName: '',\r\n },\r\n querySelector: function querySelector() {\r\n return null;\r\n },\r\n querySelectorAll: function querySelectorAll() {\r\n return [];\r\n },\r\n getElementById: function getElementById() {\r\n return null;\r\n },\r\n createEvent: function createEvent() {\r\n return {\r\n initEvent: function initEvent() {},\r\n };\r\n },\r\n createElement: function createElement() {\r\n return {\r\n children: [],\r\n childNodes: [],\r\n style: {},\r\n setAttribute: function setAttribute() {},\r\n getElementsByTagName: function getElementsByTagName() {\r\n return [];\r\n },\r\n };\r\n },\r\n location: { hash: '' },\r\n } : document; // eslint-disable-line\r\n\r\n var win = (typeof window === 'undefined') ? {\r\n document: doc,\r\n navigator: {\r\n userAgent: '',\r\n },\r\n location: {},\r\n history: {},\r\n CustomEvent: function CustomEvent() {\r\n return this;\r\n },\r\n addEventListener: function addEventListener() {},\r\n removeEventListener: function removeEventListener() {},\r\n getComputedStyle: function getComputedStyle() {\r\n return {\r\n getPropertyValue: function getPropertyValue() {\r\n return '';\r\n },\r\n };\r\n },\r\n Image: function Image() {},\r\n Date: function Date() {},\r\n screen: {},\r\n setTimeout: function setTimeout() {},\r\n clearTimeout: function clearTimeout() {},\r\n } : window; // eslint-disable-line\r\n\r\n /**\r\n * Dom7 2.1.2\r\n * Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API\r\n * http://framework7.io/docs/dom.html\r\n *\r\n * Copyright 2018, Vladimir Kharlampidi\r\n * The iDangero.us\r\n * http://www.idangero.us/\r\n *\r\n * Licensed under MIT\r\n *\r\n * Released on: September 13, 2018\r\n */\r\n\r\n var Dom7 = function Dom7(arr) {\r\n var self = this;\r\n // Create array-like object\r\n for (var i = 0; i < arr.length; i += 1) {\r\n self[i] = arr[i];\r\n }\r\n self.length = arr.length;\r\n // Return collection with methods\r\n return this;\r\n };\r\n\r\n function $(selector, context) {\r\n var arr = [];\r\n var i = 0;\r\n if (selector && !context) {\r\n if (selector instanceof Dom7) {\r\n return selector;\r\n }\r\n }\r\n if (selector) {\r\n // String\r\n if (typeof selector === 'string') {\r\n var els;\r\n var tempParent;\r\n var html = selector.trim();\r\n if (html.indexOf('<') >= 0 && html.indexOf('>') >= 0) {\r\n var toCreate = 'div';\r\n if (html.indexOf(':~]/)) {\r\n // Pure ID selector\r\n els = [doc.getElementById(selector.trim().split('#')[1])];\r\n } else {\r\n // Other selectors\r\n els = (context || doc).querySelectorAll(selector.trim());\r\n }\r\n for (i = 0; i < els.length; i += 1) {\r\n if (els[i]) { arr.push(els[i]); }\r\n }\r\n }\r\n } else if (selector.nodeType || selector === win || selector === doc) {\r\n // Node/element\r\n arr.push(selector);\r\n } else if (selector.length > 0 && selector[0].nodeType) {\r\n // Array of elements or instance of Dom\r\n for (i = 0; i < selector.length; i += 1) {\r\n arr.push(selector[i]);\r\n }\r\n }\r\n }\r\n return new Dom7(arr);\r\n }\r\n\r\n $.fn = Dom7.prototype;\r\n $.Class = Dom7;\r\n $.Dom7 = Dom7;\r\n\r\n function unique(arr) {\r\n var uniqueArray = [];\r\n for (var i = 0; i < arr.length; i += 1) {\r\n if (uniqueArray.indexOf(arr[i]) === -1) { uniqueArray.push(arr[i]); }\r\n }\r\n return uniqueArray;\r\n }\r\n\r\n // Classes and attributes\r\n function addClass(className) {\r\n var this$1 = this;\r\n\r\n if (typeof className === 'undefined') {\r\n return this;\r\n }\r\n var classes = className.split(' ');\r\n for (var i = 0; i < classes.length; i += 1) {\r\n for (var j = 0; j < this.length; j += 1) {\r\n if (typeof this$1[j] !== 'undefined' && typeof this$1[j].classList !== 'undefined') { this$1[j].classList.add(classes[i]); }\r\n }\r\n }\r\n return this;\r\n }\r\n function removeClass(className) {\r\n var this$1 = this;\r\n\r\n var classes = className.split(' ');\r\n for (var i = 0; i < classes.length; i += 1) {\r\n for (var j = 0; j < this.length; j += 1) {\r\n if (typeof this$1[j] !== 'undefined' && typeof this$1[j].classList !== 'undefined') { this$1[j].classList.remove(classes[i]); }\r\n }\r\n }\r\n return this;\r\n }\r\n function hasClass(className) {\r\n if (!this[0]) { return false; }\r\n return this[0].classList.contains(className);\r\n }\r\n function toggleClass(className) {\r\n var this$1 = this;\r\n\r\n var classes = className.split(' ');\r\n for (var i = 0; i < classes.length; i += 1) {\r\n for (var j = 0; j < this.length; j += 1) {\r\n if (typeof this$1[j] !== 'undefined' && typeof this$1[j].classList !== 'undefined') { this$1[j].classList.toggle(classes[i]); }\r\n }\r\n }\r\n return this;\r\n }\r\n function attr(attrs, value) {\r\n var arguments$1 = arguments;\r\n var this$1 = this;\r\n\r\n if (arguments.length === 1 && typeof attrs === 'string') {\r\n // Get attr\r\n if (this[0]) { return this[0].getAttribute(attrs); }\r\n return undefined;\r\n }\r\n\r\n // Set attrs\r\n for (var i = 0; i < this.length; i += 1) {\r\n if (arguments$1.length === 2) {\r\n // String\r\n this$1[i].setAttribute(attrs, value);\r\n } else {\r\n // Object\r\n // eslint-disable-next-line\r\n for (var attrName in attrs) {\r\n this$1[i][attrName] = attrs[attrName];\r\n this$1[i].setAttribute(attrName, attrs[attrName]);\r\n }\r\n }\r\n }\r\n return this;\r\n }\r\n // eslint-disable-next-line\r\n function removeAttr(attr) {\r\n var this$1 = this;\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n this$1[i].removeAttribute(attr);\r\n }\r\n return this;\r\n }\r\n function data(key, value) {\r\n var this$1 = this;\r\n\r\n var el;\r\n if (typeof value === 'undefined') {\r\n el = this[0];\r\n // Get value\r\n if (el) {\r\n if (el.dom7ElementDataStorage && (key in el.dom7ElementDataStorage)) {\r\n return el.dom7ElementDataStorage[key];\r\n }\r\n\r\n var dataKey = el.getAttribute((\"data-\" + key));\r\n if (dataKey) {\r\n return dataKey;\r\n }\r\n return undefined;\r\n }\r\n return undefined;\r\n }\r\n\r\n // Set value\r\n for (var i = 0; i < this.length; i += 1) {\r\n el = this$1[i];\r\n if (!el.dom7ElementDataStorage) { el.dom7ElementDataStorage = {}; }\r\n el.dom7ElementDataStorage[key] = value;\r\n }\r\n return this;\r\n }\r\n // Transforms\r\n // eslint-disable-next-line\r\n function transform(transform) {\r\n var this$1 = this;\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n var elStyle = this$1[i].style;\r\n elStyle.webkitTransform = transform;\r\n elStyle.transform = transform;\r\n }\r\n return this;\r\n }\r\n function transition(duration) {\r\n var this$1 = this;\r\n\r\n if (typeof duration !== 'string') {\r\n duration = duration + \"ms\"; // eslint-disable-line\r\n }\r\n for (var i = 0; i < this.length; i += 1) {\r\n var elStyle = this$1[i].style;\r\n elStyle.webkitTransitionDuration = duration;\r\n elStyle.transitionDuration = duration;\r\n }\r\n return this;\r\n }\r\n // Events\r\n function on() {\r\n var this$1 = this;\r\n var assign;\r\n\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n var eventType = args[0];\r\n var targetSelector = args[1];\r\n var listener = args[2];\r\n var capture = args[3];\r\n if (typeof args[1] === 'function') {\r\n (assign = args, eventType = assign[0], listener = assign[1], capture = assign[2]);\r\n targetSelector = undefined;\r\n }\r\n if (!capture) { capture = false; }\r\n\r\n function handleLiveEvent(e) {\r\n var target = e.target;\r\n if (!target) { return; }\r\n var eventData = e.target.dom7EventData || [];\r\n if (eventData.indexOf(e) < 0) {\r\n eventData.unshift(e);\r\n }\r\n if ($(target).is(targetSelector)) { listener.apply(target, eventData); }\r\n else {\r\n var parents = $(target).parents(); // eslint-disable-line\r\n for (var k = 0; k < parents.length; k += 1) {\r\n if ($(parents[k]).is(targetSelector)) { listener.apply(parents[k], eventData); }\r\n }\r\n }\r\n }\r\n function handleEvent(e) {\r\n var eventData = e && e.target ? e.target.dom7EventData || [] : [];\r\n if (eventData.indexOf(e) < 0) {\r\n eventData.unshift(e);\r\n }\r\n listener.apply(this, eventData);\r\n }\r\n var events = eventType.split(' ');\r\n var j;\r\n for (var i = 0; i < this.length; i += 1) {\r\n var el = this$1[i];\r\n if (!targetSelector) {\r\n for (j = 0; j < events.length; j += 1) {\r\n var event = events[j];\r\n if (!el.dom7Listeners) { el.dom7Listeners = {}; }\r\n if (!el.dom7Listeners[event]) { el.dom7Listeners[event] = []; }\r\n el.dom7Listeners[event].push({\r\n listener: listener,\r\n proxyListener: handleEvent,\r\n });\r\n el.addEventListener(event, handleEvent, capture);\r\n }\r\n } else {\r\n // Live events\r\n for (j = 0; j < events.length; j += 1) {\r\n var event$1 = events[j];\r\n if (!el.dom7LiveListeners) { el.dom7LiveListeners = {}; }\r\n if (!el.dom7LiveListeners[event$1]) { el.dom7LiveListeners[event$1] = []; }\r\n el.dom7LiveListeners[event$1].push({\r\n listener: listener,\r\n proxyListener: handleLiveEvent,\r\n });\r\n el.addEventListener(event$1, handleLiveEvent, capture);\r\n }\r\n }\r\n }\r\n return this;\r\n }\r\n function off() {\r\n var this$1 = this;\r\n var assign;\r\n\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n var eventType = args[0];\r\n var targetSelector = args[1];\r\n var listener = args[2];\r\n var capture = args[3];\r\n if (typeof args[1] === 'function') {\r\n (assign = args, eventType = assign[0], listener = assign[1], capture = assign[2]);\r\n targetSelector = undefined;\r\n }\r\n if (!capture) { capture = false; }\r\n\r\n var events = eventType.split(' ');\r\n for (var i = 0; i < events.length; i += 1) {\r\n var event = events[i];\r\n for (var j = 0; j < this.length; j += 1) {\r\n var el = this$1[j];\r\n var handlers = (void 0);\r\n if (!targetSelector && el.dom7Listeners) {\r\n handlers = el.dom7Listeners[event];\r\n } else if (targetSelector && el.dom7LiveListeners) {\r\n handlers = el.dom7LiveListeners[event];\r\n }\r\n if (handlers && handlers.length) {\r\n for (var k = handlers.length - 1; k >= 0; k -= 1) {\r\n var handler = handlers[k];\r\n if (listener && handler.listener === listener) {\r\n el.removeEventListener(event, handler.proxyListener, capture);\r\n handlers.splice(k, 1);\r\n } else if (!listener) {\r\n el.removeEventListener(event, handler.proxyListener, capture);\r\n handlers.splice(k, 1);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return this;\r\n }\r\n function trigger() {\r\n var this$1 = this;\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n var events = args[0].split(' ');\r\n var eventData = args[1];\r\n for (var i = 0; i < events.length; i += 1) {\r\n var event = events[i];\r\n for (var j = 0; j < this.length; j += 1) {\r\n var el = this$1[j];\r\n var evt = (void 0);\r\n try {\r\n evt = new win.CustomEvent(event, {\r\n detail: eventData,\r\n bubbles: true,\r\n cancelable: true,\r\n });\r\n } catch (e) {\r\n evt = doc.createEvent('Event');\r\n evt.initEvent(event, true, true);\r\n evt.detail = eventData;\r\n }\r\n // eslint-disable-next-line\r\n el.dom7EventData = args.filter(function (data, dataIndex) { return dataIndex > 0; });\r\n el.dispatchEvent(evt);\r\n el.dom7EventData = [];\r\n delete el.dom7EventData;\r\n }\r\n }\r\n return this;\r\n }\r\n function transitionEnd(callback) {\r\n var events = ['webkitTransitionEnd', 'transitionend'];\r\n var dom = this;\r\n var i;\r\n function fireCallBack(e) {\r\n /* jshint validthis:true */\r\n if (e.target !== this) { return; }\r\n callback.call(this, e);\r\n for (i = 0; i < events.length; i += 1) {\r\n dom.off(events[i], fireCallBack);\r\n }\r\n }\r\n if (callback) {\r\n for (i = 0; i < events.length; i += 1) {\r\n dom.on(events[i], fireCallBack);\r\n }\r\n }\r\n return this;\r\n }\r\n function outerWidth(includeMargins) {\r\n if (this.length > 0) {\r\n if (includeMargins) {\r\n // eslint-disable-next-line\r\n var styles = this.styles();\r\n return this[0].offsetWidth + parseFloat(styles.getPropertyValue('margin-right')) + parseFloat(styles.getPropertyValue('margin-left'));\r\n }\r\n return this[0].offsetWidth;\r\n }\r\n return null;\r\n }\r\n function outerHeight(includeMargins) {\r\n if (this.length > 0) {\r\n if (includeMargins) {\r\n // eslint-disable-next-line\r\n var styles = this.styles();\r\n return this[0].offsetHeight + parseFloat(styles.getPropertyValue('margin-top')) + parseFloat(styles.getPropertyValue('margin-bottom'));\r\n }\r\n return this[0].offsetHeight;\r\n }\r\n return null;\r\n }\r\n function offset() {\r\n if (this.length > 0) {\r\n var el = this[0];\r\n var box = el.getBoundingClientRect();\r\n var body = doc.body;\r\n var clientTop = el.clientTop || body.clientTop || 0;\r\n var clientLeft = el.clientLeft || body.clientLeft || 0;\r\n var scrollTop = el === win ? win.scrollY : el.scrollTop;\r\n var scrollLeft = el === win ? win.scrollX : el.scrollLeft;\r\n return {\r\n top: (box.top + scrollTop) - clientTop,\r\n left: (box.left + scrollLeft) - clientLeft,\r\n };\r\n }\r\n\r\n return null;\r\n }\r\n function styles() {\r\n if (this[0]) { return win.getComputedStyle(this[0], null); }\r\n return {};\r\n }\r\n function css(props, value) {\r\n var this$1 = this;\r\n\r\n var i;\r\n if (arguments.length === 1) {\r\n if (typeof props === 'string') {\r\n if (this[0]) { return win.getComputedStyle(this[0], null).getPropertyValue(props); }\r\n } else {\r\n for (i = 0; i < this.length; i += 1) {\r\n // eslint-disable-next-line\r\n for (var prop in props) {\r\n this$1[i].style[prop] = props[prop];\r\n }\r\n }\r\n return this;\r\n }\r\n }\r\n if (arguments.length === 2 && typeof props === 'string') {\r\n for (i = 0; i < this.length; i += 1) {\r\n this$1[i].style[props] = value;\r\n }\r\n return this;\r\n }\r\n return this;\r\n }\r\n // Iterate over the collection passing elements to `callback`\r\n function each(callback) {\r\n var this$1 = this;\r\n\r\n // Don't bother continuing without a callback\r\n if (!callback) { return this; }\r\n // Iterate over the current collection\r\n for (var i = 0; i < this.length; i += 1) {\r\n // If the callback returns false\r\n if (callback.call(this$1[i], i, this$1[i]) === false) {\r\n // End the loop early\r\n return this$1;\r\n }\r\n }\r\n // Return `this` to allow chained DOM operations\r\n return this;\r\n }\r\n // eslint-disable-next-line\r\n function html(html) {\r\n var this$1 = this;\r\n\r\n if (typeof html === 'undefined') {\r\n return this[0] ? this[0].innerHTML : undefined;\r\n }\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n this$1[i].innerHTML = html;\r\n }\r\n return this;\r\n }\r\n // eslint-disable-next-line\r\n function text(text) {\r\n var this$1 = this;\r\n\r\n if (typeof text === 'undefined') {\r\n if (this[0]) {\r\n return this[0].textContent.trim();\r\n }\r\n return null;\r\n }\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n this$1[i].textContent = text;\r\n }\r\n return this;\r\n }\r\n function is(selector) {\r\n var el = this[0];\r\n var compareWith;\r\n var i;\r\n if (!el || typeof selector === 'undefined') { return false; }\r\n if (typeof selector === 'string') {\r\n if (el.matches) { return el.matches(selector); }\r\n else if (el.webkitMatchesSelector) { return el.webkitMatchesSelector(selector); }\r\n else if (el.msMatchesSelector) { return el.msMatchesSelector(selector); }\r\n\r\n compareWith = $(selector);\r\n for (i = 0; i < compareWith.length; i += 1) {\r\n if (compareWith[i] === el) { return true; }\r\n }\r\n return false;\r\n } else if (selector === doc) { return el === doc; }\r\n else if (selector === win) { return el === win; }\r\n\r\n if (selector.nodeType || selector instanceof Dom7) {\r\n compareWith = selector.nodeType ? [selector] : selector;\r\n for (i = 0; i < compareWith.length; i += 1) {\r\n if (compareWith[i] === el) { return true; }\r\n }\r\n return false;\r\n }\r\n return false;\r\n }\r\n function index() {\r\n var child = this[0];\r\n var i;\r\n if (child) {\r\n i = 0;\r\n // eslint-disable-next-line\r\n while ((child = child.previousSibling) !== null) {\r\n if (child.nodeType === 1) { i += 1; }\r\n }\r\n return i;\r\n }\r\n return undefined;\r\n }\r\n // eslint-disable-next-line\r\n function eq(index) {\r\n if (typeof index === 'undefined') { return this; }\r\n var length = this.length;\r\n var returnIndex;\r\n if (index > length - 1) {\r\n return new Dom7([]);\r\n }\r\n if (index < 0) {\r\n returnIndex = length + index;\r\n if (returnIndex < 0) { return new Dom7([]); }\r\n return new Dom7([this[returnIndex]]);\r\n }\r\n return new Dom7([this[index]]);\r\n }\r\n function append() {\r\n var this$1 = this;\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n var newChild;\r\n\r\n for (var k = 0; k < args.length; k += 1) {\r\n newChild = args[k];\r\n for (var i = 0; i < this.length; i += 1) {\r\n if (typeof newChild === 'string') {\r\n var tempDiv = doc.createElement('div');\r\n tempDiv.innerHTML = newChild;\r\n while (tempDiv.firstChild) {\r\n this$1[i].appendChild(tempDiv.firstChild);\r\n }\r\n } else if (newChild instanceof Dom7) {\r\n for (var j = 0; j < newChild.length; j += 1) {\r\n this$1[i].appendChild(newChild[j]);\r\n }\r\n } else {\r\n this$1[i].appendChild(newChild);\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n }\r\n function prepend(newChild) {\r\n var this$1 = this;\r\n\r\n var i;\r\n var j;\r\n for (i = 0; i < this.length; i += 1) {\r\n if (typeof newChild === 'string') {\r\n var tempDiv = doc.createElement('div');\r\n tempDiv.innerHTML = newChild;\r\n for (j = tempDiv.childNodes.length - 1; j >= 0; j -= 1) {\r\n this$1[i].insertBefore(tempDiv.childNodes[j], this$1[i].childNodes[0]);\r\n }\r\n } else if (newChild instanceof Dom7) {\r\n for (j = 0; j < newChild.length; j += 1) {\r\n this$1[i].insertBefore(newChild[j], this$1[i].childNodes[0]);\r\n }\r\n } else {\r\n this$1[i].insertBefore(newChild, this$1[i].childNodes[0]);\r\n }\r\n }\r\n return this;\r\n }\r\n function next(selector) {\r\n if (this.length > 0) {\r\n if (selector) {\r\n if (this[0].nextElementSibling && $(this[0].nextElementSibling).is(selector)) {\r\n return new Dom7([this[0].nextElementSibling]);\r\n }\r\n return new Dom7([]);\r\n }\r\n\r\n if (this[0].nextElementSibling) { return new Dom7([this[0].nextElementSibling]); }\r\n return new Dom7([]);\r\n }\r\n return new Dom7([]);\r\n }\r\n function nextAll(selector) {\r\n var nextEls = [];\r\n var el = this[0];\r\n if (!el) { return new Dom7([]); }\r\n while (el.nextElementSibling) {\r\n var next = el.nextElementSibling; // eslint-disable-line\r\n if (selector) {\r\n if ($(next).is(selector)) { nextEls.push(next); }\r\n } else { nextEls.push(next); }\r\n el = next;\r\n }\r\n return new Dom7(nextEls);\r\n }\r\n function prev(selector) {\r\n if (this.length > 0) {\r\n var el = this[0];\r\n if (selector) {\r\n if (el.previousElementSibling && $(el.previousElementSibling).is(selector)) {\r\n return new Dom7([el.previousElementSibling]);\r\n }\r\n return new Dom7([]);\r\n }\r\n\r\n if (el.previousElementSibling) { return new Dom7([el.previousElementSibling]); }\r\n return new Dom7([]);\r\n }\r\n return new Dom7([]);\r\n }\r\n function prevAll(selector) {\r\n var prevEls = [];\r\n var el = this[0];\r\n if (!el) { return new Dom7([]); }\r\n while (el.previousElementSibling) {\r\n var prev = el.previousElementSibling; // eslint-disable-line\r\n if (selector) {\r\n if ($(prev).is(selector)) { prevEls.push(prev); }\r\n } else { prevEls.push(prev); }\r\n el = prev;\r\n }\r\n return new Dom7(prevEls);\r\n }\r\n function parent(selector) {\r\n var this$1 = this;\r\n\r\n var parents = []; // eslint-disable-line\r\n for (var i = 0; i < this.length; i += 1) {\r\n if (this$1[i].parentNode !== null) {\r\n if (selector) {\r\n if ($(this$1[i].parentNode).is(selector)) { parents.push(this$1[i].parentNode); }\r\n } else {\r\n parents.push(this$1[i].parentNode);\r\n }\r\n }\r\n }\r\n return $(unique(parents));\r\n }\r\n function parents(selector) {\r\n var this$1 = this;\r\n\r\n var parents = []; // eslint-disable-line\r\n for (var i = 0; i < this.length; i += 1) {\r\n var parent = this$1[i].parentNode; // eslint-disable-line\r\n while (parent) {\r\n if (selector) {\r\n if ($(parent).is(selector)) { parents.push(parent); }\r\n } else {\r\n parents.push(parent);\r\n }\r\n parent = parent.parentNode;\r\n }\r\n }\r\n return $(unique(parents));\r\n }\r\n function closest(selector) {\r\n var closest = this; // eslint-disable-line\r\n if (typeof selector === 'undefined') {\r\n return new Dom7([]);\r\n }\r\n if (!closest.is(selector)) {\r\n closest = closest.parents(selector).eq(0);\r\n }\r\n return closest;\r\n }\r\n function find(selector) {\r\n var this$1 = this;\r\n\r\n var foundElements = [];\r\n for (var i = 0; i < this.length; i += 1) {\r\n var found = this$1[i].querySelectorAll(selector);\r\n for (var j = 0; j < found.length; j += 1) {\r\n foundElements.push(found[j]);\r\n }\r\n }\r\n return new Dom7(foundElements);\r\n }\r\n function children(selector) {\r\n var this$1 = this;\r\n\r\n var children = []; // eslint-disable-line\r\n for (var i = 0; i < this.length; i += 1) {\r\n var childNodes = this$1[i].childNodes;\r\n\r\n for (var j = 0; j < childNodes.length; j += 1) {\r\n if (!selector) {\r\n if (childNodes[j].nodeType === 1) { children.push(childNodes[j]); }\r\n } else if (childNodes[j].nodeType === 1 && $(childNodes[j]).is(selector)) {\r\n children.push(childNodes[j]);\r\n }\r\n }\r\n }\r\n return new Dom7(unique(children));\r\n }\r\n function remove() {\r\n var this$1 = this;\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n if (this$1[i].parentNode) { this$1[i].parentNode.removeChild(this$1[i]); }\r\n }\r\n return this;\r\n }\r\n function add() {\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n var dom = this;\r\n var i;\r\n var j;\r\n for (i = 0; i < args.length; i += 1) {\r\n var toAdd = $(args[i]);\r\n for (j = 0; j < toAdd.length; j += 1) {\r\n dom[dom.length] = toAdd[j];\r\n dom.length += 1;\r\n }\r\n }\r\n return dom;\r\n }\r\n\r\n var Methods = {\r\n addClass: addClass,\r\n removeClass: removeClass,\r\n hasClass: hasClass,\r\n toggleClass: toggleClass,\r\n attr: attr,\r\n removeAttr: removeAttr,\r\n data: data,\r\n transform: transform,\r\n transition: transition,\r\n on: on,\r\n off: off,\r\n trigger: trigger,\r\n transitionEnd: transitionEnd,\r\n outerWidth: outerWidth,\r\n outerHeight: outerHeight,\r\n offset: offset,\r\n css: css,\r\n each: each,\r\n html: html,\r\n text: text,\r\n is: is,\r\n index: index,\r\n eq: eq,\r\n append: append,\r\n prepend: prepend,\r\n next: next,\r\n nextAll: nextAll,\r\n prev: prev,\r\n prevAll: prevAll,\r\n parent: parent,\r\n parents: parents,\r\n closest: closest,\r\n find: find,\r\n children: children,\r\n remove: remove,\r\n add: add,\r\n styles: styles,\r\n };\r\n\r\n Object.keys(Methods).forEach(function (methodName) {\r\n $.fn[methodName] = Methods[methodName];\r\n });\r\n\r\n var Utils = {\r\n deleteProps: function deleteProps(obj) {\r\n var object = obj;\r\n Object.keys(object).forEach(function (key) {\r\n try {\r\n object[key] = null;\r\n } catch (e) {\r\n // no getter for object\r\n }\r\n try {\r\n delete object[key];\r\n } catch (e) {\r\n // something got wrong\r\n }\r\n });\r\n },\r\n nextTick: function nextTick(callback, delay) {\r\n if ( delay === void 0 ) delay = 0;\r\n\r\n return setTimeout(callback, delay);\r\n },\r\n now: function now() {\r\n return Date.now();\r\n },\r\n getTranslate: function getTranslate(el, axis) {\r\n if ( axis === void 0 ) axis = 'x';\r\n\r\n var matrix;\r\n var curTransform;\r\n var transformMatrix;\r\n\r\n var curStyle = win.getComputedStyle(el, null);\r\n\r\n if (win.WebKitCSSMatrix) {\r\n curTransform = curStyle.transform || curStyle.webkitTransform;\r\n if (curTransform.split(',').length > 6) {\r\n curTransform = curTransform.split(', ').map(function (a) { return a.replace(',', '.'); }).join(', ');\r\n }\r\n // Some old versions of Webkit choke when 'none' is passed; pass\r\n // empty string instead in this case\r\n transformMatrix = new win.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\r\n } else {\r\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\r\n matrix = transformMatrix.toString().split(',');\r\n }\r\n\r\n if (axis === 'x') {\r\n // Latest Chrome and webkits Fix\r\n if (win.WebKitCSSMatrix) { curTransform = transformMatrix.m41; }\r\n // Crazy IE10 Matrix\r\n else if (matrix.length === 16) { curTransform = parseFloat(matrix[12]); }\r\n // Normal Browsers\r\n else { curTransform = parseFloat(matrix[4]); }\r\n }\r\n if (axis === 'y') {\r\n // Latest Chrome and webkits Fix\r\n if (win.WebKitCSSMatrix) { curTransform = transformMatrix.m42; }\r\n // Crazy IE10 Matrix\r\n else if (matrix.length === 16) { curTransform = parseFloat(matrix[13]); }\r\n // Normal Browsers\r\n else { curTransform = parseFloat(matrix[5]); }\r\n }\r\n return curTransform || 0;\r\n },\r\n parseUrlQuery: function parseUrlQuery(url) {\r\n var query = {};\r\n var urlToParse = url || win.location.href;\r\n var i;\r\n var params;\r\n var param;\r\n var length;\r\n if (typeof urlToParse === 'string' && urlToParse.length) {\r\n urlToParse = urlToParse.indexOf('?') > -1 ? urlToParse.replace(/\\S*\\?/, '') : '';\r\n params = urlToParse.split('&').filter(function (paramsPart) { return paramsPart !== ''; });\r\n length = params.length;\r\n\r\n for (i = 0; i < length; i += 1) {\r\n param = params[i].replace(/#\\S+/g, '').split('=');\r\n query[decodeURIComponent(param[0])] = typeof param[1] === 'undefined' ? undefined : decodeURIComponent(param[1]) || '';\r\n }\r\n }\r\n return query;\r\n },\r\n isObject: function isObject(o) {\r\n return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;\r\n },\r\n extend: function extend() {\r\n var args = [], len$1 = arguments.length;\r\n while ( len$1-- ) args[ len$1 ] = arguments[ len$1 ];\r\n\r\n var to = Object(args[0]);\r\n for (var i = 1; i < args.length; i += 1) {\r\n var nextSource = args[i];\r\n if (nextSource !== undefined && nextSource !== null) {\r\n var keysArray = Object.keys(Object(nextSource));\r\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\r\n var nextKey = keysArray[nextIndex];\r\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\r\n if (desc !== undefined && desc.enumerable) {\r\n if (Utils.isObject(to[nextKey]) && Utils.isObject(nextSource[nextKey])) {\r\n Utils.extend(to[nextKey], nextSource[nextKey]);\r\n } else if (!Utils.isObject(to[nextKey]) && Utils.isObject(nextSource[nextKey])) {\r\n to[nextKey] = {};\r\n Utils.extend(to[nextKey], nextSource[nextKey]);\r\n } else {\r\n to[nextKey] = nextSource[nextKey];\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return to;\r\n },\r\n };\r\n\r\n var Support = (function Support() {\r\n var testDiv = doc.createElement('div');\r\n return {\r\n touch: (win.Modernizr && win.Modernizr.touch === true) || (function checkTouch() {\r\n return !!(('ontouchstart' in win) || (win.DocumentTouch && doc instanceof win.DocumentTouch));\r\n }()),\r\n\r\n pointerEvents: !!(win.navigator.pointerEnabled || win.PointerEvent),\r\n prefixedPointerEvents: !!win.navigator.msPointerEnabled,\r\n\r\n transition: (function checkTransition() {\r\n var style = testDiv.style;\r\n return ('transition' in style || 'webkitTransition' in style || 'MozTransition' in style);\r\n }()),\r\n transforms3d: (win.Modernizr && win.Modernizr.csstransforms3d === true) || (function checkTransforms3d() {\r\n var style = testDiv.style;\r\n return ('webkitPerspective' in style || 'MozPerspective' in style || 'OPerspective' in style || 'MsPerspective' in style || 'perspective' in style);\r\n }()),\r\n\r\n flexbox: (function checkFlexbox() {\r\n var style = testDiv.style;\r\n var styles = ('alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient').split(' ');\r\n for (var i = 0; i < styles.length; i += 1) {\r\n if (styles[i] in style) { return true; }\r\n }\r\n return false;\r\n }()),\r\n\r\n observer: (function checkObserver() {\r\n return ('MutationObserver' in win || 'WebkitMutationObserver' in win);\r\n }()),\r\n\r\n passiveListener: (function checkPassiveListener() {\r\n var supportsPassive = false;\r\n try {\r\n var opts = Object.defineProperty({}, 'passive', {\r\n // eslint-disable-next-line\r\n get: function get() {\r\n supportsPassive = true;\r\n },\r\n });\r\n win.addEventListener('testPassiveListener', null, opts);\r\n } catch (e) {\r\n // No support\r\n }\r\n return supportsPassive;\r\n }()),\r\n\r\n gestures: (function checkGestures() {\r\n return 'ongesturestart' in win;\r\n }()),\r\n };\r\n }());\r\n\r\n var SwiperClass = function SwiperClass(params) {\r\n if ( params === void 0 ) params = {};\r\n\r\n var self = this;\r\n self.params = params;\r\n\r\n // Events\r\n self.eventsListeners = {};\r\n\r\n if (self.params && self.params.on) {\r\n Object.keys(self.params.on).forEach(function (eventName) {\r\n self.on(eventName, self.params.on[eventName]);\r\n });\r\n }\r\n };\r\n\r\n var staticAccessors = { components: { configurable: true } };\r\n\r\n SwiperClass.prototype.on = function on (events, handler, priority) {\r\n var self = this;\r\n if (typeof handler !== 'function') { return self; }\r\n var method = priority ? 'unshift' : 'push';\r\n events.split(' ').forEach(function (event) {\r\n if (!self.eventsListeners[event]) { self.eventsListeners[event] = []; }\r\n self.eventsListeners[event][method](handler);\r\n });\r\n return self;\r\n };\r\n\r\n SwiperClass.prototype.once = function once (events, handler, priority) {\r\n var self = this;\r\n if (typeof handler !== 'function') { return self; }\r\n function onceHandler() {\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n handler.apply(self, args);\r\n self.off(events, onceHandler);\r\n }\r\n return self.on(events, onceHandler, priority);\r\n };\r\n\r\n SwiperClass.prototype.off = function off (events, handler) {\r\n var self = this;\r\n if (!self.eventsListeners) { return self; }\r\n events.split(' ').forEach(function (event) {\r\n if (typeof handler === 'undefined') {\r\n self.eventsListeners[event] = [];\r\n } else if (self.eventsListeners[event] && self.eventsListeners[event].length) {\r\n self.eventsListeners[event].forEach(function (eventHandler, index) {\r\n if (eventHandler === handler) {\r\n self.eventsListeners[event].splice(index, 1);\r\n }\r\n });\r\n }\r\n });\r\n return self;\r\n };\r\n\r\n SwiperClass.prototype.emit = function emit () {\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n var self = this;\r\n if (!self.eventsListeners) { return self; }\r\n var events;\r\n var data;\r\n var context;\r\n if (typeof args[0] === 'string' || Array.isArray(args[0])) {\r\n events = args[0];\r\n data = args.slice(1, args.length);\r\n context = self;\r\n } else {\r\n events = args[0].events;\r\n data = args[0].data;\r\n context = args[0].context || self;\r\n }\r\n var eventsArray = Array.isArray(events) ? events : events.split(' ');\r\n eventsArray.forEach(function (event) {\r\n if (self.eventsListeners && self.eventsListeners[event]) {\r\n var handlers = [];\r\n self.eventsListeners[event].forEach(function (eventHandler) {\r\n handlers.push(eventHandler);\r\n });\r\n handlers.forEach(function (eventHandler) {\r\n eventHandler.apply(context, data);\r\n });\r\n }\r\n });\r\n return self;\r\n };\r\n\r\n SwiperClass.prototype.useModulesParams = function useModulesParams (instanceParams) {\r\n var instance = this;\r\n if (!instance.modules) { return; }\r\n Object.keys(instance.modules).forEach(function (moduleName) {\r\n var module = instance.modules[moduleName];\r\n // Extend params\r\n if (module.params) {\r\n Utils.extend(instanceParams, module.params);\r\n }\r\n });\r\n };\r\n\r\n SwiperClass.prototype.useModules = function useModules (modulesParams) {\r\n if ( modulesParams === void 0 ) modulesParams = {};\r\n\r\n var instance = this;\r\n if (!instance.modules) { return; }\r\n Object.keys(instance.modules).forEach(function (moduleName) {\r\n var module = instance.modules[moduleName];\r\n var moduleParams = modulesParams[moduleName] || {};\r\n // Extend instance methods and props\r\n if (module.instance) {\r\n Object.keys(module.instance).forEach(function (modulePropName) {\r\n var moduleProp = module.instance[modulePropName];\r\n if (typeof moduleProp === 'function') {\r\n instance[modulePropName] = moduleProp.bind(instance);\r\n } else {\r\n instance[modulePropName] = moduleProp;\r\n }\r\n });\r\n }\r\n // Add event listeners\r\n if (module.on && instance.on) {\r\n Object.keys(module.on).forEach(function (moduleEventName) {\r\n instance.on(moduleEventName, module.on[moduleEventName]);\r\n });\r\n }\r\n\r\n // Module create callback\r\n if (module.create) {\r\n module.create.bind(instance)(moduleParams);\r\n }\r\n });\r\n };\r\n\r\n staticAccessors.components.set = function (components) {\r\n var Class = this;\r\n if (!Class.use) { return; }\r\n Class.use(components);\r\n };\r\n\r\n SwiperClass.installModule = function installModule (module) {\r\n var params = [], len = arguments.length - 1;\r\n while ( len-- > 0 ) params[ len ] = arguments[ len + 1 ];\r\n\r\n var Class = this;\r\n if (!Class.prototype.modules) { Class.prototype.modules = {}; }\r\n var name = module.name || (((Object.keys(Class.prototype.modules).length) + \"_\" + (Utils.now())));\r\n Class.prototype.modules[name] = module;\r\n // Prototype\r\n if (module.proto) {\r\n Object.keys(module.proto).forEach(function (key) {\r\n Class.prototype[key] = module.proto[key];\r\n });\r\n }\r\n // Class\r\n if (module.static) {\r\n Object.keys(module.static).forEach(function (key) {\r\n Class[key] = module.static[key];\r\n });\r\n }\r\n // Callback\r\n if (module.install) {\r\n module.install.apply(Class, params);\r\n }\r\n return Class;\r\n };\r\n\r\n SwiperClass.use = function use (module) {\r\n var params = [], len = arguments.length - 1;\r\n while ( len-- > 0 ) params[ len ] = arguments[ len + 1 ];\r\n\r\n var Class = this;\r\n if (Array.isArray(module)) {\r\n module.forEach(function (m) { return Class.installModule(m); });\r\n return Class;\r\n }\r\n return Class.installModule.apply(Class, [ module ].concat( params ));\r\n };\r\n\r\n Object.defineProperties( SwiperClass, staticAccessors );\r\n\r\n function updateSize () {\r\n var swiper = this;\r\n var width;\r\n var height;\r\n var $el = swiper.$el;\r\n if (typeof swiper.params.width !== 'undefined') {\r\n width = swiper.params.width;\r\n } else {\r\n width = $el[0].clientWidth;\r\n }\r\n if (typeof swiper.params.height !== 'undefined') {\r\n height = swiper.params.height;\r\n } else {\r\n height = $el[0].clientHeight;\r\n }\r\n if ((width === 0 && swiper.isHorizontal()) || (height === 0 && swiper.isVertical())) {\r\n return;\r\n }\r\n\r\n // Subtract paddings\r\n width = width - parseInt($el.css('padding-left'), 10) - parseInt($el.css('padding-right'), 10);\r\n height = height - parseInt($el.css('padding-top'), 10) - parseInt($el.css('padding-bottom'), 10);\r\n\r\n Utils.extend(swiper, {\r\n width: width,\r\n height: height,\r\n size: swiper.isHorizontal() ? width : height,\r\n });\r\n }\r\n\r\n function updateSlides () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var swiperSize = swiper.size;\r\n var rtl = swiper.rtlTranslate;\r\n var wrongRTL = swiper.wrongRTL;\r\n var isVirtual = swiper.virtual && params.virtual.enabled;\r\n var previousSlidesLength = isVirtual ? swiper.virtual.slides.length : swiper.slides.length;\r\n var slides = $wrapperEl.children((\".\" + (swiper.params.slideClass)));\r\n var slidesLength = isVirtual ? swiper.virtual.slides.length : slides.length;\r\n var snapGrid = [];\r\n var slidesGrid = [];\r\n var slidesSizesGrid = [];\r\n\r\n var offsetBefore = params.slidesOffsetBefore;\r\n if (typeof offsetBefore === 'function') {\r\n offsetBefore = params.slidesOffsetBefore.call(swiper);\r\n }\r\n\r\n var offsetAfter = params.slidesOffsetAfter;\r\n if (typeof offsetAfter === 'function') {\r\n offsetAfter = params.slidesOffsetAfter.call(swiper);\r\n }\r\n\r\n var previousSnapGridLength = swiper.snapGrid.length;\r\n var previousSlidesGridLength = swiper.snapGrid.length;\r\n\r\n var spaceBetween = params.spaceBetween;\r\n var slidePosition = -offsetBefore;\r\n var prevSlideSize = 0;\r\n var index = 0;\r\n if (typeof swiperSize === 'undefined') {\r\n return;\r\n }\r\n if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {\r\n spaceBetween = (parseFloat(spaceBetween.replace('%', '')) / 100) * swiperSize;\r\n }\r\n\r\n swiper.virtualSize = -spaceBetween;\r\n\r\n // reset margins\r\n if (rtl) { slides.css({ marginLeft: '', marginTop: '' }); }\r\n else { slides.css({ marginRight: '', marginBottom: '' }); }\r\n\r\n var slidesNumberEvenToRows;\r\n if (params.slidesPerColumn > 1) {\r\n if (Math.floor(slidesLength / params.slidesPerColumn) === slidesLength / swiper.params.slidesPerColumn) {\r\n slidesNumberEvenToRows = slidesLength;\r\n } else {\r\n slidesNumberEvenToRows = Math.ceil(slidesLength / params.slidesPerColumn) * params.slidesPerColumn;\r\n }\r\n if (params.slidesPerView !== 'auto' && params.slidesPerColumnFill === 'row') {\r\n slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, params.slidesPerView * params.slidesPerColumn);\r\n }\r\n }\r\n\r\n // Calc slides\r\n var slideSize;\r\n var slidesPerColumn = params.slidesPerColumn;\r\n var slidesPerRow = slidesNumberEvenToRows / slidesPerColumn;\r\n var numFullColumns = slidesPerRow - ((params.slidesPerColumn * slidesPerRow) - slidesLength);\r\n for (var i = 0; i < slidesLength; i += 1) {\r\n slideSize = 0;\r\n var slide = slides.eq(i);\r\n if (params.slidesPerColumn > 1) {\r\n // Set slides order\r\n var newSlideOrderIndex = (void 0);\r\n var column = (void 0);\r\n var row = (void 0);\r\n if (params.slidesPerColumnFill === 'column') {\r\n column = Math.floor(i / slidesPerColumn);\r\n row = i - (column * slidesPerColumn);\r\n if (column > numFullColumns || (column === numFullColumns && row === slidesPerColumn - 1)) {\r\n row += 1;\r\n if (row >= slidesPerColumn) {\r\n row = 0;\r\n column += 1;\r\n }\r\n }\r\n newSlideOrderIndex = column + ((row * slidesNumberEvenToRows) / slidesPerColumn);\r\n slide\r\n .css({\r\n '-webkit-box-ordinal-group': newSlideOrderIndex,\r\n '-moz-box-ordinal-group': newSlideOrderIndex,\r\n '-ms-flex-order': newSlideOrderIndex,\r\n '-webkit-order': newSlideOrderIndex,\r\n order: newSlideOrderIndex,\r\n });\r\n } else {\r\n row = Math.floor(i / slidesPerRow);\r\n column = i - (row * slidesPerRow);\r\n }\r\n slide\r\n .css(\r\n (\"margin-\" + (swiper.isHorizontal() ? 'top' : 'left')),\r\n (row !== 0 && params.spaceBetween) && (((params.spaceBetween) + \"px\"))\r\n )\r\n .attr('data-swiper-column', column)\r\n .attr('data-swiper-row', row);\r\n }\r\n if (slide.css('display') === 'none') { continue; } // eslint-disable-line\r\n\r\n if (params.slidesPerView === 'auto') {\r\n var slideStyles = win.getComputedStyle(slide[0], null);\r\n var currentTransform = slide[0].style.transform;\r\n var currentWebKitTransform = slide[0].style.webkitTransform;\r\n if (currentTransform) {\r\n slide[0].style.transform = 'none';\r\n }\r\n if (currentWebKitTransform) {\r\n slide[0].style.webkitTransform = 'none';\r\n }\r\n if (params.roundLengths) {\r\n slideSize = swiper.isHorizontal()\r\n ? slide.outerWidth(true)\r\n : slide.outerHeight(true);\r\n } else {\r\n // eslint-disable-next-line\r\n if (swiper.isHorizontal()) {\r\n slideSize = slide[0].getBoundingClientRect().width\r\n + parseFloat(slideStyles.getPropertyValue('margin-left'))\r\n + parseFloat(slideStyles.getPropertyValue('margin-right'));\r\n } else {\r\n slideSize = slide[0].getBoundingClientRect().height\r\n + parseFloat(slideStyles.getPropertyValue('margin-top'))\r\n + parseFloat(slideStyles.getPropertyValue('margin-bottom'));\r\n }\r\n }\r\n if (currentTransform) {\r\n slide[0].style.transform = currentTransform;\r\n }\r\n if (currentWebKitTransform) {\r\n slide[0].style.webkitTransform = currentWebKitTransform;\r\n }\r\n if (params.roundLengths) { slideSize = Math.floor(slideSize); }\r\n } else {\r\n slideSize = (swiperSize - ((params.slidesPerView - 1) * spaceBetween)) / params.slidesPerView;\r\n if (params.roundLengths) { slideSize = Math.floor(slideSize); }\r\n\r\n if (slides[i]) {\r\n if (swiper.isHorizontal()) {\r\n slides[i].style.width = slideSize + \"px\";\r\n } else {\r\n slides[i].style.height = slideSize + \"px\";\r\n }\r\n }\r\n }\r\n if (slides[i]) {\r\n slides[i].swiperSlideSize = slideSize;\r\n }\r\n slidesSizesGrid.push(slideSize);\r\n\r\n\r\n if (params.centeredSlides) {\r\n slidePosition = slidePosition + (slideSize / 2) + (prevSlideSize / 2) + spaceBetween;\r\n if (prevSlideSize === 0 && i !== 0) { slidePosition = slidePosition - (swiperSize / 2) - spaceBetween; }\r\n if (i === 0) { slidePosition = slidePosition - (swiperSize / 2) - spaceBetween; }\r\n if (Math.abs(slidePosition) < 1 / 1000) { slidePosition = 0; }\r\n if (params.roundLengths) { slidePosition = Math.floor(slidePosition); }\r\n if ((index) % params.slidesPerGroup === 0) { snapGrid.push(slidePosition); }\r\n slidesGrid.push(slidePosition);\r\n } else {\r\n if (params.roundLengths) { slidePosition = Math.floor(slidePosition); }\r\n if ((index) % params.slidesPerGroup === 0) { snapGrid.push(slidePosition); }\r\n slidesGrid.push(slidePosition);\r\n slidePosition = slidePosition + slideSize + spaceBetween;\r\n }\r\n\r\n swiper.virtualSize += slideSize + spaceBetween;\r\n\r\n prevSlideSize = slideSize;\r\n\r\n index += 1;\r\n }\r\n swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;\r\n var newSlidesGrid;\r\n\r\n if (\r\n rtl && wrongRTL && (params.effect === 'slide' || params.effect === 'coverflow')) {\r\n $wrapperEl.css({ width: ((swiper.virtualSize + params.spaceBetween) + \"px\") });\r\n }\r\n if (!Support.flexbox || params.setWrapperSize) {\r\n if (swiper.isHorizontal()) { $wrapperEl.css({ width: ((swiper.virtualSize + params.spaceBetween) + \"px\") }); }\r\n else { $wrapperEl.css({ height: ((swiper.virtualSize + params.spaceBetween) + \"px\") }); }\r\n }\r\n\r\n if (params.slidesPerColumn > 1) {\r\n swiper.virtualSize = (slideSize + params.spaceBetween) * slidesNumberEvenToRows;\r\n swiper.virtualSize = Math.ceil(swiper.virtualSize / params.slidesPerColumn) - params.spaceBetween;\r\n if (swiper.isHorizontal()) { $wrapperEl.css({ width: ((swiper.virtualSize + params.spaceBetween) + \"px\") }); }\r\n else { $wrapperEl.css({ height: ((swiper.virtualSize + params.spaceBetween) + \"px\") }); }\r\n if (params.centeredSlides) {\r\n newSlidesGrid = [];\r\n for (var i$1 = 0; i$1 < snapGrid.length; i$1 += 1) {\r\n var slidesGridItem = snapGrid[i$1];\r\n if (params.roundLengths) { slidesGridItem = Math.floor(slidesGridItem); }\r\n if (snapGrid[i$1] < swiper.virtualSize + snapGrid[0]) { newSlidesGrid.push(slidesGridItem); }\r\n }\r\n snapGrid = newSlidesGrid;\r\n }\r\n }\r\n\r\n // Remove last grid elements depending on width\r\n if (!params.centeredSlides) {\r\n newSlidesGrid = [];\r\n for (var i$2 = 0; i$2 < snapGrid.length; i$2 += 1) {\r\n var slidesGridItem$1 = snapGrid[i$2];\r\n if (params.roundLengths) { slidesGridItem$1 = Math.floor(slidesGridItem$1); }\r\n if (snapGrid[i$2] <= swiper.virtualSize - swiperSize) {\r\n newSlidesGrid.push(slidesGridItem$1);\r\n }\r\n }\r\n snapGrid = newSlidesGrid;\r\n if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) {\r\n snapGrid.push(swiper.virtualSize - swiperSize);\r\n }\r\n }\r\n if (snapGrid.length === 0) { snapGrid = [0]; }\r\n\r\n if (params.spaceBetween !== 0) {\r\n if (swiper.isHorizontal()) {\r\n if (rtl) { slides.css({ marginLeft: (spaceBetween + \"px\") }); }\r\n else { slides.css({ marginRight: (spaceBetween + \"px\") }); }\r\n } else { slides.css({ marginBottom: (spaceBetween + \"px\") }); }\r\n }\r\n\r\n if (params.centerInsufficientSlides) {\r\n var allSlidesSize = 0;\r\n slidesSizesGrid.forEach(function (slideSizeValue) {\r\n allSlidesSize += slideSizeValue + (params.spaceBetween ? params.spaceBetween : 0);\r\n });\r\n allSlidesSize -= params.spaceBetween;\r\n if (allSlidesSize < swiperSize) {\r\n var allSlidesOffset = (swiperSize - allSlidesSize) / 2;\r\n snapGrid.forEach(function (snap, snapIndex) {\r\n snapGrid[snapIndex] = snap - allSlidesOffset;\r\n });\r\n slidesGrid.forEach(function (snap, snapIndex) {\r\n slidesGrid[snapIndex] = snap + allSlidesOffset;\r\n });\r\n }\r\n }\r\n\r\n Utils.extend(swiper, {\r\n slides: slides,\r\n snapGrid: snapGrid,\r\n slidesGrid: slidesGrid,\r\n slidesSizesGrid: slidesSizesGrid,\r\n });\r\n\r\n if (slidesLength !== previousSlidesLength) {\r\n swiper.emit('slidesLengthChange');\r\n }\r\n if (snapGrid.length !== previousSnapGridLength) {\r\n if (swiper.params.watchOverflow) { swiper.checkOverflow(); }\r\n swiper.emit('snapGridLengthChange');\r\n }\r\n if (slidesGrid.length !== previousSlidesGridLength) {\r\n swiper.emit('slidesGridLengthChange');\r\n }\r\n\r\n if (params.watchSlidesProgress || params.watchSlidesVisibility) {\r\n swiper.updateSlidesOffset();\r\n }\r\n }\r\n\r\n function updateAutoHeight (speed) {\r\n var swiper = this;\r\n var activeSlides = [];\r\n var newHeight = 0;\r\n var i;\r\n if (typeof speed === 'number') {\r\n swiper.setTransition(speed);\r\n } else if (speed === true) {\r\n swiper.setTransition(swiper.params.speed);\r\n }\r\n // Find slides currently in view\r\n if (swiper.params.slidesPerView !== 'auto' && swiper.params.slidesPerView > 1) {\r\n for (i = 0; i < Math.ceil(swiper.params.slidesPerView); i += 1) {\r\n var index = swiper.activeIndex + i;\r\n if (index > swiper.slides.length) { break; }\r\n activeSlides.push(swiper.slides.eq(index)[0]);\r\n }\r\n } else {\r\n activeSlides.push(swiper.slides.eq(swiper.activeIndex)[0]);\r\n }\r\n\r\n // Find new height from highest slide in view\r\n for (i = 0; i < activeSlides.length; i += 1) {\r\n if (typeof activeSlides[i] !== 'undefined') {\r\n var height = activeSlides[i].offsetHeight;\r\n newHeight = height > newHeight ? height : newHeight;\r\n }\r\n }\r\n\r\n // Update Height\r\n if (newHeight) { swiper.$wrapperEl.css('height', (newHeight + \"px\")); }\r\n }\r\n\r\n function updateSlidesOffset () {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n for (var i = 0; i < slides.length; i += 1) {\r\n slides[i].swiperSlideOffset = swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop;\r\n }\r\n }\r\n\r\n function updateSlidesProgress (translate) {\r\n if ( translate === void 0 ) translate = (this && this.translate) || 0;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n\r\n var slides = swiper.slides;\r\n var rtl = swiper.rtlTranslate;\r\n\r\n if (slides.length === 0) { return; }\r\n if (typeof slides[0].swiperSlideOffset === 'undefined') { swiper.updateSlidesOffset(); }\r\n\r\n var offsetCenter = -translate;\r\n if (rtl) { offsetCenter = translate; }\r\n\r\n // Visible Slides\r\n slides.removeClass(params.slideVisibleClass);\r\n\r\n swiper.visibleSlidesIndexes = [];\r\n swiper.visibleSlides = [];\r\n\r\n for (var i = 0; i < slides.length; i += 1) {\r\n var slide = slides[i];\r\n var slideProgress = (\r\n (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0)) - slide.swiperSlideOffset\r\n ) / (slide.swiperSlideSize + params.spaceBetween);\r\n if (params.watchSlidesVisibility) {\r\n var slideBefore = -(offsetCenter - slide.swiperSlideOffset);\r\n var slideAfter = slideBefore + swiper.slidesSizesGrid[i];\r\n var isVisible = (slideBefore >= 0 && slideBefore < swiper.size)\r\n || (slideAfter > 0 && slideAfter <= swiper.size)\r\n || (slideBefore <= 0 && slideAfter >= swiper.size);\r\n if (isVisible) {\r\n swiper.visibleSlides.push(slide);\r\n swiper.visibleSlidesIndexes.push(i);\r\n slides.eq(i).addClass(params.slideVisibleClass);\r\n }\r\n }\r\n slide.progress = rtl ? -slideProgress : slideProgress;\r\n }\r\n swiper.visibleSlides = $(swiper.visibleSlides);\r\n }\r\n\r\n function updateProgress (translate) {\r\n if ( translate === void 0 ) translate = (this && this.translate) || 0;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n\r\n var translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\r\n var progress = swiper.progress;\r\n var isBeginning = swiper.isBeginning;\r\n var isEnd = swiper.isEnd;\r\n var wasBeginning = isBeginning;\r\n var wasEnd = isEnd;\r\n if (translatesDiff === 0) {\r\n progress = 0;\r\n isBeginning = true;\r\n isEnd = true;\r\n } else {\r\n progress = (translate - swiper.minTranslate()) / (translatesDiff);\r\n isBeginning = progress <= 0;\r\n isEnd = progress >= 1;\r\n }\r\n Utils.extend(swiper, {\r\n progress: progress,\r\n isBeginning: isBeginning,\r\n isEnd: isEnd,\r\n });\r\n\r\n if (params.watchSlidesProgress || params.watchSlidesVisibility) { swiper.updateSlidesProgress(translate); }\r\n\r\n if (isBeginning && !wasBeginning) {\r\n swiper.emit('reachBeginning toEdge');\r\n }\r\n if (isEnd && !wasEnd) {\r\n swiper.emit('reachEnd toEdge');\r\n }\r\n if ((wasBeginning && !isBeginning) || (wasEnd && !isEnd)) {\r\n swiper.emit('fromEdge');\r\n }\r\n\r\n swiper.emit('progress', progress);\r\n }\r\n\r\n function updateSlidesClasses () {\r\n var swiper = this;\r\n\r\n var slides = swiper.slides;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var activeIndex = swiper.activeIndex;\r\n var realIndex = swiper.realIndex;\r\n var isVirtual = swiper.virtual && params.virtual.enabled;\r\n\r\n slides.removeClass(((params.slideActiveClass) + \" \" + (params.slideNextClass) + \" \" + (params.slidePrevClass) + \" \" + (params.slideDuplicateActiveClass) + \" \" + (params.slideDuplicateNextClass) + \" \" + (params.slideDuplicatePrevClass)));\r\n\r\n var activeSlide;\r\n if (isVirtual) {\r\n activeSlide = swiper.$wrapperEl.find((\".\" + (params.slideClass) + \"[data-swiper-slide-index=\\\"\" + activeIndex + \"\\\"]\"));\r\n } else {\r\n activeSlide = slides.eq(activeIndex);\r\n }\r\n\r\n // Active classes\r\n activeSlide.addClass(params.slideActiveClass);\r\n\r\n if (params.loop) {\r\n // Duplicate to all looped slides\r\n if (activeSlide.hasClass(params.slideDuplicateClass)) {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \":not(.\" + (params.slideDuplicateClass) + \")[data-swiper-slide-index=\\\"\" + realIndex + \"\\\"]\"))\r\n .addClass(params.slideDuplicateActiveClass);\r\n } else {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass) + \"[data-swiper-slide-index=\\\"\" + realIndex + \"\\\"]\"))\r\n .addClass(params.slideDuplicateActiveClass);\r\n }\r\n }\r\n // Next Slide\r\n var nextSlide = activeSlide.nextAll((\".\" + (params.slideClass))).eq(0).addClass(params.slideNextClass);\r\n if (params.loop && nextSlide.length === 0) {\r\n nextSlide = slides.eq(0);\r\n nextSlide.addClass(params.slideNextClass);\r\n }\r\n // Prev Slide\r\n var prevSlide = activeSlide.prevAll((\".\" + (params.slideClass))).eq(0).addClass(params.slidePrevClass);\r\n if (params.loop && prevSlide.length === 0) {\r\n prevSlide = slides.eq(-1);\r\n prevSlide.addClass(params.slidePrevClass);\r\n }\r\n if (params.loop) {\r\n // Duplicate to all looped slides\r\n if (nextSlide.hasClass(params.slideDuplicateClass)) {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \":not(.\" + (params.slideDuplicateClass) + \")[data-swiper-slide-index=\\\"\" + (nextSlide.attr('data-swiper-slide-index')) + \"\\\"]\"))\r\n .addClass(params.slideDuplicateNextClass);\r\n } else {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass) + \"[data-swiper-slide-index=\\\"\" + (nextSlide.attr('data-swiper-slide-index')) + \"\\\"]\"))\r\n .addClass(params.slideDuplicateNextClass);\r\n }\r\n if (prevSlide.hasClass(params.slideDuplicateClass)) {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \":not(.\" + (params.slideDuplicateClass) + \")[data-swiper-slide-index=\\\"\" + (prevSlide.attr('data-swiper-slide-index')) + \"\\\"]\"))\r\n .addClass(params.slideDuplicatePrevClass);\r\n } else {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass) + \"[data-swiper-slide-index=\\\"\" + (prevSlide.attr('data-swiper-slide-index')) + \"\\\"]\"))\r\n .addClass(params.slideDuplicatePrevClass);\r\n }\r\n }\r\n }\r\n\r\n function updateActiveIndex (newActiveIndex) {\r\n var swiper = this;\r\n var translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\r\n var slidesGrid = swiper.slidesGrid;\r\n var snapGrid = swiper.snapGrid;\r\n var params = swiper.params;\r\n var previousIndex = swiper.activeIndex;\r\n var previousRealIndex = swiper.realIndex;\r\n var previousSnapIndex = swiper.snapIndex;\r\n var activeIndex = newActiveIndex;\r\n var snapIndex;\r\n if (typeof activeIndex === 'undefined') {\r\n for (var i = 0; i < slidesGrid.length; i += 1) {\r\n if (typeof slidesGrid[i + 1] !== 'undefined') {\r\n if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1] - ((slidesGrid[i + 1] - slidesGrid[i]) / 2)) {\r\n activeIndex = i;\r\n } else if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1]) {\r\n activeIndex = i + 1;\r\n }\r\n } else if (translate >= slidesGrid[i]) {\r\n activeIndex = i;\r\n }\r\n }\r\n // Normalize slideIndex\r\n if (params.normalizeSlideIndex) {\r\n if (activeIndex < 0 || typeof activeIndex === 'undefined') { activeIndex = 0; }\r\n }\r\n }\r\n if (snapGrid.indexOf(translate) >= 0) {\r\n snapIndex = snapGrid.indexOf(translate);\r\n } else {\r\n snapIndex = Math.floor(activeIndex / params.slidesPerGroup);\r\n }\r\n if (snapIndex >= snapGrid.length) { snapIndex = snapGrid.length - 1; }\r\n if (activeIndex === previousIndex) {\r\n if (snapIndex !== previousSnapIndex) {\r\n swiper.snapIndex = snapIndex;\r\n swiper.emit('snapIndexChange');\r\n }\r\n return;\r\n }\r\n\r\n // Get real index\r\n var realIndex = parseInt(swiper.slides.eq(activeIndex).attr('data-swiper-slide-index') || activeIndex, 10);\r\n\r\n Utils.extend(swiper, {\r\n snapIndex: snapIndex,\r\n realIndex: realIndex,\r\n previousIndex: previousIndex,\r\n activeIndex: activeIndex,\r\n });\r\n swiper.emit('activeIndexChange');\r\n swiper.emit('snapIndexChange');\r\n if (previousRealIndex !== realIndex) {\r\n swiper.emit('realIndexChange');\r\n }\r\n swiper.emit('slideChange');\r\n }\r\n\r\n function updateClickedSlide (e) {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var slide = $(e.target).closest((\".\" + (params.slideClass)))[0];\r\n var slideFound = false;\r\n if (slide) {\r\n for (var i = 0; i < swiper.slides.length; i += 1) {\r\n if (swiper.slides[i] === slide) { slideFound = true; }\r\n }\r\n }\r\n\r\n if (slide && slideFound) {\r\n swiper.clickedSlide = slide;\r\n if (swiper.virtual && swiper.params.virtual.enabled) {\r\n swiper.clickedIndex = parseInt($(slide).attr('data-swiper-slide-index'), 10);\r\n } else {\r\n swiper.clickedIndex = $(slide).index();\r\n }\r\n } else {\r\n swiper.clickedSlide = undefined;\r\n swiper.clickedIndex = undefined;\r\n return;\r\n }\r\n if (params.slideToClickedSlide && swiper.clickedIndex !== undefined && swiper.clickedIndex !== swiper.activeIndex) {\r\n swiper.slideToClickedSlide();\r\n }\r\n }\r\n\r\n var update = {\r\n updateSize: updateSize,\r\n updateSlides: updateSlides,\r\n updateAutoHeight: updateAutoHeight,\r\n updateSlidesOffset: updateSlidesOffset,\r\n updateSlidesProgress: updateSlidesProgress,\r\n updateProgress: updateProgress,\r\n updateSlidesClasses: updateSlidesClasses,\r\n updateActiveIndex: updateActiveIndex,\r\n updateClickedSlide: updateClickedSlide,\r\n };\r\n\r\n function getTranslate (axis) {\r\n if ( axis === void 0 ) axis = this.isHorizontal() ? 'x' : 'y';\r\n\r\n var swiper = this;\r\n\r\n var params = swiper.params;\r\n var rtl = swiper.rtlTranslate;\r\n var translate = swiper.translate;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n\r\n if (params.virtualTranslate) {\r\n return rtl ? -translate : translate;\r\n }\r\n\r\n var currentTranslate = Utils.getTranslate($wrapperEl[0], axis);\r\n if (rtl) { currentTranslate = -currentTranslate; }\r\n\r\n return currentTranslate || 0;\r\n }\r\n\r\n function setTranslate (translate, byController) {\r\n var swiper = this;\r\n var rtl = swiper.rtlTranslate;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var progress = swiper.progress;\r\n var x = 0;\r\n var y = 0;\r\n var z = 0;\r\n\r\n if (swiper.isHorizontal()) {\r\n x = rtl ? -translate : translate;\r\n } else {\r\n y = translate;\r\n }\r\n\r\n if (params.roundLengths) {\r\n x = Math.floor(x);\r\n y = Math.floor(y);\r\n }\r\n\r\n if (!params.virtualTranslate) {\r\n if (Support.transforms3d) { $wrapperEl.transform((\"translate3d(\" + x + \"px, \" + y + \"px, \" + z + \"px)\")); }\r\n else { $wrapperEl.transform((\"translate(\" + x + \"px, \" + y + \"px)\")); }\r\n }\r\n swiper.previousTranslate = swiper.translate;\r\n swiper.translate = swiper.isHorizontal() ? x : y;\r\n\r\n // Check if we need to update progress\r\n var newProgress;\r\n var translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\r\n if (translatesDiff === 0) {\r\n newProgress = 0;\r\n } else {\r\n newProgress = (translate - swiper.minTranslate()) / (translatesDiff);\r\n }\r\n if (newProgress !== progress) {\r\n swiper.updateProgress(translate);\r\n }\r\n\r\n swiper.emit('setTranslate', swiper.translate, byController);\r\n }\r\n\r\n function minTranslate () {\r\n return (-this.snapGrid[0]);\r\n }\r\n\r\n function maxTranslate () {\r\n return (-this.snapGrid[this.snapGrid.length - 1]);\r\n }\r\n\r\n var translate = {\r\n getTranslate: getTranslate,\r\n setTranslate: setTranslate,\r\n minTranslate: minTranslate,\r\n maxTranslate: maxTranslate,\r\n };\r\n\r\n function setTransition (duration, byController) {\r\n var swiper = this;\r\n\r\n swiper.$wrapperEl.transition(duration);\r\n\r\n swiper.emit('setTransition', duration, byController);\r\n }\r\n\r\n function transitionStart (runCallbacks, direction) {\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var activeIndex = swiper.activeIndex;\r\n var params = swiper.params;\r\n var previousIndex = swiper.previousIndex;\r\n if (params.autoHeight) {\r\n swiper.updateAutoHeight();\r\n }\r\n\r\n var dir = direction;\r\n if (!dir) {\r\n if (activeIndex > previousIndex) { dir = 'next'; }\r\n else if (activeIndex < previousIndex) { dir = 'prev'; }\r\n else { dir = 'reset'; }\r\n }\r\n\r\n swiper.emit('transitionStart');\r\n\r\n if (runCallbacks && activeIndex !== previousIndex) {\r\n if (dir === 'reset') {\r\n swiper.emit('slideResetTransitionStart');\r\n return;\r\n }\r\n swiper.emit('slideChangeTransitionStart');\r\n if (dir === 'next') {\r\n swiper.emit('slideNextTransitionStart');\r\n } else {\r\n swiper.emit('slidePrevTransitionStart');\r\n }\r\n }\r\n }\r\n\r\n function transitionEnd$1 (runCallbacks, direction) {\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var activeIndex = swiper.activeIndex;\r\n var previousIndex = swiper.previousIndex;\r\n swiper.animating = false;\r\n swiper.setTransition(0);\r\n\r\n var dir = direction;\r\n if (!dir) {\r\n if (activeIndex > previousIndex) { dir = 'next'; }\r\n else if (activeIndex < previousIndex) { dir = 'prev'; }\r\n else { dir = 'reset'; }\r\n }\r\n\r\n swiper.emit('transitionEnd');\r\n\r\n if (runCallbacks && activeIndex !== previousIndex) {\r\n if (dir === 'reset') {\r\n swiper.emit('slideResetTransitionEnd');\r\n return;\r\n }\r\n swiper.emit('slideChangeTransitionEnd');\r\n if (dir === 'next') {\r\n swiper.emit('slideNextTransitionEnd');\r\n } else {\r\n swiper.emit('slidePrevTransitionEnd');\r\n }\r\n }\r\n }\r\n\r\n var transition$1 = {\r\n setTransition: setTransition,\r\n transitionStart: transitionStart,\r\n transitionEnd: transitionEnd$1,\r\n };\r\n\r\n function slideTo (index, speed, runCallbacks, internal) {\r\n if ( index === void 0 ) index = 0;\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var slideIndex = index;\r\n if (slideIndex < 0) { slideIndex = 0; }\r\n\r\n var params = swiper.params;\r\n var snapGrid = swiper.snapGrid;\r\n var slidesGrid = swiper.slidesGrid;\r\n var previousIndex = swiper.previousIndex;\r\n var activeIndex = swiper.activeIndex;\r\n var rtl = swiper.rtlTranslate;\r\n if (swiper.animating && params.preventInteractionOnTransition) {\r\n return false;\r\n }\r\n\r\n var snapIndex = Math.floor(slideIndex / params.slidesPerGroup);\r\n if (snapIndex >= snapGrid.length) { snapIndex = snapGrid.length - 1; }\r\n\r\n if ((activeIndex || params.initialSlide || 0) === (previousIndex || 0) && runCallbacks) {\r\n swiper.emit('beforeSlideChangeStart');\r\n }\r\n\r\n var translate = -snapGrid[snapIndex];\r\n\r\n // Update progress\r\n swiper.updateProgress(translate);\r\n\r\n // Normalize slideIndex\r\n if (params.normalizeSlideIndex) {\r\n for (var i = 0; i < slidesGrid.length; i += 1) {\r\n if (-Math.floor(translate * 100) >= Math.floor(slidesGrid[i] * 100)) {\r\n slideIndex = i;\r\n }\r\n }\r\n }\r\n // Directions locks\r\n if (swiper.initialized && slideIndex !== activeIndex) {\r\n if (!swiper.allowSlideNext && translate < swiper.translate && translate < swiper.minTranslate()) {\r\n return false;\r\n }\r\n if (!swiper.allowSlidePrev && translate > swiper.translate && translate > swiper.maxTranslate()) {\r\n if ((activeIndex || 0) !== slideIndex) { return false; }\r\n }\r\n }\r\n\r\n var direction;\r\n if (slideIndex > activeIndex) { direction = 'next'; }\r\n else if (slideIndex < activeIndex) { direction = 'prev'; }\r\n else { direction = 'reset'; }\r\n\r\n\r\n // Update Index\r\n if ((rtl && -translate === swiper.translate) || (!rtl && translate === swiper.translate)) {\r\n swiper.updateActiveIndex(slideIndex);\r\n // Update Height\r\n if (params.autoHeight) {\r\n swiper.updateAutoHeight();\r\n }\r\n swiper.updateSlidesClasses();\r\n if (params.effect !== 'slide') {\r\n swiper.setTranslate(translate);\r\n }\r\n if (direction !== 'reset') {\r\n swiper.transitionStart(runCallbacks, direction);\r\n swiper.transitionEnd(runCallbacks, direction);\r\n }\r\n return false;\r\n }\r\n\r\n if (speed === 0 || !Support.transition) {\r\n swiper.setTransition(0);\r\n swiper.setTranslate(translate);\r\n swiper.updateActiveIndex(slideIndex);\r\n swiper.updateSlidesClasses();\r\n swiper.emit('beforeTransitionStart', speed, internal);\r\n swiper.transitionStart(runCallbacks, direction);\r\n swiper.transitionEnd(runCallbacks, direction);\r\n } else {\r\n swiper.setTransition(speed);\r\n swiper.setTranslate(translate);\r\n swiper.updateActiveIndex(slideIndex);\r\n swiper.updateSlidesClasses();\r\n swiper.emit('beforeTransitionStart', speed, internal);\r\n swiper.transitionStart(runCallbacks, direction);\r\n if (!swiper.animating) {\r\n swiper.animating = true;\r\n if (!swiper.onSlideToWrapperTransitionEnd) {\r\n swiper.onSlideToWrapperTransitionEnd = function transitionEnd(e) {\r\n if (!swiper || swiper.destroyed) { return; }\r\n if (e.target !== this) { return; }\r\n swiper.$wrapperEl[0].removeEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);\r\n swiper.$wrapperEl[0].removeEventListener('webkitTransitionEnd', swiper.onSlideToWrapperTransitionEnd);\r\n swiper.onSlideToWrapperTransitionEnd = null;\r\n delete swiper.onSlideToWrapperTransitionEnd;\r\n swiper.transitionEnd(runCallbacks, direction);\r\n };\r\n }\r\n swiper.$wrapperEl[0].addEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);\r\n swiper.$wrapperEl[0].addEventListener('webkitTransitionEnd', swiper.onSlideToWrapperTransitionEnd);\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n\r\n function slideToLoop (index, speed, runCallbacks, internal) {\r\n if ( index === void 0 ) index = 0;\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var newIndex = index;\r\n if (swiper.params.loop) {\r\n newIndex += swiper.loopedSlides;\r\n }\r\n\r\n return swiper.slideTo(newIndex, speed, runCallbacks, internal);\r\n }\r\n\r\n /* eslint no-unused-vars: \"off\" */\r\n function slideNext (speed, runCallbacks, internal) {\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n var animating = swiper.animating;\r\n if (params.loop) {\r\n if (animating) { return false; }\r\n swiper.loopFix();\r\n // eslint-disable-next-line\r\n swiper._clientLeft = swiper.$wrapperEl[0].clientLeft;\r\n return swiper.slideTo(swiper.activeIndex + params.slidesPerGroup, speed, runCallbacks, internal);\r\n }\r\n return swiper.slideTo(swiper.activeIndex + params.slidesPerGroup, speed, runCallbacks, internal);\r\n }\r\n\r\n /* eslint no-unused-vars: \"off\" */\r\n function slidePrev (speed, runCallbacks, internal) {\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n var animating = swiper.animating;\r\n var snapGrid = swiper.snapGrid;\r\n var slidesGrid = swiper.slidesGrid;\r\n var rtlTranslate = swiper.rtlTranslate;\r\n\r\n if (params.loop) {\r\n if (animating) { return false; }\r\n swiper.loopFix();\r\n // eslint-disable-next-line\r\n swiper._clientLeft = swiper.$wrapperEl[0].clientLeft;\r\n }\r\n var translate = rtlTranslate ? swiper.translate : -swiper.translate;\r\n function normalize(val) {\r\n if (val < 0) { return -Math.floor(Math.abs(val)); }\r\n return Math.floor(val);\r\n }\r\n var normalizedTranslate = normalize(translate);\r\n var normalizedSnapGrid = snapGrid.map(function (val) { return normalize(val); });\r\n var normalizedSlidesGrid = slidesGrid.map(function (val) { return normalize(val); });\r\n\r\n var currentSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate)];\r\n var prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];\r\n var prevIndex;\r\n if (typeof prevSnap !== 'undefined') {\r\n prevIndex = slidesGrid.indexOf(prevSnap);\r\n if (prevIndex < 0) { prevIndex = swiper.activeIndex - 1; }\r\n }\r\n return swiper.slideTo(prevIndex, speed, runCallbacks, internal);\r\n }\r\n\r\n /* eslint no-unused-vars: \"off\" */\r\n function slideReset (speed, runCallbacks, internal) {\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);\r\n }\r\n\r\n /* eslint no-unused-vars: \"off\" */\r\n function slideToClosest (speed, runCallbacks, internal) {\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var index = swiper.activeIndex;\r\n var snapIndex = Math.floor(index / swiper.params.slidesPerGroup);\r\n\r\n if (snapIndex < swiper.snapGrid.length - 1) {\r\n var translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\r\n\r\n var currentSnap = swiper.snapGrid[snapIndex];\r\n var nextSnap = swiper.snapGrid[snapIndex + 1];\r\n\r\n if ((translate - currentSnap) > (nextSnap - currentSnap) / 2) {\r\n index = swiper.params.slidesPerGroup;\r\n }\r\n }\r\n\r\n return swiper.slideTo(index, speed, runCallbacks, internal);\r\n }\r\n\r\n function slideToClickedSlide () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n\r\n var slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : params.slidesPerView;\r\n var slideToIndex = swiper.clickedIndex;\r\n var realIndex;\r\n if (params.loop) {\r\n if (swiper.animating) { return; }\r\n realIndex = parseInt($(swiper.clickedSlide).attr('data-swiper-slide-index'), 10);\r\n if (params.centeredSlides) {\r\n if (\r\n (slideToIndex < swiper.loopedSlides - (slidesPerView / 2))\r\n || (slideToIndex > (swiper.slides.length - swiper.loopedSlides) + (slidesPerView / 2))\r\n ) {\r\n swiper.loopFix();\r\n slideToIndex = $wrapperEl\r\n .children((\".\" + (params.slideClass) + \"[data-swiper-slide-index=\\\"\" + realIndex + \"\\\"]:not(.\" + (params.slideDuplicateClass) + \")\"))\r\n .eq(0)\r\n .index();\r\n\r\n Utils.nextTick(function () {\r\n swiper.slideTo(slideToIndex);\r\n });\r\n } else {\r\n swiper.slideTo(slideToIndex);\r\n }\r\n } else if (slideToIndex > swiper.slides.length - slidesPerView) {\r\n swiper.loopFix();\r\n slideToIndex = $wrapperEl\r\n .children((\".\" + (params.slideClass) + \"[data-swiper-slide-index=\\\"\" + realIndex + \"\\\"]:not(.\" + (params.slideDuplicateClass) + \")\"))\r\n .eq(0)\r\n .index();\r\n\r\n Utils.nextTick(function () {\r\n swiper.slideTo(slideToIndex);\r\n });\r\n } else {\r\n swiper.slideTo(slideToIndex);\r\n }\r\n } else {\r\n swiper.slideTo(slideToIndex);\r\n }\r\n }\r\n\r\n var slide = {\r\n slideTo: slideTo,\r\n slideToLoop: slideToLoop,\r\n slideNext: slideNext,\r\n slidePrev: slidePrev,\r\n slideReset: slideReset,\r\n slideToClosest: slideToClosest,\r\n slideToClickedSlide: slideToClickedSlide,\r\n };\r\n\r\n function loopCreate () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n // Remove duplicated slides\r\n $wrapperEl.children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass))).remove();\r\n\r\n var slides = $wrapperEl.children((\".\" + (params.slideClass)));\r\n\r\n if (params.loopFillGroupWithBlank) {\r\n var blankSlidesNum = params.slidesPerGroup - (slides.length % params.slidesPerGroup);\r\n if (blankSlidesNum !== params.slidesPerGroup) {\r\n for (var i = 0; i < blankSlidesNum; i += 1) {\r\n var blankNode = $(doc.createElement('div')).addClass(((params.slideClass) + \" \" + (params.slideBlankClass)));\r\n $wrapperEl.append(blankNode);\r\n }\r\n slides = $wrapperEl.children((\".\" + (params.slideClass)));\r\n }\r\n }\r\n\r\n if (params.slidesPerView === 'auto' && !params.loopedSlides) { params.loopedSlides = slides.length; }\r\n\r\n swiper.loopedSlides = parseInt(params.loopedSlides || params.slidesPerView, 10);\r\n swiper.loopedSlides += params.loopAdditionalSlides;\r\n if (swiper.loopedSlides > slides.length) {\r\n swiper.loopedSlides = slides.length;\r\n }\r\n\r\n var prependSlides = [];\r\n var appendSlides = [];\r\n slides.each(function (index, el) {\r\n var slide = $(el);\r\n if (index < swiper.loopedSlides) { appendSlides.push(el); }\r\n if (index < slides.length && index >= slides.length - swiper.loopedSlides) { prependSlides.push(el); }\r\n slide.attr('data-swiper-slide-index', index);\r\n });\r\n for (var i$1 = 0; i$1 < appendSlides.length; i$1 += 1) {\r\n $wrapperEl.append($(appendSlides[i$1].cloneNode(true)).addClass(params.slideDuplicateClass));\r\n }\r\n for (var i$2 = prependSlides.length - 1; i$2 >= 0; i$2 -= 1) {\r\n $wrapperEl.prepend($(prependSlides[i$2].cloneNode(true)).addClass(params.slideDuplicateClass));\r\n }\r\n }\r\n\r\n function loopFix () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var activeIndex = swiper.activeIndex;\r\n var slides = swiper.slides;\r\n var loopedSlides = swiper.loopedSlides;\r\n var allowSlidePrev = swiper.allowSlidePrev;\r\n var allowSlideNext = swiper.allowSlideNext;\r\n var snapGrid = swiper.snapGrid;\r\n var rtl = swiper.rtlTranslate;\r\n var newIndex;\r\n swiper.allowSlidePrev = true;\r\n swiper.allowSlideNext = true;\r\n\r\n var snapTranslate = -snapGrid[activeIndex];\r\n var diff = snapTranslate - swiper.getTranslate();\r\n\r\n\r\n // Fix For Negative Oversliding\r\n if (activeIndex < loopedSlides) {\r\n newIndex = (slides.length - (loopedSlides * 3)) + activeIndex;\r\n newIndex += loopedSlides;\r\n var slideChanged = swiper.slideTo(newIndex, 0, false, true);\r\n if (slideChanged && diff !== 0) {\r\n swiper.setTranslate((rtl ? -swiper.translate : swiper.translate) - diff);\r\n }\r\n } else if ((params.slidesPerView === 'auto' && activeIndex >= loopedSlides * 2) || (activeIndex >= slides.length - loopedSlides)) {\r\n // Fix For Positive Oversliding\r\n newIndex = -slides.length + activeIndex + loopedSlides;\r\n newIndex += loopedSlides;\r\n var slideChanged$1 = swiper.slideTo(newIndex, 0, false, true);\r\n if (slideChanged$1 && diff !== 0) {\r\n swiper.setTranslate((rtl ? -swiper.translate : swiper.translate) - diff);\r\n }\r\n }\r\n swiper.allowSlidePrev = allowSlidePrev;\r\n swiper.allowSlideNext = allowSlideNext;\r\n }\r\n\r\n function loopDestroy () {\r\n var swiper = this;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var params = swiper.params;\r\n var slides = swiper.slides;\r\n $wrapperEl.children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass))).remove();\r\n slides.removeAttr('data-swiper-slide-index');\r\n }\r\n\r\n var loop = {\r\n loopCreate: loopCreate,\r\n loopFix: loopFix,\r\n loopDestroy: loopDestroy,\r\n };\r\n\r\n function setGrabCursor (moving) {\r\n var swiper = this;\r\n if (Support.touch || !swiper.params.simulateTouch || (swiper.params.watchOverflow && swiper.isLocked)) { return; }\r\n var el = swiper.el;\r\n el.style.cursor = 'move';\r\n el.style.cursor = moving ? '-webkit-grabbing' : '-webkit-grab';\r\n el.style.cursor = moving ? '-moz-grabbin' : '-moz-grab';\r\n el.style.cursor = moving ? 'grabbing' : 'grab';\r\n }\r\n\r\n function unsetGrabCursor () {\r\n var swiper = this;\r\n if (Support.touch || (swiper.params.watchOverflow && swiper.isLocked)) { return; }\r\n swiper.el.style.cursor = '';\r\n }\r\n\r\n var grabCursor = {\r\n setGrabCursor: setGrabCursor,\r\n unsetGrabCursor: unsetGrabCursor,\r\n };\r\n\r\n function appendSlide (slides) {\r\n var swiper = this;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var params = swiper.params;\r\n if (params.loop) {\r\n swiper.loopDestroy();\r\n }\r\n if (typeof slides === 'object' && 'length' in slides) {\r\n for (var i = 0; i < slides.length; i += 1) {\r\n if (slides[i]) { $wrapperEl.append(slides[i]); }\r\n }\r\n } else {\r\n $wrapperEl.append(slides);\r\n }\r\n if (params.loop) {\r\n swiper.loopCreate();\r\n }\r\n if (!(params.observer && Support.observer)) {\r\n swiper.update();\r\n }\r\n }\r\n\r\n function prependSlide (slides) {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var activeIndex = swiper.activeIndex;\r\n\r\n if (params.loop) {\r\n swiper.loopDestroy();\r\n }\r\n var newActiveIndex = activeIndex + 1;\r\n if (typeof slides === 'object' && 'length' in slides) {\r\n for (var i = 0; i < slides.length; i += 1) {\r\n if (slides[i]) { $wrapperEl.prepend(slides[i]); }\r\n }\r\n newActiveIndex = activeIndex + slides.length;\r\n } else {\r\n $wrapperEl.prepend(slides);\r\n }\r\n if (params.loop) {\r\n swiper.loopCreate();\r\n }\r\n if (!(params.observer && Support.observer)) {\r\n swiper.update();\r\n }\r\n swiper.slideTo(newActiveIndex, 0, false);\r\n }\r\n\r\n function addSlide (index, slides) {\r\n var swiper = this;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var params = swiper.params;\r\n var activeIndex = swiper.activeIndex;\r\n var activeIndexBuffer = activeIndex;\r\n if (params.loop) {\r\n activeIndexBuffer -= swiper.loopedSlides;\r\n swiper.loopDestroy();\r\n swiper.slides = $wrapperEl.children((\".\" + (params.slideClass)));\r\n }\r\n var baseLength = swiper.slides.length;\r\n if (index <= 0) {\r\n swiper.prependSlide(slides);\r\n return;\r\n }\r\n if (index >= baseLength) {\r\n swiper.appendSlide(slides);\r\n return;\r\n }\r\n var newActiveIndex = activeIndexBuffer > index ? activeIndexBuffer + 1 : activeIndexBuffer;\r\n\r\n var slidesBuffer = [];\r\n for (var i = baseLength - 1; i >= index; i -= 1) {\r\n var currentSlide = swiper.slides.eq(i);\r\n currentSlide.remove();\r\n slidesBuffer.unshift(currentSlide);\r\n }\r\n\r\n if (typeof slides === 'object' && 'length' in slides) {\r\n for (var i$1 = 0; i$1 < slides.length; i$1 += 1) {\r\n if (slides[i$1]) { $wrapperEl.append(slides[i$1]); }\r\n }\r\n newActiveIndex = activeIndexBuffer > index ? activeIndexBuffer + slides.length : activeIndexBuffer;\r\n } else {\r\n $wrapperEl.append(slides);\r\n }\r\n\r\n for (var i$2 = 0; i$2 < slidesBuffer.length; i$2 += 1) {\r\n $wrapperEl.append(slidesBuffer[i$2]);\r\n }\r\n\r\n if (params.loop) {\r\n swiper.loopCreate();\r\n }\r\n if (!(params.observer && Support.observer)) {\r\n swiper.update();\r\n }\r\n if (params.loop) {\r\n swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);\r\n } else {\r\n swiper.slideTo(newActiveIndex, 0, false);\r\n }\r\n }\r\n\r\n function removeSlide (slidesIndexes) {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var activeIndex = swiper.activeIndex;\r\n\r\n var activeIndexBuffer = activeIndex;\r\n if (params.loop) {\r\n activeIndexBuffer -= swiper.loopedSlides;\r\n swiper.loopDestroy();\r\n swiper.slides = $wrapperEl.children((\".\" + (params.slideClass)));\r\n }\r\n var newActiveIndex = activeIndexBuffer;\r\n var indexToRemove;\r\n\r\n if (typeof slidesIndexes === 'object' && 'length' in slidesIndexes) {\r\n for (var i = 0; i < slidesIndexes.length; i += 1) {\r\n indexToRemove = slidesIndexes[i];\r\n if (swiper.slides[indexToRemove]) { swiper.slides.eq(indexToRemove).remove(); }\r\n if (indexToRemove < newActiveIndex) { newActiveIndex -= 1; }\r\n }\r\n newActiveIndex = Math.max(newActiveIndex, 0);\r\n } else {\r\n indexToRemove = slidesIndexes;\r\n if (swiper.slides[indexToRemove]) { swiper.slides.eq(indexToRemove).remove(); }\r\n if (indexToRemove < newActiveIndex) { newActiveIndex -= 1; }\r\n newActiveIndex = Math.max(newActiveIndex, 0);\r\n }\r\n\r\n if (params.loop) {\r\n swiper.loopCreate();\r\n }\r\n\r\n if (!(params.observer && Support.observer)) {\r\n swiper.update();\r\n }\r\n if (params.loop) {\r\n swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);\r\n } else {\r\n swiper.slideTo(newActiveIndex, 0, false);\r\n }\r\n }\r\n\r\n function removeAllSlides () {\r\n var swiper = this;\r\n\r\n var slidesIndexes = [];\r\n for (var i = 0; i < swiper.slides.length; i += 1) {\r\n slidesIndexes.push(i);\r\n }\r\n swiper.removeSlide(slidesIndexes);\r\n }\r\n\r\n var manipulation = {\r\n appendSlide: appendSlide,\r\n prependSlide: prependSlide,\r\n addSlide: addSlide,\r\n removeSlide: removeSlide,\r\n removeAllSlides: removeAllSlides,\r\n };\r\n\r\n var Device = (function Device() {\r\n var ua = win.navigator.userAgent;\r\n\r\n var device = {\r\n ios: false,\r\n android: false,\r\n androidChrome: false,\r\n desktop: false,\r\n windows: false,\r\n iphone: false,\r\n ipod: false,\r\n ipad: false,\r\n cordova: win.cordova || win.phonegap,\r\n phonegap: win.cordova || win.phonegap,\r\n };\r\n\r\n var windows = ua.match(/(Windows Phone);?[\\s\\/]+([\\d.]+)?/); // eslint-disable-line\r\n var android = ua.match(/(Android);?[\\s\\/]+([\\d.]+)?/); // eslint-disable-line\r\n var ipad = ua.match(/(iPad).*OS\\s([\\d_]+)/);\r\n var ipod = ua.match(/(iPod)(.*OS\\s([\\d_]+))?/);\r\n var iphone = !ipad && ua.match(/(iPhone\\sOS|iOS)\\s([\\d_]+)/);\r\n\r\n\r\n // Windows\r\n if (windows) {\r\n device.os = 'windows';\r\n device.osVersion = windows[2];\r\n device.windows = true;\r\n }\r\n // Android\r\n if (android && !windows) {\r\n device.os = 'android';\r\n device.osVersion = android[2];\r\n device.android = true;\r\n device.androidChrome = ua.toLowerCase().indexOf('chrome') >= 0;\r\n }\r\n if (ipad || iphone || ipod) {\r\n device.os = 'ios';\r\n device.ios = true;\r\n }\r\n // iOS\r\n if (iphone && !ipod) {\r\n device.osVersion = iphone[2].replace(/_/g, '.');\r\n device.iphone = true;\r\n }\r\n if (ipad) {\r\n device.osVersion = ipad[2].replace(/_/g, '.');\r\n device.ipad = true;\r\n }\r\n if (ipod) {\r\n device.osVersion = ipod[3] ? ipod[3].replace(/_/g, '.') : null;\r\n device.iphone = true;\r\n }\r\n // iOS 8+ changed UA\r\n if (device.ios && device.osVersion && ua.indexOf('Version/') >= 0) {\r\n if (device.osVersion.split('.')[0] === '10') {\r\n device.osVersion = ua.toLowerCase().split('version/')[1].split(' ')[0];\r\n }\r\n }\r\n\r\n // Desktop\r\n device.desktop = !(device.os || device.android || device.webView);\r\n\r\n // Webview\r\n device.webView = (iphone || ipad || ipod) && ua.match(/.*AppleWebKit(?!.*Safari)/i);\r\n\r\n // Minimal UI\r\n if (device.os && device.os === 'ios') {\r\n var osVersionArr = device.osVersion.split('.');\r\n var metaViewport = doc.querySelector('meta[name=\"viewport\"]');\r\n device.minimalUi = !device.webView\r\n && (ipod || iphone)\r\n && (osVersionArr[0] * 1 === 7 ? osVersionArr[1] * 1 >= 1 : osVersionArr[0] * 1 > 7)\r\n && metaViewport && metaViewport.getAttribute('content').indexOf('minimal-ui') >= 0;\r\n }\r\n\r\n // Pixel Ratio\r\n device.pixelRatio = win.devicePixelRatio || 1;\r\n\r\n // Export object\r\n return device;\r\n }());\r\n\r\n function onTouchStart (event) {\r\n var swiper = this;\r\n var data = swiper.touchEventsData;\r\n var params = swiper.params;\r\n var touches = swiper.touches;\r\n if (swiper.animating && params.preventInteractionOnTransition) {\r\n return;\r\n }\r\n var e = event;\r\n if (e.originalEvent) { e = e.originalEvent; }\r\n data.isTouchEvent = e.type === 'touchstart';\r\n if (!data.isTouchEvent && 'which' in e && e.which === 3) { return; }\r\n if (!data.isTouchEvent && 'button' in e && e.button > 0) { return; }\r\n if (data.isTouched && data.isMoved) { return; }\r\n if (params.noSwiping && $(e.target).closest(params.noSwipingSelector ? params.noSwipingSelector : (\".\" + (params.noSwipingClass)))[0]) {\r\n swiper.allowClick = true;\r\n return;\r\n }\r\n if (params.swipeHandler) {\r\n if (!$(e).closest(params.swipeHandler)[0]) { return; }\r\n }\r\n\r\n touches.currentX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;\r\n touches.currentY = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;\r\n var startX = touches.currentX;\r\n var startY = touches.currentY;\r\n\r\n // Do NOT start if iOS edge swipe is detected. Otherwise iOS app (UIWebView) cannot swipe-to-go-back anymore\r\n\r\n var edgeSwipeDetection = params.edgeSwipeDetection || params.iOSEdgeSwipeDetection;\r\n var edgeSwipeThreshold = params.edgeSwipeThreshold || params.iOSEdgeSwipeThreshold;\r\n if (\r\n edgeSwipeDetection\r\n && ((startX <= edgeSwipeThreshold)\r\n || (startX >= win.screen.width - edgeSwipeThreshold))\r\n ) {\r\n return;\r\n }\r\n\r\n Utils.extend(data, {\r\n isTouched: true,\r\n isMoved: false,\r\n allowTouchCallbacks: true,\r\n isScrolling: undefined,\r\n startMoving: undefined,\r\n });\r\n\r\n touches.startX = startX;\r\n touches.startY = startY;\r\n data.touchStartTime = Utils.now();\r\n swiper.allowClick = true;\r\n swiper.updateSize();\r\n swiper.swipeDirection = undefined;\r\n if (params.threshold > 0) { data.allowThresholdMove = false; }\r\n if (e.type !== 'touchstart') {\r\n var preventDefault = true;\r\n if ($(e.target).is(data.formElements)) { preventDefault = false; }\r\n if (\r\n doc.activeElement\r\n && $(doc.activeElement).is(data.formElements)\r\n && doc.activeElement !== e.target\r\n ) {\r\n doc.activeElement.blur();\r\n }\r\n if (preventDefault && swiper.allowTouchMove && params.touchStartPreventDefault) {\r\n e.preventDefault();\r\n }\r\n }\r\n swiper.emit('touchStart', e);\r\n }\r\n\r\n function onTouchMove (event) {\r\n var swiper = this;\r\n var data = swiper.touchEventsData;\r\n var params = swiper.params;\r\n var touches = swiper.touches;\r\n var rtl = swiper.rtlTranslate;\r\n var e = event;\r\n if (e.originalEvent) { e = e.originalEvent; }\r\n if (!data.isTouched) {\r\n if (data.startMoving && data.isScrolling) {\r\n swiper.emit('touchMoveOpposite', e);\r\n }\r\n return;\r\n }\r\n if (data.isTouchEvent && e.type === 'mousemove') { return; }\r\n var pageX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;\r\n var pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;\r\n if (e.preventedByNestedSwiper) {\r\n touches.startX = pageX;\r\n touches.startY = pageY;\r\n return;\r\n }\r\n if (!swiper.allowTouchMove) {\r\n // isMoved = true;\r\n swiper.allowClick = false;\r\n if (data.isTouched) {\r\n Utils.extend(touches, {\r\n startX: pageX,\r\n startY: pageY,\r\n currentX: pageX,\r\n currentY: pageY,\r\n });\r\n data.touchStartTime = Utils.now();\r\n }\r\n return;\r\n }\r\n if (data.isTouchEvent && params.touchReleaseOnEdges && !params.loop) {\r\n if (swiper.isVertical()) {\r\n // Vertical\r\n if (\r\n (pageY < touches.startY && swiper.translate <= swiper.maxTranslate())\r\n || (pageY > touches.startY && swiper.translate >= swiper.minTranslate())\r\n ) {\r\n data.isTouched = false;\r\n data.isMoved = false;\r\n return;\r\n }\r\n } else if (\r\n (pageX < touches.startX && swiper.translate <= swiper.maxTranslate())\r\n || (pageX > touches.startX && swiper.translate >= swiper.minTranslate())\r\n ) {\r\n return;\r\n }\r\n }\r\n if (data.isTouchEvent && doc.activeElement) {\r\n if (e.target === doc.activeElement && $(e.target).is(data.formElements)) {\r\n data.isMoved = true;\r\n swiper.allowClick = false;\r\n return;\r\n }\r\n }\r\n if (data.allowTouchCallbacks) {\r\n swiper.emit('touchMove', e);\r\n }\r\n if (e.targetTouches && e.targetTouches.length > 1) { return; }\r\n\r\n touches.currentX = pageX;\r\n touches.currentY = pageY;\r\n\r\n var diffX = touches.currentX - touches.startX;\r\n var diffY = touches.currentY - touches.startY;\r\n if (swiper.params.threshold && Math.sqrt((Math.pow( diffX, 2 )) + (Math.pow( diffY, 2 ))) < swiper.params.threshold) { return; }\r\n\r\n if (typeof data.isScrolling === 'undefined') {\r\n var touchAngle;\r\n if ((swiper.isHorizontal() && touches.currentY === touches.startY) || (swiper.isVertical() && touches.currentX === touches.startX)) {\r\n data.isScrolling = false;\r\n } else {\r\n // eslint-disable-next-line\r\n if ((diffX * diffX) + (diffY * diffY) >= 25) {\r\n touchAngle = (Math.atan2(Math.abs(diffY), Math.abs(diffX)) * 180) / Math.PI;\r\n data.isScrolling = swiper.isHorizontal() ? touchAngle > params.touchAngle : (90 - touchAngle > params.touchAngle);\r\n }\r\n }\r\n }\r\n if (data.isScrolling) {\r\n swiper.emit('touchMoveOpposite', e);\r\n }\r\n if (typeof data.startMoving === 'undefined') {\r\n if (touches.currentX !== touches.startX || touches.currentY !== touches.startY) {\r\n data.startMoving = true;\r\n }\r\n }\r\n if (data.isScrolling) {\r\n data.isTouched = false;\r\n return;\r\n }\r\n if (!data.startMoving) {\r\n return;\r\n }\r\n swiper.allowClick = false;\r\n e.preventDefault();\r\n if (params.touchMoveStopPropagation && !params.nested) {\r\n e.stopPropagation();\r\n }\r\n\r\n if (!data.isMoved) {\r\n if (params.loop) {\r\n swiper.loopFix();\r\n }\r\n data.startTranslate = swiper.getTranslate();\r\n swiper.setTransition(0);\r\n if (swiper.animating) {\r\n swiper.$wrapperEl.trigger('webkitTransitionEnd transitionend');\r\n }\r\n data.allowMomentumBounce = false;\r\n // Grab Cursor\r\n if (params.grabCursor && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {\r\n swiper.setGrabCursor(true);\r\n }\r\n swiper.emit('sliderFirstMove', e);\r\n }\r\n swiper.emit('sliderMove', e);\r\n data.isMoved = true;\r\n\r\n var diff = swiper.isHorizontal() ? diffX : diffY;\r\n touches.diff = diff;\r\n\r\n diff *= params.touchRatio;\r\n if (rtl) { diff = -diff; }\r\n\r\n swiper.swipeDirection = diff > 0 ? 'prev' : 'next';\r\n data.currentTranslate = diff + data.startTranslate;\r\n\r\n var disableParentSwiper = true;\r\n var resistanceRatio = params.resistanceRatio;\r\n if (params.touchReleaseOnEdges) {\r\n resistanceRatio = 0;\r\n }\r\n if ((diff > 0 && data.currentTranslate > swiper.minTranslate())) {\r\n disableParentSwiper = false;\r\n if (params.resistance) { data.currentTranslate = (swiper.minTranslate() - 1) + (Math.pow( (-swiper.minTranslate() + data.startTranslate + diff), resistanceRatio )); }\r\n } else if (diff < 0 && data.currentTranslate < swiper.maxTranslate()) {\r\n disableParentSwiper = false;\r\n if (params.resistance) { data.currentTranslate = (swiper.maxTranslate() + 1) - (Math.pow( (swiper.maxTranslate() - data.startTranslate - diff), resistanceRatio )); }\r\n }\r\n\r\n if (disableParentSwiper) {\r\n e.preventedByNestedSwiper = true;\r\n }\r\n\r\n // Directions locks\r\n if (!swiper.allowSlideNext && swiper.swipeDirection === 'next' && data.currentTranslate < data.startTranslate) {\r\n data.currentTranslate = data.startTranslate;\r\n }\r\n if (!swiper.allowSlidePrev && swiper.swipeDirection === 'prev' && data.currentTranslate > data.startTranslate) {\r\n data.currentTranslate = data.startTranslate;\r\n }\r\n\r\n\r\n // Threshold\r\n if (params.threshold > 0) {\r\n if (Math.abs(diff) > params.threshold || data.allowThresholdMove) {\r\n if (!data.allowThresholdMove) {\r\n data.allowThresholdMove = true;\r\n touches.startX = touches.currentX;\r\n touches.startY = touches.currentY;\r\n data.currentTranslate = data.startTranslate;\r\n touches.diff = swiper.isHorizontal() ? touches.currentX - touches.startX : touches.currentY - touches.startY;\r\n return;\r\n }\r\n } else {\r\n data.currentTranslate = data.startTranslate;\r\n return;\r\n }\r\n }\r\n\r\n if (!params.followFinger) { return; }\r\n\r\n // Update active index in free mode\r\n if (params.freeMode || params.watchSlidesProgress || params.watchSlidesVisibility) {\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n }\r\n if (params.freeMode) {\r\n // Velocity\r\n if (data.velocities.length === 0) {\r\n data.velocities.push({\r\n position: touches[swiper.isHorizontal() ? 'startX' : 'startY'],\r\n time: data.touchStartTime,\r\n });\r\n }\r\n data.velocities.push({\r\n position: touches[swiper.isHorizontal() ? 'currentX' : 'currentY'],\r\n time: Utils.now(),\r\n });\r\n }\r\n // Update progress\r\n swiper.updateProgress(data.currentTranslate);\r\n // Update translate\r\n swiper.setTranslate(data.currentTranslate);\r\n }\r\n\r\n function onTouchEnd (event) {\r\n var swiper = this;\r\n var data = swiper.touchEventsData;\r\n\r\n var params = swiper.params;\r\n var touches = swiper.touches;\r\n var rtl = swiper.rtlTranslate;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var slidesGrid = swiper.slidesGrid;\r\n var snapGrid = swiper.snapGrid;\r\n var e = event;\r\n if (e.originalEvent) { e = e.originalEvent; }\r\n if (data.allowTouchCallbacks) {\r\n swiper.emit('touchEnd', e);\r\n }\r\n data.allowTouchCallbacks = false;\r\n if (!data.isTouched) {\r\n if (data.isMoved && params.grabCursor) {\r\n swiper.setGrabCursor(false);\r\n }\r\n data.isMoved = false;\r\n data.startMoving = false;\r\n return;\r\n }\r\n // Return Grab Cursor\r\n if (params.grabCursor && data.isMoved && data.isTouched && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {\r\n swiper.setGrabCursor(false);\r\n }\r\n\r\n // Time diff\r\n var touchEndTime = Utils.now();\r\n var timeDiff = touchEndTime - data.touchStartTime;\r\n\r\n // Tap, doubleTap, Click\r\n if (swiper.allowClick) {\r\n swiper.updateClickedSlide(e);\r\n swiper.emit('tap', e);\r\n if (timeDiff < 300 && (touchEndTime - data.lastClickTime) > 300) {\r\n if (data.clickTimeout) { clearTimeout(data.clickTimeout); }\r\n data.clickTimeout = Utils.nextTick(function () {\r\n if (!swiper || swiper.destroyed) { return; }\r\n swiper.emit('click', e);\r\n }, 300);\r\n }\r\n if (timeDiff < 300 && (touchEndTime - data.lastClickTime) < 300) {\r\n if (data.clickTimeout) { clearTimeout(data.clickTimeout); }\r\n swiper.emit('doubleTap', e);\r\n }\r\n }\r\n\r\n data.lastClickTime = Utils.now();\r\n Utils.nextTick(function () {\r\n if (!swiper.destroyed) { swiper.allowClick = true; }\r\n });\r\n\r\n if (!data.isTouched || !data.isMoved || !swiper.swipeDirection || touches.diff === 0 || data.currentTranslate === data.startTranslate) {\r\n data.isTouched = false;\r\n data.isMoved = false;\r\n data.startMoving = false;\r\n return;\r\n }\r\n data.isTouched = false;\r\n data.isMoved = false;\r\n data.startMoving = false;\r\n\r\n var currentPos;\r\n if (params.followFinger) {\r\n currentPos = rtl ? swiper.translate : -swiper.translate;\r\n } else {\r\n currentPos = -data.currentTranslate;\r\n }\r\n\r\n if (params.freeMode) {\r\n if (currentPos < -swiper.minTranslate()) {\r\n swiper.slideTo(swiper.activeIndex);\r\n return;\r\n }\r\n if (currentPos > -swiper.maxTranslate()) {\r\n if (swiper.slides.length < snapGrid.length) {\r\n swiper.slideTo(snapGrid.length - 1);\r\n } else {\r\n swiper.slideTo(swiper.slides.length - 1);\r\n }\r\n return;\r\n }\r\n\r\n if (params.freeModeMomentum) {\r\n if (data.velocities.length > 1) {\r\n var lastMoveEvent = data.velocities.pop();\r\n var velocityEvent = data.velocities.pop();\r\n\r\n var distance = lastMoveEvent.position - velocityEvent.position;\r\n var time = lastMoveEvent.time - velocityEvent.time;\r\n swiper.velocity = distance / time;\r\n swiper.velocity /= 2;\r\n if (Math.abs(swiper.velocity) < params.freeModeMinimumVelocity) {\r\n swiper.velocity = 0;\r\n }\r\n // this implies that the user stopped moving a finger then released.\r\n // There would be no events with distance zero, so the last event is stale.\r\n if (time > 150 || (Utils.now() - lastMoveEvent.time) > 300) {\r\n swiper.velocity = 0;\r\n }\r\n } else {\r\n swiper.velocity = 0;\r\n }\r\n swiper.velocity *= params.freeModeMomentumVelocityRatio;\r\n\r\n data.velocities.length = 0;\r\n var momentumDuration = 1000 * params.freeModeMomentumRatio;\r\n var momentumDistance = swiper.velocity * momentumDuration;\r\n\r\n var newPosition = swiper.translate + momentumDistance;\r\n if (rtl) { newPosition = -newPosition; }\r\n\r\n var doBounce = false;\r\n var afterBouncePosition;\r\n var bounceAmount = Math.abs(swiper.velocity) * 20 * params.freeModeMomentumBounceRatio;\r\n var needsLoopFix;\r\n if (newPosition < swiper.maxTranslate()) {\r\n if (params.freeModeMomentumBounce) {\r\n if (newPosition + swiper.maxTranslate() < -bounceAmount) {\r\n newPosition = swiper.maxTranslate() - bounceAmount;\r\n }\r\n afterBouncePosition = swiper.maxTranslate();\r\n doBounce = true;\r\n data.allowMomentumBounce = true;\r\n } else {\r\n newPosition = swiper.maxTranslate();\r\n }\r\n if (params.loop && params.centeredSlides) { needsLoopFix = true; }\r\n } else if (newPosition > swiper.minTranslate()) {\r\n if (params.freeModeMomentumBounce) {\r\n if (newPosition - swiper.minTranslate() > bounceAmount) {\r\n newPosition = swiper.minTranslate() + bounceAmount;\r\n }\r\n afterBouncePosition = swiper.minTranslate();\r\n doBounce = true;\r\n data.allowMomentumBounce = true;\r\n } else {\r\n newPosition = swiper.minTranslate();\r\n }\r\n if (params.loop && params.centeredSlides) { needsLoopFix = true; }\r\n } else if (params.freeModeSticky) {\r\n var nextSlide;\r\n for (var j = 0; j < snapGrid.length; j += 1) {\r\n if (snapGrid[j] > -newPosition) {\r\n nextSlide = j;\r\n break;\r\n }\r\n }\r\n\r\n if (Math.abs(snapGrid[nextSlide] - newPosition) < Math.abs(snapGrid[nextSlide - 1] - newPosition) || swiper.swipeDirection === 'next') {\r\n newPosition = snapGrid[nextSlide];\r\n } else {\r\n newPosition = snapGrid[nextSlide - 1];\r\n }\r\n newPosition = -newPosition;\r\n }\r\n if (needsLoopFix) {\r\n swiper.once('transitionEnd', function () {\r\n swiper.loopFix();\r\n });\r\n }\r\n // Fix duration\r\n if (swiper.velocity !== 0) {\r\n if (rtl) {\r\n momentumDuration = Math.abs((-newPosition - swiper.translate) / swiper.velocity);\r\n } else {\r\n momentumDuration = Math.abs((newPosition - swiper.translate) / swiper.velocity);\r\n }\r\n } else if (params.freeModeSticky) {\r\n swiper.slideToClosest();\r\n return;\r\n }\r\n\r\n if (params.freeModeMomentumBounce && doBounce) {\r\n swiper.updateProgress(afterBouncePosition);\r\n swiper.setTransition(momentumDuration);\r\n swiper.setTranslate(newPosition);\r\n swiper.transitionStart(true, swiper.swipeDirection);\r\n swiper.animating = true;\r\n $wrapperEl.transitionEnd(function () {\r\n if (!swiper || swiper.destroyed || !data.allowMomentumBounce) { return; }\r\n swiper.emit('momentumBounce');\r\n\r\n swiper.setTransition(params.speed);\r\n swiper.setTranslate(afterBouncePosition);\r\n $wrapperEl.transitionEnd(function () {\r\n if (!swiper || swiper.destroyed) { return; }\r\n swiper.transitionEnd();\r\n });\r\n });\r\n } else if (swiper.velocity) {\r\n swiper.updateProgress(newPosition);\r\n swiper.setTransition(momentumDuration);\r\n swiper.setTranslate(newPosition);\r\n swiper.transitionStart(true, swiper.swipeDirection);\r\n if (!swiper.animating) {\r\n swiper.animating = true;\r\n $wrapperEl.transitionEnd(function () {\r\n if (!swiper || swiper.destroyed) { return; }\r\n swiper.transitionEnd();\r\n });\r\n }\r\n } else {\r\n swiper.updateProgress(newPosition);\r\n }\r\n\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n } else if (params.freeModeSticky) {\r\n swiper.slideToClosest();\r\n return;\r\n }\r\n\r\n if (!params.freeModeMomentum || timeDiff >= params.longSwipesMs) {\r\n swiper.updateProgress();\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n }\r\n return;\r\n }\r\n\r\n // Find current slide\r\n var stopIndex = 0;\r\n var groupSize = swiper.slidesSizesGrid[0];\r\n for (var i = 0; i < slidesGrid.length; i += params.slidesPerGroup) {\r\n if (typeof slidesGrid[i + params.slidesPerGroup] !== 'undefined') {\r\n if (currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + params.slidesPerGroup]) {\r\n stopIndex = i;\r\n groupSize = slidesGrid[i + params.slidesPerGroup] - slidesGrid[i];\r\n }\r\n } else if (currentPos >= slidesGrid[i]) {\r\n stopIndex = i;\r\n groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];\r\n }\r\n }\r\n\r\n // Find current slide size\r\n var ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;\r\n\r\n if (timeDiff > params.longSwipesMs) {\r\n // Long touches\r\n if (!params.longSwipes) {\r\n swiper.slideTo(swiper.activeIndex);\r\n return;\r\n }\r\n if (swiper.swipeDirection === 'next') {\r\n if (ratio >= params.longSwipesRatio) { swiper.slideTo(stopIndex + params.slidesPerGroup); }\r\n else { swiper.slideTo(stopIndex); }\r\n }\r\n if (swiper.swipeDirection === 'prev') {\r\n if (ratio > (1 - params.longSwipesRatio)) { swiper.slideTo(stopIndex + params.slidesPerGroup); }\r\n else { swiper.slideTo(stopIndex); }\r\n }\r\n } else {\r\n // Short swipes\r\n if (!params.shortSwipes) {\r\n swiper.slideTo(swiper.activeIndex);\r\n return;\r\n }\r\n if (swiper.swipeDirection === 'next') {\r\n swiper.slideTo(stopIndex + params.slidesPerGroup);\r\n }\r\n if (swiper.swipeDirection === 'prev') {\r\n swiper.slideTo(stopIndex);\r\n }\r\n }\r\n }\r\n\r\n function onResize () {\r\n var swiper = this;\r\n\r\n var params = swiper.params;\r\n var el = swiper.el;\r\n\r\n if (el && el.offsetWidth === 0) { return; }\r\n\r\n // Breakpoints\r\n if (params.breakpoints) {\r\n swiper.setBreakpoint();\r\n }\r\n\r\n // Save locks\r\n var allowSlideNext = swiper.allowSlideNext;\r\n var allowSlidePrev = swiper.allowSlidePrev;\r\n var snapGrid = swiper.snapGrid;\r\n\r\n // Disable locks on resize\r\n swiper.allowSlideNext = true;\r\n swiper.allowSlidePrev = true;\r\n\r\n swiper.updateSize();\r\n swiper.updateSlides();\r\n\r\n if (params.freeMode) {\r\n var newTranslate = Math.min(Math.max(swiper.translate, swiper.maxTranslate()), swiper.minTranslate());\r\n swiper.setTranslate(newTranslate);\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n\r\n if (params.autoHeight) {\r\n swiper.updateAutoHeight();\r\n }\r\n } else {\r\n swiper.updateSlidesClasses();\r\n if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !swiper.params.centeredSlides) {\r\n swiper.slideTo(swiper.slides.length - 1, 0, false, true);\r\n } else {\r\n swiper.slideTo(swiper.activeIndex, 0, false, true);\r\n }\r\n }\r\n // Return locks after resize\r\n swiper.allowSlidePrev = allowSlidePrev;\r\n swiper.allowSlideNext = allowSlideNext;\r\n\r\n if (swiper.params.watchOverflow && snapGrid !== swiper.snapGrid) {\r\n swiper.checkOverflow();\r\n }\r\n }\r\n\r\n function onClick (e) {\r\n var swiper = this;\r\n if (!swiper.allowClick) {\r\n if (swiper.params.preventClicks) { e.preventDefault(); }\r\n if (swiper.params.preventClicksPropagation && swiper.animating) {\r\n e.stopPropagation();\r\n e.stopImmediatePropagation();\r\n }\r\n }\r\n }\r\n\r\n function attachEvents() {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var touchEvents = swiper.touchEvents;\r\n var el = swiper.el;\r\n var wrapperEl = swiper.wrapperEl;\r\n\r\n {\r\n swiper.onTouchStart = onTouchStart.bind(swiper);\r\n swiper.onTouchMove = onTouchMove.bind(swiper);\r\n swiper.onTouchEnd = onTouchEnd.bind(swiper);\r\n }\r\n\r\n swiper.onClick = onClick.bind(swiper);\r\n\r\n var target = params.touchEventsTarget === 'container' ? el : wrapperEl;\r\n var capture = !!params.nested;\r\n\r\n // Touch Events\r\n {\r\n if (!Support.touch && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n target.addEventListener(touchEvents.start, swiper.onTouchStart, false);\r\n doc.addEventListener(touchEvents.move, swiper.onTouchMove, capture);\r\n doc.addEventListener(touchEvents.end, swiper.onTouchEnd, false);\r\n } else {\r\n if (Support.touch) {\r\n var passiveListener = touchEvents.start === 'touchstart' && Support.passiveListener && params.passiveListeners ? { passive: true, capture: false } : false;\r\n target.addEventListener(touchEvents.start, swiper.onTouchStart, passiveListener);\r\n target.addEventListener(touchEvents.move, swiper.onTouchMove, Support.passiveListener ? { passive: false, capture: capture } : capture);\r\n target.addEventListener(touchEvents.end, swiper.onTouchEnd, passiveListener);\r\n }\r\n if ((params.simulateTouch && !Device.ios && !Device.android) || (params.simulateTouch && !Support.touch && Device.ios)) {\r\n target.addEventListener('mousedown', swiper.onTouchStart, false);\r\n doc.addEventListener('mousemove', swiper.onTouchMove, capture);\r\n doc.addEventListener('mouseup', swiper.onTouchEnd, false);\r\n }\r\n }\r\n // Prevent Links Clicks\r\n if (params.preventClicks || params.preventClicksPropagation) {\r\n target.addEventListener('click', swiper.onClick, true);\r\n }\r\n }\r\n\r\n // Resize handler\r\n swiper.on((Device.ios || Device.android ? 'resize orientationchange observerUpdate' : 'resize observerUpdate'), onResize, true);\r\n }\r\n\r\n function detachEvents() {\r\n var swiper = this;\r\n\r\n var params = swiper.params;\r\n var touchEvents = swiper.touchEvents;\r\n var el = swiper.el;\r\n var wrapperEl = swiper.wrapperEl;\r\n\r\n var target = params.touchEventsTarget === 'container' ? el : wrapperEl;\r\n var capture = !!params.nested;\r\n\r\n // Touch Events\r\n {\r\n if (!Support.touch && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n target.removeEventListener(touchEvents.start, swiper.onTouchStart, false);\r\n doc.removeEventListener(touchEvents.move, swiper.onTouchMove, capture);\r\n doc.removeEventListener(touchEvents.end, swiper.onTouchEnd, false);\r\n } else {\r\n if (Support.touch) {\r\n var passiveListener = touchEvents.start === 'onTouchStart' && Support.passiveListener && params.passiveListeners ? { passive: true, capture: false } : false;\r\n target.removeEventListener(touchEvents.start, swiper.onTouchStart, passiveListener);\r\n target.removeEventListener(touchEvents.move, swiper.onTouchMove, capture);\r\n target.removeEventListener(touchEvents.end, swiper.onTouchEnd, passiveListener);\r\n }\r\n if ((params.simulateTouch && !Device.ios && !Device.android) || (params.simulateTouch && !Support.touch && Device.ios)) {\r\n target.removeEventListener('mousedown', swiper.onTouchStart, false);\r\n doc.removeEventListener('mousemove', swiper.onTouchMove, capture);\r\n doc.removeEventListener('mouseup', swiper.onTouchEnd, false);\r\n }\r\n }\r\n // Prevent Links Clicks\r\n if (params.preventClicks || params.preventClicksPropagation) {\r\n target.removeEventListener('click', swiper.onClick, true);\r\n }\r\n }\r\n\r\n // Resize handler\r\n swiper.off((Device.ios || Device.android ? 'resize orientationchange observerUpdate' : 'resize observerUpdate'), onResize);\r\n }\r\n\r\n var events = {\r\n attachEvents: attachEvents,\r\n detachEvents: detachEvents,\r\n };\r\n\r\n function setBreakpoint () {\r\n var swiper = this;\r\n var activeIndex = swiper.activeIndex;\r\n var initialized = swiper.initialized;\r\n var loopedSlides = swiper.loopedSlides; if ( loopedSlides === void 0 ) loopedSlides = 0;\r\n var params = swiper.params;\r\n var breakpoints = params.breakpoints;\r\n if (!breakpoints || (breakpoints && Object.keys(breakpoints).length === 0)) { return; }\r\n // Set breakpoint for window width and update parameters\r\n var breakpoint = swiper.getBreakpoint(breakpoints);\r\n if (breakpoint && swiper.currentBreakpoint !== breakpoint) {\r\n var breakPointsParams = breakpoint in breakpoints ? breakpoints[breakpoint] : swiper.originalParams;\r\n var needsReLoop = params.loop && (breakPointsParams.slidesPerView !== params.slidesPerView);\r\n\r\n Utils.extend(swiper.params, breakPointsParams);\r\n\r\n Utils.extend(swiper, {\r\n allowTouchMove: swiper.params.allowTouchMove,\r\n allowSlideNext: swiper.params.allowSlideNext,\r\n allowSlidePrev: swiper.params.allowSlidePrev,\r\n });\r\n\r\n swiper.currentBreakpoint = breakpoint;\r\n\r\n if (needsReLoop && initialized) {\r\n swiper.loopDestroy();\r\n swiper.loopCreate();\r\n swiper.updateSlides();\r\n swiper.slideTo((activeIndex - loopedSlides) + swiper.loopedSlides, 0, false);\r\n }\r\n swiper.emit('breakpoint', breakPointsParams);\r\n }\r\n }\r\n\r\n function getBreakpoint (breakpoints) {\r\n var swiper = this;\r\n // Get breakpoint for window width\r\n if (!breakpoints) { return undefined; }\r\n var breakpoint = false;\r\n var points = [];\r\n Object.keys(breakpoints).forEach(function (point) {\r\n points.push(point);\r\n });\r\n points.sort(function (a, b) { return parseInt(a, 10) - parseInt(b, 10); });\r\n for (var i = 0; i < points.length; i += 1) {\r\n var point = points[i];\r\n if (swiper.params.breakpointsInverse) {\r\n if (point <= win.innerWidth) {\r\n breakpoint = point;\r\n }\r\n } else if (point >= win.innerWidth && !breakpoint) {\r\n breakpoint = point;\r\n }\r\n }\r\n return breakpoint || 'max';\r\n }\r\n\r\n var breakpoints = { setBreakpoint: setBreakpoint, getBreakpoint: getBreakpoint };\r\n\r\n var Browser = (function Browser() {\r\n function isSafari() {\r\n var ua = win.navigator.userAgent.toLowerCase();\r\n return (ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0);\r\n }\r\n return {\r\n isIE: !!win.navigator.userAgent.match(/Trident/g) || !!win.navigator.userAgent.match(/MSIE/g),\r\n isEdge: !!win.navigator.userAgent.match(/Edge/g),\r\n isSafari: isSafari(),\r\n isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(win.navigator.userAgent),\r\n };\r\n }());\r\n\r\n function addClasses () {\r\n var swiper = this;\r\n var classNames = swiper.classNames;\r\n var params = swiper.params;\r\n var rtl = swiper.rtl;\r\n var $el = swiper.$el;\r\n var suffixes = [];\r\n\r\n suffixes.push(params.direction);\r\n\r\n if (params.freeMode) {\r\n suffixes.push('free-mode');\r\n }\r\n if (!Support.flexbox) {\r\n suffixes.push('no-flexbox');\r\n }\r\n if (params.autoHeight) {\r\n suffixes.push('autoheight');\r\n }\r\n if (rtl) {\r\n suffixes.push('rtl');\r\n }\r\n if (params.slidesPerColumn > 1) {\r\n suffixes.push('multirow');\r\n }\r\n if (Device.android) {\r\n suffixes.push('android');\r\n }\r\n if (Device.ios) {\r\n suffixes.push('ios');\r\n }\r\n // WP8 Touch Events Fix\r\n if ((Browser.isIE || Browser.isEdge) && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n suffixes.push((\"wp8-\" + (params.direction)));\r\n }\r\n\r\n suffixes.forEach(function (suffix) {\r\n classNames.push(params.containerModifierClass + suffix);\r\n });\r\n\r\n $el.addClass(classNames.join(' '));\r\n }\r\n\r\n function removeClasses () {\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n var classNames = swiper.classNames;\r\n\r\n $el.removeClass(classNames.join(' '));\r\n }\r\n\r\n var classes = { addClasses: addClasses, removeClasses: removeClasses };\r\n\r\n function loadImage (imageEl, src, srcset, sizes, checkForComplete, callback) {\r\n var image;\r\n function onReady() {\r\n if (callback) { callback(); }\r\n }\r\n if (!imageEl.complete || !checkForComplete) {\r\n if (src) {\r\n image = new win.Image();\r\n image.onload = onReady;\r\n image.onerror = onReady;\r\n if (sizes) {\r\n image.sizes = sizes;\r\n }\r\n if (srcset) {\r\n image.srcset = srcset;\r\n }\r\n if (src) {\r\n image.src = src;\r\n }\r\n } else {\r\n onReady();\r\n }\r\n } else {\r\n // image already loaded...\r\n onReady();\r\n }\r\n }\r\n\r\n function preloadImages () {\r\n var swiper = this;\r\n swiper.imagesToLoad = swiper.$el.find('img');\r\n function onReady() {\r\n if (typeof swiper === 'undefined' || swiper === null || !swiper || swiper.destroyed) { return; }\r\n if (swiper.imagesLoaded !== undefined) { swiper.imagesLoaded += 1; }\r\n if (swiper.imagesLoaded === swiper.imagesToLoad.length) {\r\n if (swiper.params.updateOnImagesReady) { swiper.update(); }\r\n swiper.emit('imagesReady');\r\n }\r\n }\r\n for (var i = 0; i < swiper.imagesToLoad.length; i += 1) {\r\n var imageEl = swiper.imagesToLoad[i];\r\n swiper.loadImage(\r\n imageEl,\r\n imageEl.currentSrc || imageEl.getAttribute('src'),\r\n imageEl.srcset || imageEl.getAttribute('srcset'),\r\n imageEl.sizes || imageEl.getAttribute('sizes'),\r\n true,\r\n onReady\r\n );\r\n }\r\n }\r\n\r\n var images = {\r\n loadImage: loadImage,\r\n preloadImages: preloadImages,\r\n };\r\n\r\n function checkOverflow() {\r\n var swiper = this;\r\n var wasLocked = swiper.isLocked;\r\n\r\n swiper.isLocked = swiper.snapGrid.length === 1;\r\n swiper.allowSlideNext = !swiper.isLocked;\r\n swiper.allowSlidePrev = !swiper.isLocked;\r\n\r\n // events\r\n if (wasLocked !== swiper.isLocked) { swiper.emit(swiper.isLocked ? 'lock' : 'unlock'); }\r\n\r\n if (wasLocked && wasLocked !== swiper.isLocked) {\r\n swiper.isEnd = false;\r\n swiper.navigation.update();\r\n }\r\n }\r\n\r\n var checkOverflow$1 = { checkOverflow: checkOverflow };\r\n\r\n var defaults = {\r\n init: true,\r\n direction: 'horizontal',\r\n touchEventsTarget: 'container',\r\n initialSlide: 0,\r\n speed: 300,\r\n //\r\n preventInteractionOnTransition: false,\r\n\r\n // To support iOS's swipe-to-go-back gesture (when being used in-app, with UIWebView).\r\n edgeSwipeDetection: false,\r\n edgeSwipeThreshold: 20,\r\n\r\n // Free mode\r\n freeMode: false,\r\n freeModeMomentum: true,\r\n freeModeMomentumRatio: 1,\r\n freeModeMomentumBounce: true,\r\n freeModeMomentumBounceRatio: 1,\r\n freeModeMomentumVelocityRatio: 1,\r\n freeModeSticky: false,\r\n freeModeMinimumVelocity: 0.02,\r\n\r\n // Autoheight\r\n autoHeight: false,\r\n\r\n // Set wrapper width\r\n setWrapperSize: false,\r\n\r\n // Virtual Translate\r\n virtualTranslate: false,\r\n\r\n // Effects\r\n effect: 'slide', // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'\r\n\r\n // Breakpoints\r\n breakpoints: undefined,\r\n breakpointsInverse: false,\r\n\r\n // Slides grid\r\n spaceBetween: 0,\r\n slidesPerView: 1,\r\n slidesPerColumn: 1,\r\n slidesPerColumnFill: 'column',\r\n slidesPerGroup: 1,\r\n centeredSlides: false,\r\n slidesOffsetBefore: 0, // in px\r\n slidesOffsetAfter: 0, // in px\r\n normalizeSlideIndex: true,\r\n centerInsufficientSlides: false,\r\n\r\n // Disable swiper and hide navigation when container not overflow\r\n watchOverflow: false,\r\n\r\n // Round length\r\n roundLengths: false,\r\n\r\n // Touches\r\n touchRatio: 1,\r\n touchAngle: 45,\r\n simulateTouch: true,\r\n shortSwipes: true,\r\n longSwipes: true,\r\n longSwipesRatio: 0.5,\r\n longSwipesMs: 300,\r\n followFinger: true,\r\n allowTouchMove: true,\r\n threshold: 0,\r\n touchMoveStopPropagation: true,\r\n touchStartPreventDefault: true,\r\n touchReleaseOnEdges: false,\r\n\r\n // Unique Navigation Elements\r\n uniqueNavElements: true,\r\n\r\n // Resistance\r\n resistance: true,\r\n resistanceRatio: 0.85,\r\n\r\n // Progress\r\n watchSlidesProgress: false,\r\n watchSlidesVisibility: false,\r\n\r\n // Cursor\r\n grabCursor: false,\r\n\r\n // Clicks\r\n preventClicks: true,\r\n preventClicksPropagation: true,\r\n slideToClickedSlide: false,\r\n\r\n // Images\r\n preloadImages: true,\r\n updateOnImagesReady: true,\r\n\r\n // loop\r\n loop: false,\r\n loopAdditionalSlides: 0,\r\n loopedSlides: null,\r\n loopFillGroupWithBlank: false,\r\n\r\n // Swiping/no swiping\r\n allowSlidePrev: true,\r\n allowSlideNext: true,\r\n swipeHandler: null, // '.swipe-handler',\r\n noSwiping: true,\r\n noSwipingClass: 'swiper-no-swiping',\r\n noSwipingSelector: null,\r\n\r\n // Passive Listeners\r\n passiveListeners: true,\r\n\r\n // NS\r\n containerModifierClass: 'swiper-container-', // NEW\r\n slideClass: 'swiper-slide',\r\n slideBlankClass: 'swiper-slide-invisible-blank',\r\n slideActiveClass: 'swiper-slide-active',\r\n slideDuplicateActiveClass: 'swiper-slide-duplicate-active',\r\n slideVisibleClass: 'swiper-slide-visible',\r\n slideDuplicateClass: 'swiper-slide-duplicate',\r\n slideNextClass: 'swiper-slide-next',\r\n slideDuplicateNextClass: 'swiper-slide-duplicate-next',\r\n slidePrevClass: 'swiper-slide-prev',\r\n slideDuplicatePrevClass: 'swiper-slide-duplicate-prev',\r\n wrapperClass: 'swiper-wrapper',\r\n\r\n // Callbacks\r\n runCallbacksOnInit: true,\r\n };\r\n\r\n var prototypes = {\r\n update: update,\r\n translate: translate,\r\n transition: transition$1,\r\n slide: slide,\r\n loop: loop,\r\n grabCursor: grabCursor,\r\n manipulation: manipulation,\r\n events: events,\r\n breakpoints: breakpoints,\r\n checkOverflow: checkOverflow$1,\r\n classes: classes,\r\n images: images,\r\n };\r\n\r\n var extendedDefaults = {};\r\n\r\n var Swiper = (function (SwiperClass$$1) {\r\n function Swiper() {\r\n var assign;\r\n\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n var el;\r\n var params;\r\n if (args.length === 1 && args[0].constructor && args[0].constructor === Object) {\r\n params = args[0];\r\n } else {\r\n (assign = args, el = assign[0], params = assign[1]);\r\n }\r\n if (!params) { params = {}; }\r\n\r\n params = Utils.extend({}, params);\r\n if (el && !params.el) { params.el = el; }\r\n\r\n SwiperClass$$1.call(this, params);\r\n\r\n Object.keys(prototypes).forEach(function (prototypeGroup) {\r\n Object.keys(prototypes[prototypeGroup]).forEach(function (protoMethod) {\r\n if (!Swiper.prototype[protoMethod]) {\r\n Swiper.prototype[protoMethod] = prototypes[prototypeGroup][protoMethod];\r\n }\r\n });\r\n });\r\n\r\n // Swiper Instance\r\n var swiper = this;\r\n if (typeof swiper.modules === 'undefined') {\r\n swiper.modules = {};\r\n }\r\n Object.keys(swiper.modules).forEach(function (moduleName) {\r\n var module = swiper.modules[moduleName];\r\n if (module.params) {\r\n var moduleParamName = Object.keys(module.params)[0];\r\n var moduleParams = module.params[moduleParamName];\r\n if (typeof moduleParams !== 'object' || moduleParams === null) { return; }\r\n if (!(moduleParamName in params && 'enabled' in moduleParams)) { return; }\r\n if (params[moduleParamName] === true) {\r\n params[moduleParamName] = { enabled: true };\r\n }\r\n if (\r\n typeof params[moduleParamName] === 'object'\r\n && !('enabled' in params[moduleParamName])\r\n ) {\r\n params[moduleParamName].enabled = true;\r\n }\r\n if (!params[moduleParamName]) { params[moduleParamName] = { enabled: false }; }\r\n }\r\n });\r\n\r\n // Extend defaults with modules params\r\n var swiperParams = Utils.extend({}, defaults);\r\n swiper.useModulesParams(swiperParams);\r\n\r\n // Extend defaults with passed params\r\n swiper.params = Utils.extend({}, swiperParams, extendedDefaults, params);\r\n swiper.originalParams = Utils.extend({}, swiper.params);\r\n swiper.passedParams = Utils.extend({}, params);\r\n\r\n // Save Dom lib\r\n swiper.$ = $;\r\n\r\n // Find el\r\n var $el = $(swiper.params.el);\r\n el = $el[0];\r\n\r\n if (!el) {\r\n return undefined;\r\n }\r\n\r\n if ($el.length > 1) {\r\n var swipers = [];\r\n $el.each(function (index, containerEl) {\r\n var newParams = Utils.extend({}, params, { el: containerEl });\r\n swipers.push(new Swiper(newParams));\r\n });\r\n return swipers;\r\n }\r\n\r\n el.swiper = swiper;\r\n $el.data('swiper', swiper);\r\n\r\n // Find Wrapper\r\n var $wrapperEl = $el.children((\".\" + (swiper.params.wrapperClass)));\r\n\r\n // Extend Swiper\r\n Utils.extend(swiper, {\r\n $el: $el,\r\n el: el,\r\n $wrapperEl: $wrapperEl,\r\n wrapperEl: $wrapperEl[0],\r\n\r\n // Classes\r\n classNames: [],\r\n\r\n // Slides\r\n slides: $(),\r\n slidesGrid: [],\r\n snapGrid: [],\r\n slidesSizesGrid: [],\r\n\r\n // isDirection\r\n isHorizontal: function isHorizontal() {\r\n return swiper.params.direction === 'horizontal';\r\n },\r\n isVertical: function isVertical() {\r\n return swiper.params.direction === 'vertical';\r\n },\r\n // RTL\r\n rtl: (el.dir.toLowerCase() === 'rtl' || $el.css('direction') === 'rtl'),\r\n rtlTranslate: swiper.params.direction === 'horizontal' && (el.dir.toLowerCase() === 'rtl' || $el.css('direction') === 'rtl'),\r\n wrongRTL: $wrapperEl.css('display') === '-webkit-box',\r\n\r\n // Indexes\r\n activeIndex: 0,\r\n realIndex: 0,\r\n\r\n //\r\n isBeginning: true,\r\n isEnd: false,\r\n\r\n // Props\r\n translate: 0,\r\n previousTranslate: 0,\r\n progress: 0,\r\n velocity: 0,\r\n animating: false,\r\n\r\n // Locks\r\n allowSlideNext: swiper.params.allowSlideNext,\r\n allowSlidePrev: swiper.params.allowSlidePrev,\r\n\r\n // Touch Events\r\n touchEvents: (function touchEvents() {\r\n var touch = ['touchstart', 'touchmove', 'touchend'];\r\n var desktop = ['mousedown', 'mousemove', 'mouseup'];\r\n if (Support.pointerEvents) {\r\n desktop = ['pointerdown', 'pointermove', 'pointerup'];\r\n } else if (Support.prefixedPointerEvents) {\r\n desktop = ['MSPointerDown', 'MSPointerMove', 'MSPointerUp'];\r\n }\r\n swiper.touchEventsTouch = {\r\n start: touch[0],\r\n move: touch[1],\r\n end: touch[2],\r\n };\r\n swiper.touchEventsDesktop = {\r\n start: desktop[0],\r\n move: desktop[1],\r\n end: desktop[2],\r\n };\r\n return Support.touch || !swiper.params.simulateTouch ? swiper.touchEventsTouch : swiper.touchEventsDesktop;\r\n }()),\r\n touchEventsData: {\r\n isTouched: undefined,\r\n isMoved: undefined,\r\n allowTouchCallbacks: undefined,\r\n touchStartTime: undefined,\r\n isScrolling: undefined,\r\n currentTranslate: undefined,\r\n startTranslate: undefined,\r\n allowThresholdMove: undefined,\r\n // Form elements to match\r\n formElements: 'input, select, option, textarea, button, video',\r\n // Last click time\r\n lastClickTime: Utils.now(),\r\n clickTimeout: undefined,\r\n // Velocities\r\n velocities: [],\r\n allowMomentumBounce: undefined,\r\n isTouchEvent: undefined,\r\n startMoving: undefined,\r\n },\r\n\r\n // Clicks\r\n allowClick: true,\r\n\r\n // Touches\r\n allowTouchMove: swiper.params.allowTouchMove,\r\n\r\n touches: {\r\n startX: 0,\r\n startY: 0,\r\n currentX: 0,\r\n currentY: 0,\r\n diff: 0,\r\n },\r\n\r\n // Images\r\n imagesToLoad: [],\r\n imagesLoaded: 0,\r\n\r\n });\r\n\r\n // Install Modules\r\n swiper.useModules();\r\n\r\n // Init\r\n if (swiper.params.init) {\r\n swiper.init();\r\n }\r\n\r\n // Return app instance\r\n return swiper;\r\n }\r\n\r\n if ( SwiperClass$$1 ) Swiper.__proto__ = SwiperClass$$1;\r\n Swiper.prototype = Object.create( SwiperClass$$1 && SwiperClass$$1.prototype );\r\n Swiper.prototype.constructor = Swiper;\r\n\r\n var staticAccessors = { extendedDefaults: { configurable: true },defaults: { configurable: true },Class: { configurable: true },$: { configurable: true } };\r\n\r\n Swiper.prototype.slidesPerViewDynamic = function slidesPerViewDynamic () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var slides = swiper.slides;\r\n var slidesGrid = swiper.slidesGrid;\r\n var swiperSize = swiper.size;\r\n var activeIndex = swiper.activeIndex;\r\n var spv = 1;\r\n if (params.centeredSlides) {\r\n var slideSize = slides[activeIndex].swiperSlideSize;\r\n var breakLoop;\r\n for (var i = activeIndex + 1; i < slides.length; i += 1) {\r\n if (slides[i] && !breakLoop) {\r\n slideSize += slides[i].swiperSlideSize;\r\n spv += 1;\r\n if (slideSize > swiperSize) { breakLoop = true; }\r\n }\r\n }\r\n for (var i$1 = activeIndex - 1; i$1 >= 0; i$1 -= 1) {\r\n if (slides[i$1] && !breakLoop) {\r\n slideSize += slides[i$1].swiperSlideSize;\r\n spv += 1;\r\n if (slideSize > swiperSize) { breakLoop = true; }\r\n }\r\n }\r\n } else {\r\n for (var i$2 = activeIndex + 1; i$2 < slides.length; i$2 += 1) {\r\n if (slidesGrid[i$2] - slidesGrid[activeIndex] < swiperSize) {\r\n spv += 1;\r\n }\r\n }\r\n }\r\n return spv;\r\n };\r\n\r\n Swiper.prototype.update = function update$$1 () {\r\n var swiper = this;\r\n if (!swiper || swiper.destroyed) { return; }\r\n var snapGrid = swiper.snapGrid;\r\n var params = swiper.params;\r\n // Breakpoints\r\n if (params.breakpoints) {\r\n swiper.setBreakpoint();\r\n }\r\n swiper.updateSize();\r\n swiper.updateSlides();\r\n swiper.updateProgress();\r\n swiper.updateSlidesClasses();\r\n\r\n function setTranslate() {\r\n var translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate;\r\n var newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate());\r\n swiper.setTranslate(newTranslate);\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n }\r\n var translated;\r\n if (swiper.params.freeMode) {\r\n setTranslate();\r\n if (swiper.params.autoHeight) {\r\n swiper.updateAutoHeight();\r\n }\r\n } else {\r\n if ((swiper.params.slidesPerView === 'auto' || swiper.params.slidesPerView > 1) && swiper.isEnd && !swiper.params.centeredSlides) {\r\n translated = swiper.slideTo(swiper.slides.length - 1, 0, false, true);\r\n } else {\r\n translated = swiper.slideTo(swiper.activeIndex, 0, false, true);\r\n }\r\n if (!translated) {\r\n setTranslate();\r\n }\r\n }\r\n if (params.watchOverflow && snapGrid !== swiper.snapGrid) {\r\n swiper.checkOverflow();\r\n }\r\n swiper.emit('update');\r\n };\r\n\r\n Swiper.prototype.init = function init () {\r\n var swiper = this;\r\n if (swiper.initialized) { return; }\r\n\r\n swiper.emit('beforeInit');\r\n\r\n // Set breakpoint\r\n if (swiper.params.breakpoints) {\r\n swiper.setBreakpoint();\r\n }\r\n\r\n // Add Classes\r\n swiper.addClasses();\r\n\r\n // Create loop\r\n if (swiper.params.loop) {\r\n swiper.loopCreate();\r\n }\r\n\r\n // Update size\r\n swiper.updateSize();\r\n\r\n // Update slides\r\n swiper.updateSlides();\r\n\r\n if (swiper.params.watchOverflow) {\r\n swiper.checkOverflow();\r\n }\r\n\r\n // Set Grab Cursor\r\n if (swiper.params.grabCursor) {\r\n swiper.setGrabCursor();\r\n }\r\n\r\n if (swiper.params.preloadImages) {\r\n swiper.preloadImages();\r\n }\r\n\r\n // Slide To Initial Slide\r\n if (swiper.params.loop) {\r\n swiper.slideTo(swiper.params.initialSlide + swiper.loopedSlides, 0, swiper.params.runCallbacksOnInit);\r\n } else {\r\n swiper.slideTo(swiper.params.initialSlide, 0, swiper.params.runCallbacksOnInit);\r\n }\r\n\r\n // Attach events\r\n swiper.attachEvents();\r\n\r\n // Init Flag\r\n swiper.initialized = true;\r\n\r\n // Emit\r\n swiper.emit('init');\r\n };\r\n\r\n Swiper.prototype.destroy = function destroy (deleteInstance, cleanStyles) {\r\n if ( deleteInstance === void 0 ) deleteInstance = true;\r\n if ( cleanStyles === void 0 ) cleanStyles = true;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $el = swiper.$el;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var slides = swiper.slides;\r\n\r\n if (typeof swiper.params === 'undefined' || swiper.destroyed) {\r\n return null;\r\n }\r\n\r\n swiper.emit('beforeDestroy');\r\n\r\n // Init Flag\r\n swiper.initialized = false;\r\n\r\n // Detach events\r\n swiper.detachEvents();\r\n\r\n // Destroy loop\r\n if (params.loop) {\r\n swiper.loopDestroy();\r\n }\r\n\r\n // Cleanup styles\r\n if (cleanStyles) {\r\n swiper.removeClasses();\r\n $el.removeAttr('style');\r\n $wrapperEl.removeAttr('style');\r\n if (slides && slides.length) {\r\n slides\r\n .removeClass([\r\n params.slideVisibleClass,\r\n params.slideActiveClass,\r\n params.slideNextClass,\r\n params.slidePrevClass ].join(' '))\r\n .removeAttr('style')\r\n .removeAttr('data-swiper-slide-index')\r\n .removeAttr('data-swiper-column')\r\n .removeAttr('data-swiper-row');\r\n }\r\n }\r\n\r\n swiper.emit('destroy');\r\n\r\n // Detach emitter events\r\n Object.keys(swiper.eventsListeners).forEach(function (eventName) {\r\n swiper.off(eventName);\r\n });\r\n\r\n if (deleteInstance !== false) {\r\n swiper.$el[0].swiper = null;\r\n swiper.$el.data('swiper', null);\r\n Utils.deleteProps(swiper);\r\n }\r\n swiper.destroyed = true;\r\n\r\n return null;\r\n };\r\n\r\n Swiper.extendDefaults = function extendDefaults (newDefaults) {\r\n Utils.extend(extendedDefaults, newDefaults);\r\n };\r\n\r\n staticAccessors.extendedDefaults.get = function () {\r\n return extendedDefaults;\r\n };\r\n\r\n staticAccessors.defaults.get = function () {\r\n return defaults;\r\n };\r\n\r\n staticAccessors.Class.get = function () {\r\n return SwiperClass$$1;\r\n };\r\n\r\n staticAccessors.$.get = function () {\r\n return $;\r\n };\r\n\r\n Object.defineProperties( Swiper, staticAccessors );\r\n\r\n return Swiper;\r\n }(SwiperClass));\r\n\r\n var Device$1 = {\r\n name: 'device',\r\n proto: {\r\n device: Device,\r\n },\r\n static: {\r\n device: Device,\r\n },\r\n };\r\n\r\n var Support$1 = {\r\n name: 'support',\r\n proto: {\r\n support: Support,\r\n },\r\n static: {\r\n support: Support,\r\n },\r\n };\r\n\r\n var Browser$1 = {\r\n name: 'browser',\r\n proto: {\r\n browser: Browser,\r\n },\r\n static: {\r\n browser: Browser,\r\n },\r\n };\r\n\r\n var Resize = {\r\n name: 'resize',\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n resize: {\r\n resizeHandler: function resizeHandler() {\r\n if (!swiper || swiper.destroyed || !swiper.initialized) { return; }\r\n swiper.emit('beforeResize');\r\n swiper.emit('resize');\r\n },\r\n orientationChangeHandler: function orientationChangeHandler() {\r\n if (!swiper || swiper.destroyed || !swiper.initialized) { return; }\r\n swiper.emit('orientationchange');\r\n },\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n // Emit resize\r\n win.addEventListener('resize', swiper.resize.resizeHandler);\r\n\r\n // Emit orientationchange\r\n win.addEventListener('orientationchange', swiper.resize.orientationChangeHandler);\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n win.removeEventListener('resize', swiper.resize.resizeHandler);\r\n win.removeEventListener('orientationchange', swiper.resize.orientationChangeHandler);\r\n },\r\n },\r\n };\r\n\r\n var Observer = {\r\n func: win.MutationObserver || win.WebkitMutationObserver,\r\n attach: function attach(target, options) {\r\n if ( options === void 0 ) options = {};\r\n\r\n var swiper = this;\r\n\r\n var ObserverFunc = Observer.func;\r\n var observer = new ObserverFunc(function (mutations) {\r\n // The observerUpdate event should only be triggered\r\n // once despite the number of mutations. Additional\r\n // triggers are redundant and are very costly\r\n if (mutations.length === 1) {\r\n swiper.emit('observerUpdate', mutations[0]);\r\n return;\r\n }\r\n var observerUpdate = function observerUpdate() {\r\n swiper.emit('observerUpdate', mutations[0]);\r\n };\r\n\r\n if (win.requestAnimationFrame) {\r\n win.requestAnimationFrame(observerUpdate);\r\n } else {\r\n win.setTimeout(observerUpdate, 0);\r\n }\r\n });\r\n\r\n observer.observe(target, {\r\n attributes: typeof options.attributes === 'undefined' ? true : options.attributes,\r\n childList: typeof options.childList === 'undefined' ? true : options.childList,\r\n characterData: typeof options.characterData === 'undefined' ? true : options.characterData,\r\n });\r\n\r\n swiper.observer.observers.push(observer);\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (!Support.observer || !swiper.params.observer) { return; }\r\n if (swiper.params.observeParents) {\r\n var containerParents = swiper.$el.parents();\r\n for (var i = 0; i < containerParents.length; i += 1) {\r\n swiper.observer.attach(containerParents[i]);\r\n }\r\n }\r\n // Observe container\r\n swiper.observer.attach(swiper.$el[0], { childList: false });\r\n\r\n // Observe wrapper\r\n swiper.observer.attach(swiper.$wrapperEl[0], { attributes: false });\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.observer.observers.forEach(function (observer) {\r\n observer.disconnect();\r\n });\r\n swiper.observer.observers = [];\r\n },\r\n };\r\n\r\n var Observer$1 = {\r\n name: 'observer',\r\n params: {\r\n observer: false,\r\n observeParents: false,\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n observer: {\r\n init: Observer.init.bind(swiper),\r\n attach: Observer.attach.bind(swiper),\r\n destroy: Observer.destroy.bind(swiper),\r\n observers: [],\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n swiper.observer.init();\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.observer.destroy();\r\n },\r\n },\r\n };\r\n\r\n var Virtual = {\r\n update: function update(force) {\r\n var swiper = this;\r\n var ref = swiper.params;\r\n var slidesPerView = ref.slidesPerView;\r\n var slidesPerGroup = ref.slidesPerGroup;\r\n var centeredSlides = ref.centeredSlides;\r\n var ref$1 = swiper.params.virtual;\r\n var addSlidesBefore = ref$1.addSlidesBefore;\r\n var addSlidesAfter = ref$1.addSlidesAfter;\r\n var ref$2 = swiper.virtual;\r\n var previousFrom = ref$2.from;\r\n var previousTo = ref$2.to;\r\n var slides = ref$2.slides;\r\n var previousSlidesGrid = ref$2.slidesGrid;\r\n var renderSlide = ref$2.renderSlide;\r\n var previousOffset = ref$2.offset;\r\n swiper.updateActiveIndex();\r\n var activeIndex = swiper.activeIndex || 0;\r\n\r\n var offsetProp;\r\n if (swiper.rtlTranslate) { offsetProp = 'right'; }\r\n else { offsetProp = swiper.isHorizontal() ? 'left' : 'top'; }\r\n\r\n var slidesAfter;\r\n var slidesBefore;\r\n if (centeredSlides) {\r\n slidesAfter = Math.floor(slidesPerView / 2) + slidesPerGroup + addSlidesBefore;\r\n slidesBefore = Math.floor(slidesPerView / 2) + slidesPerGroup + addSlidesAfter;\r\n } else {\r\n slidesAfter = slidesPerView + (slidesPerGroup - 1) + addSlidesBefore;\r\n slidesBefore = slidesPerGroup + addSlidesAfter;\r\n }\r\n var from = Math.max((activeIndex || 0) - slidesBefore, 0);\r\n var to = Math.min((activeIndex || 0) + slidesAfter, slides.length - 1);\r\n var offset = (swiper.slidesGrid[from] || 0) - (swiper.slidesGrid[0] || 0);\r\n\r\n Utils.extend(swiper.virtual, {\r\n from: from,\r\n to: to,\r\n offset: offset,\r\n slidesGrid: swiper.slidesGrid,\r\n });\r\n\r\n function onRendered() {\r\n swiper.updateSlides();\r\n swiper.updateProgress();\r\n swiper.updateSlidesClasses();\r\n if (swiper.lazy && swiper.params.lazy.enabled) {\r\n swiper.lazy.load();\r\n }\r\n }\r\n\r\n if (previousFrom === from && previousTo === to && !force) {\r\n if (swiper.slidesGrid !== previousSlidesGrid && offset !== previousOffset) {\r\n swiper.slides.css(offsetProp, (offset + \"px\"));\r\n }\r\n swiper.updateProgress();\r\n return;\r\n }\r\n if (swiper.params.virtual.renderExternal) {\r\n swiper.params.virtual.renderExternal.call(swiper, {\r\n offset: offset,\r\n from: from,\r\n to: to,\r\n slides: (function getSlides() {\r\n var slidesToRender = [];\r\n for (var i = from; i <= to; i += 1) {\r\n slidesToRender.push(slides[i]);\r\n }\r\n return slidesToRender;\r\n }()),\r\n });\r\n onRendered();\r\n return;\r\n }\r\n var prependIndexes = [];\r\n var appendIndexes = [];\r\n if (force) {\r\n swiper.$wrapperEl.find((\".\" + (swiper.params.slideClass))).remove();\r\n } else {\r\n for (var i = previousFrom; i <= previousTo; i += 1) {\r\n if (i < from || i > to) {\r\n swiper.$wrapperEl.find((\".\" + (swiper.params.slideClass) + \"[data-swiper-slide-index=\\\"\" + i + \"\\\"]\")).remove();\r\n }\r\n }\r\n }\r\n for (var i$1 = 0; i$1 < slides.length; i$1 += 1) {\r\n if (i$1 >= from && i$1 <= to) {\r\n if (typeof previousTo === 'undefined' || force) {\r\n appendIndexes.push(i$1);\r\n } else {\r\n if (i$1 > previousTo) { appendIndexes.push(i$1); }\r\n if (i$1 < previousFrom) { prependIndexes.push(i$1); }\r\n }\r\n }\r\n }\r\n appendIndexes.forEach(function (index) {\r\n swiper.$wrapperEl.append(renderSlide(slides[index], index));\r\n });\r\n prependIndexes.sort(function (a, b) { return a < b; }).forEach(function (index) {\r\n swiper.$wrapperEl.prepend(renderSlide(slides[index], index));\r\n });\r\n swiper.$wrapperEl.children('.swiper-slide').css(offsetProp, (offset + \"px\"));\r\n onRendered();\r\n },\r\n renderSlide: function renderSlide(slide, index) {\r\n var swiper = this;\r\n var params = swiper.params.virtual;\r\n if (params.cache && swiper.virtual.cache[index]) {\r\n return swiper.virtual.cache[index];\r\n }\r\n var $slideEl = params.renderSlide\r\n ? $(params.renderSlide.call(swiper, slide, index))\r\n : $((\"\" + slide + \"\"));\r\n if (!$slideEl.attr('data-swiper-slide-index')) { $slideEl.attr('data-swiper-slide-index', index); }\r\n if (params.cache) { swiper.virtual.cache[index] = $slideEl; }\r\n return $slideEl;\r\n },\r\n appendSlide: function appendSlide(slide) {\r\n var swiper = this;\r\n swiper.virtual.slides.push(slide);\r\n swiper.virtual.update(true);\r\n },\r\n prependSlide: function prependSlide(slide) {\r\n var swiper = this;\r\n swiper.virtual.slides.unshift(slide);\r\n if (swiper.params.virtual.cache) {\r\n var cache = swiper.virtual.cache;\r\n var newCache = {};\r\n Object.keys(cache).forEach(function (cachedIndex) {\r\n newCache[cachedIndex + 1] = cache[cachedIndex];\r\n });\r\n swiper.virtual.cache = newCache;\r\n }\r\n swiper.virtual.update(true);\r\n swiper.slideNext(0);\r\n },\r\n };\r\n\r\n var Virtual$1 = {\r\n name: 'virtual',\r\n params: {\r\n virtual: {\r\n enabled: false,\r\n slides: [],\r\n cache: true,\r\n renderSlide: null,\r\n renderExternal: null,\r\n addSlidesBefore: 0,\r\n addSlidesAfter: 0,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n virtual: {\r\n update: Virtual.update.bind(swiper),\r\n appendSlide: Virtual.appendSlide.bind(swiper),\r\n prependSlide: Virtual.prependSlide.bind(swiper),\r\n renderSlide: Virtual.renderSlide.bind(swiper),\r\n slides: swiper.params.virtual.slides,\r\n cache: {},\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (!swiper.params.virtual.enabled) { return; }\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"virtual\"));\r\n var overwriteParams = {\r\n watchSlidesProgress: true,\r\n };\r\n Utils.extend(swiper.params, overwriteParams);\r\n Utils.extend(swiper.originalParams, overwriteParams);\r\n\r\n swiper.virtual.update();\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (!swiper.params.virtual.enabled) { return; }\r\n swiper.virtual.update();\r\n },\r\n },\r\n };\r\n\r\n var Keyboard = {\r\n handle: function handle(event) {\r\n var swiper = this;\r\n var rtl = swiper.rtlTranslate;\r\n var e = event;\r\n if (e.originalEvent) { e = e.originalEvent; } // jquery fix\r\n var kc = e.keyCode || e.charCode;\r\n // Directions locks\r\n if (!swiper.allowSlideNext && ((swiper.isHorizontal() && kc === 39) || (swiper.isVertical() && kc === 40))) {\r\n return false;\r\n }\r\n if (!swiper.allowSlidePrev && ((swiper.isHorizontal() && kc === 37) || (swiper.isVertical() && kc === 38))) {\r\n return false;\r\n }\r\n if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) {\r\n return undefined;\r\n }\r\n if (doc.activeElement && doc.activeElement.nodeName && (doc.activeElement.nodeName.toLowerCase() === 'input' || doc.activeElement.nodeName.toLowerCase() === 'textarea')) {\r\n return undefined;\r\n }\r\n if (swiper.params.keyboard.onlyInViewport && (kc === 37 || kc === 39 || kc === 38 || kc === 40)) {\r\n var inView = false;\r\n // Check that swiper should be inside of visible area of window\r\n if (swiper.$el.parents((\".\" + (swiper.params.slideClass))).length > 0 && swiper.$el.parents((\".\" + (swiper.params.slideActiveClass))).length === 0) {\r\n return undefined;\r\n }\r\n var windowWidth = win.innerWidth;\r\n var windowHeight = win.innerHeight;\r\n var swiperOffset = swiper.$el.offset();\r\n if (rtl) { swiperOffset.left -= swiper.$el[0].scrollLeft; }\r\n var swiperCoord = [\r\n [swiperOffset.left, swiperOffset.top],\r\n [swiperOffset.left + swiper.width, swiperOffset.top],\r\n [swiperOffset.left, swiperOffset.top + swiper.height],\r\n [swiperOffset.left + swiper.width, swiperOffset.top + swiper.height] ];\r\n for (var i = 0; i < swiperCoord.length; i += 1) {\r\n var point = swiperCoord[i];\r\n if (\r\n point[0] >= 0 && point[0] <= windowWidth\r\n && point[1] >= 0 && point[1] <= windowHeight\r\n ) {\r\n inView = true;\r\n }\r\n }\r\n if (!inView) { return undefined; }\r\n }\r\n if (swiper.isHorizontal()) {\r\n if (kc === 37 || kc === 39) {\r\n if (e.preventDefault) { e.preventDefault(); }\r\n else { e.returnValue = false; }\r\n }\r\n if ((kc === 39 && !rtl) || (kc === 37 && rtl)) { swiper.slideNext(); }\r\n if ((kc === 37 && !rtl) || (kc === 39 && rtl)) { swiper.slidePrev(); }\r\n } else {\r\n if (kc === 38 || kc === 40) {\r\n if (e.preventDefault) { e.preventDefault(); }\r\n else { e.returnValue = false; }\r\n }\r\n if (kc === 40) { swiper.slideNext(); }\r\n if (kc === 38) { swiper.slidePrev(); }\r\n }\r\n swiper.emit('keyPress', kc);\r\n return undefined;\r\n },\r\n enable: function enable() {\r\n var swiper = this;\r\n if (swiper.keyboard.enabled) { return; }\r\n $(doc).on('keydown', swiper.keyboard.handle);\r\n swiper.keyboard.enabled = true;\r\n },\r\n disable: function disable() {\r\n var swiper = this;\r\n if (!swiper.keyboard.enabled) { return; }\r\n $(doc).off('keydown', swiper.keyboard.handle);\r\n swiper.keyboard.enabled = false;\r\n },\r\n };\r\n\r\n var Keyboard$1 = {\r\n name: 'keyboard',\r\n params: {\r\n keyboard: {\r\n enabled: false,\r\n onlyInViewport: true,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n keyboard: {\r\n enabled: false,\r\n enable: Keyboard.enable.bind(swiper),\r\n disable: Keyboard.disable.bind(swiper),\r\n handle: Keyboard.handle.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.keyboard.enabled) {\r\n swiper.keyboard.enable();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.keyboard.enabled) {\r\n swiper.keyboard.disable();\r\n }\r\n },\r\n },\r\n };\r\n\r\n function isEventSupported() {\r\n var eventName = 'onwheel';\r\n var isSupported = eventName in doc;\r\n\r\n if (!isSupported) {\r\n var element = doc.createElement('div');\r\n element.setAttribute(eventName, 'return;');\r\n isSupported = typeof element[eventName] === 'function';\r\n }\r\n\r\n if (!isSupported\r\n && doc.implementation\r\n && doc.implementation.hasFeature\r\n // always returns true in newer browsers as per the standard.\r\n // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature\r\n && doc.implementation.hasFeature('', '') !== true\r\n ) {\r\n // This is the only way to test support for the `wheel` event in IE9+.\r\n isSupported = doc.implementation.hasFeature('Events.wheel', '3.0');\r\n }\r\n\r\n return isSupported;\r\n }\r\n var Mousewheel = {\r\n lastScrollTime: Utils.now(),\r\n event: (function getEvent() {\r\n if (win.navigator.userAgent.indexOf('firefox') > -1) { return 'DOMMouseScroll'; }\r\n return isEventSupported() ? 'wheel' : 'mousewheel';\r\n }()),\r\n normalize: function normalize(e) {\r\n // Reasonable defaults\r\n var PIXEL_STEP = 10;\r\n var LINE_HEIGHT = 40;\r\n var PAGE_HEIGHT = 800;\r\n\r\n var sX = 0;\r\n var sY = 0; // spinX, spinY\r\n var pX = 0;\r\n var pY = 0; // pixelX, pixelY\r\n\r\n // Legacy\r\n if ('detail' in e) {\r\n sY = e.detail;\r\n }\r\n if ('wheelDelta' in e) {\r\n sY = -e.wheelDelta / 120;\r\n }\r\n if ('wheelDeltaY' in e) {\r\n sY = -e.wheelDeltaY / 120;\r\n }\r\n if ('wheelDeltaX' in e) {\r\n sX = -e.wheelDeltaX / 120;\r\n }\r\n\r\n // side scrolling on FF with DOMMouseScroll\r\n if ('axis' in e && e.axis === e.HORIZONTAL_AXIS) {\r\n sX = sY;\r\n sY = 0;\r\n }\r\n\r\n pX = sX * PIXEL_STEP;\r\n pY = sY * PIXEL_STEP;\r\n\r\n if ('deltaY' in e) {\r\n pY = e.deltaY;\r\n }\r\n if ('deltaX' in e) {\r\n pX = e.deltaX;\r\n }\r\n\r\n if ((pX || pY) && e.deltaMode) {\r\n if (e.deltaMode === 1) { // delta in LINE units\r\n pX *= LINE_HEIGHT;\r\n pY *= LINE_HEIGHT;\r\n } else { // delta in PAGE units\r\n pX *= PAGE_HEIGHT;\r\n pY *= PAGE_HEIGHT;\r\n }\r\n }\r\n\r\n // Fall-back if spin cannot be determined\r\n if (pX && !sX) {\r\n sX = (pX < 1) ? -1 : 1;\r\n }\r\n if (pY && !sY) {\r\n sY = (pY < 1) ? -1 : 1;\r\n }\r\n\r\n return {\r\n spinX: sX,\r\n spinY: sY,\r\n pixelX: pX,\r\n pixelY: pY,\r\n };\r\n },\r\n handleMouseEnter: function handleMouseEnter() {\r\n var swiper = this;\r\n swiper.mouseEntered = true;\r\n },\r\n handleMouseLeave: function handleMouseLeave() {\r\n var swiper = this;\r\n swiper.mouseEntered = false;\r\n },\r\n handle: function handle(event) {\r\n var e = event;\r\n var swiper = this;\r\n var params = swiper.params.mousewheel;\r\n\r\n if (!swiper.mouseEntered && !params.releaseOnEdges) { return true; }\r\n\r\n if (e.originalEvent) { e = e.originalEvent; } // jquery fix\r\n var delta = 0;\r\n var rtlFactor = swiper.rtlTranslate ? -1 : 1;\r\n\r\n var data = Mousewheel.normalize(e);\r\n\r\n if (params.forceToAxis) {\r\n if (swiper.isHorizontal()) {\r\n if (Math.abs(data.pixelX) > Math.abs(data.pixelY)) { delta = data.pixelX * rtlFactor; }\r\n else { return true; }\r\n } else if (Math.abs(data.pixelY) > Math.abs(data.pixelX)) { delta = data.pixelY; }\r\n else { return true; }\r\n } else {\r\n delta = Math.abs(data.pixelX) > Math.abs(data.pixelY) ? -data.pixelX * rtlFactor : -data.pixelY;\r\n }\r\n\r\n if (delta === 0) { return true; }\r\n\r\n if (params.invert) { delta = -delta; }\r\n\r\n if (!swiper.params.freeMode) {\r\n if (Utils.now() - swiper.mousewheel.lastScrollTime > 60) {\r\n if (delta < 0) {\r\n if ((!swiper.isEnd || swiper.params.loop) && !swiper.animating) {\r\n swiper.slideNext();\r\n swiper.emit('scroll', e);\r\n } else if (params.releaseOnEdges) { return true; }\r\n } else if ((!swiper.isBeginning || swiper.params.loop) && !swiper.animating) {\r\n swiper.slidePrev();\r\n swiper.emit('scroll', e);\r\n } else if (params.releaseOnEdges) { return true; }\r\n }\r\n swiper.mousewheel.lastScrollTime = (new win.Date()).getTime();\r\n } else {\r\n // Freemode or scrollContainer:\r\n if (swiper.params.loop) {\r\n swiper.loopFix();\r\n }\r\n var position = swiper.getTranslate() + (delta * params.sensitivity);\r\n var wasBeginning = swiper.isBeginning;\r\n var wasEnd = swiper.isEnd;\r\n\r\n if (position >= swiper.minTranslate()) { position = swiper.minTranslate(); }\r\n if (position <= swiper.maxTranslate()) { position = swiper.maxTranslate(); }\r\n\r\n swiper.setTransition(0);\r\n swiper.setTranslate(position);\r\n swiper.updateProgress();\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n\r\n if ((!wasBeginning && swiper.isBeginning) || (!wasEnd && swiper.isEnd)) {\r\n swiper.updateSlidesClasses();\r\n }\r\n\r\n if (swiper.params.freeModeSticky) {\r\n clearTimeout(swiper.mousewheel.timeout);\r\n swiper.mousewheel.timeout = Utils.nextTick(function () {\r\n swiper.slideToClosest();\r\n }, 300);\r\n }\r\n // Emit event\r\n swiper.emit('scroll', e);\r\n\r\n // Stop autoplay\r\n if (swiper.params.autoplay && swiper.params.autoplayDisableOnInteraction) { swiper.autoplay.stop(); }\r\n // Return page scroll on edge positions\r\n if (position === swiper.minTranslate() || position === swiper.maxTranslate()) { return true; }\r\n }\r\n\r\n if (e.preventDefault) { e.preventDefault(); }\r\n else { e.returnValue = false; }\r\n return false;\r\n },\r\n enable: function enable() {\r\n var swiper = this;\r\n if (!Mousewheel.event) { return false; }\r\n if (swiper.mousewheel.enabled) { return false; }\r\n var target = swiper.$el;\r\n if (swiper.params.mousewheel.eventsTarged !== 'container') {\r\n target = $(swiper.params.mousewheel.eventsTarged);\r\n }\r\n target.on('mouseenter', swiper.mousewheel.handleMouseEnter);\r\n target.on('mouseleave', swiper.mousewheel.handleMouseLeave);\r\n target.on(Mousewheel.event, swiper.mousewheel.handle);\r\n swiper.mousewheel.enabled = true;\r\n return true;\r\n },\r\n disable: function disable() {\r\n var swiper = this;\r\n if (!Mousewheel.event) { return false; }\r\n if (!swiper.mousewheel.enabled) { return false; }\r\n var target = swiper.$el;\r\n if (swiper.params.mousewheel.eventsTarged !== 'container') {\r\n target = $(swiper.params.mousewheel.eventsTarged);\r\n }\r\n target.off(Mousewheel.event, swiper.mousewheel.handle);\r\n swiper.mousewheel.enabled = false;\r\n return true;\r\n },\r\n };\r\n\r\n var Mousewheel$1 = {\r\n name: 'mousewheel',\r\n params: {\r\n mousewheel: {\r\n enabled: false,\r\n releaseOnEdges: false,\r\n invert: false,\r\n forceToAxis: false,\r\n sensitivity: 1,\r\n eventsTarged: 'container',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n mousewheel: {\r\n enabled: false,\r\n enable: Mousewheel.enable.bind(swiper),\r\n disable: Mousewheel.disable.bind(swiper),\r\n handle: Mousewheel.handle.bind(swiper),\r\n handleMouseEnter: Mousewheel.handleMouseEnter.bind(swiper),\r\n handleMouseLeave: Mousewheel.handleMouseLeave.bind(swiper),\r\n lastScrollTime: Utils.now(),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.mousewheel.enabled) { swiper.mousewheel.enable(); }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.mousewheel.enabled) { swiper.mousewheel.disable(); }\r\n },\r\n },\r\n };\r\n\r\n var Navigation = {\r\n update: function update() {\r\n // Update Navigation Buttons\r\n var swiper = this;\r\n var params = swiper.params.navigation;\r\n\r\n if (swiper.params.loop) { return; }\r\n var ref = swiper.navigation;\r\n var $nextEl = ref.$nextEl;\r\n var $prevEl = ref.$prevEl;\r\n\r\n if ($prevEl && $prevEl.length > 0) {\r\n if (swiper.isBeginning) {\r\n $prevEl.addClass(params.disabledClass);\r\n } else {\r\n $prevEl.removeClass(params.disabledClass);\r\n }\r\n $prevEl[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);\r\n }\r\n if ($nextEl && $nextEl.length > 0) {\r\n if (swiper.isEnd) {\r\n $nextEl.addClass(params.disabledClass);\r\n } else {\r\n $nextEl.removeClass(params.disabledClass);\r\n }\r\n $nextEl[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n var params = swiper.params.navigation;\r\n if (!(params.nextEl || params.prevEl)) { return; }\r\n\r\n var $nextEl;\r\n var $prevEl;\r\n if (params.nextEl) {\r\n $nextEl = $(params.nextEl);\r\n if (\r\n swiper.params.uniqueNavElements\r\n && typeof params.nextEl === 'string'\r\n && $nextEl.length > 1\r\n && swiper.$el.find(params.nextEl).length === 1\r\n ) {\r\n $nextEl = swiper.$el.find(params.nextEl);\r\n }\r\n }\r\n if (params.prevEl) {\r\n $prevEl = $(params.prevEl);\r\n if (\r\n swiper.params.uniqueNavElements\r\n && typeof params.prevEl === 'string'\r\n && $prevEl.length > 1\r\n && swiper.$el.find(params.prevEl).length === 1\r\n ) {\r\n $prevEl = swiper.$el.find(params.prevEl);\r\n }\r\n }\r\n\r\n if ($nextEl && $nextEl.length > 0) {\r\n $nextEl.on('click', function (e) {\r\n e.preventDefault();\r\n if (swiper.isEnd && !swiper.params.loop) { return; }\r\n swiper.slideNext();\r\n });\r\n }\r\n if ($prevEl && $prevEl.length > 0) {\r\n $prevEl.on('click', function (e) {\r\n e.preventDefault();\r\n if (swiper.isBeginning && !swiper.params.loop) { return; }\r\n swiper.slidePrev();\r\n });\r\n }\r\n\r\n Utils.extend(swiper.navigation, {\r\n $nextEl: $nextEl,\r\n nextEl: $nextEl && $nextEl[0],\r\n $prevEl: $prevEl,\r\n prevEl: $prevEl && $prevEl[0],\r\n });\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n var ref = swiper.navigation;\r\n var $nextEl = ref.$nextEl;\r\n var $prevEl = ref.$prevEl;\r\n if ($nextEl && $nextEl.length) {\r\n $nextEl.off('click');\r\n $nextEl.removeClass(swiper.params.navigation.disabledClass);\r\n }\r\n if ($prevEl && $prevEl.length) {\r\n $prevEl.off('click');\r\n $prevEl.removeClass(swiper.params.navigation.disabledClass);\r\n }\r\n },\r\n };\r\n\r\n var Navigation$1 = {\r\n name: 'navigation',\r\n params: {\r\n navigation: {\r\n nextEl: null,\r\n prevEl: null,\r\n\r\n hideOnClick: false,\r\n disabledClass: 'swiper-button-disabled',\r\n hiddenClass: 'swiper-button-hidden',\r\n lockClass: 'swiper-button-lock',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n navigation: {\r\n init: Navigation.init.bind(swiper),\r\n update: Navigation.update.bind(swiper),\r\n destroy: Navigation.destroy.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n swiper.navigation.init();\r\n swiper.navigation.update();\r\n },\r\n toEdge: function toEdge() {\r\n var swiper = this;\r\n swiper.navigation.update();\r\n },\r\n fromEdge: function fromEdge() {\r\n var swiper = this;\r\n swiper.navigation.update();\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.navigation.destroy();\r\n },\r\n click: function click(e) {\r\n var swiper = this;\r\n var ref = swiper.navigation;\r\n var $nextEl = ref.$nextEl;\r\n var $prevEl = ref.$prevEl;\r\n if (\r\n swiper.params.navigation.hideOnClick\r\n && !$(e.target).is($prevEl)\r\n && !$(e.target).is($nextEl)\r\n ) {\r\n if ($nextEl) { $nextEl.toggleClass(swiper.params.navigation.hiddenClass); }\r\n if ($prevEl) { $prevEl.toggleClass(swiper.params.navigation.hiddenClass); }\r\n }\r\n },\r\n },\r\n };\r\n\r\n var Pagination = {\r\n update: function update() {\r\n // Render || Update Pagination bullets/items\r\n var swiper = this;\r\n var rtl = swiper.rtl;\r\n var params = swiper.params.pagination;\r\n if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) { return; }\r\n var slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\r\n var $el = swiper.pagination.$el;\r\n // Current/Total\r\n var current;\r\n var total = swiper.params.loop ? Math.ceil((slidesLength - (swiper.loopedSlides * 2)) / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\r\n if (swiper.params.loop) {\r\n current = Math.ceil((swiper.activeIndex - swiper.loopedSlides) / swiper.params.slidesPerGroup);\r\n if (current > slidesLength - 1 - (swiper.loopedSlides * 2)) {\r\n current -= (slidesLength - (swiper.loopedSlides * 2));\r\n }\r\n if (current > total - 1) { current -= total; }\r\n if (current < 0 && swiper.params.paginationType !== 'bullets') { current = total + current; }\r\n } else if (typeof swiper.snapIndex !== 'undefined') {\r\n current = swiper.snapIndex;\r\n } else {\r\n current = swiper.activeIndex || 0;\r\n }\r\n // Types\r\n if (params.type === 'bullets' && swiper.pagination.bullets && swiper.pagination.bullets.length > 0) {\r\n var bullets = swiper.pagination.bullets;\r\n var firstIndex;\r\n var lastIndex;\r\n var midIndex;\r\n if (params.dynamicBullets) {\r\n swiper.pagination.bulletSize = bullets.eq(0)[swiper.isHorizontal() ? 'outerWidth' : 'outerHeight'](true);\r\n $el.css(swiper.isHorizontal() ? 'width' : 'height', ((swiper.pagination.bulletSize * (params.dynamicMainBullets + 4)) + \"px\"));\r\n if (params.dynamicMainBullets > 1 && swiper.previousIndex !== undefined) {\r\n swiper.pagination.dynamicBulletIndex += (current - swiper.previousIndex);\r\n if (swiper.pagination.dynamicBulletIndex > (params.dynamicMainBullets - 1)) {\r\n swiper.pagination.dynamicBulletIndex = params.dynamicMainBullets - 1;\r\n } else if (swiper.pagination.dynamicBulletIndex < 0) {\r\n swiper.pagination.dynamicBulletIndex = 0;\r\n }\r\n }\r\n firstIndex = current - swiper.pagination.dynamicBulletIndex;\r\n lastIndex = firstIndex + (Math.min(bullets.length, params.dynamicMainBullets) - 1);\r\n midIndex = (lastIndex + firstIndex) / 2;\r\n }\r\n bullets.removeClass(((params.bulletActiveClass) + \" \" + (params.bulletActiveClass) + \"-next \" + (params.bulletActiveClass) + \"-next-next \" + (params.bulletActiveClass) + \"-prev \" + (params.bulletActiveClass) + \"-prev-prev \" + (params.bulletActiveClass) + \"-main\"));\r\n if ($el.length > 1) {\r\n bullets.each(function (index, bullet) {\r\n var $bullet = $(bullet);\r\n var bulletIndex = $bullet.index();\r\n if (bulletIndex === current) {\r\n $bullet.addClass(params.bulletActiveClass);\r\n }\r\n if (params.dynamicBullets) {\r\n if (bulletIndex >= firstIndex && bulletIndex <= lastIndex) {\r\n $bullet.addClass(((params.bulletActiveClass) + \"-main\"));\r\n }\r\n if (bulletIndex === firstIndex) {\r\n $bullet\r\n .prev()\r\n .addClass(((params.bulletActiveClass) + \"-prev\"))\r\n .prev()\r\n .addClass(((params.bulletActiveClass) + \"-prev-prev\"));\r\n }\r\n if (bulletIndex === lastIndex) {\r\n $bullet\r\n .next()\r\n .addClass(((params.bulletActiveClass) + \"-next\"))\r\n .next()\r\n .addClass(((params.bulletActiveClass) + \"-next-next\"));\r\n }\r\n }\r\n });\r\n } else {\r\n var $bullet = bullets.eq(current);\r\n $bullet.addClass(params.bulletActiveClass);\r\n if (params.dynamicBullets) {\r\n var $firstDisplayedBullet = bullets.eq(firstIndex);\r\n var $lastDisplayedBullet = bullets.eq(lastIndex);\r\n for (var i = firstIndex; i <= lastIndex; i += 1) {\r\n bullets.eq(i).addClass(((params.bulletActiveClass) + \"-main\"));\r\n }\r\n $firstDisplayedBullet\r\n .prev()\r\n .addClass(((params.bulletActiveClass) + \"-prev\"))\r\n .prev()\r\n .addClass(((params.bulletActiveClass) + \"-prev-prev\"));\r\n $lastDisplayedBullet\r\n .next()\r\n .addClass(((params.bulletActiveClass) + \"-next\"))\r\n .next()\r\n .addClass(((params.bulletActiveClass) + \"-next-next\"));\r\n }\r\n }\r\n if (params.dynamicBullets) {\r\n var dynamicBulletsLength = Math.min(bullets.length, params.dynamicMainBullets + 4);\r\n var bulletsOffset = (((swiper.pagination.bulletSize * dynamicBulletsLength) - (swiper.pagination.bulletSize)) / 2) - (midIndex * swiper.pagination.bulletSize);\r\n var offsetProp = rtl ? 'right' : 'left';\r\n bullets.css(swiper.isHorizontal() ? offsetProp : 'top', (bulletsOffset + \"px\"));\r\n }\r\n }\r\n if (params.type === 'fraction') {\r\n $el.find((\".\" + (params.currentClass))).text(params.formatFractionCurrent(current + 1));\r\n $el.find((\".\" + (params.totalClass))).text(params.formatFractionTotal(total));\r\n }\r\n if (params.type === 'progressbar') {\r\n var progressbarDirection;\r\n if (params.progressbarOpposite) {\r\n progressbarDirection = swiper.isHorizontal() ? 'vertical' : 'horizontal';\r\n } else {\r\n progressbarDirection = swiper.isHorizontal() ? 'horizontal' : 'vertical';\r\n }\r\n var scale = (current + 1) / total;\r\n var scaleX = 1;\r\n var scaleY = 1;\r\n if (progressbarDirection === 'horizontal') {\r\n scaleX = scale;\r\n } else {\r\n scaleY = scale;\r\n }\r\n $el.find((\".\" + (params.progressbarFillClass))).transform((\"translate3d(0,0,0) scaleX(\" + scaleX + \") scaleY(\" + scaleY + \")\")).transition(swiper.params.speed);\r\n }\r\n if (params.type === 'custom' && params.renderCustom) {\r\n $el.html(params.renderCustom(swiper, current + 1, total));\r\n swiper.emit('paginationRender', swiper, $el[0]);\r\n } else {\r\n swiper.emit('paginationUpdate', swiper, $el[0]);\r\n }\r\n $el[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);\r\n },\r\n render: function render() {\r\n // Render Container\r\n var swiper = this;\r\n var params = swiper.params.pagination;\r\n if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) { return; }\r\n var slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\r\n\r\n var $el = swiper.pagination.$el;\r\n var paginationHTML = '';\r\n if (params.type === 'bullets') {\r\n var numberOfBullets = swiper.params.loop ? Math.ceil((slidesLength - (swiper.loopedSlides * 2)) / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\r\n for (var i = 0; i < numberOfBullets; i += 1) {\r\n if (params.renderBullet) {\r\n paginationHTML += params.renderBullet.call(swiper, i, params.bulletClass);\r\n } else {\r\n paginationHTML += \"<\" + (params.bulletElement) + \" class=\\\"\" + (params.bulletClass) + \"\\\">\" + (params.bulletElement) + \">\";\r\n }\r\n }\r\n $el.html(paginationHTML);\r\n swiper.pagination.bullets = $el.find((\".\" + (params.bulletClass)));\r\n }\r\n if (params.type === 'fraction') {\r\n if (params.renderFraction) {\r\n paginationHTML = params.renderFraction.call(swiper, params.currentClass, params.totalClass);\r\n } else {\r\n paginationHTML = \"\"\r\n + ' / '\r\n + \"\";\r\n }\r\n $el.html(paginationHTML);\r\n }\r\n if (params.type === 'progressbar') {\r\n if (params.renderProgressbar) {\r\n paginationHTML = params.renderProgressbar.call(swiper, params.progressbarFillClass);\r\n } else {\r\n paginationHTML = \"\";\r\n }\r\n $el.html(paginationHTML);\r\n }\r\n if (params.type !== 'custom') {\r\n swiper.emit('paginationRender', swiper.pagination.$el[0]);\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n var params = swiper.params.pagination;\r\n if (!params.el) { return; }\r\n\r\n var $el = $(params.el);\r\n if ($el.length === 0) { return; }\r\n\r\n if (\r\n swiper.params.uniqueNavElements\r\n && typeof params.el === 'string'\r\n && $el.length > 1\r\n && swiper.$el.find(params.el).length === 1\r\n ) {\r\n $el = swiper.$el.find(params.el);\r\n }\r\n\r\n if (params.type === 'bullets' && params.clickable) {\r\n $el.addClass(params.clickableClass);\r\n }\r\n\r\n $el.addClass(params.modifierClass + params.type);\r\n\r\n if (params.type === 'bullets' && params.dynamicBullets) {\r\n $el.addClass((\"\" + (params.modifierClass) + (params.type) + \"-dynamic\"));\r\n swiper.pagination.dynamicBulletIndex = 0;\r\n if (params.dynamicMainBullets < 1) {\r\n params.dynamicMainBullets = 1;\r\n }\r\n }\r\n if (params.type === 'progressbar' && params.progressbarOpposite) {\r\n $el.addClass(params.progressbarOppositeClass);\r\n }\r\n\r\n if (params.clickable) {\r\n $el.on('click', (\".\" + (params.bulletClass)), function onClick(e) {\r\n e.preventDefault();\r\n var index = $(this).index() * swiper.params.slidesPerGroup;\r\n if (swiper.params.loop) { index += swiper.loopedSlides; }\r\n swiper.slideTo(index);\r\n });\r\n }\r\n\r\n Utils.extend(swiper.pagination, {\r\n $el: $el,\r\n el: $el[0],\r\n });\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n var params = swiper.params.pagination;\r\n if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) { return; }\r\n var $el = swiper.pagination.$el;\r\n\r\n $el.removeClass(params.hiddenClass);\r\n $el.removeClass(params.modifierClass + params.type);\r\n if (swiper.pagination.bullets) { swiper.pagination.bullets.removeClass(params.bulletActiveClass); }\r\n if (params.clickable) {\r\n $el.off('click', (\".\" + (params.bulletClass)));\r\n }\r\n },\r\n };\r\n\r\n var Pagination$1 = {\r\n name: 'pagination',\r\n params: {\r\n pagination: {\r\n el: null,\r\n bulletElement: 'span',\r\n clickable: false,\r\n hideOnClick: false,\r\n renderBullet: null,\r\n renderProgressbar: null,\r\n renderFraction: null,\r\n renderCustom: null,\r\n progressbarOpposite: false,\r\n type: 'bullets', // 'bullets' or 'progressbar' or 'fraction' or 'custom'\r\n dynamicBullets: false,\r\n dynamicMainBullets: 1,\r\n formatFractionCurrent: function (number) { return number; },\r\n formatFractionTotal: function (number) { return number; },\r\n bulletClass: 'swiper-pagination-bullet',\r\n bulletActiveClass: 'swiper-pagination-bullet-active',\r\n modifierClass: 'swiper-pagination-', // NEW\r\n currentClass: 'swiper-pagination-current',\r\n totalClass: 'swiper-pagination-total',\r\n hiddenClass: 'swiper-pagination-hidden',\r\n progressbarFillClass: 'swiper-pagination-progressbar-fill',\r\n progressbarOppositeClass: 'swiper-pagination-progressbar-opposite',\r\n clickableClass: 'swiper-pagination-clickable', // NEW\r\n lockClass: 'swiper-pagination-lock',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n pagination: {\r\n init: Pagination.init.bind(swiper),\r\n render: Pagination.render.bind(swiper),\r\n update: Pagination.update.bind(swiper),\r\n destroy: Pagination.destroy.bind(swiper),\r\n dynamicBulletIndex: 0,\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n swiper.pagination.init();\r\n swiper.pagination.render();\r\n swiper.pagination.update();\r\n },\r\n activeIndexChange: function activeIndexChange() {\r\n var swiper = this;\r\n if (swiper.params.loop) {\r\n swiper.pagination.update();\r\n } else if (typeof swiper.snapIndex === 'undefined') {\r\n swiper.pagination.update();\r\n }\r\n },\r\n snapIndexChange: function snapIndexChange() {\r\n var swiper = this;\r\n if (!swiper.params.loop) {\r\n swiper.pagination.update();\r\n }\r\n },\r\n slidesLengthChange: function slidesLengthChange() {\r\n var swiper = this;\r\n if (swiper.params.loop) {\r\n swiper.pagination.render();\r\n swiper.pagination.update();\r\n }\r\n },\r\n snapGridLengthChange: function snapGridLengthChange() {\r\n var swiper = this;\r\n if (!swiper.params.loop) {\r\n swiper.pagination.render();\r\n swiper.pagination.update();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.pagination.destroy();\r\n },\r\n click: function click(e) {\r\n var swiper = this;\r\n if (\r\n swiper.params.pagination.el\r\n && swiper.params.pagination.hideOnClick\r\n && swiper.pagination.$el.length > 0\r\n && !$(e.target).hasClass(swiper.params.pagination.bulletClass)\r\n ) {\r\n swiper.pagination.$el.toggleClass(swiper.params.pagination.hiddenClass);\r\n }\r\n },\r\n },\r\n };\r\n\r\n var Scrollbar = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) { return; }\r\n var scrollbar = swiper.scrollbar;\r\n var rtl = swiper.rtlTranslate;\r\n var progress = swiper.progress;\r\n var dragSize = scrollbar.dragSize;\r\n var trackSize = scrollbar.trackSize;\r\n var $dragEl = scrollbar.$dragEl;\r\n var $el = scrollbar.$el;\r\n var params = swiper.params.scrollbar;\r\n\r\n var newSize = dragSize;\r\n var newPos = (trackSize - dragSize) * progress;\r\n if (rtl) {\r\n newPos = -newPos;\r\n if (newPos > 0) {\r\n newSize = dragSize - newPos;\r\n newPos = 0;\r\n } else if (-newPos + dragSize > trackSize) {\r\n newSize = trackSize + newPos;\r\n }\r\n } else if (newPos < 0) {\r\n newSize = dragSize + newPos;\r\n newPos = 0;\r\n } else if (newPos + dragSize > trackSize) {\r\n newSize = trackSize - newPos;\r\n }\r\n if (swiper.isHorizontal()) {\r\n if (Support.transforms3d) {\r\n $dragEl.transform((\"translate3d(\" + newPos + \"px, 0, 0)\"));\r\n } else {\r\n $dragEl.transform((\"translateX(\" + newPos + \"px)\"));\r\n }\r\n $dragEl[0].style.width = newSize + \"px\";\r\n } else {\r\n if (Support.transforms3d) {\r\n $dragEl.transform((\"translate3d(0px, \" + newPos + \"px, 0)\"));\r\n } else {\r\n $dragEl.transform((\"translateY(\" + newPos + \"px)\"));\r\n }\r\n $dragEl[0].style.height = newSize + \"px\";\r\n }\r\n if (params.hide) {\r\n clearTimeout(swiper.scrollbar.timeout);\r\n $el[0].style.opacity = 1;\r\n swiper.scrollbar.timeout = setTimeout(function () {\r\n $el[0].style.opacity = 0;\r\n $el.transition(400);\r\n }, 1000);\r\n }\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) { return; }\r\n swiper.scrollbar.$dragEl.transition(duration);\r\n },\r\n updateSize: function updateSize() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) { return; }\r\n\r\n var scrollbar = swiper.scrollbar;\r\n var $dragEl = scrollbar.$dragEl;\r\n var $el = scrollbar.$el;\r\n\r\n $dragEl[0].style.width = '';\r\n $dragEl[0].style.height = '';\r\n var trackSize = swiper.isHorizontal() ? $el[0].offsetWidth : $el[0].offsetHeight;\r\n\r\n var divider = swiper.size / swiper.virtualSize;\r\n var moveDivider = divider * (trackSize / swiper.size);\r\n var dragSize;\r\n if (swiper.params.scrollbar.dragSize === 'auto') {\r\n dragSize = trackSize * divider;\r\n } else {\r\n dragSize = parseInt(swiper.params.scrollbar.dragSize, 10);\r\n }\r\n\r\n if (swiper.isHorizontal()) {\r\n $dragEl[0].style.width = dragSize + \"px\";\r\n } else {\r\n $dragEl[0].style.height = dragSize + \"px\";\r\n }\r\n\r\n if (divider >= 1) {\r\n $el[0].style.display = 'none';\r\n } else {\r\n $el[0].style.display = '';\r\n }\r\n if (swiper.params.scrollbarHide) {\r\n $el[0].style.opacity = 0;\r\n }\r\n Utils.extend(scrollbar, {\r\n trackSize: trackSize,\r\n divider: divider,\r\n moveDivider: moveDivider,\r\n dragSize: dragSize,\r\n });\r\n scrollbar.$el[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](swiper.params.scrollbar.lockClass);\r\n },\r\n setDragPosition: function setDragPosition(e) {\r\n var swiper = this;\r\n var scrollbar = swiper.scrollbar;\r\n var rtl = swiper.rtlTranslate;\r\n var $el = scrollbar.$el;\r\n var dragSize = scrollbar.dragSize;\r\n var trackSize = scrollbar.trackSize;\r\n\r\n var pointerPosition;\r\n if (swiper.isHorizontal()) {\r\n pointerPosition = ((e.type === 'touchstart' || e.type === 'touchmove') ? e.targetTouches[0].pageX : e.pageX || e.clientX);\r\n } else {\r\n pointerPosition = ((e.type === 'touchstart' || e.type === 'touchmove') ? e.targetTouches[0].pageY : e.pageY || e.clientY);\r\n }\r\n var positionRatio;\r\n positionRatio = ((pointerPosition) - $el.offset()[swiper.isHorizontal() ? 'left' : 'top'] - (dragSize / 2)) / (trackSize - dragSize);\r\n positionRatio = Math.max(Math.min(positionRatio, 1), 0);\r\n if (rtl) {\r\n positionRatio = 1 - positionRatio;\r\n }\r\n\r\n var position = swiper.minTranslate() + ((swiper.maxTranslate() - swiper.minTranslate()) * positionRatio);\r\n\r\n swiper.updateProgress(position);\r\n swiper.setTranslate(position);\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n },\r\n onDragStart: function onDragStart(e) {\r\n var swiper = this;\r\n var params = swiper.params.scrollbar;\r\n var scrollbar = swiper.scrollbar;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var $el = scrollbar.$el;\r\n var $dragEl = scrollbar.$dragEl;\r\n swiper.scrollbar.isTouched = true;\r\n e.preventDefault();\r\n e.stopPropagation();\r\n\r\n $wrapperEl.transition(100);\r\n $dragEl.transition(100);\r\n scrollbar.setDragPosition(e);\r\n\r\n clearTimeout(swiper.scrollbar.dragTimeout);\r\n\r\n $el.transition(0);\r\n if (params.hide) {\r\n $el.css('opacity', 1);\r\n }\r\n swiper.emit('scrollbarDragStart', e);\r\n },\r\n onDragMove: function onDragMove(e) {\r\n var swiper = this;\r\n var scrollbar = swiper.scrollbar;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var $el = scrollbar.$el;\r\n var $dragEl = scrollbar.$dragEl;\r\n\r\n if (!swiper.scrollbar.isTouched) { return; }\r\n if (e.preventDefault) { e.preventDefault(); }\r\n else { e.returnValue = false; }\r\n scrollbar.setDragPosition(e);\r\n $wrapperEl.transition(0);\r\n $el.transition(0);\r\n $dragEl.transition(0);\r\n swiper.emit('scrollbarDragMove', e);\r\n },\r\n onDragEnd: function onDragEnd(e) {\r\n var swiper = this;\r\n\r\n var params = swiper.params.scrollbar;\r\n var scrollbar = swiper.scrollbar;\r\n var $el = scrollbar.$el;\r\n\r\n if (!swiper.scrollbar.isTouched) { return; }\r\n swiper.scrollbar.isTouched = false;\r\n if (params.hide) {\r\n clearTimeout(swiper.scrollbar.dragTimeout);\r\n swiper.scrollbar.dragTimeout = Utils.nextTick(function () {\r\n $el.css('opacity', 0);\r\n $el.transition(400);\r\n }, 1000);\r\n }\r\n swiper.emit('scrollbarDragEnd', e);\r\n if (params.snapOnRelease) {\r\n swiper.slideToClosest();\r\n }\r\n },\r\n enableDraggable: function enableDraggable() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el) { return; }\r\n var scrollbar = swiper.scrollbar;\r\n var touchEvents = swiper.touchEvents;\r\n var touchEventsDesktop = swiper.touchEventsDesktop;\r\n var params = swiper.params;\r\n var $el = scrollbar.$el;\r\n var target = $el[0];\r\n var activeListener = Support.passiveListener && params.passiveListeners ? { passive: false, capture: false } : false;\r\n var passiveListener = Support.passiveListener && params.passiveListeners ? { passive: true, capture: false } : false;\r\n if (!Support.touch && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n target.addEventListener(touchEventsDesktop.start, swiper.scrollbar.onDragStart, activeListener);\r\n doc.addEventListener(touchEventsDesktop.move, swiper.scrollbar.onDragMove, activeListener);\r\n doc.addEventListener(touchEventsDesktop.end, swiper.scrollbar.onDragEnd, passiveListener);\r\n } else {\r\n if (Support.touch) {\r\n target.addEventListener(touchEvents.start, swiper.scrollbar.onDragStart, activeListener);\r\n target.addEventListener(touchEvents.move, swiper.scrollbar.onDragMove, activeListener);\r\n target.addEventListener(touchEvents.end, swiper.scrollbar.onDragEnd, passiveListener);\r\n }\r\n if ((params.simulateTouch && !Device.ios && !Device.android) || (params.simulateTouch && !Support.touch && Device.ios)) {\r\n target.addEventListener('mousedown', swiper.scrollbar.onDragStart, activeListener);\r\n doc.addEventListener('mousemove', swiper.scrollbar.onDragMove, activeListener);\r\n doc.addEventListener('mouseup', swiper.scrollbar.onDragEnd, passiveListener);\r\n }\r\n }\r\n },\r\n disableDraggable: function disableDraggable() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el) { return; }\r\n var scrollbar = swiper.scrollbar;\r\n var touchEvents = swiper.touchEvents;\r\n var touchEventsDesktop = swiper.touchEventsDesktop;\r\n var params = swiper.params;\r\n var $el = scrollbar.$el;\r\n var target = $el[0];\r\n var activeListener = Support.passiveListener && params.passiveListeners ? { passive: false, capture: false } : false;\r\n var passiveListener = Support.passiveListener && params.passiveListeners ? { passive: true, capture: false } : false;\r\n if (!Support.touch && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n target.removeEventListener(touchEventsDesktop.start, swiper.scrollbar.onDragStart, activeListener);\r\n doc.removeEventListener(touchEventsDesktop.move, swiper.scrollbar.onDragMove, activeListener);\r\n doc.removeEventListener(touchEventsDesktop.end, swiper.scrollbar.onDragEnd, passiveListener);\r\n } else {\r\n if (Support.touch) {\r\n target.removeEventListener(touchEvents.start, swiper.scrollbar.onDragStart, activeListener);\r\n target.removeEventListener(touchEvents.move, swiper.scrollbar.onDragMove, activeListener);\r\n target.removeEventListener(touchEvents.end, swiper.scrollbar.onDragEnd, passiveListener);\r\n }\r\n if ((params.simulateTouch && !Device.ios && !Device.android) || (params.simulateTouch && !Support.touch && Device.ios)) {\r\n target.removeEventListener('mousedown', swiper.scrollbar.onDragStart, activeListener);\r\n doc.removeEventListener('mousemove', swiper.scrollbar.onDragMove, activeListener);\r\n doc.removeEventListener('mouseup', swiper.scrollbar.onDragEnd, passiveListener);\r\n }\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el) { return; }\r\n var scrollbar = swiper.scrollbar;\r\n var $swiperEl = swiper.$el;\r\n var params = swiper.params.scrollbar;\r\n\r\n var $el = $(params.el);\r\n if (swiper.params.uniqueNavElements && typeof params.el === 'string' && $el.length > 1 && $swiperEl.find(params.el).length === 1) {\r\n $el = $swiperEl.find(params.el);\r\n }\r\n\r\n var $dragEl = $el.find((\".\" + (swiper.params.scrollbar.dragClass)));\r\n if ($dragEl.length === 0) {\r\n $dragEl = $((\"\"));\r\n $el.append($dragEl);\r\n }\r\n\r\n Utils.extend(scrollbar, {\r\n $el: $el,\r\n el: $el[0],\r\n $dragEl: $dragEl,\r\n dragEl: $dragEl[0],\r\n });\r\n\r\n if (params.draggable) {\r\n scrollbar.enableDraggable();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.scrollbar.disableDraggable();\r\n },\r\n };\r\n\r\n var Scrollbar$1 = {\r\n name: 'scrollbar',\r\n params: {\r\n scrollbar: {\r\n el: null,\r\n dragSize: 'auto',\r\n hide: false,\r\n draggable: false,\r\n snapOnRelease: true,\r\n lockClass: 'swiper-scrollbar-lock',\r\n dragClass: 'swiper-scrollbar-drag',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n scrollbar: {\r\n init: Scrollbar.init.bind(swiper),\r\n destroy: Scrollbar.destroy.bind(swiper),\r\n updateSize: Scrollbar.updateSize.bind(swiper),\r\n setTranslate: Scrollbar.setTranslate.bind(swiper),\r\n setTransition: Scrollbar.setTransition.bind(swiper),\r\n enableDraggable: Scrollbar.enableDraggable.bind(swiper),\r\n disableDraggable: Scrollbar.disableDraggable.bind(swiper),\r\n setDragPosition: Scrollbar.setDragPosition.bind(swiper),\r\n onDragStart: Scrollbar.onDragStart.bind(swiper),\r\n onDragMove: Scrollbar.onDragMove.bind(swiper),\r\n onDragEnd: Scrollbar.onDragEnd.bind(swiper),\r\n isTouched: false,\r\n timeout: null,\r\n dragTimeout: null,\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n swiper.scrollbar.init();\r\n swiper.scrollbar.updateSize();\r\n swiper.scrollbar.setTranslate();\r\n },\r\n update: function update() {\r\n var swiper = this;\r\n swiper.scrollbar.updateSize();\r\n },\r\n resize: function resize() {\r\n var swiper = this;\r\n swiper.scrollbar.updateSize();\r\n },\r\n observerUpdate: function observerUpdate() {\r\n var swiper = this;\r\n swiper.scrollbar.updateSize();\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n swiper.scrollbar.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n swiper.scrollbar.setTransition(duration);\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.scrollbar.destroy();\r\n },\r\n },\r\n };\r\n\r\n var Parallax = {\r\n setTransform: function setTransform(el, progress) {\r\n var swiper = this;\r\n var rtl = swiper.rtl;\r\n\r\n var $el = $(el);\r\n var rtlFactor = rtl ? -1 : 1;\r\n\r\n var p = $el.attr('data-swiper-parallax') || '0';\r\n var x = $el.attr('data-swiper-parallax-x');\r\n var y = $el.attr('data-swiper-parallax-y');\r\n var scale = $el.attr('data-swiper-parallax-scale');\r\n var opacity = $el.attr('data-swiper-parallax-opacity');\r\n\r\n if (x || y) {\r\n x = x || '0';\r\n y = y || '0';\r\n } else if (swiper.isHorizontal()) {\r\n x = p;\r\n y = '0';\r\n } else {\r\n y = p;\r\n x = '0';\r\n }\r\n\r\n if ((x).indexOf('%') >= 0) {\r\n x = (parseInt(x, 10) * progress * rtlFactor) + \"%\";\r\n } else {\r\n x = (x * progress * rtlFactor) + \"px\";\r\n }\r\n if ((y).indexOf('%') >= 0) {\r\n y = (parseInt(y, 10) * progress) + \"%\";\r\n } else {\r\n y = (y * progress) + \"px\";\r\n }\r\n\r\n if (typeof opacity !== 'undefined' && opacity !== null) {\r\n var currentOpacity = opacity - ((opacity - 1) * (1 - Math.abs(progress)));\r\n $el[0].style.opacity = currentOpacity;\r\n }\r\n if (typeof scale === 'undefined' || scale === null) {\r\n $el.transform((\"translate3d(\" + x + \", \" + y + \", 0px)\"));\r\n } else {\r\n var currentScale = scale - ((scale - 1) * (1 - Math.abs(progress)));\r\n $el.transform((\"translate3d(\" + x + \", \" + y + \", 0px) scale(\" + currentScale + \")\"));\r\n }\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n var slides = swiper.slides;\r\n var progress = swiper.progress;\r\n var snapGrid = swiper.snapGrid;\r\n $el.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]')\r\n .each(function (index, el) {\r\n swiper.parallax.setTransform(el, progress);\r\n });\r\n slides.each(function (slideIndex, slideEl) {\r\n var slideProgress = slideEl.progress;\r\n if (swiper.params.slidesPerGroup > 1 && swiper.params.slidesPerView !== 'auto') {\r\n slideProgress += Math.ceil(slideIndex / 2) - (progress * (snapGrid.length - 1));\r\n }\r\n slideProgress = Math.min(Math.max(slideProgress, -1), 1);\r\n $(slideEl).find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]')\r\n .each(function (index, el) {\r\n swiper.parallax.setTransform(el, slideProgress);\r\n });\r\n });\r\n },\r\n setTransition: function setTransition(duration) {\r\n if ( duration === void 0 ) duration = this.params.speed;\r\n\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n $el.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]')\r\n .each(function (index, parallaxEl) {\r\n var $parallaxEl = $(parallaxEl);\r\n var parallaxDuration = parseInt($parallaxEl.attr('data-swiper-parallax-duration'), 10) || duration;\r\n if (duration === 0) { parallaxDuration = 0; }\r\n $parallaxEl.transition(parallaxDuration);\r\n });\r\n },\r\n };\r\n\r\n var Parallax$1 = {\r\n name: 'parallax',\r\n params: {\r\n parallax: {\r\n enabled: false,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n parallax: {\r\n setTransform: Parallax.setTransform.bind(swiper),\r\n setTranslate: Parallax.setTranslate.bind(swiper),\r\n setTransition: Parallax.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (!swiper.params.parallax.enabled) { return; }\r\n swiper.params.watchSlidesProgress = true;\r\n swiper.originalParams.watchSlidesProgress = true;\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.parallax) { return; }\r\n swiper.parallax.setTranslate();\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (!swiper.params.parallax) { return; }\r\n swiper.parallax.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (!swiper.params.parallax) { return; }\r\n swiper.parallax.setTransition(duration);\r\n },\r\n },\r\n };\r\n\r\n var Zoom = {\r\n // Calc Scale From Multi-touches\r\n getDistanceBetweenTouches: function getDistanceBetweenTouches(e) {\r\n if (e.targetTouches.length < 2) { return 1; }\r\n var x1 = e.targetTouches[0].pageX;\r\n var y1 = e.targetTouches[0].pageY;\r\n var x2 = e.targetTouches[1].pageX;\r\n var y2 = e.targetTouches[1].pageY;\r\n var distance = Math.sqrt((Math.pow( (x2 - x1), 2 )) + (Math.pow( (y2 - y1), 2 )));\r\n return distance;\r\n },\r\n // Events\r\n onGestureStart: function onGestureStart(e) {\r\n var swiper = this;\r\n var params = swiper.params.zoom;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n zoom.fakeGestureTouched = false;\r\n zoom.fakeGestureMoved = false;\r\n if (!Support.gestures) {\r\n if (e.type !== 'touchstart' || (e.type === 'touchstart' && e.targetTouches.length < 2)) {\r\n return;\r\n }\r\n zoom.fakeGestureTouched = true;\r\n gesture.scaleStart = Zoom.getDistanceBetweenTouches(e);\r\n }\r\n if (!gesture.$slideEl || !gesture.$slideEl.length) {\r\n gesture.$slideEl = $(e.target).closest('.swiper-slide');\r\n if (gesture.$slideEl.length === 0) { gesture.$slideEl = swiper.slides.eq(swiper.activeIndex); }\r\n gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas');\r\n gesture.$imageWrapEl = gesture.$imageEl.parent((\".\" + (params.containerClass)));\r\n gesture.maxRatio = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;\r\n if (gesture.$imageWrapEl.length === 0) {\r\n gesture.$imageEl = undefined;\r\n return;\r\n }\r\n }\r\n gesture.$imageEl.transition(0);\r\n swiper.zoom.isScaling = true;\r\n },\r\n onGestureChange: function onGestureChange(e) {\r\n var swiper = this;\r\n var params = swiper.params.zoom;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n if (!Support.gestures) {\r\n if (e.type !== 'touchmove' || (e.type === 'touchmove' && e.targetTouches.length < 2)) {\r\n return;\r\n }\r\n zoom.fakeGestureMoved = true;\r\n gesture.scaleMove = Zoom.getDistanceBetweenTouches(e);\r\n }\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n if (Support.gestures) {\r\n swiper.zoom.scale = e.scale * zoom.currentScale;\r\n } else {\r\n zoom.scale = (gesture.scaleMove / gesture.scaleStart) * zoom.currentScale;\r\n }\r\n if (zoom.scale > gesture.maxRatio) {\r\n zoom.scale = (gesture.maxRatio - 1) + (Math.pow( ((zoom.scale - gesture.maxRatio) + 1), 0.5 ));\r\n }\r\n if (zoom.scale < params.minRatio) {\r\n zoom.scale = (params.minRatio + 1) - (Math.pow( ((params.minRatio - zoom.scale) + 1), 0.5 ));\r\n }\r\n gesture.$imageEl.transform((\"translate3d(0,0,0) scale(\" + (zoom.scale) + \")\"));\r\n },\r\n onGestureEnd: function onGestureEnd(e) {\r\n var swiper = this;\r\n var params = swiper.params.zoom;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n if (!Support.gestures) {\r\n if (!zoom.fakeGestureTouched || !zoom.fakeGestureMoved) {\r\n return;\r\n }\r\n if (e.type !== 'touchend' || (e.type === 'touchend' && e.changedTouches.length < 2 && !Device.android)) {\r\n return;\r\n }\r\n zoom.fakeGestureTouched = false;\r\n zoom.fakeGestureMoved = false;\r\n }\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n zoom.scale = Math.max(Math.min(zoom.scale, gesture.maxRatio), params.minRatio);\r\n gesture.$imageEl.transition(swiper.params.speed).transform((\"translate3d(0,0,0) scale(\" + (zoom.scale) + \")\"));\r\n zoom.currentScale = zoom.scale;\r\n zoom.isScaling = false;\r\n if (zoom.scale === 1) { gesture.$slideEl = undefined; }\r\n },\r\n onTouchStart: function onTouchStart(e) {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n var image = zoom.image;\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n if (image.isTouched) { return; }\r\n if (Device.android) { e.preventDefault(); }\r\n image.isTouched = true;\r\n image.touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;\r\n image.touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;\r\n },\r\n onTouchMove: function onTouchMove(e) {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n var image = zoom.image;\r\n var velocity = zoom.velocity;\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n swiper.allowClick = false;\r\n if (!image.isTouched || !gesture.$slideEl) { return; }\r\n\r\n if (!image.isMoved) {\r\n image.width = gesture.$imageEl[0].offsetWidth;\r\n image.height = gesture.$imageEl[0].offsetHeight;\r\n image.startX = Utils.getTranslate(gesture.$imageWrapEl[0], 'x') || 0;\r\n image.startY = Utils.getTranslate(gesture.$imageWrapEl[0], 'y') || 0;\r\n gesture.slideWidth = gesture.$slideEl[0].offsetWidth;\r\n gesture.slideHeight = gesture.$slideEl[0].offsetHeight;\r\n gesture.$imageWrapEl.transition(0);\r\n if (swiper.rtl) {\r\n image.startX = -image.startX;\r\n image.startY = -image.startY;\r\n }\r\n }\r\n // Define if we need image drag\r\n var scaledWidth = image.width * zoom.scale;\r\n var scaledHeight = image.height * zoom.scale;\r\n\r\n if (scaledWidth < gesture.slideWidth && scaledHeight < gesture.slideHeight) { return; }\r\n\r\n image.minX = Math.min(((gesture.slideWidth / 2) - (scaledWidth / 2)), 0);\r\n image.maxX = -image.minX;\r\n image.minY = Math.min(((gesture.slideHeight / 2) - (scaledHeight / 2)), 0);\r\n image.maxY = -image.minY;\r\n\r\n image.touchesCurrent.x = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;\r\n image.touchesCurrent.y = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;\r\n\r\n if (!image.isMoved && !zoom.isScaling) {\r\n if (\r\n swiper.isHorizontal()\r\n && (\r\n (Math.floor(image.minX) === Math.floor(image.startX) && image.touchesCurrent.x < image.touchesStart.x)\r\n || (Math.floor(image.maxX) === Math.floor(image.startX) && image.touchesCurrent.x > image.touchesStart.x)\r\n )\r\n ) {\r\n image.isTouched = false;\r\n return;\r\n } if (\r\n !swiper.isHorizontal()\r\n && (\r\n (Math.floor(image.minY) === Math.floor(image.startY) && image.touchesCurrent.y < image.touchesStart.y)\r\n || (Math.floor(image.maxY) === Math.floor(image.startY) && image.touchesCurrent.y > image.touchesStart.y)\r\n )\r\n ) {\r\n image.isTouched = false;\r\n return;\r\n }\r\n }\r\n e.preventDefault();\r\n e.stopPropagation();\r\n\r\n image.isMoved = true;\r\n image.currentX = (image.touchesCurrent.x - image.touchesStart.x) + image.startX;\r\n image.currentY = (image.touchesCurrent.y - image.touchesStart.y) + image.startY;\r\n\r\n if (image.currentX < image.minX) {\r\n image.currentX = (image.minX + 1) - (Math.pow( ((image.minX - image.currentX) + 1), 0.8 ));\r\n }\r\n if (image.currentX > image.maxX) {\r\n image.currentX = (image.maxX - 1) + (Math.pow( ((image.currentX - image.maxX) + 1), 0.8 ));\r\n }\r\n\r\n if (image.currentY < image.minY) {\r\n image.currentY = (image.minY + 1) - (Math.pow( ((image.minY - image.currentY) + 1), 0.8 ));\r\n }\r\n if (image.currentY > image.maxY) {\r\n image.currentY = (image.maxY - 1) + (Math.pow( ((image.currentY - image.maxY) + 1), 0.8 ));\r\n }\r\n\r\n // Velocity\r\n if (!velocity.prevPositionX) { velocity.prevPositionX = image.touchesCurrent.x; }\r\n if (!velocity.prevPositionY) { velocity.prevPositionY = image.touchesCurrent.y; }\r\n if (!velocity.prevTime) { velocity.prevTime = Date.now(); }\r\n velocity.x = (image.touchesCurrent.x - velocity.prevPositionX) / (Date.now() - velocity.prevTime) / 2;\r\n velocity.y = (image.touchesCurrent.y - velocity.prevPositionY) / (Date.now() - velocity.prevTime) / 2;\r\n if (Math.abs(image.touchesCurrent.x - velocity.prevPositionX) < 2) { velocity.x = 0; }\r\n if (Math.abs(image.touchesCurrent.y - velocity.prevPositionY) < 2) { velocity.y = 0; }\r\n velocity.prevPositionX = image.touchesCurrent.x;\r\n velocity.prevPositionY = image.touchesCurrent.y;\r\n velocity.prevTime = Date.now();\r\n\r\n gesture.$imageWrapEl.transform((\"translate3d(\" + (image.currentX) + \"px, \" + (image.currentY) + \"px,0)\"));\r\n },\r\n onTouchEnd: function onTouchEnd() {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n var image = zoom.image;\r\n var velocity = zoom.velocity;\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n if (!image.isTouched || !image.isMoved) {\r\n image.isTouched = false;\r\n image.isMoved = false;\r\n return;\r\n }\r\n image.isTouched = false;\r\n image.isMoved = false;\r\n var momentumDurationX = 300;\r\n var momentumDurationY = 300;\r\n var momentumDistanceX = velocity.x * momentumDurationX;\r\n var newPositionX = image.currentX + momentumDistanceX;\r\n var momentumDistanceY = velocity.y * momentumDurationY;\r\n var newPositionY = image.currentY + momentumDistanceY;\r\n\r\n // Fix duration\r\n if (velocity.x !== 0) { momentumDurationX = Math.abs((newPositionX - image.currentX) / velocity.x); }\r\n if (velocity.y !== 0) { momentumDurationY = Math.abs((newPositionY - image.currentY) / velocity.y); }\r\n var momentumDuration = Math.max(momentumDurationX, momentumDurationY);\r\n\r\n image.currentX = newPositionX;\r\n image.currentY = newPositionY;\r\n\r\n // Define if we need image drag\r\n var scaledWidth = image.width * zoom.scale;\r\n var scaledHeight = image.height * zoom.scale;\r\n image.minX = Math.min(((gesture.slideWidth / 2) - (scaledWidth / 2)), 0);\r\n image.maxX = -image.minX;\r\n image.minY = Math.min(((gesture.slideHeight / 2) - (scaledHeight / 2)), 0);\r\n image.maxY = -image.minY;\r\n image.currentX = Math.max(Math.min(image.currentX, image.maxX), image.minX);\r\n image.currentY = Math.max(Math.min(image.currentY, image.maxY), image.minY);\r\n\r\n gesture.$imageWrapEl.transition(momentumDuration).transform((\"translate3d(\" + (image.currentX) + \"px, \" + (image.currentY) + \"px,0)\"));\r\n },\r\n onTransitionEnd: function onTransitionEnd() {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n if (gesture.$slideEl && swiper.previousIndex !== swiper.activeIndex) {\r\n gesture.$imageEl.transform('translate3d(0,0,0) scale(1)');\r\n gesture.$imageWrapEl.transform('translate3d(0,0,0)');\r\n gesture.$slideEl = undefined;\r\n gesture.$imageEl = undefined;\r\n gesture.$imageWrapEl = undefined;\r\n\r\n zoom.scale = 1;\r\n zoom.currentScale = 1;\r\n }\r\n },\r\n // Toggle Zoom\r\n toggle: function toggle(e) {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n\r\n if (zoom.scale && zoom.scale !== 1) {\r\n // Zoom Out\r\n zoom.out();\r\n } else {\r\n // Zoom In\r\n zoom.in(e);\r\n }\r\n },\r\n in: function in$1(e) {\r\n var swiper = this;\r\n\r\n var zoom = swiper.zoom;\r\n var params = swiper.params.zoom;\r\n var gesture = zoom.gesture;\r\n var image = zoom.image;\r\n\r\n if (!gesture.$slideEl) {\r\n gesture.$slideEl = swiper.clickedSlide ? $(swiper.clickedSlide) : swiper.slides.eq(swiper.activeIndex);\r\n gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas');\r\n gesture.$imageWrapEl = gesture.$imageEl.parent((\".\" + (params.containerClass)));\r\n }\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n\r\n gesture.$slideEl.addClass((\"\" + (params.zoomedSlideClass)));\r\n\r\n var touchX;\r\n var touchY;\r\n var offsetX;\r\n var offsetY;\r\n var diffX;\r\n var diffY;\r\n var translateX;\r\n var translateY;\r\n var imageWidth;\r\n var imageHeight;\r\n var scaledWidth;\r\n var scaledHeight;\r\n var translateMinX;\r\n var translateMinY;\r\n var translateMaxX;\r\n var translateMaxY;\r\n var slideWidth;\r\n var slideHeight;\r\n\r\n if (typeof image.touchesStart.x === 'undefined' && e) {\r\n touchX = e.type === 'touchend' ? e.changedTouches[0].pageX : e.pageX;\r\n touchY = e.type === 'touchend' ? e.changedTouches[0].pageY : e.pageY;\r\n } else {\r\n touchX = image.touchesStart.x;\r\n touchY = image.touchesStart.y;\r\n }\r\n\r\n zoom.scale = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;\r\n zoom.currentScale = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;\r\n if (e) {\r\n slideWidth = gesture.$slideEl[0].offsetWidth;\r\n slideHeight = gesture.$slideEl[0].offsetHeight;\r\n offsetX = gesture.$slideEl.offset().left;\r\n offsetY = gesture.$slideEl.offset().top;\r\n diffX = (offsetX + (slideWidth / 2)) - touchX;\r\n diffY = (offsetY + (slideHeight / 2)) - touchY;\r\n\r\n imageWidth = gesture.$imageEl[0].offsetWidth;\r\n imageHeight = gesture.$imageEl[0].offsetHeight;\r\n scaledWidth = imageWidth * zoom.scale;\r\n scaledHeight = imageHeight * zoom.scale;\r\n\r\n translateMinX = Math.min(((slideWidth / 2) - (scaledWidth / 2)), 0);\r\n translateMinY = Math.min(((slideHeight / 2) - (scaledHeight / 2)), 0);\r\n translateMaxX = -translateMinX;\r\n translateMaxY = -translateMinY;\r\n\r\n translateX = diffX * zoom.scale;\r\n translateY = diffY * zoom.scale;\r\n\r\n if (translateX < translateMinX) {\r\n translateX = translateMinX;\r\n }\r\n if (translateX > translateMaxX) {\r\n translateX = translateMaxX;\r\n }\r\n\r\n if (translateY < translateMinY) {\r\n translateY = translateMinY;\r\n }\r\n if (translateY > translateMaxY) {\r\n translateY = translateMaxY;\r\n }\r\n } else {\r\n translateX = 0;\r\n translateY = 0;\r\n }\r\n gesture.$imageWrapEl.transition(300).transform((\"translate3d(\" + translateX + \"px, \" + translateY + \"px,0)\"));\r\n gesture.$imageEl.transition(300).transform((\"translate3d(0,0,0) scale(\" + (zoom.scale) + \")\"));\r\n },\r\n out: function out() {\r\n var swiper = this;\r\n\r\n var zoom = swiper.zoom;\r\n var params = swiper.params.zoom;\r\n var gesture = zoom.gesture;\r\n\r\n if (!gesture.$slideEl) {\r\n gesture.$slideEl = swiper.clickedSlide ? $(swiper.clickedSlide) : swiper.slides.eq(swiper.activeIndex);\r\n gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas');\r\n gesture.$imageWrapEl = gesture.$imageEl.parent((\".\" + (params.containerClass)));\r\n }\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n\r\n zoom.scale = 1;\r\n zoom.currentScale = 1;\r\n gesture.$imageWrapEl.transition(300).transform('translate3d(0,0,0)');\r\n gesture.$imageEl.transition(300).transform('translate3d(0,0,0) scale(1)');\r\n gesture.$slideEl.removeClass((\"\" + (params.zoomedSlideClass)));\r\n gesture.$slideEl = undefined;\r\n },\r\n // Attach/Detach Events\r\n enable: function enable() {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n if (zoom.enabled) { return; }\r\n zoom.enabled = true;\r\n\r\n var passiveListener = swiper.touchEvents.start === 'touchstart' && Support.passiveListener && swiper.params.passiveListeners ? { passive: true, capture: false } : false;\r\n\r\n // Scale image\r\n if (Support.gestures) {\r\n swiper.$wrapperEl.on('gesturestart', '.swiper-slide', zoom.onGestureStart, passiveListener);\r\n swiper.$wrapperEl.on('gesturechange', '.swiper-slide', zoom.onGestureChange, passiveListener);\r\n swiper.$wrapperEl.on('gestureend', '.swiper-slide', zoom.onGestureEnd, passiveListener);\r\n } else if (swiper.touchEvents.start === 'touchstart') {\r\n swiper.$wrapperEl.on(swiper.touchEvents.start, '.swiper-slide', zoom.onGestureStart, passiveListener);\r\n swiper.$wrapperEl.on(swiper.touchEvents.move, '.swiper-slide', zoom.onGestureChange, passiveListener);\r\n swiper.$wrapperEl.on(swiper.touchEvents.end, '.swiper-slide', zoom.onGestureEnd, passiveListener);\r\n }\r\n\r\n // Move image\r\n swiper.$wrapperEl.on(swiper.touchEvents.move, (\".\" + (swiper.params.zoom.containerClass)), zoom.onTouchMove);\r\n },\r\n disable: function disable() {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n if (!zoom.enabled) { return; }\r\n\r\n swiper.zoom.enabled = false;\r\n\r\n var passiveListener = swiper.touchEvents.start === 'touchstart' && Support.passiveListener && swiper.params.passiveListeners ? { passive: true, capture: false } : false;\r\n\r\n // Scale image\r\n if (Support.gestures) {\r\n swiper.$wrapperEl.off('gesturestart', '.swiper-slide', zoom.onGestureStart, passiveListener);\r\n swiper.$wrapperEl.off('gesturechange', '.swiper-slide', zoom.onGestureChange, passiveListener);\r\n swiper.$wrapperEl.off('gestureend', '.swiper-slide', zoom.onGestureEnd, passiveListener);\r\n } else if (swiper.touchEvents.start === 'touchstart') {\r\n swiper.$wrapperEl.off(swiper.touchEvents.start, '.swiper-slide', zoom.onGestureStart, passiveListener);\r\n swiper.$wrapperEl.off(swiper.touchEvents.move, '.swiper-slide', zoom.onGestureChange, passiveListener);\r\n swiper.$wrapperEl.off(swiper.touchEvents.end, '.swiper-slide', zoom.onGestureEnd, passiveListener);\r\n }\r\n\r\n // Move image\r\n swiper.$wrapperEl.off(swiper.touchEvents.move, (\".\" + (swiper.params.zoom.containerClass)), zoom.onTouchMove);\r\n },\r\n };\r\n\r\n var Zoom$1 = {\r\n name: 'zoom',\r\n params: {\r\n zoom: {\r\n enabled: false,\r\n maxRatio: 3,\r\n minRatio: 1,\r\n toggle: true,\r\n containerClass: 'swiper-zoom-container',\r\n zoomedSlideClass: 'swiper-slide-zoomed',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n var zoom = {\r\n enabled: false,\r\n scale: 1,\r\n currentScale: 1,\r\n isScaling: false,\r\n gesture: {\r\n $slideEl: undefined,\r\n slideWidth: undefined,\r\n slideHeight: undefined,\r\n $imageEl: undefined,\r\n $imageWrapEl: undefined,\r\n maxRatio: 3,\r\n },\r\n image: {\r\n isTouched: undefined,\r\n isMoved: undefined,\r\n currentX: undefined,\r\n currentY: undefined,\r\n minX: undefined,\r\n minY: undefined,\r\n maxX: undefined,\r\n maxY: undefined,\r\n width: undefined,\r\n height: undefined,\r\n startX: undefined,\r\n startY: undefined,\r\n touchesStart: {},\r\n touchesCurrent: {},\r\n },\r\n velocity: {\r\n x: undefined,\r\n y: undefined,\r\n prevPositionX: undefined,\r\n prevPositionY: undefined,\r\n prevTime: undefined,\r\n },\r\n };\r\n ('onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out').split(' ').forEach(function (methodName) {\r\n zoom[methodName] = Zoom[methodName].bind(swiper);\r\n });\r\n Utils.extend(swiper, {\r\n zoom: zoom,\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.zoom.enabled) {\r\n swiper.zoom.enable();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.zoom.disable();\r\n },\r\n touchStart: function touchStart(e) {\r\n var swiper = this;\r\n if (!swiper.zoom.enabled) { return; }\r\n swiper.zoom.onTouchStart(e);\r\n },\r\n touchEnd: function touchEnd(e) {\r\n var swiper = this;\r\n if (!swiper.zoom.enabled) { return; }\r\n swiper.zoom.onTouchEnd(e);\r\n },\r\n doubleTap: function doubleTap(e) {\r\n var swiper = this;\r\n if (swiper.params.zoom.enabled && swiper.zoom.enabled && swiper.params.zoom.toggle) {\r\n swiper.zoom.toggle(e);\r\n }\r\n },\r\n transitionEnd: function transitionEnd() {\r\n var swiper = this;\r\n if (swiper.zoom.enabled && swiper.params.zoom.enabled) {\r\n swiper.zoom.onTransitionEnd();\r\n }\r\n },\r\n },\r\n };\r\n\r\n var Lazy = {\r\n loadInSlide: function loadInSlide(index, loadInDuplicate) {\r\n if ( loadInDuplicate === void 0 ) loadInDuplicate = true;\r\n\r\n var swiper = this;\r\n var params = swiper.params.lazy;\r\n if (typeof index === 'undefined') { return; }\r\n if (swiper.slides.length === 0) { return; }\r\n var isVirtual = swiper.virtual && swiper.params.virtual.enabled;\r\n\r\n var $slideEl = isVirtual\r\n ? swiper.$wrapperEl.children((\".\" + (swiper.params.slideClass) + \"[data-swiper-slide-index=\\\"\" + index + \"\\\"]\"))\r\n : swiper.slides.eq(index);\r\n\r\n var $images = $slideEl.find((\".\" + (params.elementClass) + \":not(.\" + (params.loadedClass) + \"):not(.\" + (params.loadingClass) + \")\"));\r\n if ($slideEl.hasClass(params.elementClass) && !$slideEl.hasClass(params.loadedClass) && !$slideEl.hasClass(params.loadingClass)) {\r\n $images = $images.add($slideEl[0]);\r\n }\r\n if ($images.length === 0) { return; }\r\n\r\n $images.each(function (imageIndex, imageEl) {\r\n var $imageEl = $(imageEl);\r\n $imageEl.addClass(params.loadingClass);\r\n\r\n var background = $imageEl.attr('data-background');\r\n var src = $imageEl.attr('data-src');\r\n var srcset = $imageEl.attr('data-srcset');\r\n var sizes = $imageEl.attr('data-sizes');\r\n\r\n swiper.loadImage($imageEl[0], (src || background), srcset, sizes, false, function () {\r\n if (typeof swiper === 'undefined' || swiper === null || !swiper || (swiper && !swiper.params) || swiper.destroyed) { return; }\r\n if (background) {\r\n $imageEl.css('background-image', (\"url(\\\"\" + background + \"\\\")\"));\r\n $imageEl.removeAttr('data-background');\r\n } else {\r\n if (srcset) {\r\n $imageEl.attr('srcset', srcset);\r\n $imageEl.removeAttr('data-srcset');\r\n }\r\n if (sizes) {\r\n $imageEl.attr('sizes', sizes);\r\n $imageEl.removeAttr('data-sizes');\r\n }\r\n if (src) {\r\n $imageEl.attr('src', src);\r\n $imageEl.removeAttr('data-src');\r\n }\r\n }\r\n\r\n $imageEl.addClass(params.loadedClass).removeClass(params.loadingClass);\r\n $slideEl.find((\".\" + (params.preloaderClass))).remove();\r\n if (swiper.params.loop && loadInDuplicate) {\r\n var slideOriginalIndex = $slideEl.attr('data-swiper-slide-index');\r\n if ($slideEl.hasClass(swiper.params.slideDuplicateClass)) {\r\n var originalSlide = swiper.$wrapperEl.children((\"[data-swiper-slide-index=\\\"\" + slideOriginalIndex + \"\\\"]:not(.\" + (swiper.params.slideDuplicateClass) + \")\"));\r\n swiper.lazy.loadInSlide(originalSlide.index(), false);\r\n } else {\r\n var duplicatedSlide = swiper.$wrapperEl.children((\".\" + (swiper.params.slideDuplicateClass) + \"[data-swiper-slide-index=\\\"\" + slideOriginalIndex + \"\\\"]\"));\r\n swiper.lazy.loadInSlide(duplicatedSlide.index(), false);\r\n }\r\n }\r\n swiper.emit('lazyImageReady', $slideEl[0], $imageEl[0]);\r\n });\r\n\r\n swiper.emit('lazyImageLoad', $slideEl[0], $imageEl[0]);\r\n });\r\n },\r\n load: function load() {\r\n var swiper = this;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var swiperParams = swiper.params;\r\n var slides = swiper.slides;\r\n var activeIndex = swiper.activeIndex;\r\n var isVirtual = swiper.virtual && swiperParams.virtual.enabled;\r\n var params = swiperParams.lazy;\r\n\r\n var slidesPerView = swiperParams.slidesPerView;\r\n if (slidesPerView === 'auto') {\r\n slidesPerView = 0;\r\n }\r\n\r\n function slideExist(index) {\r\n if (isVirtual) {\r\n if ($wrapperEl.children((\".\" + (swiperParams.slideClass) + \"[data-swiper-slide-index=\\\"\" + index + \"\\\"]\")).length) {\r\n return true;\r\n }\r\n } else if (slides[index]) { return true; }\r\n return false;\r\n }\r\n function slideIndex(slideEl) {\r\n if (isVirtual) {\r\n return $(slideEl).attr('data-swiper-slide-index');\r\n }\r\n return $(slideEl).index();\r\n }\r\n\r\n if (!swiper.lazy.initialImageLoaded) { swiper.lazy.initialImageLoaded = true; }\r\n if (swiper.params.watchSlidesVisibility) {\r\n $wrapperEl.children((\".\" + (swiperParams.slideVisibleClass))).each(function (elIndex, slideEl) {\r\n var index = isVirtual ? $(slideEl).attr('data-swiper-slide-index') : $(slideEl).index();\r\n swiper.lazy.loadInSlide(index);\r\n });\r\n } else if (slidesPerView > 1) {\r\n for (var i = activeIndex; i < activeIndex + slidesPerView; i += 1) {\r\n if (slideExist(i)) { swiper.lazy.loadInSlide(i); }\r\n }\r\n } else {\r\n swiper.lazy.loadInSlide(activeIndex);\r\n }\r\n if (params.loadPrevNext) {\r\n if (slidesPerView > 1 || (params.loadPrevNextAmount && params.loadPrevNextAmount > 1)) {\r\n var amount = params.loadPrevNextAmount;\r\n var spv = slidesPerView;\r\n var maxIndex = Math.min(activeIndex + spv + Math.max(amount, spv), slides.length);\r\n var minIndex = Math.max(activeIndex - Math.max(spv, amount), 0);\r\n // Next Slides\r\n for (var i$1 = activeIndex + slidesPerView; i$1 < maxIndex; i$1 += 1) {\r\n if (slideExist(i$1)) { swiper.lazy.loadInSlide(i$1); }\r\n }\r\n // Prev Slides\r\n for (var i$2 = minIndex; i$2 < activeIndex; i$2 += 1) {\r\n if (slideExist(i$2)) { swiper.lazy.loadInSlide(i$2); }\r\n }\r\n } else {\r\n var nextSlide = $wrapperEl.children((\".\" + (swiperParams.slideNextClass)));\r\n if (nextSlide.length > 0) { swiper.lazy.loadInSlide(slideIndex(nextSlide)); }\r\n\r\n var prevSlide = $wrapperEl.children((\".\" + (swiperParams.slidePrevClass)));\r\n if (prevSlide.length > 0) { swiper.lazy.loadInSlide(slideIndex(prevSlide)); }\r\n }\r\n }\r\n },\r\n };\r\n\r\n var Lazy$1 = {\r\n name: 'lazy',\r\n params: {\r\n lazy: {\r\n enabled: false,\r\n loadPrevNext: false,\r\n loadPrevNextAmount: 1,\r\n loadOnTransitionStart: false,\r\n\r\n elementClass: 'swiper-lazy',\r\n loadingClass: 'swiper-lazy-loading',\r\n loadedClass: 'swiper-lazy-loaded',\r\n preloaderClass: 'swiper-lazy-preloader',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n lazy: {\r\n initialImageLoaded: false,\r\n load: Lazy.load.bind(swiper),\r\n loadInSlide: Lazy.loadInSlide.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled && swiper.params.preloadImages) {\r\n swiper.params.preloadImages = false;\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled && !swiper.params.loop && swiper.params.initialSlide === 0) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n scroll: function scroll() {\r\n var swiper = this;\r\n if (swiper.params.freeMode && !swiper.params.freeModeSticky) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n resize: function resize() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n scrollbarDragMove: function scrollbarDragMove() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n transitionStart: function transitionStart() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled) {\r\n if (swiper.params.lazy.loadOnTransitionStart || (!swiper.params.lazy.loadOnTransitionStart && !swiper.lazy.initialImageLoaded)) {\r\n swiper.lazy.load();\r\n }\r\n }\r\n },\r\n transitionEnd: function transitionEnd() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled && !swiper.params.lazy.loadOnTransitionStart) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n },\r\n };\r\n\r\n /* eslint no-bitwise: [\"error\", { \"allow\": [\">>\"] }] */\r\n\r\n var Controller = {\r\n LinearSpline: function LinearSpline(x, y) {\r\n var binarySearch = (function search() {\r\n var maxIndex;\r\n var minIndex;\r\n var guess;\r\n return function (array, val) {\r\n minIndex = -1;\r\n maxIndex = array.length;\r\n while (maxIndex - minIndex > 1) {\r\n guess = maxIndex + minIndex >> 1;\r\n if (array[guess] <= val) {\r\n minIndex = guess;\r\n } else {\r\n maxIndex = guess;\r\n }\r\n }\r\n return maxIndex;\r\n };\r\n }());\r\n this.x = x;\r\n this.y = y;\r\n this.lastIndex = x.length - 1;\r\n // Given an x value (x2), return the expected y2 value:\r\n // (x1,y1) is the known point before given value,\r\n // (x3,y3) is the known point after given value.\r\n var i1;\r\n var i3;\r\n\r\n this.interpolate = function interpolate(x2) {\r\n if (!x2) { return 0; }\r\n\r\n // Get the indexes of x1 and x3 (the array indexes before and after given x2):\r\n i3 = binarySearch(this.x, x2);\r\n i1 = i3 - 1;\r\n\r\n // We have our indexes i1 & i3, so we can calculate already:\r\n // y2 := ((x2−x1) × (y3−y1)) ÷ (x3−x1) + y1\r\n return (((x2 - this.x[i1]) * (this.y[i3] - this.y[i1])) / (this.x[i3] - this.x[i1])) + this.y[i1];\r\n };\r\n return this;\r\n },\r\n // xxx: for now i will just save one spline function to to\r\n getInterpolateFunction: function getInterpolateFunction(c) {\r\n var swiper = this;\r\n if (!swiper.controller.spline) {\r\n swiper.controller.spline = swiper.params.loop\r\n ? new Controller.LinearSpline(swiper.slidesGrid, c.slidesGrid)\r\n : new Controller.LinearSpline(swiper.snapGrid, c.snapGrid);\r\n }\r\n },\r\n setTranslate: function setTranslate(setTranslate$1, byController) {\r\n var swiper = this;\r\n var controlled = swiper.controller.control;\r\n var multiplier;\r\n var controlledTranslate;\r\n function setControlledTranslate(c) {\r\n // this will create an Interpolate function based on the snapGrids\r\n // x is the Grid of the scrolled scroller and y will be the controlled scroller\r\n // it makes sense to create this only once and recall it for the interpolation\r\n // the function does a lot of value caching for performance\r\n var translate = swiper.rtlTranslate ? -swiper.translate : swiper.translate;\r\n if (swiper.params.controller.by === 'slide') {\r\n swiper.controller.getInterpolateFunction(c);\r\n // i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid\r\n // but it did not work out\r\n controlledTranslate = -swiper.controller.spline.interpolate(-translate);\r\n }\r\n\r\n if (!controlledTranslate || swiper.params.controller.by === 'container') {\r\n multiplier = (c.maxTranslate() - c.minTranslate()) / (swiper.maxTranslate() - swiper.minTranslate());\r\n controlledTranslate = ((translate - swiper.minTranslate()) * multiplier) + c.minTranslate();\r\n }\r\n\r\n if (swiper.params.controller.inverse) {\r\n controlledTranslate = c.maxTranslate() - controlledTranslate;\r\n }\r\n c.updateProgress(controlledTranslate);\r\n c.setTranslate(controlledTranslate, swiper);\r\n c.updateActiveIndex();\r\n c.updateSlidesClasses();\r\n }\r\n if (Array.isArray(controlled)) {\r\n for (var i = 0; i < controlled.length; i += 1) {\r\n if (controlled[i] !== byController && controlled[i] instanceof Swiper) {\r\n setControlledTranslate(controlled[i]);\r\n }\r\n }\r\n } else if (controlled instanceof Swiper && byController !== controlled) {\r\n setControlledTranslate(controlled);\r\n }\r\n },\r\n setTransition: function setTransition(duration, byController) {\r\n var swiper = this;\r\n var controlled = swiper.controller.control;\r\n var i;\r\n function setControlledTransition(c) {\r\n c.setTransition(duration, swiper);\r\n if (duration !== 0) {\r\n c.transitionStart();\r\n if (c.params.autoHeight) {\r\n Utils.nextTick(function () {\r\n c.updateAutoHeight();\r\n });\r\n }\r\n c.$wrapperEl.transitionEnd(function () {\r\n if (!controlled) { return; }\r\n if (c.params.loop && swiper.params.controller.by === 'slide') {\r\n c.loopFix();\r\n }\r\n c.transitionEnd();\r\n });\r\n }\r\n }\r\n if (Array.isArray(controlled)) {\r\n for (i = 0; i < controlled.length; i += 1) {\r\n if (controlled[i] !== byController && controlled[i] instanceof Swiper) {\r\n setControlledTransition(controlled[i]);\r\n }\r\n }\r\n } else if (controlled instanceof Swiper && byController !== controlled) {\r\n setControlledTransition(controlled);\r\n }\r\n },\r\n };\r\n var Controller$1 = {\r\n name: 'controller',\r\n params: {\r\n controller: {\r\n control: undefined,\r\n inverse: false,\r\n by: 'slide', // or 'container'\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n controller: {\r\n control: swiper.params.controller.control,\r\n getInterpolateFunction: Controller.getInterpolateFunction.bind(swiper),\r\n setTranslate: Controller.setTranslate.bind(swiper),\r\n setTransition: Controller.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n update: function update() {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n if (swiper.controller.spline) {\r\n swiper.controller.spline = undefined;\r\n delete swiper.controller.spline;\r\n }\r\n },\r\n resize: function resize() {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n if (swiper.controller.spline) {\r\n swiper.controller.spline = undefined;\r\n delete swiper.controller.spline;\r\n }\r\n },\r\n observerUpdate: function observerUpdate() {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n if (swiper.controller.spline) {\r\n swiper.controller.spline = undefined;\r\n delete swiper.controller.spline;\r\n }\r\n },\r\n setTranslate: function setTranslate(translate, byController) {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n swiper.controller.setTranslate(translate, byController);\r\n },\r\n setTransition: function setTransition(duration, byController) {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n swiper.controller.setTransition(duration, byController);\r\n },\r\n },\r\n };\r\n\r\n var a11y = {\r\n makeElFocusable: function makeElFocusable($el) {\r\n $el.attr('tabIndex', '0');\r\n return $el;\r\n },\r\n addElRole: function addElRole($el, role) {\r\n $el.attr('role', role);\r\n return $el;\r\n },\r\n addElLabel: function addElLabel($el, label) {\r\n $el.attr('aria-label', label);\r\n return $el;\r\n },\r\n disableEl: function disableEl($el) {\r\n $el.attr('aria-disabled', true);\r\n return $el;\r\n },\r\n enableEl: function enableEl($el) {\r\n $el.attr('aria-disabled', false);\r\n return $el;\r\n },\r\n onEnterKey: function onEnterKey(e) {\r\n var swiper = this;\r\n var params = swiper.params.a11y;\r\n if (e.keyCode !== 13) { return; }\r\n var $targetEl = $(e.target);\r\n if (swiper.navigation && swiper.navigation.$nextEl && $targetEl.is(swiper.navigation.$nextEl)) {\r\n if (!(swiper.isEnd && !swiper.params.loop)) {\r\n swiper.slideNext();\r\n }\r\n if (swiper.isEnd) {\r\n swiper.a11y.notify(params.lastSlideMessage);\r\n } else {\r\n swiper.a11y.notify(params.nextSlideMessage);\r\n }\r\n }\r\n if (swiper.navigation && swiper.navigation.$prevEl && $targetEl.is(swiper.navigation.$prevEl)) {\r\n if (!(swiper.isBeginning && !swiper.params.loop)) {\r\n swiper.slidePrev();\r\n }\r\n if (swiper.isBeginning) {\r\n swiper.a11y.notify(params.firstSlideMessage);\r\n } else {\r\n swiper.a11y.notify(params.prevSlideMessage);\r\n }\r\n }\r\n if (swiper.pagination && $targetEl.is((\".\" + (swiper.params.pagination.bulletClass)))) {\r\n $targetEl[0].click();\r\n }\r\n },\r\n notify: function notify(message) {\r\n var swiper = this;\r\n var notification = swiper.a11y.liveRegion;\r\n if (notification.length === 0) { return; }\r\n notification.html('');\r\n notification.html(message);\r\n },\r\n updateNavigation: function updateNavigation() {\r\n var swiper = this;\r\n\r\n if (swiper.params.loop) { return; }\r\n var ref = swiper.navigation;\r\n var $nextEl = ref.$nextEl;\r\n var $prevEl = ref.$prevEl;\r\n\r\n if ($prevEl && $prevEl.length > 0) {\r\n if (swiper.isBeginning) {\r\n swiper.a11y.disableEl($prevEl);\r\n } else {\r\n swiper.a11y.enableEl($prevEl);\r\n }\r\n }\r\n if ($nextEl && $nextEl.length > 0) {\r\n if (swiper.isEnd) {\r\n swiper.a11y.disableEl($nextEl);\r\n } else {\r\n swiper.a11y.enableEl($nextEl);\r\n }\r\n }\r\n },\r\n updatePagination: function updatePagination() {\r\n var swiper = this;\r\n var params = swiper.params.a11y;\r\n if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {\r\n swiper.pagination.bullets.each(function (bulletIndex, bulletEl) {\r\n var $bulletEl = $(bulletEl);\r\n swiper.a11y.makeElFocusable($bulletEl);\r\n swiper.a11y.addElRole($bulletEl, 'button');\r\n swiper.a11y.addElLabel($bulletEl, params.paginationBulletMessage.replace(/{{index}}/, $bulletEl.index() + 1));\r\n });\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n\r\n swiper.$el.append(swiper.a11y.liveRegion);\r\n\r\n // Navigation\r\n var params = swiper.params.a11y;\r\n var $nextEl;\r\n var $prevEl;\r\n if (swiper.navigation && swiper.navigation.$nextEl) {\r\n $nextEl = swiper.navigation.$nextEl;\r\n }\r\n if (swiper.navigation && swiper.navigation.$prevEl) {\r\n $prevEl = swiper.navigation.$prevEl;\r\n }\r\n if ($nextEl) {\r\n swiper.a11y.makeElFocusable($nextEl);\r\n swiper.a11y.addElRole($nextEl, 'button');\r\n swiper.a11y.addElLabel($nextEl, params.nextSlideMessage);\r\n $nextEl.on('keydown', swiper.a11y.onEnterKey);\r\n }\r\n if ($prevEl) {\r\n swiper.a11y.makeElFocusable($prevEl);\r\n swiper.a11y.addElRole($prevEl, 'button');\r\n swiper.a11y.addElLabel($prevEl, params.prevSlideMessage);\r\n $prevEl.on('keydown', swiper.a11y.onEnterKey);\r\n }\r\n\r\n // Pagination\r\n if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {\r\n swiper.pagination.$el.on('keydown', (\".\" + (swiper.params.pagination.bulletClass)), swiper.a11y.onEnterKey);\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.a11y.liveRegion && swiper.a11y.liveRegion.length > 0) { swiper.a11y.liveRegion.remove(); }\r\n\r\n var $nextEl;\r\n var $prevEl;\r\n if (swiper.navigation && swiper.navigation.$nextEl) {\r\n $nextEl = swiper.navigation.$nextEl;\r\n }\r\n if (swiper.navigation && swiper.navigation.$prevEl) {\r\n $prevEl = swiper.navigation.$prevEl;\r\n }\r\n if ($nextEl) {\r\n $nextEl.off('keydown', swiper.a11y.onEnterKey);\r\n }\r\n if ($prevEl) {\r\n $prevEl.off('keydown', swiper.a11y.onEnterKey);\r\n }\r\n\r\n // Pagination\r\n if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {\r\n swiper.pagination.$el.off('keydown', (\".\" + (swiper.params.pagination.bulletClass)), swiper.a11y.onEnterKey);\r\n }\r\n },\r\n };\r\n var A11y = {\r\n name: 'a11y',\r\n params: {\r\n a11y: {\r\n enabled: true,\r\n notificationClass: 'swiper-notification',\r\n prevSlideMessage: 'Previous slide',\r\n nextSlideMessage: 'Next slide',\r\n firstSlideMessage: 'This is the first slide',\r\n lastSlideMessage: 'This is the last slide',\r\n paginationBulletMessage: 'Go to slide {{index}}',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n a11y: {\r\n liveRegion: $((\"\")),\r\n },\r\n });\r\n Object.keys(a11y).forEach(function (methodName) {\r\n swiper.a11y[methodName] = a11y[methodName].bind(swiper);\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.init();\r\n swiper.a11y.updateNavigation();\r\n },\r\n toEdge: function toEdge() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.updateNavigation();\r\n },\r\n fromEdge: function fromEdge() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.updateNavigation();\r\n },\r\n paginationUpdate: function paginationUpdate() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.updatePagination();\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.destroy();\r\n },\r\n },\r\n };\r\n\r\n var History = {\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.history) { return; }\r\n if (!win.history || !win.history.pushState) {\r\n swiper.params.history.enabled = false;\r\n swiper.params.hashNavigation.enabled = true;\r\n return;\r\n }\r\n var history = swiper.history;\r\n history.initialized = true;\r\n history.paths = History.getPathValues();\r\n if (!history.paths.key && !history.paths.value) { return; }\r\n history.scrollToSlide(0, history.paths.value, swiper.params.runCallbacksOnInit);\r\n if (!swiper.params.history.replaceState) {\r\n win.addEventListener('popstate', swiper.history.setHistoryPopState);\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (!swiper.params.history.replaceState) {\r\n win.removeEventListener('popstate', swiper.history.setHistoryPopState);\r\n }\r\n },\r\n setHistoryPopState: function setHistoryPopState() {\r\n var swiper = this;\r\n swiper.history.paths = History.getPathValues();\r\n swiper.history.scrollToSlide(swiper.params.speed, swiper.history.paths.value, false);\r\n },\r\n getPathValues: function getPathValues() {\r\n var pathArray = win.location.pathname.slice(1).split('/').filter(function (part) { return part !== ''; });\r\n var total = pathArray.length;\r\n var key = pathArray[total - 2];\r\n var value = pathArray[total - 1];\r\n return { key: key, value: value };\r\n },\r\n setHistory: function setHistory(key, index) {\r\n var swiper = this;\r\n if (!swiper.history.initialized || !swiper.params.history.enabled) { return; }\r\n var slide = swiper.slides.eq(index);\r\n var value = History.slugify(slide.attr('data-history'));\r\n if (!win.location.pathname.includes(key)) {\r\n value = key + \"/\" + value;\r\n }\r\n var currentState = win.history.state;\r\n if (currentState && currentState.value === value) {\r\n return;\r\n }\r\n if (swiper.params.history.replaceState) {\r\n win.history.replaceState({ value: value }, null, value);\r\n } else {\r\n win.history.pushState({ value: value }, null, value);\r\n }\r\n },\r\n slugify: function slugify(text) {\r\n return text.toString().toLowerCase()\r\n .replace(/\\s+/g, '-')\r\n .replace(/[^\\w-]+/g, '')\r\n .replace(/--+/g, '-')\r\n .replace(/^-+/, '')\r\n .replace(/-+$/, '');\r\n },\r\n scrollToSlide: function scrollToSlide(speed, value, runCallbacks) {\r\n var swiper = this;\r\n if (value) {\r\n for (var i = 0, length = swiper.slides.length; i < length; i += 1) {\r\n var slide = swiper.slides.eq(i);\r\n var slideHistory = History.slugify(slide.attr('data-history'));\r\n if (slideHistory === value && !slide.hasClass(swiper.params.slideDuplicateClass)) {\r\n var index = slide.index();\r\n swiper.slideTo(index, speed, runCallbacks);\r\n }\r\n }\r\n } else {\r\n swiper.slideTo(0, speed, runCallbacks);\r\n }\r\n },\r\n };\r\n\r\n var History$1 = {\r\n name: 'history',\r\n params: {\r\n history: {\r\n enabled: false,\r\n replaceState: false,\r\n key: 'slides',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n history: {\r\n init: History.init.bind(swiper),\r\n setHistory: History.setHistory.bind(swiper),\r\n setHistoryPopState: History.setHistoryPopState.bind(swiper),\r\n scrollToSlide: History.scrollToSlide.bind(swiper),\r\n destroy: History.destroy.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.history.enabled) {\r\n swiper.history.init();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.params.history.enabled) {\r\n swiper.history.destroy();\r\n }\r\n },\r\n transitionEnd: function transitionEnd() {\r\n var swiper = this;\r\n if (swiper.history.initialized) {\r\n swiper.history.setHistory(swiper.params.history.key, swiper.activeIndex);\r\n }\r\n },\r\n },\r\n };\r\n\r\n var HashNavigation = {\r\n onHashCange: function onHashCange() {\r\n var swiper = this;\r\n var newHash = doc.location.hash.replace('#', '');\r\n var activeSlideHash = swiper.slides.eq(swiper.activeIndex).attr('data-hash');\r\n if (newHash !== activeSlideHash) {\r\n var newIndex = swiper.$wrapperEl.children((\".\" + (swiper.params.slideClass) + \"[data-hash=\\\"\" + newHash + \"\\\"]\")).index();\r\n if (typeof newIndex === 'undefined') { return; }\r\n swiper.slideTo(newIndex);\r\n }\r\n },\r\n setHash: function setHash() {\r\n var swiper = this;\r\n if (!swiper.hashNavigation.initialized || !swiper.params.hashNavigation.enabled) { return; }\r\n if (swiper.params.hashNavigation.replaceState && win.history && win.history.replaceState) {\r\n win.history.replaceState(null, null, ((\"#\" + (swiper.slides.eq(swiper.activeIndex).attr('data-hash'))) || ''));\r\n } else {\r\n var slide = swiper.slides.eq(swiper.activeIndex);\r\n var hash = slide.attr('data-hash') || slide.attr('data-history');\r\n doc.location.hash = hash || '';\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.hashNavigation.enabled || (swiper.params.history && swiper.params.history.enabled)) { return; }\r\n swiper.hashNavigation.initialized = true;\r\n var hash = doc.location.hash.replace('#', '');\r\n if (hash) {\r\n var speed = 0;\r\n for (var i = 0, length = swiper.slides.length; i < length; i += 1) {\r\n var slide = swiper.slides.eq(i);\r\n var slideHash = slide.attr('data-hash') || slide.attr('data-history');\r\n if (slideHash === hash && !slide.hasClass(swiper.params.slideDuplicateClass)) {\r\n var index = slide.index();\r\n swiper.slideTo(index, speed, swiper.params.runCallbacksOnInit, true);\r\n }\r\n }\r\n }\r\n if (swiper.params.hashNavigation.watchState) {\r\n $(win).on('hashchange', swiper.hashNavigation.onHashCange);\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.params.hashNavigation.watchState) {\r\n $(win).off('hashchange', swiper.hashNavigation.onHashCange);\r\n }\r\n },\r\n };\r\n var HashNavigation$1 = {\r\n name: 'hash-navigation',\r\n params: {\r\n hashNavigation: {\r\n enabled: false,\r\n replaceState: false,\r\n watchState: false,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n hashNavigation: {\r\n initialized: false,\r\n init: HashNavigation.init.bind(swiper),\r\n destroy: HashNavigation.destroy.bind(swiper),\r\n setHash: HashNavigation.setHash.bind(swiper),\r\n onHashCange: HashNavigation.onHashCange.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.hashNavigation.enabled) {\r\n swiper.hashNavigation.init();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.params.hashNavigation.enabled) {\r\n swiper.hashNavigation.destroy();\r\n }\r\n },\r\n transitionEnd: function transitionEnd() {\r\n var swiper = this;\r\n if (swiper.hashNavigation.initialized) {\r\n swiper.hashNavigation.setHash();\r\n }\r\n },\r\n },\r\n };\r\n\r\n /* eslint no-underscore-dangle: \"off\" */\r\n\r\n var Autoplay = {\r\n run: function run() {\r\n var swiper = this;\r\n var $activeSlideEl = swiper.slides.eq(swiper.activeIndex);\r\n var delay = swiper.params.autoplay.delay;\r\n if ($activeSlideEl.attr('data-swiper-autoplay')) {\r\n delay = $activeSlideEl.attr('data-swiper-autoplay') || swiper.params.autoplay.delay;\r\n }\r\n swiper.autoplay.timeout = Utils.nextTick(function () {\r\n if (swiper.params.autoplay.reverseDirection) {\r\n if (swiper.params.loop) {\r\n swiper.loopFix();\r\n swiper.slidePrev(swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else if (!swiper.isBeginning) {\r\n swiper.slidePrev(swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else if (!swiper.params.autoplay.stopOnLastSlide) {\r\n swiper.slideTo(swiper.slides.length - 1, swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else {\r\n swiper.autoplay.stop();\r\n }\r\n } else if (swiper.params.loop) {\r\n swiper.loopFix();\r\n swiper.slideNext(swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else if (!swiper.isEnd) {\r\n swiper.slideNext(swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else if (!swiper.params.autoplay.stopOnLastSlide) {\r\n swiper.slideTo(0, swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else {\r\n swiper.autoplay.stop();\r\n }\r\n }, delay);\r\n },\r\n start: function start() {\r\n var swiper = this;\r\n if (typeof swiper.autoplay.timeout !== 'undefined') { return false; }\r\n if (swiper.autoplay.running) { return false; }\r\n swiper.autoplay.running = true;\r\n swiper.emit('autoplayStart');\r\n swiper.autoplay.run();\r\n return true;\r\n },\r\n stop: function stop() {\r\n var swiper = this;\r\n if (!swiper.autoplay.running) { return false; }\r\n if (typeof swiper.autoplay.timeout === 'undefined') { return false; }\r\n\r\n if (swiper.autoplay.timeout) {\r\n clearTimeout(swiper.autoplay.timeout);\r\n swiper.autoplay.timeout = undefined;\r\n }\r\n swiper.autoplay.running = false;\r\n swiper.emit('autoplayStop');\r\n return true;\r\n },\r\n pause: function pause(speed) {\r\n var swiper = this;\r\n if (!swiper.autoplay.running) { return; }\r\n if (swiper.autoplay.paused) { return; }\r\n if (swiper.autoplay.timeout) { clearTimeout(swiper.autoplay.timeout); }\r\n swiper.autoplay.paused = true;\r\n if (speed === 0 || !swiper.params.autoplay.waitForTransition) {\r\n swiper.autoplay.paused = false;\r\n swiper.autoplay.run();\r\n } else {\r\n swiper.$wrapperEl[0].addEventListener('transitionend', swiper.autoplay.onTransitionEnd);\r\n swiper.$wrapperEl[0].addEventListener('webkitTransitionEnd', swiper.autoplay.onTransitionEnd);\r\n }\r\n },\r\n };\r\n\r\n var Autoplay$1 = {\r\n name: 'autoplay',\r\n params: {\r\n autoplay: {\r\n enabled: false,\r\n delay: 3000,\r\n waitForTransition: true,\r\n disableOnInteraction: true,\r\n stopOnLastSlide: false,\r\n reverseDirection: false,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n autoplay: {\r\n running: false,\r\n paused: false,\r\n run: Autoplay.run.bind(swiper),\r\n start: Autoplay.start.bind(swiper),\r\n stop: Autoplay.stop.bind(swiper),\r\n pause: Autoplay.pause.bind(swiper),\r\n onTransitionEnd: function onTransitionEnd(e) {\r\n if (!swiper || swiper.destroyed || !swiper.$wrapperEl) { return; }\r\n if (e.target !== this) { return; }\r\n swiper.$wrapperEl[0].removeEventListener('transitionend', swiper.autoplay.onTransitionEnd);\r\n swiper.$wrapperEl[0].removeEventListener('webkitTransitionEnd', swiper.autoplay.onTransitionEnd);\r\n swiper.autoplay.paused = false;\r\n if (!swiper.autoplay.running) {\r\n swiper.autoplay.stop();\r\n } else {\r\n swiper.autoplay.run();\r\n }\r\n },\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.autoplay.enabled) {\r\n swiper.autoplay.start();\r\n }\r\n },\r\n beforeTransitionStart: function beforeTransitionStart(speed, internal) {\r\n var swiper = this;\r\n if (swiper.autoplay.running) {\r\n if (internal || !swiper.params.autoplay.disableOnInteraction) {\r\n swiper.autoplay.pause(speed);\r\n } else {\r\n swiper.autoplay.stop();\r\n }\r\n }\r\n },\r\n sliderFirstMove: function sliderFirstMove() {\r\n var swiper = this;\r\n if (swiper.autoplay.running) {\r\n if (swiper.params.autoplay.disableOnInteraction) {\r\n swiper.autoplay.stop();\r\n } else {\r\n swiper.autoplay.pause();\r\n }\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.autoplay.running) {\r\n swiper.autoplay.stop();\r\n }\r\n },\r\n },\r\n };\r\n\r\n var Fade = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n for (var i = 0; i < slides.length; i += 1) {\r\n var $slideEl = swiper.slides.eq(i);\r\n var offset = $slideEl[0].swiperSlideOffset;\r\n var tx = -offset;\r\n if (!swiper.params.virtualTranslate) { tx -= swiper.translate; }\r\n var ty = 0;\r\n if (!swiper.isHorizontal()) {\r\n ty = tx;\r\n tx = 0;\r\n }\r\n var slideOpacity = swiper.params.fadeEffect.crossFade\r\n ? Math.max(1 - Math.abs($slideEl[0].progress), 0)\r\n : 1 + Math.min(Math.max($slideEl[0].progress, -1), 0);\r\n $slideEl\r\n .css({\r\n opacity: slideOpacity,\r\n })\r\n .transform((\"translate3d(\" + tx + \"px, \" + ty + \"px, 0px)\"));\r\n }\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n slides.transition(duration);\r\n if (swiper.params.virtualTranslate && duration !== 0) {\r\n var eventTriggered = false;\r\n slides.transitionEnd(function () {\r\n if (eventTriggered) { return; }\r\n if (!swiper || swiper.destroyed) { return; }\r\n eventTriggered = true;\r\n swiper.animating = false;\r\n var triggerEvents = ['webkitTransitionEnd', 'transitionend'];\r\n for (var i = 0; i < triggerEvents.length; i += 1) {\r\n $wrapperEl.trigger(triggerEvents[i]);\r\n }\r\n });\r\n }\r\n },\r\n };\r\n\r\n var EffectFade = {\r\n name: 'effect-fade',\r\n params: {\r\n fadeEffect: {\r\n crossFade: false,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n fadeEffect: {\r\n setTranslate: Fade.setTranslate.bind(swiper),\r\n setTransition: Fade.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'fade') { return; }\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"fade\"));\r\n var overwriteParams = {\r\n slidesPerView: 1,\r\n slidesPerColumn: 1,\r\n slidesPerGroup: 1,\r\n watchSlidesProgress: true,\r\n spaceBetween: 0,\r\n virtualTranslate: true,\r\n };\r\n Utils.extend(swiper.params, overwriteParams);\r\n Utils.extend(swiper.originalParams, overwriteParams);\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'fade') { return; }\r\n swiper.fadeEffect.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'fade') { return; }\r\n swiper.fadeEffect.setTransition(duration);\r\n },\r\n },\r\n };\r\n\r\n var Cube = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var slides = swiper.slides;\r\n var swiperWidth = swiper.width;\r\n var swiperHeight = swiper.height;\r\n var rtl = swiper.rtlTranslate;\r\n var swiperSize = swiper.size;\r\n var params = swiper.params.cubeEffect;\r\n var isHorizontal = swiper.isHorizontal();\r\n var isVirtual = swiper.virtual && swiper.params.virtual.enabled;\r\n var wrapperRotate = 0;\r\n var $cubeShadowEl;\r\n if (params.shadow) {\r\n if (isHorizontal) {\r\n $cubeShadowEl = $wrapperEl.find('.swiper-cube-shadow');\r\n if ($cubeShadowEl.length === 0) {\r\n $cubeShadowEl = $('');\r\n $wrapperEl.append($cubeShadowEl);\r\n }\r\n $cubeShadowEl.css({ height: (swiperWidth + \"px\") });\r\n } else {\r\n $cubeShadowEl = $el.find('.swiper-cube-shadow');\r\n if ($cubeShadowEl.length === 0) {\r\n $cubeShadowEl = $('');\r\n $el.append($cubeShadowEl);\r\n }\r\n }\r\n }\r\n for (var i = 0; i < slides.length; i += 1) {\r\n var $slideEl = slides.eq(i);\r\n var slideIndex = i;\r\n if (isVirtual) {\r\n slideIndex = parseInt($slideEl.attr('data-swiper-slide-index'), 10);\r\n }\r\n var slideAngle = slideIndex * 90;\r\n var round = Math.floor(slideAngle / 360);\r\n if (rtl) {\r\n slideAngle = -slideAngle;\r\n round = Math.floor(-slideAngle / 360);\r\n }\r\n var progress = Math.max(Math.min($slideEl[0].progress, 1), -1);\r\n var tx = 0;\r\n var ty = 0;\r\n var tz = 0;\r\n if (slideIndex % 4 === 0) {\r\n tx = -round * 4 * swiperSize;\r\n tz = 0;\r\n } else if ((slideIndex - 1) % 4 === 0) {\r\n tx = 0;\r\n tz = -round * 4 * swiperSize;\r\n } else if ((slideIndex - 2) % 4 === 0) {\r\n tx = swiperSize + (round * 4 * swiperSize);\r\n tz = swiperSize;\r\n } else if ((slideIndex - 3) % 4 === 0) {\r\n tx = -swiperSize;\r\n tz = (3 * swiperSize) + (swiperSize * 4 * round);\r\n }\r\n if (rtl) {\r\n tx = -tx;\r\n }\r\n\r\n if (!isHorizontal) {\r\n ty = tx;\r\n tx = 0;\r\n }\r\n\r\n var transform = \"rotateX(\" + (isHorizontal ? 0 : -slideAngle) + \"deg) rotateY(\" + (isHorizontal ? slideAngle : 0) + \"deg) translate3d(\" + tx + \"px, \" + ty + \"px, \" + tz + \"px)\";\r\n if (progress <= 1 && progress > -1) {\r\n wrapperRotate = (slideIndex * 90) + (progress * 90);\r\n if (rtl) { wrapperRotate = (-slideIndex * 90) - (progress * 90); }\r\n }\r\n $slideEl.transform(transform);\r\n if (params.slideShadows) {\r\n // Set shadows\r\n var shadowBefore = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');\r\n var shadowAfter = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');\r\n if (shadowBefore.length === 0) {\r\n shadowBefore = $((\"\"));\r\n $slideEl.append(shadowBefore);\r\n }\r\n if (shadowAfter.length === 0) {\r\n shadowAfter = $((\"\"));\r\n $slideEl.append(shadowAfter);\r\n }\r\n if (shadowBefore.length) { shadowBefore[0].style.opacity = Math.max(-progress, 0); }\r\n if (shadowAfter.length) { shadowAfter[0].style.opacity = Math.max(progress, 0); }\r\n }\r\n }\r\n $wrapperEl.css({\r\n '-webkit-transform-origin': (\"50% 50% -\" + (swiperSize / 2) + \"px\"),\r\n '-moz-transform-origin': (\"50% 50% -\" + (swiperSize / 2) + \"px\"),\r\n '-ms-transform-origin': (\"50% 50% -\" + (swiperSize / 2) + \"px\"),\r\n 'transform-origin': (\"50% 50% -\" + (swiperSize / 2) + \"px\"),\r\n });\r\n\r\n if (params.shadow) {\r\n if (isHorizontal) {\r\n $cubeShadowEl.transform((\"translate3d(0px, \" + ((swiperWidth / 2) + params.shadowOffset) + \"px, \" + (-swiperWidth / 2) + \"px) rotateX(90deg) rotateZ(0deg) scale(\" + (params.shadowScale) + \")\"));\r\n } else {\r\n var shadowAngle = Math.abs(wrapperRotate) - (Math.floor(Math.abs(wrapperRotate) / 90) * 90);\r\n var multiplier = 1.5 - (\r\n (Math.sin((shadowAngle * 2 * Math.PI) / 360) / 2)\r\n + (Math.cos((shadowAngle * 2 * Math.PI) / 360) / 2)\r\n );\r\n var scale1 = params.shadowScale;\r\n var scale2 = params.shadowScale / multiplier;\r\n var offset = params.shadowOffset;\r\n $cubeShadowEl.transform((\"scale3d(\" + scale1 + \", 1, \" + scale2 + \") translate3d(0px, \" + ((swiperHeight / 2) + offset) + \"px, \" + (-swiperHeight / 2 / scale2) + \"px) rotateX(-90deg)\"));\r\n }\r\n }\r\n var zFactor = (Browser.isSafari || Browser.isUiWebView) ? (-swiperSize / 2) : 0;\r\n $wrapperEl\r\n .transform((\"translate3d(0px,0,\" + zFactor + \"px) rotateX(\" + (swiper.isHorizontal() ? 0 : wrapperRotate) + \"deg) rotateY(\" + (swiper.isHorizontal() ? -wrapperRotate : 0) + \"deg)\"));\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n var slides = swiper.slides;\r\n slides\r\n .transition(duration)\r\n .find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left')\r\n .transition(duration);\r\n if (swiper.params.cubeEffect.shadow && !swiper.isHorizontal()) {\r\n $el.find('.swiper-cube-shadow').transition(duration);\r\n }\r\n },\r\n };\r\n\r\n var EffectCube = {\r\n name: 'effect-cube',\r\n params: {\r\n cubeEffect: {\r\n slideShadows: true,\r\n shadow: true,\r\n shadowOffset: 20,\r\n shadowScale: 0.94,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n cubeEffect: {\r\n setTranslate: Cube.setTranslate.bind(swiper),\r\n setTransition: Cube.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'cube') { return; }\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"cube\"));\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"3d\"));\r\n var overwriteParams = {\r\n slidesPerView: 1,\r\n slidesPerColumn: 1,\r\n slidesPerGroup: 1,\r\n watchSlidesProgress: true,\r\n resistanceRatio: 0,\r\n spaceBetween: 0,\r\n centeredSlides: false,\r\n virtualTranslate: true,\r\n };\r\n Utils.extend(swiper.params, overwriteParams);\r\n Utils.extend(swiper.originalParams, overwriteParams);\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'cube') { return; }\r\n swiper.cubeEffect.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'cube') { return; }\r\n swiper.cubeEffect.setTransition(duration);\r\n },\r\n },\r\n };\r\n\r\n var Flip = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n var rtl = swiper.rtlTranslate;\r\n for (var i = 0; i < slides.length; i += 1) {\r\n var $slideEl = slides.eq(i);\r\n var progress = $slideEl[0].progress;\r\n if (swiper.params.flipEffect.limitRotation) {\r\n progress = Math.max(Math.min($slideEl[0].progress, 1), -1);\r\n }\r\n var offset = $slideEl[0].swiperSlideOffset;\r\n var rotate = -180 * progress;\r\n var rotateY = rotate;\r\n var rotateX = 0;\r\n var tx = -offset;\r\n var ty = 0;\r\n if (!swiper.isHorizontal()) {\r\n ty = tx;\r\n tx = 0;\r\n rotateX = -rotateY;\r\n rotateY = 0;\r\n } else if (rtl) {\r\n rotateY = -rotateY;\r\n }\r\n\r\n $slideEl[0].style.zIndex = -Math.abs(Math.round(progress)) + slides.length;\r\n\r\n if (swiper.params.flipEffect.slideShadows) {\r\n // Set shadows\r\n var shadowBefore = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');\r\n var shadowAfter = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');\r\n if (shadowBefore.length === 0) {\r\n shadowBefore = $((\"\"));\r\n $slideEl.append(shadowBefore);\r\n }\r\n if (shadowAfter.length === 0) {\r\n shadowAfter = $((\"\"));\r\n $slideEl.append(shadowAfter);\r\n }\r\n if (shadowBefore.length) { shadowBefore[0].style.opacity = Math.max(-progress, 0); }\r\n if (shadowAfter.length) { shadowAfter[0].style.opacity = Math.max(progress, 0); }\r\n }\r\n $slideEl\r\n .transform((\"translate3d(\" + tx + \"px, \" + ty + \"px, 0px) rotateX(\" + rotateX + \"deg) rotateY(\" + rotateY + \"deg)\"));\r\n }\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n var activeIndex = swiper.activeIndex;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n slides\r\n .transition(duration)\r\n .find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left')\r\n .transition(duration);\r\n if (swiper.params.virtualTranslate && duration !== 0) {\r\n var eventTriggered = false;\r\n // eslint-disable-next-line\r\n slides.eq(activeIndex).transitionEnd(function onTransitionEnd() {\r\n if (eventTriggered) { return; }\r\n if (!swiper || swiper.destroyed) { return; }\r\n // if (!$(this).hasClass(swiper.params.slideActiveClass)) return;\r\n eventTriggered = true;\r\n swiper.animating = false;\r\n var triggerEvents = ['webkitTransitionEnd', 'transitionend'];\r\n for (var i = 0; i < triggerEvents.length; i += 1) {\r\n $wrapperEl.trigger(triggerEvents[i]);\r\n }\r\n });\r\n }\r\n },\r\n };\r\n\r\n var EffectFlip = {\r\n name: 'effect-flip',\r\n params: {\r\n flipEffect: {\r\n slideShadows: true,\r\n limitRotation: true,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n flipEffect: {\r\n setTranslate: Flip.setTranslate.bind(swiper),\r\n setTransition: Flip.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'flip') { return; }\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"flip\"));\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"3d\"));\r\n var overwriteParams = {\r\n slidesPerView: 1,\r\n slidesPerColumn: 1,\r\n slidesPerGroup: 1,\r\n watchSlidesProgress: true,\r\n spaceBetween: 0,\r\n virtualTranslate: true,\r\n };\r\n Utils.extend(swiper.params, overwriteParams);\r\n Utils.extend(swiper.originalParams, overwriteParams);\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'flip') { return; }\r\n swiper.flipEffect.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'flip') { return; }\r\n swiper.flipEffect.setTransition(duration);\r\n },\r\n },\r\n };\r\n\r\n var Coverflow = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var swiperWidth = swiper.width;\r\n var swiperHeight = swiper.height;\r\n var slides = swiper.slides;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var slidesSizesGrid = swiper.slidesSizesGrid;\r\n var params = swiper.params.coverflowEffect;\r\n var isHorizontal = swiper.isHorizontal();\r\n var transform = swiper.translate;\r\n var center = isHorizontal ? -transform + (swiperWidth / 2) : -transform + (swiperHeight / 2);\r\n var rotate = isHorizontal ? params.rotate : -params.rotate;\r\n var translate = params.depth;\r\n // Each slide offset from center\r\n for (var i = 0, length = slides.length; i < length; i += 1) {\r\n var $slideEl = slides.eq(i);\r\n var slideSize = slidesSizesGrid[i];\r\n var slideOffset = $slideEl[0].swiperSlideOffset;\r\n var offsetMultiplier = ((center - slideOffset - (slideSize / 2)) / slideSize) * params.modifier;\r\n\r\n var rotateY = isHorizontal ? rotate * offsetMultiplier : 0;\r\n var rotateX = isHorizontal ? 0 : rotate * offsetMultiplier;\r\n // var rotateZ = 0\r\n var translateZ = -translate * Math.abs(offsetMultiplier);\r\n\r\n var translateY = isHorizontal ? 0 : params.stretch * (offsetMultiplier);\r\n var translateX = isHorizontal ? params.stretch * (offsetMultiplier) : 0;\r\n\r\n // Fix for ultra small values\r\n if (Math.abs(translateX) < 0.001) { translateX = 0; }\r\n if (Math.abs(translateY) < 0.001) { translateY = 0; }\r\n if (Math.abs(translateZ) < 0.001) { translateZ = 0; }\r\n if (Math.abs(rotateY) < 0.001) { rotateY = 0; }\r\n if (Math.abs(rotateX) < 0.001) { rotateX = 0; }\r\n\r\n var slideTransform = \"translate3d(\" + translateX + \"px,\" + translateY + \"px,\" + translateZ + \"px) rotateX(\" + rotateX + \"deg) rotateY(\" + rotateY + \"deg)\";\r\n\r\n $slideEl.transform(slideTransform);\r\n $slideEl[0].style.zIndex = -Math.abs(Math.round(offsetMultiplier)) + 1;\r\n if (params.slideShadows) {\r\n // Set shadows\r\n var $shadowBeforeEl = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');\r\n var $shadowAfterEl = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');\r\n if ($shadowBeforeEl.length === 0) {\r\n $shadowBeforeEl = $((\"\"));\r\n $slideEl.append($shadowBeforeEl);\r\n }\r\n if ($shadowAfterEl.length === 0) {\r\n $shadowAfterEl = $((\"\"));\r\n $slideEl.append($shadowAfterEl);\r\n }\r\n if ($shadowBeforeEl.length) { $shadowBeforeEl[0].style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0; }\r\n if ($shadowAfterEl.length) { $shadowAfterEl[0].style.opacity = (-offsetMultiplier) > 0 ? -offsetMultiplier : 0; }\r\n }\r\n }\r\n\r\n // Set correct perspective for IE10\r\n if (Support.pointerEvents || Support.prefixedPointerEvents) {\r\n var ws = $wrapperEl[0].style;\r\n ws.perspectiveOrigin = center + \"px 50%\";\r\n }\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n swiper.slides\r\n .transition(duration)\r\n .find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left')\r\n .transition(duration);\r\n },\r\n };\r\n\r\n var EffectCoverflow = {\r\n name: 'effect-coverflow',\r\n params: {\r\n coverflowEffect: {\r\n rotate: 50,\r\n stretch: 0,\r\n depth: 100,\r\n modifier: 1,\r\n slideShadows: true,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n coverflowEffect: {\r\n setTranslate: Coverflow.setTranslate.bind(swiper),\r\n setTransition: Coverflow.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'coverflow') { return; }\r\n\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"coverflow\"));\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"3d\"));\r\n\r\n swiper.params.watchSlidesProgress = true;\r\n swiper.originalParams.watchSlidesProgress = true;\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'coverflow') { return; }\r\n swiper.coverflowEffect.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'coverflow') { return; }\r\n swiper.coverflowEffect.setTransition(duration);\r\n },\r\n },\r\n };\r\n\r\n var Thumbs = {\r\n init: function init() {\r\n var swiper = this;\r\n var ref = swiper.params;\r\n var thumbsParams = ref.thumbs;\r\n var SwiperClass = swiper.constructor;\r\n if (thumbsParams.swiper instanceof SwiperClass) {\r\n swiper.thumbs.swiper = thumbsParams.swiper;\r\n Utils.extend(swiper.thumbs.swiper.originalParams, {\r\n watchSlidesProgress: true,\r\n slideToClickedSlide: false,\r\n });\r\n Utils.extend(swiper.thumbs.swiper.params, {\r\n watchSlidesProgress: true,\r\n slideToClickedSlide: false,\r\n });\r\n } else if (Utils.isObject(thumbsParams.swiper)) {\r\n swiper.thumbs.swiper = new SwiperClass(Utils.extend({}, thumbsParams.swiper, {\r\n watchSlidesVisibility: true,\r\n watchSlidesProgress: true,\r\n slideToClickedSlide: false,\r\n }));\r\n swiper.thumbs.swiperCreated = true;\r\n }\r\n swiper.thumbs.swiper.$el.addClass(swiper.params.thumbs.thumbsContainerClass);\r\n swiper.thumbs.swiper.on('tap', swiper.thumbs.onThumbClick);\r\n },\r\n onThumbClick: function onThumbClick() {\r\n var swiper = this;\r\n var thumbsSwiper = swiper.thumbs.swiper;\r\n if (!thumbsSwiper) { return; }\r\n var clickedIndex = thumbsSwiper.clickedIndex;\r\n if (typeof clickedIndex === 'undefined' || clickedIndex === null) { return; }\r\n var slideToIndex;\r\n if (thumbsSwiper.params.loop) {\r\n slideToIndex = parseInt($(thumbsSwiper.clickedSlide).attr('data-swiper-slide-index'), 10);\r\n } else {\r\n slideToIndex = clickedIndex;\r\n }\r\n if (swiper.params.loop) {\r\n var currentIndex = swiper.activeIndex;\r\n if (swiper.slides.eq(currentIndex).hasClass(swiper.params.slideDuplicateClass)) {\r\n swiper.loopFix();\r\n // eslint-disable-next-line\r\n swiper._clientLeft = swiper.$wrapperEl[0].clientLeft;\r\n currentIndex = swiper.activeIndex;\r\n }\r\n var prevIndex = swiper.slides.eq(currentIndex).prevAll((\"[data-swiper-slide-index=\\\"\" + slideToIndex + \"\\\"]\")).eq(0).index();\r\n var nextIndex = swiper.slides.eq(currentIndex).nextAll((\"[data-swiper-slide-index=\\\"\" + slideToIndex + \"\\\"]\")).eq(0).index();\r\n if (typeof prevIndex === 'undefined') { slideToIndex = nextIndex; }\r\n else if (typeof nextIndex === 'undefined') { slideToIndex = prevIndex; }\r\n else if (nextIndex - currentIndex < currentIndex - prevIndex) { slideToIndex = nextIndex; }\r\n else { slideToIndex = prevIndex; }\r\n }\r\n swiper.slideTo(slideToIndex);\r\n },\r\n update: function update(initial) {\r\n var swiper = this;\r\n var thumbsSwiper = swiper.thumbs.swiper;\r\n if (!thumbsSwiper) { return; }\r\n\r\n var slidesPerView = thumbsSwiper.params.slidesPerView === 'auto'\r\n ? thumbsSwiper.slidesPerViewDynamic()\r\n : thumbsSwiper.params.slidesPerView;\r\n\r\n if (swiper.realIndex !== thumbsSwiper.realIndex) {\r\n var currentThumbsIndex = thumbsSwiper.activeIndex;\r\n var newThumbsIndex;\r\n if (thumbsSwiper.params.loop) {\r\n if (thumbsSwiper.slides.eq(currentThumbsIndex).hasClass(thumbsSwiper.params.slideDuplicateClass)) {\r\n thumbsSwiper.loopFix();\r\n // eslint-disable-next-line\r\n thumbsSwiper._clientLeft = thumbsSwiper.$wrapperEl[0].clientLeft;\r\n currentThumbsIndex = thumbsSwiper.activeIndex;\r\n }\r\n // Find actual thumbs index to slide to\r\n var prevThumbsIndex = thumbsSwiper.slides.eq(currentThumbsIndex).prevAll((\"[data-swiper-slide-index=\\\"\" + (swiper.realIndex) + \"\\\"]\")).eq(0).index();\r\n var nextThumbsIndex = thumbsSwiper.slides.eq(currentThumbsIndex).nextAll((\"[data-swiper-slide-index=\\\"\" + (swiper.realIndex) + \"\\\"]\")).eq(0).index();\r\n if (typeof prevThumbsIndex === 'undefined') { newThumbsIndex = nextThumbsIndex; }\r\n else if (typeof nextThumbsIndex === 'undefined') { newThumbsIndex = prevThumbsIndex; }\r\n else if (nextThumbsIndex - currentThumbsIndex < currentThumbsIndex - prevThumbsIndex) { newThumbsIndex = nextThumbsIndex; }\r\n else { newThumbsIndex = prevThumbsIndex; }\r\n } else {\r\n newThumbsIndex = swiper.realIndex;\r\n }\r\n\r\n if (thumbsSwiper.visibleSlidesIndexes.indexOf(newThumbsIndex) < 0) {\r\n if (thumbsSwiper.params.centeredSlides) {\r\n if (newThumbsIndex > currentThumbsIndex) {\r\n newThumbsIndex = newThumbsIndex - Math.floor(slidesPerView / 2) + 1;\r\n } else {\r\n newThumbsIndex = newThumbsIndex + Math.floor(slidesPerView / 2) - 1;\r\n }\r\n } else if (newThumbsIndex > currentThumbsIndex) {\r\n newThumbsIndex = newThumbsIndex - slidesPerView + 1;\r\n }\r\n thumbsSwiper.slideTo(newThumbsIndex, initial ? 0 : undefined);\r\n }\r\n }\r\n\r\n // Activate thumbs\r\n var thumbsToActivate = 1;\r\n var thumbActiveClass = swiper.params.thumbs.slideThumbActiveClass;\r\n\r\n if (swiper.params.slidesPerView > 1 && !swiper.params.centeredSlides) {\r\n thumbsToActivate = swiper.params.slidesPerView;\r\n }\r\n\r\n thumbsSwiper.slides.removeClass(thumbActiveClass);\r\n if (thumbsSwiper.params.loop) {\r\n for (var i = 0; i < thumbsToActivate; i += 1) {\r\n thumbsSwiper.$wrapperEl.children((\"[data-swiper-slide-index=\\\"\" + (swiper.realIndex + i) + \"\\\"]\")).addClass(thumbActiveClass);\r\n }\r\n } else {\r\n for (var i$1 = 0; i$1 < thumbsToActivate; i$1 += 1) {\r\n thumbsSwiper.slides.eq(swiper.realIndex + i$1).addClass(thumbActiveClass);\r\n }\r\n }\r\n },\r\n };\r\n var Thumbs$1 = {\r\n name: 'thumbs',\r\n params: {\r\n thumbs: {\r\n swiper: null,\r\n slideThumbActiveClass: 'swiper-slide-thumb-active',\r\n thumbsContainerClass: 'swiper-container-thumbs',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n thumbs: {\r\n swiper: null,\r\n init: Thumbs.init.bind(swiper),\r\n update: Thumbs.update.bind(swiper),\r\n onThumbClick: Thumbs.onThumbClick.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n var ref = swiper.params;\r\n var thumbs = ref.thumbs;\r\n if (!thumbs || !thumbs.swiper) { return; }\r\n swiper.thumbs.init();\r\n swiper.thumbs.update(true);\r\n },\r\n slideChange: function slideChange() {\r\n var swiper = this;\r\n if (!swiper.thumbs.swiper) { return; }\r\n swiper.thumbs.update();\r\n },\r\n update: function update() {\r\n var swiper = this;\r\n if (!swiper.thumbs.swiper) { return; }\r\n swiper.thumbs.update();\r\n },\r\n resize: function resize() {\r\n var swiper = this;\r\n if (!swiper.thumbs.swiper) { return; }\r\n swiper.thumbs.update();\r\n },\r\n observerUpdate: function observerUpdate() {\r\n var swiper = this;\r\n if (!swiper.thumbs.swiper) { return; }\r\n swiper.thumbs.update();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n var thumbsSwiper = swiper.thumbs.swiper;\r\n if (!thumbsSwiper) { return; }\r\n thumbsSwiper.setTransition(duration);\r\n },\r\n beforeDestroy: function beforeDestroy() {\r\n var swiper = this;\r\n var thumbsSwiper = swiper.thumbs.swiper;\r\n if (!thumbsSwiper) { return; }\r\n if (swiper.thumbs.swiperCreated && thumbsSwiper) {\r\n thumbsSwiper.destroy();\r\n }\r\n },\r\n },\r\n };\r\n\r\n // Swiper Class\r\n\r\n var components = [\r\n Device$1,\r\n Support$1,\r\n Browser$1,\r\n Resize,\r\n Observer$1,\r\n Virtual$1,\r\n Keyboard$1,\r\n Mousewheel$1,\r\n Navigation$1,\r\n Pagination$1,\r\n Scrollbar$1,\r\n Parallax$1,\r\n Zoom$1,\r\n Lazy$1,\r\n Controller$1,\r\n A11y,\r\n History$1,\r\n HashNavigation$1,\r\n Autoplay$1,\r\n EffectFade,\r\n EffectCube,\r\n EffectFlip,\r\n EffectCoverflow,\r\n Thumbs$1\r\n ];\r\n\r\n if (typeof Swiper.use === 'undefined') {\r\n Swiper.use = Swiper.Class.use;\r\n Swiper.installModule = Swiper.Class.installModule;\r\n }\r\n\r\n Swiper.use(components);\r\n\r\n return Swiper;\r\n\r\n})));\r\n\n/*! picturefill - v3.0.2 - 2016-02-12\n * https://scottjehl.github.io/picturefill/\n * Copyright (c) 2016 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT\n */\n/*! Gecko-Picture - v1.0\n * https://github.com/scottjehl/picturefill/tree/3.0/src/plugins/gecko-picture\n * Firefox's early picture implementation (prior to FF41) is static and does\n * not react to viewport changes. This tiny module fixes this.\n */\n(function(window) {\n\t/*jshint eqnull:true */\n\tvar ua = navigator.userAgent;\n\n\tif ( window.HTMLPictureElement && ((/ecko/).test(ua) && ua.match(/rv\\:(\\d+)/) && RegExp.$1 < 45) ) {\n\t\taddEventListener(\"resize\", (function() {\n\t\t\tvar timer;\n\n\t\t\tvar dummySrc = document.createElement(\"source\");\n\n\t\t\tvar fixRespimg = function(img) {\n\t\t\t\tvar source, sizes;\n\t\t\t\tvar picture = img.parentNode;\n\n\t\t\t\tif (picture.nodeName.toUpperCase() === \"PICTURE\") {\n\t\t\t\t\tsource = dummySrc.cloneNode();\n\n\t\t\t\t\tpicture.insertBefore(source, picture.firstElementChild);\n\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\tpicture.removeChild(source);\n\t\t\t\t\t});\n\t\t\t\t} else if (!img._pfLastSize || img.offsetWidth > img._pfLastSize) {\n\t\t\t\t\timg._pfLastSize = img.offsetWidth;\n\t\t\t\t\tsizes = img.sizes;\n\t\t\t\t\timg.sizes += \",100vw\";\n\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\timg.sizes = sizes;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tvar findPictureImgs = function() {\n\t\t\t\tvar i;\n\t\t\t\tvar imgs = document.querySelectorAll(\"picture > img, img[srcset][sizes]\");\n\t\t\t\tfor (i = 0; i < imgs.length; i++) {\n\t\t\t\t\tfixRespimg(imgs[i]);\n\t\t\t\t}\n\t\t\t};\n\t\t\tvar onResize = function() {\n\t\t\t\tclearTimeout(timer);\n\t\t\t\ttimer = setTimeout(findPictureImgs, 99);\n\t\t\t};\n\t\t\tvar mq = window.matchMedia && matchMedia(\"(orientation: landscape)\");\n\t\t\tvar init = function() {\n\t\t\t\tonResize();\n\n\t\t\t\tif (mq && mq.addListener) {\n\t\t\t\t\tmq.addListener(onResize);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tdummySrc.srcset = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n\n\t\t\tif (/^[c|i]|d$/.test(document.readyState || \"\")) {\n\t\t\t\tinit();\n\t\t\t} else {\n\t\t\t\tdocument.addEventListener(\"DOMContentLoaded\", init);\n\t\t\t}\n\n\t\t\treturn onResize;\n\t\t})());\n\t}\n})(window);\n\n/*! Picturefill - v3.0.2\n * http://scottjehl.github.io/picturefill\n * Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt;\n * License: MIT\n */\n\n(function( window, document, undefined ) {\n\t// Enable strict mode\n\t\"use strict\";\n\n\t// HTML shim|v it for old IE (IE9 will still need the HTML video tag workaround)\n\tdocument.createElement( \"picture\" );\n\n\tvar warn, eminpx, alwaysCheckWDescriptor, evalId;\n\t// local object for method references and testing exposure\n\tvar pf = {};\n\tvar isSupportTestReady = false;\n\tvar noop = function() {};\n\tvar image = document.createElement( \"img\" );\n\tvar getImgAttr = image.getAttribute;\n\tvar setImgAttr = image.setAttribute;\n\tvar removeImgAttr = image.removeAttribute;\n\tvar docElem = document.documentElement;\n\tvar types = {};\n\tvar cfg = {\n\t\t//resource selection:\n\t\talgorithm: \"\"\n\t};\n\tvar srcAttr = \"data-pfsrc\";\n\tvar srcsetAttr = srcAttr + \"set\";\n\t// ua sniffing is done for undetectable img loading features,\n\t// to do some non crucial perf optimizations\n\tvar ua = navigator.userAgent;\n\tvar supportAbort = (/rident/).test(ua) || ((/ecko/).test(ua) && ua.match(/rv\\:(\\d+)/) && RegExp.$1 > 35 );\n\tvar curSrcProp = \"currentSrc\";\n\tvar regWDesc = /\\s+\\+?\\d+(e\\d+)?w/;\n\tvar regSize = /(\\([^)]+\\))?\\s*(.+)/;\n\tvar setOptions = window.picturefillCFG;\n\t/**\n\t * Shortcut property for https://w3c.github.io/webappsec/specs/mixedcontent/#restricts-mixed-content ( for easy overriding in tests )\n\t */\n\t// baseStyle also used by getEmValue (i.e.: width: 1em is important)\n\tvar baseStyle = \"position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)\";\n\tvar fsCss = \"font-size:100%!important;\";\n\tvar isVwDirty = true;\n\n\tvar cssCache = {};\n\tvar sizeLengthCache = {};\n\tvar DPR = window.devicePixelRatio;\n\tvar units = {\n\t\tpx: 1,\n\t\t\"in\": 96\n\t};\n\tvar anchor = document.createElement( \"a\" );\n\t/**\n\t * alreadyRun flag used for setOptions. is it true setOptions will reevaluate\n\t * @type {boolean}\n\t */\n\tvar alreadyRun = false;\n\n\t// Reusable, non-\"g\" Regexes\n\n\t// (Don't use \\s, to avoid matching non-breaking space.)\n\tvar regexLeadingSpaces = /^[ \\t\\n\\r\\u000c]+/,\n\t regexLeadingCommasOrSpaces = /^[, \\t\\n\\r\\u000c]+/,\n\t regexLeadingNotSpaces = /^[^ \\t\\n\\r\\u000c]+/,\n\t regexTrailingCommas = /[,]+$/,\n\t regexNonNegativeInteger = /^\\d+$/,\n\n\t // ( Positive or negative or unsigned integers or decimals, without or without exponents.\n\t // Must include at least one digit.\n\t // According to spec tests any decimal point must be followed by a digit.\n\t // No leading plus sign is allowed.)\n\t // https://html.spec.whatwg.org/multipage/infrastructure.html#valid-floating-point-number\n\t regexFloatingPoint = /^-?(?:[0-9]+|[0-9]*\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;\n\n\tvar on = function(obj, evt, fn, capture) {\n\t\tif ( obj.addEventListener ) {\n\t\t\tobj.addEventListener(evt, fn, capture || false);\n\t\t} else if ( obj.attachEvent ) {\n\t\t\tobj.attachEvent( \"on\" + evt, fn);\n\t\t}\n\t};\n\n\t/**\n\t * simple memoize function:\n\t */\n\n\tvar memoize = function(fn) {\n\t\tvar cache = {};\n\t\treturn function(input) {\n\t\t\tif ( !(input in cache) ) {\n\t\t\t\tcache[ input ] = fn(input);\n\t\t\t}\n\t\t\treturn cache[ input ];\n\t\t};\n\t};\n\n\t// UTILITY FUNCTIONS\n\n\t// Manual is faster than RegEx\n\t// http://jsperf.com/whitespace-character/5\n\tfunction isSpace(c) {\n\t\treturn (c === \"\\u0020\" || // space\n\t\t c === \"\\u0009\" || // horizontal tab\n\t\t c === \"\\u000A\" || // new line\n\t\t c === \"\\u000C\" || // form feed\n\t\t c === \"\\u000D\"); // carriage return\n\t}\n\n\t/**\n\t * gets a mediaquery and returns a boolean or gets a css length and returns a number\n\t * @param css mediaqueries or css length\n\t * @returns {boolean|number}\n\t *\n\t * based on: https://gist.github.com/jonathantneal/db4f77009b155f083738\n\t */\n\tvar evalCSS = (function() {\n\n\t\tvar regLength = /^([\\d\\.]+)(em|vw|px)$/;\n\t\tvar replace = function() {\n\t\t\tvar args = arguments, index = 0, string = args[0];\n\t\t\twhile (++index in args) {\n\t\t\t\tstring = string.replace(args[index], args[++index]);\n\t\t\t}\n\t\t\treturn string;\n\t\t};\n\n\t\tvar buildStr = memoize(function(css) {\n\n\t\t\treturn \"return \" + replace((css || \"\").toLowerCase(),\n\t\t\t\t// interpret `and`\n\t\t\t\t/\\band\\b/g, \"&&\",\n\n\t\t\t\t// interpret `,`\n\t\t\t\t/,/g, \"||\",\n\n\t\t\t\t// interpret `min-` as >=\n\t\t\t\t/min-([a-z-\\s]+):/g, \"e.$1>=\",\n\n\t\t\t\t// interpret `max-` as <=\n\t\t\t\t/max-([a-z-\\s]+):/g, \"e.$1<=\",\n\n\t\t\t\t//calc value\n\t\t\t\t/calc([^)]+)/g, \"($1)\",\n\n\t\t\t\t// interpret css values\n\t\t\t\t/(\\d+[\\.]*[\\d]*)([a-z]+)/g, \"($1 * e.$2)\",\n\t\t\t\t//make eval less evil\n\t\t\t\t/^(?!(e.[a-z]|[0-9\\.&=|><\\+\\-\\*\\(\\)\\/])).*/ig, \"\"\n\t\t\t) + \";\";\n\t\t});\n\n\t\treturn function(css, length) {\n\t\t\tvar parsedLength;\n\t\t\tif (!(css in cssCache)) {\n\t\t\t\tcssCache[css] = false;\n\t\t\t\tif (length && (parsedLength = css.match( regLength ))) {\n\t\t\t\t\tcssCache[css] = parsedLength[ 1 ] * units[parsedLength[ 2 ]];\n\t\t\t\t} else {\n\t\t\t\t\t/*jshint evil:true */\n\t\t\t\t\ttry{\n\t\t\t\t\t\tcssCache[css] = new Function(\"e\", buildStr(css))(units);\n\t\t\t\t\t} catch(e) {}\n\t\t\t\t\t/*jshint evil:false */\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn cssCache[css];\n\t\t};\n\t})();\n\n\tvar setResolution = function( candidate, sizesattr ) {\n\t\tif ( candidate.w ) { // h = means height: || descriptor.type === 'h' do not handle yet...\n\t\t\tcandidate.cWidth = pf.calcListLength( sizesattr || \"100vw\" );\n\t\t\tcandidate.res = candidate.w / candidate.cWidth ;\n\t\t} else {\n\t\t\tcandidate.res = candidate.d;\n\t\t}\n\t\treturn candidate;\n\t};\n\n\t/**\n\t *\n\t * @param opt\n\t */\n\tvar picturefill = function( opt ) {\n\n\t\tif (!isSupportTestReady) {return;}\n\n\t\tvar elements, i, plen;\n\n\t\tvar options = opt || {};\n\n\t\tif ( options.elements && options.elements.nodeType === 1 ) {\n\t\t\tif ( options.elements.nodeName.toUpperCase() === \"IMG\" ) {\n\t\t\t\toptions.elements = [ options.elements ];\n\t\t\t} else {\n\t\t\t\toptions.context = options.elements;\n\t\t\t\toptions.elements = null;\n\t\t\t}\n\t\t}\n\n\t\telements = options.elements || pf.qsa( (options.context || document), ( options.reevaluate || options.reselect ) ? pf.sel : pf.selShort );\n\n\t\tif ( (plen = elements.length) ) {\n\n\t\t\tpf.setupRun( options );\n\t\t\talreadyRun = true;\n\n\t\t\t// Loop through all elements\n\t\t\tfor ( i = 0; i < plen; i++ ) {\n\t\t\t\tpf.fillImg(elements[ i ], options);\n\t\t\t}\n\n\t\t\tpf.teardownRun( options );\n\t\t}\n\t};\n\n\t/**\n\t * outputs a warning for the developer\n\t * @param {message}\n\t * @type {Function}\n\t */\n\twarn = ( window.console && console.warn ) ?\n\t\tfunction( message ) {\n\t\t\tconsole.warn( message );\n\t\t} :\n\t\tnoop\n\t;\n\n\tif ( !(curSrcProp in image) ) {\n\t\tcurSrcProp = \"src\";\n\t}\n\n\t// Add support for standard mime types.\n\ttypes[ \"image/jpeg\" ] = true;\n\ttypes[ \"image/gif\" ] = true;\n\ttypes[ \"image/png\" ] = true;\n\n\tfunction detectTypeSupport( type, typeUri ) {\n\t\t// based on Modernizr's lossless img-webp test\n\t\t// note: asynchronous\n\t\tvar image = new window.Image();\n\t\timage.onerror = function() {\n\t\t\ttypes[ type ] = false;\n\t\t\tpicturefill();\n\t\t};\n\t\timage.onload = function() {\n\t\t\ttypes[ type ] = image.width === 1;\n\t\t\tpicturefill();\n\t\t};\n\t\timage.src = typeUri;\n\t\treturn \"pending\";\n\t}\n\n\t// test svg support\n\ttypes[ \"image/svg+xml\" ] = document.implementation.hasFeature( \"http://www.w3.org/TR/SVG11/feature#Image\", \"1.1\" );\n\n\t/**\n\t * updates the internal vW property with the current viewport width in px\n\t */\n\tfunction updateMetrics() {\n\n\t\tisVwDirty = false;\n\t\tDPR = window.devicePixelRatio;\n\t\tcssCache = {};\n\t\tsizeLengthCache = {};\n\n\t\tpf.DPR = DPR || 1;\n\n\t\tunits.width = Math.max(window.innerWidth || 0, docElem.clientWidth);\n\t\tunits.height = Math.max(window.innerHeight || 0, docElem.clientHeight);\n\n\t\tunits.vw = units.width / 100;\n\t\tunits.vh = units.height / 100;\n\n\t\tevalId = [ units.height, units.width, DPR ].join(\"-\");\n\n\t\tunits.em = pf.getEmValue();\n\t\tunits.rem = units.em;\n\t}\n\n\tfunction chooseLowRes( lowerValue, higherValue, dprValue, isCached ) {\n\t\tvar bonusFactor, tooMuch, bonus, meanDensity;\n\n\t\t//experimental\n\t\tif (cfg.algorithm === \"saveData\" ){\n\t\t\tif ( lowerValue > 2.7 ) {\n\t\t\t\tmeanDensity = dprValue + 1;\n\t\t\t} else {\n\t\t\t\ttooMuch = higherValue - dprValue;\n\t\t\t\tbonusFactor = Math.pow(lowerValue - 0.6, 1.5);\n\n\t\t\t\tbonus = tooMuch * bonusFactor;\n\n\t\t\t\tif (isCached) {\n\t\t\t\t\tbonus += 0.1 * bonusFactor;\n\t\t\t\t}\n\n\t\t\t\tmeanDensity = lowerValue + bonus;\n\t\t\t}\n\t\t} else {\n\t\t\tmeanDensity = (dprValue > 1) ?\n\t\t\t\tMath.sqrt(lowerValue * higherValue) :\n\t\t\t\tlowerValue;\n\t\t}\n\n\t\treturn meanDensity > dprValue;\n\t}\n\n\tfunction applyBestCandidate( img ) {\n\t\tvar srcSetCandidates;\n\t\tvar matchingSet = pf.getSet( img );\n\t\tvar evaluated = false;\n\t\tif ( matchingSet !== \"pending\" ) {\n\t\t\tevaluated = evalId;\n\t\t\tif ( matchingSet ) {\n\t\t\t\tsrcSetCandidates = pf.setRes( matchingSet );\n\t\t\t\tpf.applySetCandidate( srcSetCandidates, img );\n\t\t\t}\n\t\t}\n\t\timg[ pf.ns ].evaled = evaluated;\n\t}\n\n\tfunction ascendingSort( a, b ) {\n\t\treturn a.res - b.res;\n\t}\n\n\tfunction setSrcToCur( img, src, set ) {\n\t\tvar candidate;\n\t\tif ( !set && src ) {\n\t\t\tset = img[ pf.ns ].sets;\n\t\t\tset = set && set[set.length - 1];\n\t\t}\n\n\t\tcandidate = getCandidateForSrc(src, set);\n\n\t\tif ( candidate ) {\n\t\t\tsrc = pf.makeUrl(src);\n\t\t\timg[ pf.ns ].curSrc = src;\n\t\t\timg[ pf.ns ].curCan = candidate;\n\n\t\t\tif ( !candidate.res ) {\n\t\t\t\tsetResolution( candidate, candidate.set.sizes );\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\n\tfunction getCandidateForSrc( src, set ) {\n\t\tvar i, candidate, candidates;\n\t\tif ( src && set ) {\n\t\t\tcandidates = pf.parseSet( set );\n\t\t\tsrc = pf.makeUrl(src);\n\t\t\tfor ( i = 0; i < candidates.length; i++ ) {\n\t\t\t\tif ( src === pf.makeUrl(candidates[ i ].url) ) {\n\t\t\t\t\tcandidate = candidates[ i ];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\n\tfunction getAllSourceElements( picture, candidates ) {\n\t\tvar i, len, source, srcset;\n\n\t\t// SPEC mismatch intended for size and perf:\n\t\t// actually only source elements preceding the img should be used\n\t\t// also note: don't use qsa here, because IE8 sometimes doesn't like source as the key part in a selector\n\t\tvar sources = picture.getElementsByTagName( \"source\" );\n\n\t\tfor ( i = 0, len = sources.length; i < len; i++ ) {\n\t\t\tsource = sources[ i ];\n\t\t\tsource[ pf.ns ] = true;\n\t\t\tsrcset = source.getAttribute( \"srcset\" );\n\n\t\t\t// if source does not have a srcset attribute, skip\n\t\t\tif ( srcset ) {\n\t\t\t\tcandidates.push( {\n\t\t\t\t\tsrcset: srcset,\n\t\t\t\t\tmedia: source.getAttribute( \"media\" ),\n\t\t\t\t\ttype: source.getAttribute( \"type\" ),\n\t\t\t\t\tsizes: source.getAttribute( \"sizes\" )\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Srcset Parser\n\t * By Alex Bell | MIT License\n\t *\n\t * @returns Array [{url: _, d: _, w: _, h:_, set:_(????)}, ...]\n\t *\n\t * Based super duper closely on the reference algorithm at:\n\t * https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-srcset-attribute\n\t */\n\n\t// 1. Let input be the value passed to this algorithm.\n\t// (TO-DO : Explain what \"set\" argument is here. Maybe choose a more\n\t// descriptive & more searchable name. Since passing the \"set\" in really has\n\t// nothing to do with parsing proper, I would prefer this assignment eventually\n\t// go in an external fn.)\n\tfunction parseSrcset(input, set) {\n\n\t\tfunction collectCharacters(regEx) {\n\t\t\tvar chars,\n\t\t\t match = regEx.exec(input.substring(pos));\n\t\t\tif (match) {\n\t\t\t\tchars = match[ 0 ];\n\t\t\t\tpos += chars.length;\n\t\t\t\treturn chars;\n\t\t\t}\n\t\t}\n\n\t\tvar inputLength = input.length,\n\t\t url,\n\t\t descriptors,\n\t\t currentDescriptor,\n\t\t state,\n\t\t c,\n\n\t\t // 2. Let position be a pointer into input, initially pointing at the start\n\t\t // of the string.\n\t\t pos = 0,\n\n\t\t // 3. Let candidates be an initially empty source set.\n\t\t candidates = [];\n\n\t\t/**\n\t\t* Adds descriptor properties to a candidate, pushes to the candidates array\n\t\t* @return undefined\n\t\t*/\n\t\t// (Declared outside of the while loop so that it's only created once.\n\t\t// (This fn is defined before it is used, in order to pass JSHINT.\n\t\t// Unfortunately this breaks the sequencing of the spec comments. :/ )\n\t\tfunction parseDescriptors() {\n\n\t\t\t// 9. Descriptor parser: Let error be no.\n\t\t\tvar pError = false,\n\n\t\t\t// 10. Let width be absent.\n\t\t\t// 11. Let density be absent.\n\t\t\t// 12. Let future-compat-h be absent. (We're implementing it now as h)\n\t\t\t w, d, h, i,\n\t\t\t candidate = {},\n\t\t\t desc, lastChar, value, intVal, floatVal;\n\n\t\t\t// 13. For each descriptor in descriptors, run the appropriate set of steps\n\t\t\t// from the following list:\n\t\t\tfor (i = 0 ; i < descriptors.length; i++) {\n\t\t\t\tdesc = descriptors[ i ];\n\n\t\t\t\tlastChar = desc[ desc.length - 1 ];\n\t\t\t\tvalue = desc.substring(0, desc.length - 1);\n\t\t\t\tintVal = parseInt(value, 10);\n\t\t\t\tfloatVal = parseFloat(value);\n\n\t\t\t\t// If the descriptor consists of a valid non-negative integer followed by\n\t\t\t\t// a U+0077 LATIN SMALL LETTER W character\n\t\t\t\tif (regexNonNegativeInteger.test(value) && (lastChar === \"w\")) {\n\n\t\t\t\t\t// If width and density are not both absent, then let error be yes.\n\t\t\t\t\tif (w || d) {pError = true;}\n\n\t\t\t\t\t// Apply the rules for parsing non-negative integers to the descriptor.\n\t\t\t\t\t// If the result is zero, let error be yes.\n\t\t\t\t\t// Otherwise, let width be the result.\n\t\t\t\t\tif (intVal === 0) {pError = true;} else {w = intVal;}\n\n\t\t\t\t// If the descriptor consists of a valid floating-point number followed by\n\t\t\t\t// a U+0078 LATIN SMALL LETTER X character\n\t\t\t\t} else if (regexFloatingPoint.test(value) && (lastChar === \"x\")) {\n\n\t\t\t\t\t// If width, density and future-compat-h are not all absent, then let error\n\t\t\t\t\t// be yes.\n\t\t\t\t\tif (w || d || h) {pError = true;}\n\n\t\t\t\t\t// Apply the rules for parsing floating-point number values to the descriptor.\n\t\t\t\t\t// If the result is less than zero, let error be yes. Otherwise, let density\n\t\t\t\t\t// be the result.\n\t\t\t\t\tif (floatVal < 0) {pError = true;} else {d = floatVal;}\n\n\t\t\t\t// If the descriptor consists of a valid non-negative integer followed by\n\t\t\t\t// a U+0068 LATIN SMALL LETTER H character\n\t\t\t\t} else if (regexNonNegativeInteger.test(value) && (lastChar === \"h\")) {\n\n\t\t\t\t\t// If height and density are not both absent, then let error be yes.\n\t\t\t\t\tif (h || d) {pError = true;}\n\n\t\t\t\t\t// Apply the rules for parsing non-negative integers to the descriptor.\n\t\t\t\t\t// If the result is zero, let error be yes. Otherwise, let future-compat-h\n\t\t\t\t\t// be the result.\n\t\t\t\t\tif (intVal === 0) {pError = true;} else {h = intVal;}\n\n\t\t\t\t// Anything else, Let error be yes.\n\t\t\t\t} else {pError = true;}\n\t\t\t} // (close step 13 for loop)\n\n\t\t\t// 15. If error is still no, then append a new image source to candidates whose\n\t\t\t// URL is url, associated with a width width if not absent and a pixel\n\t\t\t// density density if not absent. Otherwise, there is a parse error.\n\t\t\tif (!pError) {\n\t\t\t\tcandidate.url = url;\n\n\t\t\t\tif (w) { candidate.w = w;}\n\t\t\t\tif (d) { candidate.d = d;}\n\t\t\t\tif (h) { candidate.h = h;}\n\t\t\t\tif (!h && !d && !w) {candidate.d = 1;}\n\t\t\t\tif (candidate.d === 1) {set.has1x = true;}\n\t\t\t\tcandidate.set = set;\n\n\t\t\t\tcandidates.push(candidate);\n\t\t\t}\n\t\t} // (close parseDescriptors fn)\n\n\t\t/**\n\t\t* Tokenizes descriptor properties prior to parsing\n\t\t* Returns undefined.\n\t\t* (Again, this fn is defined before it is used, in order to pass JSHINT.\n\t\t* Unfortunately this breaks the logical sequencing of the spec comments. :/ )\n\t\t*/\n\t\tfunction tokenize() {\n\n\t\t\t// 8.1. Descriptor tokeniser: Skip whitespace\n\t\t\tcollectCharacters(regexLeadingSpaces);\n\n\t\t\t// 8.2. Let current descriptor be the empty string.\n\t\t\tcurrentDescriptor = \"\";\n\n\t\t\t// 8.3. Let state be in descriptor.\n\t\t\tstate = \"in descriptor\";\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 8.4. Let c be the character at position.\n\t\t\t\tc = input.charAt(pos);\n\n\t\t\t\t// Do the following depending on the value of state.\n\t\t\t\t// For the purpose of this step, \"EOF\" is a special character representing\n\t\t\t\t// that position is past the end of input.\n\n\t\t\t\t// In descriptor\n\t\t\t\tif (state === \"in descriptor\") {\n\t\t\t\t\t// Do the following, depending on the value of c:\n\n\t\t\t\t // Space character\n\t\t\t\t // If current descriptor is not empty, append current descriptor to\n\t\t\t\t // descriptors and let current descriptor be the empty string.\n\t\t\t\t // Set state to after descriptor.\n\t\t\t\t\tif (isSpace(c)) {\n\t\t\t\t\t\tif (currentDescriptor) {\n\t\t\t\t\t\t\tdescriptors.push(currentDescriptor);\n\t\t\t\t\t\t\tcurrentDescriptor = \"\";\n\t\t\t\t\t\t\tstate = \"after descriptor\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// U+002C COMMA (,)\n\t\t\t\t\t// Advance position to the next character in input. If current descriptor\n\t\t\t\t\t// is not empty, append current descriptor to descriptors. Jump to the step\n\t\t\t\t\t// labeled descriptor parser.\n\t\t\t\t\t} else if (c === \",\") {\n\t\t\t\t\t\tpos += 1;\n\t\t\t\t\t\tif (currentDescriptor) {\n\t\t\t\t\t\t\tdescriptors.push(currentDescriptor);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparseDescriptors();\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t// U+0028 LEFT PARENTHESIS (()\n\t\t\t\t\t// Append c to current descriptor. Set state to in parens.\n\t\t\t\t\t} else if (c === \"\\u0028\") {\n\t\t\t\t\t\tcurrentDescriptor = currentDescriptor + c;\n\t\t\t\t\t\tstate = \"in parens\";\n\n\t\t\t\t\t// EOF\n\t\t\t\t\t// If current descriptor is not empty, append current descriptor to\n\t\t\t\t\t// descriptors. Jump to the step labeled descriptor parser.\n\t\t\t\t\t} else if (c === \"\") {\n\t\t\t\t\t\tif (currentDescriptor) {\n\t\t\t\t\t\t\tdescriptors.push(currentDescriptor);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparseDescriptors();\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t// Anything else\n\t\t\t\t\t// Append c to current descriptor.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentDescriptor = currentDescriptor + c;\n\t\t\t\t\t}\n\t\t\t\t// (end \"in descriptor\"\n\n\t\t\t\t// In parens\n\t\t\t\t} else if (state === \"in parens\") {\n\n\t\t\t\t\t// U+0029 RIGHT PARENTHESIS ())\n\t\t\t\t\t// Append c to current descriptor. Set state to in descriptor.\n\t\t\t\t\tif (c === \")\") {\n\t\t\t\t\t\tcurrentDescriptor = currentDescriptor + c;\n\t\t\t\t\t\tstate = \"in descriptor\";\n\n\t\t\t\t\t// EOF\n\t\t\t\t\t// Append current descriptor to descriptors. Jump to the step labeled\n\t\t\t\t\t// descriptor parser.\n\t\t\t\t\t} else if (c === \"\") {\n\t\t\t\t\t\tdescriptors.push(currentDescriptor);\n\t\t\t\t\t\tparseDescriptors();\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t// Anything else\n\t\t\t\t\t// Append c to current descriptor.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentDescriptor = currentDescriptor + c;\n\t\t\t\t\t}\n\n\t\t\t\t// After descriptor\n\t\t\t\t} else if (state === \"after descriptor\") {\n\n\t\t\t\t\t// Do the following, depending on the value of c:\n\t\t\t\t\t// Space character: Stay in this state.\n\t\t\t\t\tif (isSpace(c)) {\n\n\t\t\t\t\t// EOF: Jump to the step labeled descriptor parser.\n\t\t\t\t\t} else if (c === \"\") {\n\t\t\t\t\t\tparseDescriptors();\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t// Anything else\n\t\t\t\t\t// Set state to in descriptor. Set position to the previous character in input.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstate = \"in descriptor\";\n\t\t\t\t\t\tpos -= 1;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Advance position to the next character in input.\n\t\t\t\tpos += 1;\n\n\t\t\t// Repeat this step.\n\t\t\t} // (close while true loop)\n\t\t}\n\n\t\t// 4. Splitting loop: Collect a sequence of characters that are space\n\t\t// characters or U+002C COMMA characters. If any U+002C COMMA characters\n\t\t// were collected, that is a parse error.\n\t\twhile (true) {\n\t\t\tcollectCharacters(regexLeadingCommasOrSpaces);\n\n\t\t\t// 5. If position is past the end of input, return candidates and abort these steps.\n\t\t\tif (pos >= inputLength) {\n\t\t\t\treturn candidates; // (we're done, this is the sole return path)\n\t\t\t}\n\n\t\t\t// 6. Collect a sequence of characters that are not space characters,\n\t\t\t// and let that be url.\n\t\t\turl = collectCharacters(regexLeadingNotSpaces);\n\n\t\t\t// 7. Let descriptors be a new empty list.\n\t\t\tdescriptors = [];\n\n\t\t\t// 8. If url ends with a U+002C COMMA character (,), follow these substeps:\n\t\t\t//\t\t(1). Remove all trailing U+002C COMMA characters from url. If this removed\n\t\t\t// more than one character, that is a parse error.\n\t\t\tif (url.slice(-1) === \",\") {\n\t\t\t\turl = url.replace(regexTrailingCommas, \"\");\n\t\t\t\t// (Jump ahead to step 9 to skip tokenization and just push the candidate).\n\t\t\t\tparseDescriptors();\n\n\t\t\t//\tOtherwise, follow these substeps:\n\t\t\t} else {\n\t\t\t\ttokenize();\n\t\t\t} // (close else of step 8)\n\n\t\t// 16. Return to the step labeled splitting loop.\n\t\t} // (Close of big while loop.)\n\t}\n\n\t/*\n\t * Sizes Parser\n\t *\n\t * By Alex Bell | MIT License\n\t *\n\t * Non-strict but accurate and lightweight JS Parser for the string value \n\t *\n\t * Reference algorithm at:\n\t * https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-sizes-attribute\n\t *\n\t * Most comments are copied in directly from the spec\n\t * (except for comments in parens).\n\t *\n\t * Grammar is:\n\t * = # [ , ]? | \n\t * = \n\t * = \n\t * http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#attr-img-sizes\n\t *\n\t * E.g. \"(max-width: 30em) 100vw, (max-width: 50em) 70vw, 100vw\"\n\t * or \"(min-width: 30em), calc(30vw - 15px)\" or just \"30vw\"\n\t *\n\t * Returns the first valid with a media condition that evaluates to true,\n\t * or \"100vw\" if all valid media conditions evaluate to false.\n\t *\n\t */\n\n\tfunction parseSizes(strValue) {\n\n\t\t// (Percentage CSS lengths are not allowed in this case, to avoid confusion:\n\t\t// https://html.spec.whatwg.org/multipage/embedded-content.html#valid-source-size-list\n\t\t// CSS allows a single optional plus or minus sign:\n\t\t// http://www.w3.org/TR/CSS2/syndata.html#numbers\n\t\t// CSS is ASCII case-insensitive:\n\t\t// http://www.w3.org/TR/CSS2/syndata.html#characters )\n\t\t// Spec allows exponential notation for type:\n\t\t// http://dev.w3.org/csswg/css-values/#numbers\n\t\tvar regexCssLengthWithUnits = /^(?:[+-]?[0-9]+|[0-9]*\\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i;\n\n\t\t// (This is a quick and lenient test. Because of optional unlimited-depth internal\n\t\t// grouping parens and strict spacing rules, this could get very complicated.)\n\t\tvar regexCssCalc = /^calc\\((?:[0-9a-z \\.\\+\\-\\*\\/\\(\\)]+)\\)$/i;\n\n\t\tvar i;\n\t\tvar unparsedSizesList;\n\t\tvar unparsedSizesListLength;\n\t\tvar unparsedSize;\n\t\tvar lastComponentValue;\n\t\tvar size;\n\n\t\t// UTILITY FUNCTIONS\n\n\t\t// (Toy CSS parser. The goals here are:\n\t\t// 1) expansive test coverage without the weight of a full CSS parser.\n\t\t// 2) Avoiding regex wherever convenient.\n\t\t// Quick tests: http://jsfiddle.net/gtntL4gr/3/\n\t\t// Returns an array of arrays.)\n\t\tfunction parseComponentValues(str) {\n\t\t\tvar chrctr;\n\t\t\tvar component = \"\";\n\t\t\tvar componentArray = [];\n\t\t\tvar listArray = [];\n\t\t\tvar parenDepth = 0;\n\t\t\tvar pos = 0;\n\t\t\tvar inComment = false;\n\n\t\t\tfunction pushComponent() {\n\t\t\t\tif (component) {\n\t\t\t\t\tcomponentArray.push(component);\n\t\t\t\t\tcomponent = \"\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction pushComponentArray() {\n\t\t\t\tif (componentArray[0]) {\n\t\t\t\t\tlistArray.push(componentArray);\n\t\t\t\t\tcomponentArray = [];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// (Loop forwards from the beginning of the string.)\n\t\t\twhile (true) {\n\t\t\t\tchrctr = str.charAt(pos);\n\n\t\t\t\tif (chrctr === \"\") { // ( End of string reached.)\n\t\t\t\t\tpushComponent();\n\t\t\t\t\tpushComponentArray();\n\t\t\t\t\treturn listArray;\n\t\t\t\t} else if (inComment) {\n\t\t\t\t\tif ((chrctr === \"*\") && (str[pos + 1] === \"/\")) { // (At end of a comment.)\n\t\t\t\t\t\tinComment = false;\n\t\t\t\t\t\tpos += 2;\n\t\t\t\t\t\tpushComponent();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpos += 1; // (Skip all characters inside comments.)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t} else if (isSpace(chrctr)) {\n\t\t\t\t\t// (If previous character in loop was also a space, or if\n\t\t\t\t\t// at the beginning of the string, do not add space char to\n\t\t\t\t\t// component.)\n\t\t\t\t\tif ( (str.charAt(pos - 1) && isSpace( str.charAt(pos - 1) ) ) || !component ) {\n\t\t\t\t\t\tpos += 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (parenDepth === 0) {\n\t\t\t\t\t\tpushComponent();\n\t\t\t\t\t\tpos +=1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// (Replace any space character with a plain space for legibility.)\n\t\t\t\t\t\tchrctr = \" \";\n\t\t\t\t\t}\n\t\t\t\t} else if (chrctr === \"(\") {\n\t\t\t\t\tparenDepth += 1;\n\t\t\t\t} else if (chrctr === \")\") {\n\t\t\t\t\tparenDepth -= 1;\n\t\t\t\t} else if (chrctr === \",\") {\n\t\t\t\t\tpushComponent();\n\t\t\t\t\tpushComponentArray();\n\t\t\t\t\tpos += 1;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if ( (chrctr === \"/\") && (str.charAt(pos + 1) === \"*\") ) {\n\t\t\t\t\tinComment = true;\n\t\t\t\t\tpos += 2;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tcomponent = component + chrctr;\n\t\t\t\tpos += 1;\n\t\t\t}\n\t\t}\n\n\t\tfunction isValidNonNegativeSourceSizeValue(s) {\n\t\t\tif (regexCssLengthWithUnits.test(s) && (parseFloat(s) >= 0)) {return true;}\n\t\t\tif (regexCssCalc.test(s)) {return true;}\n\t\t\t// ( http://www.w3.org/TR/CSS2/syndata.html#numbers says:\n\t\t\t// \"-0 is equivalent to 0 and is not a negative number.\" which means that\n\t\t\t// unitless zero and unitless negative zero must be accepted as special cases.)\n\t\t\tif ((s === \"0\") || (s === \"-0\") || (s === \"+0\")) {return true;}\n\t\t\treturn false;\n\t\t}\n\n\t\t// When asked to parse a sizes attribute from an element, parse a\n\t\t// comma-separated list of component values from the value of the element's\n\t\t// sizes attribute (or the empty string, if the attribute is absent), and let\n\t\t// unparsed sizes list be the result.\n\t\t// http://dev.w3.org/csswg/css-syntax/#parse-comma-separated-list-of-component-values\n\n\t\tunparsedSizesList = parseComponentValues(strValue);\n\t\tunparsedSizesListLength = unparsedSizesList.length;\n\n\t\t// For each unparsed size in unparsed sizes list:\n\t\tfor (i = 0; i < unparsedSizesListLength; i++) {\n\t\t\tunparsedSize = unparsedSizesList[i];\n\n\t\t\t// 1. Remove all consecutive s from the end of unparsed size.\n\t\t\t// ( parseComponentValues() already omits spaces outside of parens. )\n\n\t\t\t// If unparsed size is now empty, that is a parse error; continue to the next\n\t\t\t// iteration of this algorithm.\n\t\t\t// ( parseComponentValues() won't push an empty array. )\n\n\t\t\t// 2. If the last component value in unparsed size is a valid non-negative\n\t\t\t// , let size be its value and remove the component value\n\t\t\t// from unparsed size. Any CSS function other than the calc() function is\n\t\t\t// invalid. Otherwise, there is a parse error; continue to the next iteration\n\t\t\t// of this algorithm.\n\t\t\t// http://dev.w3.org/csswg/css-syntax/#parse-component-value\n\t\t\tlastComponentValue = unparsedSize[unparsedSize.length - 1];\n\n\t\t\tif (isValidNonNegativeSourceSizeValue(lastComponentValue)) {\n\t\t\t\tsize = lastComponentValue;\n\t\t\t\tunparsedSize.pop();\n\t\t\t} else {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// 3. Remove all consecutive s from the end of unparsed\n\t\t\t// size. If unparsed size is now empty, return size and exit this algorithm.\n\t\t\t// If this was not the last item in unparsed sizes list, that is a parse error.\n\t\t\tif (unparsedSize.length === 0) {\n\t\t\t\treturn size;\n\t\t\t}\n\n\t\t\t// 4. Parse the remaining component values in unparsed size as a\n\t\t\t// . If it does not parse correctly, or it does parse\n\t\t\t// correctly but the evaluates to false, continue to the\n\t\t\t// next iteration of this algorithm.\n\t\t\t// (Parsing all possible compound media conditions in JS is heavy, complicated,\n\t\t\t// and the payoff is unclear. Is there ever an situation where the\n\t\t\t// media condition parses incorrectly but still somehow evaluates to true?\n\t\t\t// Can we just rely on the browser/polyfill to do it?)\n\t\t\tunparsedSize = unparsedSize.join(\" \");\n\t\t\tif (!(pf.matchesMedia( unparsedSize ) ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// 5. Return size and exit this algorithm.\n\t\t\treturn size;\n\t\t}\n\n\t\t// If the above algorithm exhausts unparsed sizes list without returning a\n\t\t// size value, return 100vw.\n\t\treturn \"100vw\";\n\t}\n\n\t// namespace\n\tpf.ns = (\"pf\" + new Date().getTime()).substr(0, 9);\n\n\t// srcset support test\n\tpf.supSrcset = \"srcset\" in image;\n\tpf.supSizes = \"sizes\" in image;\n\tpf.supPicture = !!window.HTMLPictureElement;\n\n\t// UC browser does claim to support srcset and picture, but not sizes,\n\t// this extended test reveals the browser does support nothing\n\tif (pf.supSrcset && pf.supPicture && !pf.supSizes) {\n\t\t(function(image2) {\n\t\t\timage.srcset = \"data:,a\";\n\t\t\timage2.src = \"data:,a\";\n\t\t\tpf.supSrcset = image.complete === image2.complete;\n\t\t\tpf.supPicture = pf.supSrcset && pf.supPicture;\n\t\t})(document.createElement(\"img\"));\n\t}\n\n\t// Safari9 has basic support for sizes, but does't expose the `sizes` idl attribute\n\tif (pf.supSrcset && !pf.supSizes) {\n\n\t\t(function() {\n\t\t\tvar width2 = \"data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\";\n\t\t\tvar width1 = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n\t\t\tvar img = document.createElement(\"img\");\n\t\t\tvar test = function() {\n\t\t\t\tvar width = img.width;\n\n\t\t\t\tif (width === 2) {\n\t\t\t\t\tpf.supSizes = true;\n\t\t\t\t}\n\n\t\t\t\talwaysCheckWDescriptor = pf.supSrcset && !pf.supSizes;\n\n\t\t\t\tisSupportTestReady = true;\n\t\t\t\t// force async\n\t\t\t\tsetTimeout(picturefill);\n\t\t\t};\n\n\t\t\timg.onload = test;\n\t\t\timg.onerror = test;\n\t\t\timg.setAttribute(\"sizes\", \"9px\");\n\n\t\t\timg.srcset = width1 + \" 1w,\" + width2 + \" 9w\";\n\t\t\timg.src = width1;\n\t\t})();\n\n\t} else {\n\t\tisSupportTestReady = true;\n\t}\n\n\t// using pf.qsa instead of dom traversing does scale much better,\n\t// especially on sites mixing responsive and non-responsive images\n\tpf.selShort = \"picture>img,img[srcset]\";\n\tpf.sel = pf.selShort;\n\tpf.cfg = cfg;\n\n\t/**\n\t * Shortcut property for `devicePixelRatio` ( for easy overriding in tests )\n\t */\n\tpf.DPR = (DPR || 1 );\n\tpf.u = units;\n\n\t// container of supported mime types that one might need to qualify before using\n\tpf.types = types;\n\n\tpf.setSize = noop;\n\n\t/**\n\t * Gets a string and returns the absolute URL\n\t * @param src\n\t * @returns {String} absolute URL\n\t */\n\n\tpf.makeUrl = memoize(function(src) {\n\t\tanchor.href = src;\n\t\treturn anchor.href;\n\t});\n\n\t/**\n\t * Gets a DOM element or document and a selctor and returns the found matches\n\t * Can be extended with jQuery/Sizzle for IE7 support\n\t * @param context\n\t * @param sel\n\t * @returns {NodeList|Array}\n\t */\n\tpf.qsa = function(context, sel) {\n\t\treturn ( \"querySelector\" in context ) ? context.querySelectorAll(sel) : [];\n\t};\n\n\t/**\n\t * Shortcut method for matchMedia ( for easy overriding in tests )\n\t * wether native or pf.mMQ is used will be decided lazy on first call\n\t * @returns {boolean}\n\t */\n\tpf.matchesMedia = function() {\n\t\tif ( window.matchMedia && (matchMedia( \"(min-width: 0.1em)\" ) || {}).matches ) {\n\t\t\tpf.matchesMedia = function( media ) {\n\t\t\t\treturn !media || ( matchMedia( media ).matches );\n\t\t\t};\n\t\t} else {\n\t\t\tpf.matchesMedia = pf.mMQ;\n\t\t}\n\n\t\treturn pf.matchesMedia.apply( this, arguments );\n\t};\n\n\t/**\n\t * A simplified matchMedia implementation for IE8 and IE9\n\t * handles only min-width/max-width with px or em values\n\t * @param media\n\t * @returns {boolean}\n\t */\n\tpf.mMQ = function( media ) {\n\t\treturn media ? evalCSS(media) : true;\n\t};\n\n\t/**\n\t * Returns the calculated length in css pixel from the given sourceSizeValue\n\t * http://dev.w3.org/csswg/css-values-3/#length-value\n\t * intended Spec mismatches:\n\t * * Does not check for invalid use of CSS functions\n\t * * Does handle a computed length of 0 the same as a negative and therefore invalid value\n\t * @param sourceSizeValue\n\t * @returns {Number}\n\t */\n\tpf.calcLength = function( sourceSizeValue ) {\n\n\t\tvar value = evalCSS(sourceSizeValue, true) || false;\n\t\tif (value < 0) {\n\t\t\tvalue = false;\n\t\t}\n\n\t\treturn value;\n\t};\n\n\t/**\n\t * Takes a type string and checks if its supported\n\t */\n\n\tpf.supportsType = function( type ) {\n\t\treturn ( type ) ? types[ type ] : true;\n\t};\n\n\t/**\n\t * Parses a sourceSize into mediaCondition (media) and sourceSizeValue (length)\n\t * @param sourceSizeStr\n\t * @returns {*}\n\t */\n\tpf.parseSize = memoize(function( sourceSizeStr ) {\n\t\tvar match = ( sourceSizeStr || \"\" ).match(regSize);\n\t\treturn {\n\t\t\tmedia: match && match[1],\n\t\t\tlength: match && match[2]\n\t\t};\n\t});\n\n\tpf.parseSet = function( set ) {\n\t\tif ( !set.cands ) {\n\t\t\tset.cands = parseSrcset(set.srcset, set);\n\t\t}\n\t\treturn set.cands;\n\t};\n\n\t/**\n\t * returns 1em in css px for html/body default size\n\t * function taken from respondjs\n\t * @returns {*|number}\n\t */\n\tpf.getEmValue = function() {\n\t\tvar body;\n\t\tif ( !eminpx && (body = document.body) ) {\n\t\t\tvar div = document.createElement( \"div\" ),\n\t\t\t\toriginalHTMLCSS = docElem.style.cssText,\n\t\t\t\toriginalBodyCSS = body.style.cssText;\n\n\t\t\tdiv.style.cssText = baseStyle;\n\n\t\t\t// 1em in a media query is the value of the default font size of the browser\n\t\t\t// reset docElem and body to ensure the correct value is returned\n\t\t\tdocElem.style.cssText = fsCss;\n\t\t\tbody.style.cssText = fsCss;\n\n\t\t\tbody.appendChild( div );\n\t\t\teminpx = div.offsetWidth;\n\t\t\tbody.removeChild( div );\n\n\t\t\t//also update eminpx before returning\n\t\t\teminpx = parseFloat( eminpx, 10 );\n\n\t\t\t// restore the original values\n\t\t\tdocElem.style.cssText = originalHTMLCSS;\n\t\t\tbody.style.cssText = originalBodyCSS;\n\n\t\t}\n\t\treturn eminpx || 16;\n\t};\n\n\t/**\n\t * Takes a string of sizes and returns the width in pixels as a number\n\t */\n\tpf.calcListLength = function( sourceSizeListStr ) {\n\t\t// Split up source size list, ie ( max-width: 30em ) 100%, ( max-width: 50em ) 50%, 33%\n\t\t//\n\t\t// or (min-width:30em) calc(30% - 15px)\n\t\tif ( !(sourceSizeListStr in sizeLengthCache) || cfg.uT ) {\n\t\t\tvar winningLength = pf.calcLength( parseSizes( sourceSizeListStr ) );\n\n\t\t\tsizeLengthCache[ sourceSizeListStr ] = !winningLength ? units.width : winningLength;\n\t\t}\n\n\t\treturn sizeLengthCache[ sourceSizeListStr ];\n\t};\n\n\t/**\n\t * Takes a candidate object with a srcset property in the form of url/\n\t * ex. \"images/pic-medium.png 1x, images/pic-medium-2x.png 2x\" or\n\t * \"images/pic-medium.png 400w, images/pic-medium-2x.png 800w\" or\n\t * \"images/pic-small.png\"\n\t * Get an array of image candidates in the form of\n\t * {url: \"/foo/bar.png\", resolution: 1}\n\t * where resolution is http://dev.w3.org/csswg/css-values-3/#resolution-value\n\t * If sizes is specified, res is calculated\n\t */\n\tpf.setRes = function( set ) {\n\t\tvar candidates;\n\t\tif ( set ) {\n\n\t\t\tcandidates = pf.parseSet( set );\n\n\t\t\tfor ( var i = 0, len = candidates.length; i < len; i++ ) {\n\t\t\t\tsetResolution( candidates[ i ], set.sizes );\n\t\t\t}\n\t\t}\n\t\treturn candidates;\n\t};\n\n\tpf.setRes.res = setResolution;\n\n\tpf.applySetCandidate = function( candidates, img ) {\n\t\tif ( !candidates.length ) {return;}\n\t\tvar candidate,\n\t\t\ti,\n\t\t\tj,\n\t\t\tlength,\n\t\t\tbestCandidate,\n\t\t\tcurSrc,\n\t\t\tcurCan,\n\t\t\tcandidateSrc,\n\t\t\tabortCurSrc;\n\n\t\tvar imageData = img[ pf.ns ];\n\t\tvar dpr = pf.DPR;\n\n\t\tcurSrc = imageData.curSrc || img[curSrcProp];\n\n\t\tcurCan = imageData.curCan || setSrcToCur(img, curSrc, candidates[0].set);\n\n\t\t// if we have a current source, we might either become lazy or give this source some advantage\n\t\tif ( curCan && curCan.set === candidates[ 0 ].set ) {\n\n\t\t\t// if browser can abort image request and the image has a higher pixel density than needed\n\t\t\t// and this image isn't downloaded yet, we skip next part and try to save bandwidth\n\t\t\tabortCurSrc = (supportAbort && !img.complete && curCan.res - 0.1 > dpr);\n\n\t\t\tif ( !abortCurSrc ) {\n\t\t\t\tcurCan.cached = true;\n\n\t\t\t\t// if current candidate is \"best\", \"better\" or \"okay\",\n\t\t\t\t// set it to bestCandidate\n\t\t\t\tif ( curCan.res >= dpr ) {\n\t\t\t\t\tbestCandidate = curCan;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( !bestCandidate ) {\n\n\t\t\tcandidates.sort( ascendingSort );\n\n\t\t\tlength = candidates.length;\n\t\t\tbestCandidate = candidates[ length - 1 ];\n\n\t\t\tfor ( i = 0; i < length; i++ ) {\n\t\t\t\tcandidate = candidates[ i ];\n\t\t\t\tif ( candidate.res >= dpr ) {\n\t\t\t\t\tj = i - 1;\n\n\t\t\t\t\t// we have found the perfect candidate,\n\t\t\t\t\t// but let's improve this a little bit with some assumptions ;-)\n\t\t\t\t\tif (candidates[ j ] &&\n\t\t\t\t\t\t(abortCurSrc || curSrc !== pf.makeUrl( candidate.url )) &&\n\t\t\t\t\t\tchooseLowRes(candidates[ j ].res, candidate.res, dpr, candidates[ j ].cached)) {\n\n\t\t\t\t\t\tbestCandidate = candidates[ j ];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbestCandidate = candidate;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( bestCandidate ) {\n\n\t\t\tcandidateSrc = pf.makeUrl( bestCandidate.url );\n\n\t\t\timageData.curSrc = candidateSrc;\n\t\t\timageData.curCan = bestCandidate;\n\n\t\t\tif ( candidateSrc !== curSrc ) {\n\t\t\t\tpf.setSrc( img, bestCandidate );\n\t\t\t}\n\t\t\tpf.setSize( img );\n\t\t}\n\t};\n\n\tpf.setSrc = function( img, bestCandidate ) {\n\t\tvar origWidth;\n\t\timg.src = bestCandidate.url;\n\n\t\t// although this is a specific Safari issue, we don't want to take too much different code paths\n\t\tif ( bestCandidate.set.type === \"image/svg+xml\" ) {\n\t\t\torigWidth = img.style.width;\n\t\t\timg.style.width = (img.offsetWidth + 1) + \"px\";\n\n\t\t\t// next line only should trigger a repaint\n\t\t\t// if... is only done to trick dead code removal\n\t\t\tif ( img.offsetWidth + 1 ) {\n\t\t\t\timg.style.width = origWidth;\n\t\t\t}\n\t\t}\n\t};\n\n\tpf.getSet = function( img ) {\n\t\tvar i, set, supportsType;\n\t\tvar match = false;\n\t\tvar sets = img [ pf.ns ].sets;\n\n\t\tfor ( i = 0; i < sets.length && !match; i++ ) {\n\t\t\tset = sets[i];\n\n\t\t\tif ( !set.srcset || !pf.matchesMedia( set.media ) || !(supportsType = pf.supportsType( set.type )) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( supportsType === \"pending\" ) {\n\t\t\t\tset = supportsType;\n\t\t\t}\n\n\t\t\tmatch = set;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn match;\n\t};\n\n\tpf.parseSets = function( element, parent, options ) {\n\t\tvar srcsetAttribute, imageSet, isWDescripor, srcsetParsed;\n\n\t\tvar hasPicture = parent && parent.nodeName.toUpperCase() === \"PICTURE\";\n\t\tvar imageData = element[ pf.ns ];\n\n\t\tif ( imageData.src === undefined || options.src ) {\n\t\t\timageData.src = getImgAttr.call( element, \"src\" );\n\t\t\tif ( imageData.src ) {\n\t\t\t\tsetImgAttr.call( element, srcAttr, imageData.src );\n\t\t\t} else {\n\t\t\t\tremoveImgAttr.call( element, srcAttr );\n\t\t\t}\n\t\t}\n\n\t\tif ( imageData.srcset === undefined || options.srcset || !pf.supSrcset || element.srcset ) {\n\t\t\tsrcsetAttribute = getImgAttr.call( element, \"srcset\" );\n\t\t\timageData.srcset = srcsetAttribute;\n\t\t\tsrcsetParsed = true;\n\t\t}\n\n\t\timageData.sets = [];\n\n\t\tif ( hasPicture ) {\n\t\t\timageData.pic = true;\n\t\t\tgetAllSourceElements( parent, imageData.sets );\n\t\t}\n\n\t\tif ( imageData.srcset ) {\n\t\t\timageSet = {\n\t\t\t\tsrcset: imageData.srcset,\n\t\t\t\tsizes: getImgAttr.call( element, \"sizes\" )\n\t\t\t};\n\n\t\t\timageData.sets.push( imageSet );\n\n\t\t\tisWDescripor = (alwaysCheckWDescriptor || imageData.src) && regWDesc.test(imageData.srcset || \"\");\n\n\t\t\t// add normal src as candidate, if source has no w descriptor\n\t\t\tif ( !isWDescripor && imageData.src && !getCandidateForSrc(imageData.src, imageSet) && !imageSet.has1x ) {\n\t\t\t\timageSet.srcset += \", \" + imageData.src;\n\t\t\t\timageSet.cands.push({\n\t\t\t\t\turl: imageData.src,\n\t\t\t\t\td: 1,\n\t\t\t\t\tset: imageSet\n\t\t\t\t});\n\t\t\t}\n\n\t\t} else if ( imageData.src ) {\n\t\t\timageData.sets.push( {\n\t\t\t\tsrcset: imageData.src,\n\t\t\t\tsizes: null\n\t\t\t} );\n\t\t}\n\n\t\timageData.curCan = null;\n\t\timageData.curSrc = undefined;\n\n\t\t// if img has picture or the srcset was removed or has a srcset and does not support srcset at all\n\t\t// or has a w descriptor (and does not support sizes) set support to false to evaluate\n\t\timageData.supported = !( hasPicture || ( imageSet && !pf.supSrcset ) || (isWDescripor && !pf.supSizes) );\n\n\t\tif ( srcsetParsed && pf.supSrcset && !imageData.supported ) {\n\t\t\tif ( srcsetAttribute ) {\n\t\t\t\tsetImgAttr.call( element, srcsetAttr, srcsetAttribute );\n\t\t\t\telement.srcset = \"\";\n\t\t\t} else {\n\t\t\t\tremoveImgAttr.call( element, srcsetAttr );\n\t\t\t}\n\t\t}\n\n\t\tif (imageData.supported && !imageData.srcset && ((!imageData.src && element.src) || element.src !== pf.makeUrl(imageData.src))) {\n\t\t\tif (imageData.src === null) {\n\t\t\t\telement.removeAttribute(\"src\");\n\t\t\t} else {\n\t\t\t\telement.src = imageData.src;\n\t\t\t}\n\t\t}\n\n\t\timageData.parsed = true;\n\t};\n\n\tpf.fillImg = function(element, options) {\n\t\tvar imageData;\n\t\tvar extreme = options.reselect || options.reevaluate;\n\n\t\t// expando for caching data on the img\n\t\tif ( !element[ pf.ns ] ) {\n\t\t\telement[ pf.ns ] = {};\n\t\t}\n\n\t\timageData = element[ pf.ns ];\n\n\t\t// if the element has already been evaluated, skip it\n\t\t// unless `options.reevaluate` is set to true ( this, for example,\n\t\t// is set to true when running `picturefill` on `resize` ).\n\t\tif ( !extreme && imageData.evaled === evalId ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !imageData.parsed || options.reevaluate ) {\n\t\t\tpf.parseSets( element, element.parentNode, options );\n\t\t}\n\n\t\tif ( !imageData.supported ) {\n\t\t\tapplyBestCandidate( element );\n\t\t} else {\n\t\t\timageData.evaled = evalId;\n\t\t}\n\t};\n\n\tpf.setupRun = function() {\n\t\tif ( !alreadyRun || isVwDirty || (DPR !== window.devicePixelRatio) ) {\n\t\t\tupdateMetrics();\n\t\t}\n\t};\n\n\t// If picture is supported, well, that's awesome.\n\tif ( pf.supPicture ) {\n\t\tpicturefill = noop;\n\t\tpf.fillImg = noop;\n\t} else {\n\n\t\t // Set up picture polyfill by polling the document\n\t\t(function() {\n\t\t\tvar isDomReady;\n\t\t\tvar regReady = window.attachEvent ? /d$|^c/ : /d$|^c|^i/;\n\n\t\t\tvar run = function() {\n\t\t\t\tvar readyState = document.readyState || \"\";\n\n\t\t\t\ttimerId = setTimeout(run, readyState === \"loading\" ? 200 : 999);\n\t\t\t\tif ( document.body ) {\n\t\t\t\t\tpf.fillImgs();\n\t\t\t\t\tisDomReady = isDomReady || regReady.test(readyState);\n\t\t\t\t\tif ( isDomReady ) {\n\t\t\t\t\t\tclearTimeout( timerId );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tvar timerId = setTimeout(run, document.body ? 9 : 99);\n\n\t\t\t// Also attach picturefill on resize and readystatechange\n\t\t\t// http://modernjavascript.blogspot.com/2013/08/building-better-debounce.html\n\t\t\tvar debounce = function(func, wait) {\n\t\t\t\tvar timeout, timestamp;\n\t\t\t\tvar later = function() {\n\t\t\t\t\tvar last = (new Date()) - timestamp;\n\n\t\t\t\t\tif (last < wait) {\n\t\t\t\t\t\ttimeout = setTimeout(later, wait - last);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttimeout = null;\n\t\t\t\t\t\tfunc();\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\treturn function() {\n\t\t\t\t\ttimestamp = new Date();\n\n\t\t\t\t\tif (!timeout) {\n\t\t\t\t\t\ttimeout = setTimeout(later, wait);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t};\n\t\t\tvar lastClientWidth = docElem.clientHeight;\n\t\t\tvar onResize = function() {\n\t\t\t\tisVwDirty = Math.max(window.innerWidth || 0, docElem.clientWidth) !== units.width || docElem.clientHeight !== lastClientWidth;\n\t\t\t\tlastClientWidth = docElem.clientHeight;\n\t\t\t\tif ( isVwDirty ) {\n\t\t\t\t\tpf.fillImgs();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ton( window, \"resize\", debounce(onResize, 99 ) );\n\t\t\ton( document, \"readystatechange\", run );\n\t\t})();\n\t}\n\n\tpf.picturefill = picturefill;\n\t//use this internally for easy monkey patching/performance testing\n\tpf.fillImgs = picturefill;\n\tpf.teardownRun = noop;\n\n\t/* expose methods for testing */\n\tpicturefill._ = pf;\n\n\twindow.picturefillCFG = {\n\t\tpf: pf,\n\t\tpush: function(args) {\n\t\t\tvar name = args.shift();\n\t\t\tif (typeof pf[name] === \"function\") {\n\t\t\t\tpf[name].apply(pf, args);\n\t\t\t} else {\n\t\t\t\tcfg[name] = args[0];\n\t\t\t\tif (alreadyRun) {\n\t\t\t\t\tpf.fillImgs( { reselect: true } );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\twhile (setOptions && setOptions.length) {\n\t\twindow.picturefillCFG.push(setOptions.shift());\n\t}\n\n\t/* expose picturefill */\n\twindow.picturefill = picturefill;\n\n\t/* expose picturefill */\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\t\t// CommonJS, just export\n\t\tmodule.exports = picturefill;\n\t} else if ( typeof define === \"function\" && define.amd ) {\n\t\t// AMD support\n\t\tdefine( \"picturefill\", function() { return picturefill; } );\n\t}\n\n\t// IE8 evals this sync, so it must be the last thing we do\n\tif ( !pf.supPicture ) {\n\t\ttypes[ \"image/webp\" ] = detectTypeSupport(\"image/webp\", \"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==\" );\n\t}\n\n} )( window, document );\n\n// SLIDER\n// Wird für verwendet für die Kanzlei APP\n// -------------------------------------------------------------------------------------------------\n\n(function() {\n var $slider_wrapper = $$('.slider');\n\n if (!$slider_wrapper.length) {\n return;\n }\n\n $$.load_script(scripts_path + 'slider.min.js', function() {\n var $slider = $$.slider($slider_wrapper, {\n auto : true\n });\n\n $slider.init();\n });\n}());\n\n// HEADER SLIDER\n// -------------------------------------------------------------------------------------------------\n\nvar get_height = function() {\n\n var browser_width = window.innerWidth;\n\n if (browser_width < 480) {\n swiper0_height = 200;\n }\n else if (browser_width < 560) {\n swiper0_height = 300;\n }\n else if (browser_width < 760) {\n swiper0_height = 300;\n }\n else if (browser_width < 990) {\n swiper0_height = 300;\n }\n else if (browser_width < 1200) {\n swiper0_height = 400;\n }\n else if (browser_width < 1500) {\n swiper0_height = 520;\n }\n else {\n swiper0_height = 600;\n }\n};\n\nvar set_height = function() {\n swiper[0].params.height = swiper0_height;\n swiper[0].update();\n};\n\nget_height();\n\nvar swiper = new Swiper('.swiper-container', {\n direction: 'vertical',\n loop: true,\n autoHeight: true,\n height: swiper0_height,\n spaceBetween: 0,\n\n lazy: {\n loadPrevNext: true,\n },\n\n navigation: {\n nextEl: '.swiper-button-next',\n prevEl: '.swiper-button-prev',\n },\n});\n\nif (swiper.length) {\n set_height();\n\n window.addEventListener('resize', function() {\n get_height();\n set_height();\n });\n}\n"]}
' + warnings + '
' + distance_text + ' ' + $legs.distance.text + ', ' + duration_text + ' ' + $legs.duration.text + '
' + $route.copyrights + '