Ubuntu
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)}(function(g){"use strict";var i={escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},n=27,o=9,r=13,s=38,a=39,l=40;function u(t,e){function i(){}var n=this,o={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:u.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:i,onSearchComplete:i,onSearchError:i,preserveInput:!1,containerClass:"wd-search-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,i){return-1!==t.value.toLowerCase().indexOf(i)},paramName:"query",transformResult:function(t){return"string"==typeof t?JSON.parse(t):t},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};n.element=t,n.el=g(t),n.suggestions=[],n.badQueries=[],n.selectedIndex=-1,n.currentValue=n.element.value,n.intervalId=0,n.cachedResponse={},n.onChangeInterval=null,n.onChange=null,n.isLocal=!1,n.suggestionsContainer=null,n.noSuggestionsContainer=null,n.options=g.extend({},o,e),n.classes={selected:"wd-active",suggestion:"wd-suggestion"},n.hint=null,n.hintValue="",n.selection=null,n.initialize(),n.setOptions(e)}u.utils=i,(g.Autocomplete=u).formatResult=function(t,e){e="("+i.escapeRegExChars(e)+")";return t.value.replace(new RegExp(e,"gi"),"$1 ").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},u.prototype={killerFn:null,initialize:function(){var t,e=this,i="."+e.classes.suggestion,n=e.classes.selected,o=e.options,o=(e.element.setAttribute("autocomplete","off"),e.killerFn=function(t){0===g(t.target).closest("."+e.options.containerClass).length&&(e.killSuggestions(t),e.disableKillerFn())},e.noSuggestionsContainer=g('
').html(this.options.noSuggestionNotice).get(0),e.suggestionsContainer=u.utils.createNode(o.containerClass),(t=g(e.suggestionsContainer)).appendTo(o.appendTo),"auto"!==o.width&&t.width(o.width),t.on("mouseover.autocomplete",i,function(t){if(g(this).hasClass("wd-not-found"))return t.preventDefault(),!1;e.activate(g(this).data("index"))}),t.on("mouseout.autocomplete",function(){e.selectedIndex=-1,t.find("."+n).removeClass(n)}),t.on("click.autocomplete",i,function(t){if(g(this).hasClass("wd-not-found")||g(this).hasClass("wd-search-title"))return t.preventDefault(),!1;t=0 a").length;e.select(g(this).data("index"),t)}),e.fixPositionCapture=function(){e.visible&&e.fixPosition()},g(window).on("resize.autocomplete",e.fixPositionCapture),e.el.on("keydown.autocomplete",function(t){e.onKeyPress(t)}),e.el.on("keyup.autocomplete",function(t){e.onKeyUp(t)}),e.el.on("blur.autocomplete",function(){e.onBlur()}),e.el.on("focus.autocomplete",function(){e.onFocus()}),e.el.on("change.autocomplete",function(t){e.onKeyUp(t)}),e.el.on("input.autocomplete",function(t){e.onKeyUp(t)}),e.el.parent().find(".wd-clear-search"));o&&o.on("click",function(t){e.onClearSearch(t)})},onClearSearch:function(t){var e=this;t.target.classList.contains("wd-clear-search")&&t.target.classList.add("wd-hide"),e.clear(),e.killSuggestions(t),e.el.trigger("focus")},onFocus:function(){var t=this;t.fixPosition(),0===t.options.minChars&&0===t.el.val().length&&t.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var t=this;t.currentRequest&&(t.currentRequest.abort(),t.currentRequest=null)},setOptions:function(t){var e=this,i=e.options;g.extend(i,t),e.isLocal=Array.isArray(i.lookup),e.isLocal&&(i.lookup=e.verifySuggestionsFormat(i.lookup)),i.orientation=e.validateOrientation(i.orientation,"bottom"),g(e.suggestionsContainer).css({"max-height":i.maxHeight+"px",width:i.width+"px","z-index":i.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var t=this;t.disabled=!0,clearInterval(t.onChangeInterval),t.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t,e,i,n,o,r,s,a,l=this,u=g(l.suggestionsContainer),c=u.parent().get(0);c!==document.body&&!l.options.forceFixPosition||(r=l.options.orientation,t=u.outerHeight(),e=l.el.outerHeight(),i={top:(a=l.el.offset()).top,left:a.left},"auto"===r&&(s=g(window).height(),n=-(o=g(window).scrollTop())+a.top-t,o=o+s-(a.top+e+t),r=Math.max(n,o)===n?"top":"bottom"),i.top+="top"===r?-t:e,c!==document.body&&(s=u.css("opacity"),l.visible||u.css("opacity",0).show(),a=u.offsetParent().offset(),i.top-=a.top,i.left-=a.left,l.visible||u.css("opacity",s).hide()),"auto"===l.options.width&&(i.width=l.el.outerWidth()-2+"px"),u.css(i))},enableKillerFn:function(){g(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){g(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(t){var e=this,i=g(t.target).hasClass("wd-clear-search");e.stopKillSuggestions(),e.intervalId=window.setInterval(function(){e.visible&&(e.el.val(e.currentValue),e.hide(!1,i)),e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var t=this.el.val().length,e=this.element.selectionStart;return"number"==typeof e?e===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(t){var e=this;if(e.disabled||e.visible||t.which!==l||!e.currentValue){if(!e.disabled&&e.visible){switch(t.which){case n:e.el.val(e.currentValue),e.hide();break;case a:if(e.hint&&e.options.onHint&&e.isCursorAtEnd()){e.selectHint();break}return;case o:if(e.hint&&e.options.onHint)return void e.selectHint();if(-1===e.selectedIndex)return void e.hide();if(e.select(e.selectedIndex),!1===e.options.tabDisabled)return;break;case r:if(-1===e.selectedIndex)return void e.hide(!0);e.select(e.selectedIndex,!0);break;case s:e.moveUp();break;case l:e.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else e.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case s:case l:return}clearInterval(e.onChangeInterval),e.currentValue!==e.el.val()&&(e.findBestHint(),0o&&(t.suggestions=t.suggestions.slice(0,o)),t},getSuggestions:function(n){var t,e,i,o=this,r=o.options,s=r.serviceUrl;r.params[r.paramName]=n,t=r.ignoreParams?null:r.params,!1!==r.onSearchStart.call(o.element,r.params)&&("function"==typeof r.lookup?r.lookup(n,function(t){o.suggestions=t.suggestions,o.suggest(),r.onSearchComplete.call(o.element,n,t.suggestions)}):(i=o.isLocal?o.getSuggestionsLocal(n):("function"==typeof s&&(s=s.call(o.element,n)),e=s+"?"+g.param(t||{}),o.cachedResponse[e]))&&Array.isArray(i.suggestions)?(o.suggestions=i.suggestions,o.suggest(),r.onSearchComplete.call(o.element,n,i.suggestions)):o.isBadQuery(n)?r.onSearchComplete.call(o.element,n,[]):(o.abortAjax(),i={url:s,data:t,type:r.type,dataType:r.dataType},g.extend(i,r.ajaxSettings),o.currentRequest=g.ajax(i).done(function(t){o.currentRequest=null,t=r.transformResult(t,n),o.processResponse(t,n,e),r.onSearchComplete.call(o.element,n,t.suggestions)}).fail(function(t,e,i){r.onSearchError.call(o.element,n,t,e,i)})))},isBadQuery:function(t){if(this.options.preventBadQueries)for(var e=this.badQueries,i=e.length;i--;)if(0===t.indexOf(e[i]))return!0;return!1},hide:function(t=!1,e=!1){var i;t||(i=g((t=this).suggestionsContainer),"function"==typeof t.options.onHide&&t.visible&&t.options.onHide.call(t.element,i,e),t.visible=!1,t.selectedIndex=-1,clearInterval(t.onChangeInterval),g(t.suggestionsContainer).hide(),t.signalHint(null))},suggest:function(){var t,e,o,r,s,a,i,n,l,u,c,h,d,p,f,m;0===this.suggestions.length?this.options.showNoSuggestionNotice?this.noSuggestions():this.hide():(e=(t=this).options,o=e.groupBy,r=e.formatResult,s=t.getQuery(t.currentValue),a=t.classes.suggestion,i=t.classes.selected,n=g(t.suggestionsContainer),l=g(t.noSuggestionsContainer),u=e.beforeRender,c="",d=function(t,e){t=t.data[o];return h===t?"":''+(h=t)+"
"},e.triggerSelectOnValidInput&&t.isExactMatch(s)?t.select(0):(p=function(t,n=""){return g.each(t,function(t,e){o&&(n+=d(e,s,t));var i=a;e.item_classes&&(i+=" "+e.item_classes),n+=''+r(e,s)+"
"}),n},f=0,(m=t.suggestions.reduce((t,e)=>{var i=e.group||"default";t[i]||(t[i]={});t[i][f]=e;f++;return t},{}))?g.each(m,function(t,i){g.each(i,function(t,e){e&&e.divider&&(c+=''+e.divider+"
",delete i[t])}),c=p(i,c+=''),c+="
"}):c=p(t.suggestions),this.adjustContainerWidth(),l.detach(),n.html(c),"function"==typeof u&&u.call(t.element,n),t.fixPosition(),n.show(),e.autoSelectFirst&&(t.selectedIndex=0,n.scrollTop(0),n.children("."+a).first().addClass(i)),t.visible=!0,t.findBestHint()))},noSuggestions:function(){var t=g(this.suggestionsContainer),e=g(this.noSuggestionsContainer);this.adjustContainerWidth(),e.detach(),t.empty(),t.append(e),this.fixPosition(),t.show(),this.visible=!0},adjustContainerWidth:function(){var t=this.options,e=g(this.suggestionsContainer);"auto"===t.width&&(t=this.el.outerWidth()-2,e.width(0=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-e.getFullYear())},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish"))))},dispatchEvent:function(t){t=n.Event(t+".countdown");t.finalDate=this.finalDate,t.elapsed=this.elapsed,t.offset=n.extend({},this.offset),t.strftime=i(this.offset),this.$el.trigger(t)}}),n.fn.countdown=function(){var i=Array.prototype.slice.call(arguments,0);return this.each(function(){var t,e=n(this).data("countdown-instance");void 0!==e?(e=o[e],t=i[0],s.prototype.hasOwnProperty(t)?e[t].apply(e,i.slice(1)):null===String(t).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(e.setFinalDate.call(e,t),e.start()):n.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,t))):new s(this,i[0],i[1])})}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.dayjs=e()}(this,function(){"use strict";function n(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t}function i(t){return t instanceof b}function o(t,e,i){var n;return t?("string"==typeof t?(c[t]&&(n=t),e&&(c[t]=e,n=t)):(e=t.name,c[e]=t,n=e),!i&&n&&(u=n),n||!i&&u):u}function s(t,e){return i(t)?t.clone():((e="object"==typeof e?e:{}).date=t,e.args=arguments,new b(e))}var r="millisecond",h="second",d="minute",p="hour",f="day",m="week",g="month",a="quarter",v="year",y="date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,_=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,t={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},e={s:n,z:function(t){var t=-t.utcOffset(),e=Math.abs(t),i=Math.floor(e/60),e=e%60;return(t<=0?"+":"-")+n(i,2,"0")+":"+n(e,2,"0")},m:function t(e,i){var n,o,r;return e.date()this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,n=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),o=Math.floor(n/this.columnWidth);o-=n%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),r=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,s=i;s<=o;s++)this.colYs[s]=Math.max(r,this.colYs[s])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n.measureColumns,s=(n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)},n._getOption);return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},t}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var t=t.create("fitRows"),e=t.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},e._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,i=(0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},e._getContainerSize=function(){return{height:this.maxY}},t}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var t=t.create("vertical",{horizontalAlignment:0}),e=t.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e._getContainerSize=function(){return{height:this.y}},t}),function(s,a){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(t,e,i,n,o,r){return a(s,t,0,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=a(s,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):s.Isotope=a(s,s.Outlayer,s.getSize,s.matchesSelector,s.fizzyUIUtils,s.Isotope.Item,s.Isotope.LayoutMode)}(window,function(t,i,e,n,r,o,s){var a=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),t=(u.Item=o,u.LayoutMode=s,u.prototype),c=(t._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},t.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},t._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e=t.x+e&&this.y+this.height>=t.y+i},t.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,n=t.x+t.width,o=t.y+t.height;return this.xt.x&&this.yt.y},t.getMaximalFreeRects=function(t){var e,i,n,o,r,s;return!!this.overlaps(t)&&(e=[],n=this.x+this.width,o=this.y+this.height,r=t.x+t.width,s=t.y+t.height,this.y=t.width&&this.height>=t.height},a}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/packer",["./rect"],e):"object"==typeof module&&module.exports?module.exports=e(require("./rect")):(t=t.Packery=t.Packery||{}).Packer=e(t.Rect)}(window,function(e){"use strict";function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=t.prototype,n=(i.reset=function(){this.spaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=n[this.sortDirection]||n.downwardLeftToRight},i.pack=function(t){for(var e=0;e=t.x+t.width&&i.height>=t.height-.01){t.y=i.y,this.placed(t);break}}},i.rowPack=function(t){for(var e=0;e=t.y+t.height&&i.width>=t.width-.01){t.x=i.x,this.placed(t);break}}},i.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},i.placed=function(t){for(var e=[],i=0;i=t.width-1&&this.height>=t.height-1};var n=t.create("packery"),i=(n.Item=i,n.prototype);function o(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function r(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}i._create=function(){t.prototype._create.call(this),this.packer=new e,this.shiftPacker=new e,this.isEnabled=!0,this.dragItemCount=0;var i=this;this.handleDraggabilly={dragStart:function(){i.itemDragStart(this.element)},dragMove:function(){i.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){i.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,e){e&&i.itemDragStart(t.currentTarget)},drag:function(t,e){e&&i.itemDragMove(t.currentTarget,e.position.left,e.position.top)},stop:function(t,e){e&&i.itemDragEnd(t.currentTarget)}}},i._resetLayout=function(){var t,e,i;this.getSize(),this._getMeasurements(),i=this._getOption("horizontal")?(t=1/0,e=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,e=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},i._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},i._getItemLayoutPosition=function(t){var e;return this._setRectSize(t.element,t.rect),this.isShifting||0 img");return e=0===e.length?t.find("> a > img"):e}function y(t){t.lastAnalyzedIndex=-1,t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,t.buildingRow.width=0,t.offY=t.border}function c(t,e){var i,n,o=t.settings,r=t.border,s=function(t,e){var i,n,o,r,s,a=t.settings,l=!0,u=0,c=t.galleryWidth-2*t.border-(t.buildingRow.entriesBuff.length-1)*a.margins,h=c/t.buildingRow.aspectRatio,d=t.buildingRow.width/c>a.justifyThreshold;if(e&&"hide"===a.lastRow&&!d){for(i=0;ia.rowHeight?a.rowHeight:u,justify:l}}(t,e),a=s.minHeight;if(e&&"hide"===o.lastRow&&-1===a)t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,t.buildingRow.width=0;else{0'+e+""),t.append(i)),0!==i.length&&(s.settings.cssAnimation||i.stop().fadeTo(s.settings.imagesAnimationDuration,s.settings.captionSettings.nonVisibleOpacity),void 0===r)&&(t.on("mouseenter",void 0,s,(r={mouseenter:d,mouseleave:p}).mouseenter),t.on("mouseleave",void 0,s,r.mouseleave),t.data("jg.captionMouseEvents",r))):void 0!==r&&(t.off("mouseenter",void 0,s,r.mouseenter),t.off("mouseleave",void 0,s,r.mouseleave),t.removeData("jg.captionMouseEvents"))}(i,r,t.offY,n.data("jg.jimgw"),n.data("jg.jimgh"),a,t),r+=n.data("jg.jimgw")+o.margins;t.$gallery.height(t.offY+a+t.border+(t.spinner.active?t.spinner.$el.innerHeight():0)),(!e||a<=t.settings.rowHeight&&s.justify)&&(t.offY+=a+t.settings.margins,t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,t.buildingRow.width=0,t.$gallery.trigger("jg.rowflush"))}}function _(t){t.yield.flushed=0,null!==t.imgAnalyzerTimeout&&clearTimeout(t.imgAnalyzerTimeout)}function w(t,e){_(t),t.imgAnalyzerTimeout=setTimeout(function(){i(t,e)},.001),i(t,e)}function i(t,e){for(var i,n=t.settings,o=t.lastAnalyzedIndex+1;o=t.entries.length-1,l=t.galleryWidth-2*t.border-(t.buildingRow.entriesBuff.length-1)*n.margins,u=s.data("jg.imgw")/s.data("jg.imgh");if(l/(t.buildingRow.aspectRatio+u)=t.yield.every))return void w(t,e);t.buildingRow.entriesBuff.push(r),t.buildingRow.aspectRatio+=u,t.buildingRow.width+=u*n.rowHeight,t.lastAnalyzedIndex=o}else if("error"!==s.data("jg.loaded"))return}0 '),o=x.extend({},m,f),r=0<=o.border?o.border:o.margins,u={settings:o,imgAnalyzerTimeout:null,entries:null,buildingRow:{entriesBuff:[],width:0,aspectRatio:0},lastAnalyzedIndex:-1,yield:{every:2,flushed:0},border:r,offY:r,spinner:{active:!1,phase:0,timeslot:150,$el:e,$points:e.find("span"),intervalId:null},checkWidthIntervalId:null,galleryWidth:l.width(),$gallery:l};l.data("jg.context",u)}else if("norewind"===f)for(var c=0;c a, > div:not(.spinner)").toArray(),0!==u.entries.length&&(u.settings.randomize&&(u.entries.sort(function(){return 2*Math.random()-1}),x.each(u.entries,function(){x(this).appendTo(l)})),a=s=!1,x.each(u.entries,function(t,e){var i,e=x(e),n=v(e);if(e.addClass("jg-entry"),!0!==n.data("jg.loaded")&&"skipped"!==n.data("jg.loaded")){null!==u.settings.rel&&e.attr("rel",u.settings.rel),null!==u.settings.target&&e.attr("target",u.settings.target);var e=void 0!==n.data("safe-src")?n.data("safe-src"):n.attr("src"),o=(n.data("jg.originalSrc",e),n.attr("src",e),parseInt(n.attr("width"),10)),r=parseInt(n.attr("height"),10);if(!0!==u.settings.waitThumbnailsLoad&&!isNaN(o)&&!isNaN(r))return n.data("jg.imgw",o),n.data("jg.imgh",r),n.data("jg.loaded","skipped"),w(u,!(a=!0)),!0;n.data("jg.loaded",!1),!(s=!0)===u.spinner.active&&(u.spinner.active=!0,l.append(u.spinner.$el),l.height(u.offY+u.spinner.$el.innerHeight()),i=u.spinner,clearInterval(i.intervalId),i.intervalId=setInterval(function(){i.phase=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=g(t);var e=this.min,i=this.max,n=t.min,t=t.max,o=t.x>=e.x&&n.x<=i.x,t=t.y>=e.y&&n.y<=i.y;return o&&t},overlaps:function(t){t=g(t);var e=this.min,i=this.max,n=t.min,t=t.max,o=t.x>e.x&&n.xe.y&&n.y=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=v(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>=e.lat&&n.lat<=i.lat,t=t.lng>=e.lng&&n.lng<=i.lng;return o&&t},overlaps:function(t){t=v(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>e.lat&&n.late.lng&&n.lng ","http://www.w3.org/2000/svg"===(Wt.firstChild&&Wt.firstChild.namespaceURI));function _(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var x={ie:ft,ielt9:mt,edge:n,webkit:gt,android:vt,android23:yt,androidStock:_t,opera:wt,chrome:bt,gecko:xt,safari:Tt,phantom:At,opera12:o,win:St,ie3d:Et,webkit3d:Mt,gecko3d:pt,any3d:Ct,mobile:Pt,mobileWebkit:zt,mobileWebkit3d:Lt,msPointer:kt,pointer:It,touch:Dt,touchNative:Ot,mobileOpera:Bt,mobileGecko:Rt,retina:Ft,passiveEvents:Nt,canvas:jt,svg:Ht,vml:!Ht&&function(){try{var t=document.createElement("div"),e=(t.innerHTML=' ',t.firstChild);return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),inlineSvg:Wt},qt=x.msPointer?"MSPointerDown":"pointerdown",Zt=x.msPointer?"MSPointerMove":"pointermove",Gt=x.msPointer?"MSPointerUp":"pointerup",Vt=x.msPointer?"MSPointerCancel":"pointercancel",$t={touchstart:qt,touchmove:Zt,touchend:Gt,touchcancel:Vt},Ut={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&I(e);ee(t,e)},touchmove:ee,touchend:ee,touchcancel:ee},Yt={},Xt=!1;function Kt(t,e,i){return"touchstart"!==e||Xt||(document.addEventListener(qt,Qt,!0),document.addEventListener(Zt,Jt,!0),document.addEventListener(Gt,te,!0),document.addEventListener(Vt,te,!0),Xt=!0),Ut[e]?(i=Ut[e].bind(this,i),t.addEventListener($t[e],i,!1),i):(console.warn("wrong event specified:",e),L.Util.falseFn)}function Qt(t){Yt[t.pointerId]=t}function Jt(t){Yt[t.pointerId]&&(Yt[t.pointerId]=t)}function te(t){delete Yt[t.pointerId]}function ee(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Yt)e.touches.push(Yt[i]);e.changedTouches=[e],t(e)}}var ie=200;function ne(t,i){t.addEventListener("dblclick",i);var n,o=0;function e(t){var e;1!==t.detail?n=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||((e=Date.now())-o<=ie?2===++n&&i(function(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return(t=n).type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(t)):n=1,o=e)}return t.addEventListener("click",e),{dblclick:i,simDblclick:e}}var oe,re,se,ae,le,ue,ce=be(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),he=be(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===he||"OTransition"===he?he+"End":"transitionend";function pe(t){return"string"==typeof t?document.getElementById(t):t}function fe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];return"auto"===(i=i&&"auto"!==i||!document.defaultView?i:(t=document.defaultView.getComputedStyle(t,null))?t[e]:null)?null:i}function T(t,e,i){t=document.createElement(t);return t.className=e||"",i&&i.appendChild(t),t}function A(t){var e=t.parentNode;e&&e.removeChild(t)}function me(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ge(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ve(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ye(t,e){return void 0!==t.classList?t.classList.contains(e):0<(t=we(t)).length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t)}function S(t,e){var i;if(void 0!==t.classList)for(var n=q(e),o=0,r=n.length;othis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),t=this._limitCenter(i,this._zoom,v(t));return i.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=p((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=p(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),t=this.project(t),r=this.getPixelBounds(),i=g([r.min.add(i),r.max.subtract(n)]),r=i.getSize();return i.contains(t)||(this._enforcingBounds=!0,n=t.subtract(i.getCenter()),i=i.extend(t).getSize().subtract(r),o.x+=n.x<0?-i.x:i.x,o.y+=n.y<0?-i.y:i.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=u({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize(),i=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),n=e.divideBy(2).round(),o=i.divideBy(2).round(),n=n.subtract(o);return n.x||n.y?(t.animate&&t.pan?this.panBy(n):(t.pan&&this._rawPanBy(n),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){var e,i;return t=this._locateOptions=u({timeout:1e4,watch:!1},t),"geolocation"in navigator?(e=a(this._handleGeolocationResponse,this),i=a(this._handleGeolocationError,this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e,i,n=new y(t.coords.latitude,t.coords.longitude),o=n.toBounds(2*t.coords.accuracy),r=this._locateOptions,s=(r.setView&&(e=this.getBoundsZoom(o),this.setView(n,r.maxZoom?Math.min(e,r.maxZoom):e)),{latlng:n,bounds:o,timestamp:t.timestamp});for(i in t.coords)"number"==typeof t.coords[i]&&(s[i]=t.coords[i]);this.fire("locationfound",s)}},addHandler:function(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t])&&e.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),A(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(s(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)A(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){e=T("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new r(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=v(t),i=p(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),t=t.getSouthEast(),i=this.getSize().subtract(i),t=g(this.project(t,n),this.project(s,n)).getSize(),s=x.any3d?this.options.zoomSnap:1,a=i.x/t.x,i=i.y/t.y,t=e?Math.max(a,i):Math.min(a,i),n=this.getScaleZoom(t,n);return s&&(n=Math.round(n/(s/100))*(s/100),n=e?Math.ceil(n/s)*s:Math.floor(n/s)*s),Math.max(o,Math.min(r,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new f(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){t=this._getTopLeftPoint(t,e);return new m(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs,t=(e=void 0===e?this._zoom:e,i.zoom(t*i.scale(e)));return isNaN(t)?1/0:t},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(b(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(p(t),e)},layerPointToLatLng:function(t){t=p(t).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(t){return this.project(b(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(b(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(v(t))},distance:function(t,e){return this.options.crs.distance(b(t),b(e))},containerPointToLayerPoint:function(t){return p(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return p(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){t=this.containerPointToLayerPoint(p(t));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(b(t)))},mouseEventToContainerPoint:function(t){return Fe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){t=this._container=pe(t);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");P(t,"scroll",this._onScroll,this),this._containerId=l(t)},_initLayout:function(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation&&x.any3d,S(t,"leaflet-container"+(x.touch?" leaflet-touch":"")+(x.retina?" leaflet-retina":"")+(x.ielt9?" leaflet-oldie":"")+(x.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),fe(t,"position"));"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),C(this._mapPane,new f(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(S(t.markerPane,"leaflet-zoom-hide"),S(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){C(this._mapPane,new f(0,0));var i=!this._loaded,n=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return s(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){C(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?k:P;e((this._targets[l(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),x.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){s(this._resizeRequest),this._resizeRequest=w(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,s=!1;r;){if((i=this._targets[l(r)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(o&&!He(r,t))break;if(n.push(i),o)break}if(r===this._container)break;r=r.parentNode}return n=n.length||s||o||!this.listens(e,!0)?n:[this]},_isClickDisabled:function(t){for(;t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e,i=t.target||t.srcElement;!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i)||("mousedown"===(e=t.type)&&Ee(i),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){"click"===t.type&&((a=u({},t)).type="preclick",this._fireDOMEvent(a,a.type,i));var n=this._findEventTargets(t,e);if(i){for(var o=[],r=0;rthis.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),n=this._getCenterOffset(t)._divideBy(1-1/n);if(!0!==i.animate&&!this.getSize().contains(n))return!1;w(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this)}return!0},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,S(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&E(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function qe(t){return new D(t)}var Ze,D=et.extend({options:{position:"topright"},initialize:function(t){h(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),t=t._controlCorners[i];return S(e,"leaflet-control"),-1!==i.indexOf("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(A(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0 ",e=document.createElement("div");return e.innerHTML=t,e.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer),n=(t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+l(this),n),this._layerControlInputs.push(e),e.layerId=l(t.layer),P(e,"click",this._onInputClick,this),document.createElement("span")),o=(n.innerHTML=" "+t.name,document.createElement("span"));return i.appendChild(o),o.appendChild(e),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var r=i.length-1;0<=r;r--)t=i[r],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(r=0;re.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}})),Ve=D.extend({options:{position:"topleft",zoomInText:'+ ',zoomInTitle:"Zoom in",zoomOutText:'− ',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=T("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){i=T("a",i,n);return i.innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),Be(i),P(i,"click",Re),P(i,"click",o,this),P(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";E(this._zoomInButton,e),E(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(S(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(S(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}}),$e=(O.mergeOptions({zoomControl:!0}),O.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ve,this.addControl(this.zoomControl))}),D.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=T("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=T("div",e,i)),t.imperial&&(this._iScale=T("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,t=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(t)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial:function(t){var e,i,t=3.2808399*t;5280'+(x.inlineSvg?' ':"")+"Leaflet"},initialize:function(t){h(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=T("div","leaflet-control-attribution"),Be(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,e=[];for(t in this._attributions)this._attributions[t]&&e.push(t);var i=[];this.options.prefix&&i.push(this.options.prefix),e.length&&i.push(e.join(", ")),this._container.innerHTML=i.join(' | ')}}}),n=(O.mergeOptions({attributionControl:!0}),O.addInitHook(function(){this.options.attributionControl&&(new Ue).addTo(this)}),D.Layers=Ge,D.Zoom=Ve,D.Scale=$e,D.Attribution=Ue,qe.layers=function(t,e,i){return new Ge(t,e,i)},qe.zoom=function(t){return new Ve(t)},qe.scale=function(t){return new $e(t)},qe.attribution=function(t){return new Ue(t)},et.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),gt=(n.addTo=function(t,e){return t.addHandler(e,this),this},{Events:e}),Ye=x.touch?"touchstart mousedown":"mousedown",Xe=it.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){h(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(P(this._dragStartTarget,Ye,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Xe._dragging===this&&this.finishDrag(!0),k(this._dragStartTarget,Ye,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,i;this._enabled&&(this._moved=!1,ye(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?Xe._dragging===this&&this.finishDrag():Xe._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((Xe._dragging=this)._preventOutline&&Ee(this._element),Ae(),se(),this._moving)||(this.fire("down"),i=t.touches?t.touches[0]:t,e=Ce(this._element),this._startPoint=new f(i.clientX,i.clientY),this._startPos=Te(this._element),this._parentScale=Pe(e),i="mousedown"===t.type,P(document,i?"mousemove":"touchmove",this._onMove,this),P(document,i?"mouseup":"touchend touchcancel",this._onUp,this))))},_onMove:function(t){var e;this._enabled&&(t.touches&&1e&&(i.push(t[n]),o=n);oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function ii(t,e,i,n){var o=e.x,e=e.y,r=i.x-o,s=i.y-e,a=r*r+s*s;return 0this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(u=!u);return u||gi.prototype._containsPoint.call(this,t,!0)}});var yi=li.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=d(t)?t:t.features;if(o){for(e=0,i=o.length;e×',P(i,"click",this.close,this))},_updateLayout:function(){var t=this._contentNode,e=t.style,i=(e.width="",e.whiteSpace="nowrap",t.offsetWidth),i=Math.min(i,this.options.maxWidth),i=(i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="",t.offsetHeight),n=this.options.maxHeight,o="leaflet-popup-scrolled";(n&&ns.x&&(a=n.x+l-s.x+r.x),n.x-a-o.x<(l=0)&&(a=n.x-o.x),n.y+i+r.y>s.y&&(l=n.y+i-s.y+r.y),n.y-l-o.y<0&&(l=n.y-o.y),a||l)&&e.fire("autopanstart").panBy([a,l],{animate:t&&"moveend"===t.type})},_getAnchor:function(){return p(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),ki=(O.mergeOptions({closePopupOnClick:!0}),O.include({openPopup:function(t,e,i){return this._initOverlay(Li,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),o.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Li,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&this._popup._prepareOpen(t)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e;this._popup&&this._map&&(Re(t),e=t.layer||t.target,this._popup._source!==e||e instanceof pi?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),B.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){B.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){B.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=B.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=T("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i=this._map,n=this._container,o=i.latLngToContainerPoint(i.getCenter()),i=i.layerPointToContainerPoint(t),r=this.options.direction,s=n.offsetWidth,a=n.offsetHeight,l=p(this.options.offset),u=this._getAnchor(),i="top"===r?(e=s/2,a):"bottom"===r?(e=s/2,0):(e="center"===r?s/2:"right"===r?0:"left"===r?s:i.xthis.options.maxZoom||nthis.options.maxZoom||void 0!==this.options.minZoom&&oi.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),v(this.options.bounds).overlaps(e))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),i=n.add(i);return[e.unproject(n,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){t=this._tileCoordsToNwSe(t),t=new r(t[0],t[1]);return t=this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var t=t.split(":"),e=new f(+t[0],+t[1]);return e.z=+t[2],e},_removeTile:function(t){var e=this._tiles[t];e&&(A(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){S(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,x.ielt9&&this.options.opacity<1&&M(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),a(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&w(a(this._tileReady,this,t,null,o)),C(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(M(i.el,0),s(this._fadeFrame),this._fadeFrame=w(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(S(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad())&&(this._loading=!1,this.fire("load"),x.ielt9||!this._map._fadeAnimated?w(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new f(this._wrapX?H(t.x,this._wrapX):t.x,this._wrapY?H(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new m(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var Di=Oi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=h(this,e)).detectRetina&&x.retina&&0')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Mt={_initContainer:function(){this._container=T("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Fi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Hi("shape");S(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Hi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;A(e),t.removeInteractiveTarget(e),delete this._layers[l(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e=e||(t._stroke=Hi("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=d(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i=i||(t._fill=Hi("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ge(t._container)},_bringToBack:function(t){ve(t._container)}},Wi=x.vml?Hi:ht,qi=Fi.extend({_initContainer:function(){this._container=Wi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){A(this._container),k(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,e,i;this._map._animatingZoom&&this._bounds||(Fi.prototype._update.call(this),e=(t=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),C(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=Wi("path");t.options.className&&S(e,t.options.className),t.options.interactive&&S(e,"leaflet-interactive"),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){A(t._path),t.removeInteractiveTarget(t._path),delete this._layers[l(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,dt(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",e=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,e)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ge(t._path)},_bringToBack:function(t){ve(t._path)}});function Zi(t){return x.svg||x.vml?new qi(t):null}x.vml&&qi.include(Mt),O.include({getRenderer:function(t){t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){var e;return"overlayPane"!==t&&void 0!==t&&(void 0===(e=this._paneRenderers[t])&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e)},_createRenderer:function(t){return this.options.preferCanvas&&ji(t)||Zi(t)}});var Gi=vi.extend({initialize:function(t,e){vi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=v(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});qi.create=Wi,qi.pointsToPath=dt,yi.geometryToLayer=_i,yi.coordsToLatLng=bi,yi.coordsToLatLngs=xi,yi.latLngToCoords=Ti,yi.latLngsToCoords=Ai,yi.getFeature=Si,yi.asFeature=Ei,O.mergeOptions({boxZoom:!0});var pt=n.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){P(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){k(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){A(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),se(),Ae(),this._startPoint=this._map.mouseEventToContainerPoint(t),P(document,{contextmenu:Re,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=T("div","leaflet-zoom-box",this._container),S(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var t=new m(this._point,this._startPoint),e=t.getSize();C(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(A(this._box),E(this._container,"leaflet-crosshair")),ae(),Se(),k(document,{contextmenu:Re,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0),t=new r(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Ct=(O.addInitHook("addHandler","boxZoom",pt),O.mergeOptions({doubleClickZoom:!0}),n.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,i=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}})),Pt=(O.addInitHook("addHandler","doubleClickZoom",Ct),O.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),n.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new Xe(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),S(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){E(this._map._container,"leaflet-grab"),E(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=v(this._map.options.maxBounds),this._offsetLimit=g(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,i;this._map.options.inertia&&(e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,n=(n+e+i)%t-e-i,t=Math.abs(o+i)e.getMaxZoom()&&1 ";if(S.parseShareButtonOut)o=S.parseShareButtonOut(t,o)}v.children[0].innerHTML=o,v.children[0].onclick=F}}function r(t){for(var e=0;e",{method:"GET"===n?"GET":"POST",action:i,style:"display:none"}),r=("GET"!==n&&"POST"!==n&&o.append(p(" ",{type:"hidden",name:"_method",value:n.toLowerCase()})),t.data);if("string"==typeof r)p.each(r.split("&"),function(t,e){e=e.split("=");o.append(p(" ",{type:"hidden",name:e[0],value:e[1]}))});else if(Array.isArray(r))p.each(r,function(t,e){o.append(p(" ",{type:"hidden",name:e.name,value:e.value}))});else if("object"==typeof r)for(e in r)o.append(p(" ",{type:"hidden",name:e,value:r[e]}));p(document.body).append(o),o.submit()}function g(t){t&&t.readyState<4&&(t.onreadystatechange=p.noop,t.abort())}function v(){return(new Date).getTime()}function y(t){t=t.clone();return t.find("script").each(function(){this.src||jQuery._data(this,"globalEval",!1)}),t.contents()}function a(t){return t.search=t.search.replace(/([?&])(_pjax|_)=[^&]*/g,"").replace(/^&/,""),t.href.replace(/\?($|#)/,"$1")}function _(t){var e=document.createElement("a");return e.href=t,e}function l(t){return t.href.replace(/#.*/,"")}function u(t,e){return t&&e?((e=p.extend({},e)).container=t,e):p.isPlainObject(t)?t:{container:t}}function d(t,e){return t.filter(e).add(t.find(e))}function w(t){return p.parseHTML(t,document,!0)}function b(t,e,i){var n,o={},r=/]*>([\s\S.]*)<\/body>/i)[0])),null!=(e=t.match(/]*>([\s\S.]*)<\/head>/i))?p(w(e[0])):n):n=p(w(t)),0!==n.length&&(o.title=d(e,"title").last().text(),i.fragment?(t=n,(t="body"!==i.fragment?d(t,i.fragment).first():t).length&&(o.contents="body"===i.fragment?t:t.contents(),o.title||(o.title=t.attr("title")||t.data("title")))):r||(o.contents=n),o.contents&&(o.contents=o.contents.not(function(){return p(this).is("title")}),o.contents.find("title").remove(),o.scripts=d(o.contents,"script[src]").remove(),o.contents=o.contents.not(o.scripts)),o.title)&&(o.title=null==(e=o.title)?"":"string"==typeof e?e.trim():(e+"").replace("/^[\\s\ufeff ]+|[\\s\ufeff ]+$/g","")),o}o&&o.container&&(f.state=o),"state"in window.history&&(c=!1);var x={},T=[],A=[];function S(t,e){for(;t.length>e;)delete x[t.shift()]}function E(){return p("meta").filter(function(){var t=p(this).attr("http-equiv");return t&&"X-PJAX-VERSION"===t.toUpperCase()}).attr("content")}function M(){p.fn.pjax=t,p.pjax=f,p.pjax.enable=p.noop,p.pjax.disable=C,p.pjax.click=n,p.pjax.submit=e,p.pjax.reload=i,p.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:E},p(window).on("popstate.pjax",r)}function C(){p.fn.pjax=function(){return this},p.pjax=s,p.pjax.enable=M,p.pjax.disable=p.noop,p.pjax.click=p.noop,p.pjax.submit=p.noop,p.pjax.reload=function(){window.location.reload()},p(window).off("popstate.pjax",r)}"state"in p.Event.prototype||p.event.addProp("state"),p.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),(p.support.pjax?M:C)()}(jQuery),function(){var M=window.jQuery,C=M(window);M.fn.stick_in_parent=function(t){var _,e,i,n,o,w=(t=null==t?{}:t).sticky_class,b=t.inner_scrolling,x=t.recalc_every,T=t.parent,A=t.offset_top,S=t.spacer,E=t.bottoming;for(null==A&&(A=0),null==T&&(T=void 0),null==b&&(b=!0),null==w&&(w="is_stuck"),_=M(document),null==E&&(E=!0),i=function(r,t,s,a,l,u,e,c){var h,i,d,p,f,m,g,v,n,y,o;if(!r.data("sticky_kit")){if(r.data("sticky_kit",!0),f=_.height(),g=r.parent(),!(g=null!=T?g.closest(T):g).length)throw"failed to find stick parent";if(h=d=!1,null!=S?S&&r.closest(S):M("
"),(v=function(){var t,e,i;if(!c)return f=_.height(),t=parseInt(g.css("border-top-width"),10),e=parseInt(g.css("padding-top"),10),parseInt(g.css("padding-bottom"),10),s=g.offset().top+t+e,a=g.height(),d&&(h=d=!1,r.css({position:"",top:"",width:"",bottom:""}).removeClass(w),i=!0),l=r.offset().top-(parseInt(r.css("margin-top"),10)||0)-A,u=r.outerHeight(!0),r.css("float"),i?o():void 0})(),u!==a)return p=void 0,m=A,y=x,o=function(){var t,e,i,n,o;c||(i=!1,null!=y&&--y<=0&&(y=x,v(),i=!0),i||_.height()===f||(v(),i=!0),i=C.scrollTop(),null!=p&&(e=i-p),p=i,d?(E&&(n=a+sn.indexOf(t)<0).forEach(t=>{void 0===e[t]?e[t]=i[t]:o(i[t])&&o(e[t])&&0!!t.trim())}function E(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function p(){return Date.now()}function x(t,e){void 0===e&&(e="x");var i=A();let n,o,r;t=function(t){var e=A();let i;return i=(i=!(i=e.getComputedStyle?e.getComputedStyle(t,null):i)&&t.currentStyle?t.currentStyle:i)||t.style}(t);return i.WebKitCSSMatrix?(6<(o=t.transform||t.webkitTransform).split(",").length&&(o=o.split(", ").map(t=>t.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix("none"===o?"":o)):(r=t.MozTransform||t.OTransform||t.MsTransform||t.msTransform||t.transform||t.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=r.toString().split(",")),"x"===e&&(o=i.WebKitCSSMatrix?r.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),(o="y"===e?i.WebKitCSSMatrix?r.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5]):o)||0}function l(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function d(t){var e,i=Object(arguments.length<=0?void 0:t);const n=["__proto__","constructor","prototype"];for(let t=1;tn.indexOf(t)<0);for(let t=0,e=r.length;ts?"next":"prev"),h=(t,e)=>{return"next"===c&&e<=t||"prev"===c&&t<=e},d=()=>{l=(new Date).getTime();null===a&&(a=l);var t=Math.max(Math.min((l-a)/u,1),0);t=.5-Math.cos(t*Math.PI)/2;let e=s+t*(n-s);h(e,n)&&(e=n);i.wrapperEl.scrollTo({[o]:e});if(h(e,n))return i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="";i.wrapperEl.scrollTo({[o]:e})}),void r.cancelAnimationFrame(i.cssModeFrameID);i.cssModeFrameID=r.requestAnimationFrame(d)};d()}function f(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function G(t,e){void 0===e&&(e="");var i=A(),n=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(t=>t.matches(e)):n}function T(t,e){var i=A();let n=e.contains(t);return!n&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&(i=[...e.assignedElements()],n=(n=i.includes(t))||function(t,e){for(var i=[e];0!!t)}let i;function h(){var t,e;return i=i||(t=A(),{smoothScroll:(e=z()).documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)})}let n;function u(t){return void 0===t&&(t={}),n=n||function(t){var t=(void 0===t?{}:t)["userAgent"],e=h(),i=(r=A()).navigator.platform,t=t||r.navigator.userAgent,n={ios:!1,android:!1},o=r.screen.width,r=r.screen.height,s=t.match(/(Android);?[\s\/]+([\d.]+)?/);let a=t.match(/(iPad).*OS\s([\d_]+)/);var l=t.match(/(iPod)(.*OS\s([\d_]+))?/),u=!a&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),c="Win32"===i,i="MacIntel"===i;return!a&&i&&e.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(o+"x"+r)&&(a=(a=t.match(/(Version)\/([\d.]+)/))||[0,1,"13_0_0"]),s&&!c&&(n.os="android",n.android=!0),(a||u||l)&&(n.os="ios",n.ios=!0),n}(t)}let t;function D(){return t=t||function(){const e=A();var t=u();let i=!1;function n(){var t=e.navigator.userAgent.toLowerCase();return 0<=t.indexOf("safari")&&t.indexOf("chrome")<0&&t.indexOf("android")<0}n()&&(o=String(e.navigator.userAgent)).includes("Version/")&&([o,r]=o.split("Version/")[1].split(" ")[0].split(".").map(t=>Number(t)),i=o<16||16===o&&r<2);var o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=n(),t=r||o&&t.ios;return{isSafari:i||r,needPerspectiveFix:i,need3dFix:t,isWebView:o}}()}const B=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};const m=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};const a=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":"."+e.params.slideClass);if(i){let t=i.querySelector("."+e.params.lazyPreloaderClass);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector("."+e.params.lazyPreloaderClass):requestAnimationFrame(()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector("."+e.params.lazyPreloaderClass))&&t.remove()})),t&&t.remove()}},g=(t,e)=>{if(!t.slides[e])return;t=t.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},v=i=>{if(!i||i.destroyed||!i.params)return;var e=i.params.lazyPreloadPrevNext;var n=i.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const o="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView);var r=i.activeIndex;if(i.params.grid&&1{return l+o+e})),void i.slides.forEach((t,e)=>{u.includes(t.column)&&g(i,e)})}var s=r+o-1;if(i.params.rewind||i.params.loop)for(let t=r-e;t<=s+e;t+=1){var a=(t%n+n)%n;(as||t=n.innerWidth-t)||"prevent"===o&&(e.preventDefault(),1)}function j(){const t=this;var e,i,n,o,{params:r,el:s}=t;s&&0===s.offsetWidth||(r.breakpoints&&t.setBreakpoint(),{allowSlideNext:s,allowSlidePrev:e,snapGrid:i}=t,n=t.virtual&&t.params.virtual.enabled,t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),o=n&&r.loop,!("auto"===r.slidesPerView||1{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=e,t.allowSlideNext=s,t.params.watchOverflow&&i!==t.snapGrid&&t.checkOverflow())}const H=(t,e)=>{var i=z();var{params:n,el:o,wrapperEl:r,device:s}=t;var a=!!n.nested;var l="on"===e?"addEventListener":"removeEventListener";if(!o||"string"==typeof o)return;i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a});o[l]("touchstart",t.onTouchStart,{passive:!1});o[l]("pointerdown",t.onTouchStart,{passive:!1});i[l]("touchmove",t.onTouchMove,{passive:!1,capture:a});i[l]("pointermove",t.onTouchMove,{passive:!1,capture:a});i[l]("touchend",t.onTouchEnd,{passive:!0});i[l]("pointerup",t.onTouchEnd,{passive:!0});i[l]("pointercancel",t.onTouchEnd,{passive:!0});i[l]("touchcancel",t.onTouchEnd,{passive:!0});i[l]("pointerout",t.onTouchEnd,{passive:!0});i[l]("pointerleave",t.onTouchEnd,{passive:!0});i[l]("contextmenu",t.onTouchEnd,{passive:!0});(n.preventClicks||n.preventClicksPropagation)&&o[l]("click",t.onClick,!0);n.cssMode&&r[l]("scroll",t.onScroll);n.updateOnWindowResize?t[e](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",j,!0):t[e]("observerUpdate",j,!0);o[l]("load",t.onLoad,{capture:!0})};const W=(t,e)=>{return t.grid&&e.grid&&1{n.eventsListeners[t]||(n.eventsListeners[t]=[]);n.eventsListeners[t][o](e)})}return n},once(n,o,t){const r=this;return!r.eventsListeners||r.destroyed||"function"!=typeof o?r:(s.__emitterProxy=o,r.on(n,s,t));function s(){r.off(n,s),s.__emitterProxy&&delete s.__emitterProxy;for(var t=arguments.length,e=new Array(t),i=0;i{void 0===n?o.eventsListeners[i]=[]:o.eventsListeners[i]&&o.eventsListeners[i].forEach((t,e)=>{(t===n||t.__emitterProxy&&t.__emitterProxy===n)&&o.eventsListeners[i].splice(e,1)})}),o},emit(){const o=this;if(o.eventsListeners&&!o.destroyed&&o.eventsListeners){let t,i,n;for(var e=arguments.length,r=new Array(e),s=0;s{o.eventsAnyListeners&&o.eventsAnyListeners.length&&o.eventsAnyListeners.forEach(t=>{t.apply(n,[e,...i])});o.eventsListeners&&o.eventsListeners[e]&&o.eventsListeners[e].forEach(t=>{t.apply(n,i)})})}return o}},update:{updateSize:function(){var t=this;let e,i;var n=t.el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:n.clientWidth,i=void 0!==t.params.height&&null!==t.params.height?t.params.height:n.clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(V(n,"padding-left")||0,10)-parseInt(V(n,"padding-right")||0,10),i=i-parseInt(V(n,"padding-top")||0,10)-parseInt(V(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const n=this;function o(t,e){return parseFloat(t.getPropertyValue(n.getDirectionLabel(e))||0)}const r=n.params,{wrapperEl:t,slidesEl:i,size:s,rtlTranslate:e,wrongRTL:R}=n;var a=n.virtual&&r.virtual.enabled,l=(a?n.virtual:n).slides.length;const u=G(i,`.${n.params.slideClass}, swiper-slide`);var c=(a?n.virtual.slides:u).length;let h=[];const d=[];var p=[];let f=r.slidesOffsetBefore,m=("function"==typeof f&&(f=r.slidesOffsetBefore.call(n)),r.slidesOffsetAfter);"function"==typeof m&&(m=r.slidesOffsetAfter.call(n));var F=n.snapGrid.length,N=n.slidesGrid.length;let g=r.spaceBetween,v=-f,y=0,_=0;if(void 0!==s){"string"==typeof g&&0<=g.indexOf("%")?g=parseFloat(g.replace("%",""))/100*s:"string"==typeof g&&(g=parseFloat(g)),n.virtualSize=-g,u.forEach(t=>{e?t.style.marginLeft="":t.style.marginRight="";t.style.marginBottom="";t.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(Z(t,"--swiper-centered-offset-before",""),Z(t,"--swiper-centered-offset-after",""));var w=r.grid&&1{return void 0!==r.breakpoints[t].slidesPerView}).length;for(let e=0;e{if(!r.cssMode||r.loop)return!0;if(e===u.length-1)return!1;return!0}).forEach(t=>{t.style[I]=g+"px"})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(g||0)});const O=(e-=g)>s?e-s:0;h=h.map(t=>{if(t<=0)return-f;if(t>O)return O+m;return t})}if(r.centerInsufficientSlides){let e=0;p.forEach(t=>{e+=t+(g||0)}),e-=g;var k=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(e+k{h[e]=t-D}),d.forEach((t,e)=>{d[e]=t+D})}}if(Object.assign(n,{slides:u,snapGrid:h,slidesGrid:d,slidesSizesGrid:p}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Z(t,"--swiper-centered-offset-before",-h[0]+"px"),Z(t,"--swiper-centered-offset-after",n.size/2-p[p.length-1]/2+"px");const B=-n.snapGrid[0],q=-n.slidesGrid[0];n.snapGrid=n.snapGrid.map(t=>t+B),n.slidesGrid=n.slidesGrid.map(t=>t+q)}c!==l&&n.emit("slidesLengthChange"),h.length!==F&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),d.length!==N&&n.emit("slidesGridLengthChange"),r.watchSlidesProgress&&n.updateSlidesOffset(),n.emit("slidesUpdated"),a||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect||(k=r.containerModifierClass+"backface-hidden",l=n.el.classList.contains(k),c<=r.maxBackfaceHiddenSlides?l||n.el.classList.add(k):l&&n.el.classList.remove(k))}},updateAutoHeight:function(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,r;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);var s,a=t=>{if(n)return e.slides[e.getSlideIndexByData(t)];return e.slides[t]};if("auto"!==e.params.slidesPerView&&1{i.push(t)});else for(r=0;re.slides.length&&!n)break;i.push(a(l))}else i.push(a(e.activeIndex));for(r=0;ro?s:o);!o&&0!==o||(e.wrapperEl.style.height=o+"px")},updateSlidesOffset:function(){var e=this.slides,i=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let t=0;t=o.size;d&&(o.visibleSlides.push(u),o.visibleSlidesIndexes.push(e)),B(u,d,r.slideVisibleClass),B(u,f,r.slideFullyVisibleClass),u.progress=a?-c:c,u.originalProgress=a?-h:h}}},updateProgress:function(t){var e=this,i=(void 0===t&&(i=e.rtlTranslate?-1:1,t=e&&e.translate&&e.translate*i||0),e.params),n=e.maxTranslate()-e.minTranslate();let{progress:o,isBeginning:r,isEnd:s,progressLoop:a}=e;var l,u,c,h=r,d=s;0==n?(o=0,r=!0,s=!0):(o=(t-e.minTranslate())/n,n=Math.abs(t-e.minTranslate())<1,l=Math.abs(t-e.maxTranslate())<1,r=n||o<=0,s=l||1<=o,n&&(o=0),l&&(o=1)),i.loop&&(n=e.getSlideIndexByData(0),l=e.getSlideIndexByData(e.slides.length-1),n=e.slidesGrid[n],l=e.slidesGrid[l],u=e.slidesGrid[e.slidesGrid.length-1],c=Math.abs(t),1<(a=n<=c?(c-n)/u:(c+u-l)/u))&&--a,Object.assign(e,{progress:o,progressLoop:a,isBeginning:r,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!h&&e.emit("reachBeginning toEdge"),s&&!d&&e.emit("reachEnd toEdge"),(h&&!r||d&&!s)&&e.emit("fromEdge"),e.emit("progress",o)},updateSlidesClasses:function(){const{slides:t,params:e,slidesEl:i,activeIndex:n}=this;var o=this.virtual&&e.virtual.enabled,r=this.grid&&e.grid&&1{return G(i,`.${e.slideClass}${t}, swiper-slide`+t)[0]};let a,l,u;if(o)if(e.loop){let t=n-this.virtual.slidesBefore;(t=t<0?this.virtual.slides.length+t:t)>=this.virtual.slides.length&&(t-=this.virtual.slides.length),a=s(`[data-swiper-slide-index="${t}"]`)}else a=s(`[data-swiper-slide-index="${n}"]`);else r?(a=t.find(t=>t.column===n),u=t.find(t=>t.column===n+1),l=t.find(t=>t.column===n-1)):a=t[n];a&&!r&&(u=function(t,e){for(var i=[];t.nextElementSibling;){var n=t.nextElementSibling;(!e||n.matches(e))&&i.push(n),t=n}return i}(a,`.${e.slideClass}, swiper-slide`)[0],e.loop&&!u&&(u=t[0]),l=function(t,e){for(var i=[];t.previousElementSibling;){var n=t.previousElementSibling;(!e||n.matches(e))&&i.push(n),t=n}return i}(a,`.${e.slideClass}, swiper-slide`)[0],e.loop)&&0===!l&&(l=t[t.length-1]),t.forEach(t=>{m(t,t===a,e.slideActiveClass);m(t,t===u,e.slideNextClass);m(t,t===l,e.slidePrevClass)}),this.emitSlidesClasses()},updateActiveIndex:function(t){const i=this;var n=i.rtlTranslate?i.translate:-i.translate,{snapGrid:o,params:r,activeIndex:s,realIndex:a,snapIndex:l}=i;let u=t,c;if(t=t=>{let e=t-i.virtual.slidesBefore;e<0&&(e=i.virtual.slides.length+e);e>=i.virtual.slides.length&&(e-=i.virtual.slides.length);return e},void 0===u&&(u=function(t){var{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let t=0;t=e[t]&&n=e[t]&&n=e[t]&&(o=t);return o=i.normalizeSlideIndex&&(o<0||void 0===o)?0:o}(i)),(c=0<=o.indexOf(n)?o.indexOf(n):(n=Math.min(r.slidesPerGroupSkip,u))+Math.floor((u-n)/r.slidesPerGroup))>=o.length&&(c=o.length-1),u!==s||i.params.loop)if(u===s&&i.params.loop&&i.virtual&&i.params.virtual.enabled)i.realIndex=t(u);else{n=i.grid&&r.grid&&1t.column===u);let t=parseInt(o.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(i.slides.indexOf(o),0)),e=Math.floor(t/r.grid.rows)}else e=i.slides[u]&&(t=i.slides[u].getAttribute("data-swiper-slide-index"),t)?parseInt(t,10):u;Object.assign(i,{previousSnapIndex:l,snapIndex:c,previousRealIndex:a,realIndex:e,previousIndex:s,activeIndex:u}),i.initialized&&v(i),i.emit("activeIndexChange"),i.emit("snapIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&(a!==e&&i.emit("realIndexChange"),i.emit("slideChange"))}else c!==l&&(i.snapIndex=c,i.emit("snapIndexChange"))},updateClickedSlide:function(t,e){var i=this;const n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`),r=(!o&&i.isElement&&e&&1{!o&&t.matches&&t.matches(`.${n.slideClass}, swiper-slide`)&&(o=t)}),!1),s;if(o)for(let t=0;t=l.length?l.length-1:m];if(a.normalizeSlideIndex)for(let t=0;tr.translate&&g>r.minTranslate():gr.translate&&g>r.maxTranslate()&&(h||0)!==s)return!1}s!==(c||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(g);let w;if(w=s>h?"next":s{p[x?"scrollLeft":"scrollTop"]=T})):p[x?"scrollLeft":"scrollTop"]=T,t&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="";r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return M({swiper:r,targetPosition:T,side:x?"left":"top"}),!0;p.scrollTo({[x?"left":"top"]:T,behavior:"smooth"})}}else{var b=D().isSafari;t&&!o&&b&&r.isElement&&r.virtual.update(!1,!1,s),r.setTransition(e),r.setTranslate(g),r.updateActiveIndex(s),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,n),r.transitionStart(i,w),0===e?r.transitionEnd(i,w):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,w))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd))}return!0},slideToLoop:function(o,t,e,r){void 0===e&&(e=!0),"string"==typeof(o=void 0===o?0:o)&&(o=parseInt(o,10));const s=this;if(!s.destroyed){void 0===t&&(t=s.params.speed);var a=s.grid&&s.params.grid&&1+t.getAttribute("data-swiper-slide-index")==u).column}else t=s.getSlideIndexByData(n);var o=a?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,l=s.params["centeredSlides"];let e=s.params.slidesPerView,i=("auto"===e?e=s.slidesPerViewDynamic():(e=Math.ceil(parseFloat(s.params.slidesPerView,10)),l&&e%2==0&&(e+=1)),o-t+t.getAttribute("data-swiper-slide-index")==c).column}else n=s.getSlideIndexByData(n)}return requestAnimationFrame(()=>{s.slideTo(n,t,e,r)}),s}},slideNext:function(t,e,i){void 0===e&&(e=!0);const n=this;var{enabled:o,params:r,animating:s}=n;if(!o||n.destroyed)return n;void 0===t&&(t=n.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex{n.slideTo(n.activeIndex+l,t,e,i)}),!0}return r.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+l,t,e,i)},slidePrev:function(t,e,i){void 0===e&&(e=!0);const n=this;var{params:o,snapGrid:r,slidesGrid:s,rtlTranslate:a,enabled:l,animating:u}=n;if(!l||n.destroyed)return n;if(void 0===t&&(t=n.params.speed),l=n.virtual&&o.virtual.enabled,o.loop){if(u&&!l&&o.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const h=c(a?n.translate:-n.translate);u=r.map(t=>c(t)),l=o.freeMode&&o.freeMode.enabled;let d=r[u.indexOf(h)-1];if(void 0===d&&(o.cssMode||l)){let i;r.forEach((t,e)=>{h>=t&&(i=e)}),void 0!==i&&(d=l?r[i]:r[0{n.slideTo(p,t,e,i)}),!0):n.slideTo(p,t,e,i)},slideReset:function(t,e,i){if(void 0===e&&(e=!0),!this.destroyed)return void 0===t&&(t=this.params.speed),this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(e,i,n,o){void 0===i&&(i=!0),void 0===o&&(o=.5);var r=this;if(!r.destroyed){void 0===e&&(e=r.params.speed);let t=r.activeIndex;var s,a=Math.min(r.params.slidesPerGroupSkip,t),a=a+Math.floor((t-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;return l>=r.snapGrid[a]?(s=r.snapGrid[a],(r.snapGrid[a+1]-s)*oe.slides.length-e.loopedSlides+r/2?(e.loopFix(),t=e.getSlideIndex(G(o,s+`[data-swiper-slide-index="${i}"]`)[0]),E(()=>{e.slideTo(t)})):e.slideTo(t):t>e.slides.length-r?(e.loopFix(),t=e.getSlideIndex(G(o,s+`[data-swiper-slide-index="${i}"]`)[0]),E(()=>{e.slideTo(t)})):e.slideTo(t)):e.slideTo(t)}}},loop:{loopCreate:function(t,e){const n=this,{params:o,slidesEl:i}=n;var r,s,a,l,u;!o.loop||n.virtual&&n.params.virtual.enabled||(r=()=>{var t=G(i,`.${o.slideClass}, swiper-slide`);t.forEach((t,e)=>{t.setAttribute("data-swiper-slide-index",e)})},l=n.grid&&o.grid&&1{for(let t=0;tt.classList.contains(z.slideActiveClass))):i=c;var b="next"===l||!l,x="prev"===l||!l;let n=0,o=0;var T=(v?E[c].column:c)+(r&&void 0===u?-t/2+.5:0);if(T_-e){o=Math.max(T-(_-2*e),g),w&&(o=Math.max(o,t-_+m+1));for(let t=0;t{t.column===k&&L.push(e)}):L.push(k)}}if(f.__preventObserver__=!0,requestAnimationFrame(()=>{f.__preventObserver__=!1}),"cards"===f.params.effect&&E.length{E[t].swiperLoopMoveDOM=!0;P.prepend(E[t]);E[t].swiperLoopMoveDOM=!1}),b&&L.forEach(t=>{E[t].swiperLoopMoveDOM=!0;P.append(E[t]);E[t].swiperLoopMoveDOM=!1}),f.recalcSlides(),"auto"===z.slidesPerView?f.updateSlides():v&&(0{f.grid.updateSlide(e,t,f.slides)}),z.watchSlidesProgress&&f.updateSlidesOffset(),a&&(0{!t.destroyed&&t.params.loop&&t.loopFix({...I,slideTo:t.params.slidesPerView===z.slidesPerView&&a})}):f.controller.control instanceof f.constructor&&f.controller.control.params.loop&&f.controller.control.loopFix({...I,slideTo:f.controller.control.params.slidesPerView===z.slidesPerView&&a})}}f.emit("loopFix")}},loopDestroy:function(){const{params:t,slidesEl:e}=this;if(t.loop&&e&&(!this.virtual||!this.params.virtual.enabled)){this.recalcSlides();const i=[];this.slides.forEach(t=>{var e=void 0===t.swiperSlideIndex?+t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex;i[e]=t}),this.slides.forEach(t=>{t.removeAttribute("data-swiper-slide-index")}),i.forEach(t=>{e.append(t)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}}},grabCursor:{setGrabCursor:function(t){const e=this;var i;!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl,e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))},unsetGrabCursor:function(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}},events:{attachEvents:function(){var t=this,e=t["params"];t.onTouchStart=function(i){var n=this,o=z();let r=i;if(r.originalEvent&&(r=r.originalEvent),i=n.touchEventsData,"pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)N(n,r,r.targetTouches[0].pageX);else{var{params:s,touches:a,enabled:l}=n;if(l&&(s.simulateTouch||"mouse"!==r.pointerType)&&(!n.animating||!s.preventInteractionOnTransition)){!n.animating&&s.cssMode&&s.loop&&n.loopFix();let e=r.target;if(("wrapper"!==s.touchEventsTarget||T(e,n.wrapperEl))&&!("which"in r&&3===r.which||"button"in r&&0t.identifier===s.touchId))||t.identifier!==s.touchId)return}else t=n;if(s.isTouched){c=t.pageX,e=t.pageY;if(n.preventedByNestedSwiper)l.startX=c,l.startY=e;else if(r.allowTouchMove){if(a.touchReleaseOnEdges&&!a.loop)if(r.isVertical()){if(el.startY&&r.translate>=r.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else{if(u&&(c>l.startX&&-r.translate<=r.maxTranslate()||c=r.minTranslate()))return;if(!u&&(cl.startX&&r.translate>=r.minTranslate()))return}if(o.activeElement&&o.activeElement.matches(s.focusableElements)&&o.activeElement!==n.target&&"mouse"!==n.pointerType&&o.activeElement.blur(),o.activeElement&&n.target===o.activeElement&&n.target.matches(s.focusableElements))s.isMoved=!0,r.allowClick=!1;else{s.allowTouchCallbacks&&r.emit("touchMove",n),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=c,l.currentY=e;var o=l.currentX-l.startX,h=l.currentY-l.startY;if(!(r.params.threshold&&Math.sqrt(o**2+h**2)a.touchAngle:90-d>a.touchAngle)),s.isScrolling&&r.emit("touchMoveOpposite",n),void 0!==s.startMoving||l.currentX===l.startX&&l.currentY===l.startY||(s.startMoving=!0),s.isScrolling||"touchmove"===n.type&&s.preventTouchMoveFromPointerMove)s.isTouched=!1;else if(s.startMoving){r.allowClick=!1,!a.cssMode&&n.cancelable&&n.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&n.stopPropagation();let i=r.isHorizontal()?o:h,t=r.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(i=Math.abs(i)*(u?1:-1),t=Math.abs(t)*(u?1:-1)),l.diff=i,i*=a.touchRatio,u&&(i=-i,t=-t);var d=r.touchesDirection,o=(r.swipeDirection=0(a.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-("auto"!==a.slidesPerView&&2<=r.slides.length-a.slidesPerView?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>r.minTranslate()&&(t=!1,a.resistance)&&(s.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+s.startTranslate+i)**e)):i<0&&(o&&h&&s.allowThresholdMove&&s.currentTranslate<(a.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+("auto"!==a.slidesPerView&&2<=r.slides.length-a.slidesPerView?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-("auto"===a.slidesPerView?r.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),r.allowSlidePrev||r.allowSlideNext||(s.currentTranslate=s.startTranslate),0a.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,s.currentTranslate=s.startTranslate,void(l.diff=r.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY)}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&r.freeMode||a.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(s.currentTranslate),r.setTranslate(s.currentTranslate))}}}}else n.target.matches(s.focusableElements)||(r.allowClick=!1),s.isTouched&&(Object.assign(l,{startX:c,startY:e,currentX:c,currentY:e}),s.touchStartTime=p())}else s.startMoving&&s.isScrolling&&r.emit("touchMoveOpposite",n)}}.bind(t),t.onTouchEnd=function(t){const r=this,e=r.touchEventsData;let s=t,i;if("touchend"===(s=s.originalEvent?s.originalEvent:s).type||"touchcancel"===s.type){if(!(i=[...s.changedTouches].find(t=>t.identifier===e.touchId))||i.identifier!==e.touchId)return}else{if(null!==e.touchId)return;if(s.pointerId!==e.pointerId)return;i=s}if(!["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)||["pointercancel","contextmenu"].includes(s.type)&&(r.browser.isSafari||r.browser.isWebView)){e.pointerId=null,e.touchId=null;var{params:a,touches:t,rtlTranslate:n,slidesGrid:l,enabled:o}=r;if(o&&(a.simulateTouch||"mouse"!==s.pointerType))if(e.allowTouchCallbacks&&r.emit("touchEnd",s),e.allowTouchCallbacks=!1,e.isTouched){a.grabCursor&&e.isMoved&&e.isTouched&&(!0===r.allowSlideNext||!0===r.allowSlidePrev)&&r.setGrabCursor(!1);var o=p(),u=o-e.touchStartTime;if(r.allowClick&&(h=s.path||s.composedPath&&s.composedPath(),r.updateClickedSlide(h&&h[0]||s.target,h),r.emit("tap click",s),u<300)&&o-e.lastClickTime<300&&r.emit("doubleTap doubleClick",s),e.lastClickTime=p(),E(()=>{r.destroyed||(r.allowClick=!0)}),e.isTouched&&e.isMoved&&r.swipeDirection&&(0!==t.diff||e.loopSwapReset)&&(e.currentTranslate!==e.startTranslate||e.loopSwapReset)){e.isTouched=!1,e.isMoved=!1,e.startMoving=!1;let o;if(o=a.followFinger?n?r.translate:-r.translate:-e.currentTranslate,!a.cssMode)if(a.freeMode&&a.freeMode.enabled)r.freeMode.onTouchEnd({currentPos:o});else{var c=o>=-r.maxTranslate()&&!r.params.loop;let e=0,i=r.slidesSizesGrid[0];for(let t=0;t=l[t]&&o=l[t])&&(e=t,i=l[l.length-1]-l[l.length-2])}let t=null,n=null;a.rewind&&(r.isBeginning?n=a.virtual&&a.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1:r.isEnd&&(t=0));var h=(o-l[e])/i;const d=ea.longSwipesMs?a.longSwipes?("next"===r.swipeDirection&&(h>=a.longSwipesRatio?r.slideTo(a.rewind&&r.isEnd?t:e+d):r.slideTo(e)),"prev"===r.swipeDirection&&(h>1-a.longSwipesRatio?r.slideTo(e+d):null!==n&&h<0&&Math.abs(h)>a.longSwipesRatio?r.slideTo(n):r.slideTo(e))):r.slideTo(r.activeIndex):a.shortSwipes?r.navigation&&(s.target===r.navigation.nextEl||s.target===r.navigation.prevEl)?s.target===r.navigation.nextEl?r.slideTo(e+d):r.slideTo(e):("next"===r.swipeDirection&&r.slideTo(null!==t?t:e+d),"prev"===r.swipeDirection&&r.slideTo(null!==n?n:e)):r.slideTo(r.activeIndex)}}else e.isTouched=!1,e.isMoved=!1,e.startMoving=!1}else e.isMoved&&a.grabCursor&&r.setGrabCursor(!1),e.isMoved=!1,e.startMoving=!1}}.bind(t),t.onDocumentTouchStart=function(){this.documentTouchHandlerProceeded||(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}.bind(t),e.cssMode&&(t.onScroll=function(){var e=this,{wrapperEl:i,rtlTranslate:n,enabled:o}=e;if(o){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-i.scrollLeft:e.translate=-i.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let t;o=e.maxTranslate()-e.minTranslate();(t=0==o?0:(e.translate-e.minTranslate())/o)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}.bind(t)),t.onClick=function(t){this.enabled&&!this.allowClick&&(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation)&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation())}.bind(t),t.onLoad=function(t){a(this,t.target),this.params.cssMode||"auto"!==this.params.slidesPerView&&!this.params.autoHeight||this.update()}.bind(t),H(t,"on")},detachEvents:function(){H(this,"off")}},breakpoints:{setBreakpoint:function(){const n=this,{realIndex:t,initialized:e,params:o,el:i}=n;if((a=o.breakpoints)&&0!==Object.keys(a).length){var r=z(),s="window"!==o.breakpointsBase&&o.breakpointsBase?"container":o.breakpointsBase,r=["window","container"].includes(o.breakpointsBase)||!o.breakpointsBase?n.el:r.querySelector(o.breakpointsBase),s=n.getBreakpoint(a,s,r);if(s&&n.currentBreakpoint!==s){const h=(s in a?a[s]:void 0)||n.originalParams;var r=W(n,o),a=W(n,h),l=n.params.grabCursor,u=h.grabCursor,c=o.enabled,r=(r&&!a?(i.classList.remove(o.containerModifierClass+"grid",o.containerModifierClass+"grid-column"),n.emitContainerClasses()):!r&&a&&(i.classList.add(o.containerModifierClass+"grid"),(h.grid.fill&&"column"===h.grid.fill||!h.grid.fill&&"column"===o.grid.fill)&&i.classList.add(o.containerModifierClass+"grid-column"),n.emitContainerClasses()),l&&!u?n.unsetGrabCursor():!l&&u&&n.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===h[t])return;var e=o[t]&&o[t].enabled;var i=h[t]&&h[t].enabled;e&&!i&&n[t].disable();!e&&i&&n[t].enable()}),h.direction&&h.direction!==o.direction),a=o.loop&&(h.slidesPerView!==o.slidesPerView||r),l=o.loop,u=(r&&e&&n.changeDirection(),d(n.params,h),n.params.enabled),r=n.params.loop;Object.assign(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),c&&!u?n.disable():!c&&u&&n.enable(),n.currentBreakpoint=s,n.emit("_beforeBreakpoint",h),e&&(a?(n.loopDestroy(),n.loopCreate(t),n.updateSlides()):!l&&r?(n.loopCreate(t),n.updateSlides()):l&&!r&&n.loopDestroy()),n.emit("breakpoint",h)}}},getBreakpoint:function(t,i,n){if(void 0===i&&(i="window"),t&&("container"!==i||n)){let e=!1;var o=A();const l="window"===i?o.innerHeight:n.clientHeight;var r=Object.keys(t).map(t=>{{var e;if("string"==typeof t&&0===t.indexOf("@"))return e=parseFloat(t.substr(1)),{value:l*e,point:t}}return{value:t,point:t}});r.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let t=0;tt):e.isLocked=1===e.snapGrid.length,!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),i&&i!==e.isLocked&&(e.isEnd=!1),i!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var{classNames:t,params:e,rtl:i,el:n,device:o}=this,i=function(t,i){const n=[];return t.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(t=>{e[t]&&n.push(i+t)}):"string"==typeof e&&n.push(i+e)}),n}(["initialized",e.direction,{"free-mode":this.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:i},{grid:e.grid&&1{t=d({},e,{el:t});l.push(new w(t))}),l}const s=this,a=(s.__swiper__=!0,s.support=h(),s.device=u({userAgent:e.userAgent}),s.browser=D(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],e.modules&&Array.isArray(e.modules)&&s.modules.push(...e.modules),{});s.modules.forEach(t=>{t({params:e,swiper:s,extendParams:(n=e,o=a,function(t){void 0===t&&(t={});var e=Object.keys(t)[0],i=t[e];"object"==typeof i&&null!==i&&(!0===n[e]&&(n[e]={enabled:!0}),"navigation"===e&&n[e]&&n[e].enabled&&!n[e].prevEl&&!n[e].nextEl&&(n[e].auto=!0),0<=["pagination","scrollbar"].indexOf(e)&&n[e]&&n[e].enabled&&!n[e].el&&(n[e].auto=!0),e in n&&"enabled"in i)&&("object"!=typeof n[e]||"enabled"in n[e]||(n[e].enabled=!0),n[e]||(n[e]={enabled:!1})),d(o,t)}),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)});var n,o});r=d({},q,a);return s.params=d({},r,_,e),s.originalParams=d({},s.params),s.passedParams=d({},e),s.params&&s.params.on&&Object.keys(s.params.on).forEach(t=>{s.on(t,s.params.on[t])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===s.params.direction},isVertical(){return"vertical"===s.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){var{slidesEl:e,params:i}=this,e=P(G(e,`.${i.slideClass}, swiper-slide`)[0]);return P(t)-e}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e))}recalcSlides(){var{slidesEl:t,params:e}=this;this.slides=G(t,`.${e.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(t,e){t=Math.min(Math.max(t,0),1);var i=this.minTranslate(),n=this.maxTranslate();this.translateTo((n-i)*t+i,void 0===e?0:e),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const e=this;var t;e.params._emitClasses&&e.el&&(t=e.el.className.split(" ").filter(t=>{return 0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)}),e.emit("_containerClasses",t.join(" ")))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter(t=>{return 0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)}).join(" ")}emitSlidesClasses(){const i=this;if(i.params._emitClasses&&i.el){const n=[];i.slides.forEach(t=>{var e=i.getSlideClasses(t);n.push({slideEl:t,classNames:e});i.emit("_slideClass",t,e)}),i.emit("_slideClasses",n)}}slidesPerViewDynamic(t,e){void 0===t&&(t="current"),void 0===e&&(e=!1);var{params:i,slides:n,slidesGrid:o,slidesSizesGrid:r,size:s,activeIndex:a}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e=n[a]?Math.ceil(n[a].swiperSlideSize):0,i;for(let t=a+1;ts)&&(i=!0);for(let t=a-1;0<=t;--t)n[t]&&!i&&(e+=n[t].swiperSlideSize,l+=1,e>s)&&(i=!0)}else if("current"===t)for(let t=a+1;t{t.complete&&a(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();let t;function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,t=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(t),e.updateActiveIndex(),e.updateSlidesClasses()}o.freeMode&&o.freeMode.enabled&&!o.cssMode?(r(),o.autoHeight&&e.updateAutoHeight()):(t=("auto"===o.slidesPerView||1{"vertical"===e?t.style.width="":t.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(t){var e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(e.params.containerModifierClass+"rtl"),e.el.dir="rtl"):(e.el.classList.remove(e.params.containerModifierClass+"rtl"),e.el.dir="ltr"),e.update())}mount(i){const n=this;if(!n.mounted){let t=i||n.params.el;if(!(t="string"==typeof t?document.querySelector(t):t))return!1;t.swiper=n,t.parentNode&&t.parentNode.host&&t.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const o=()=>{return"."+(n.params.wrapperClass||"").trim().split(" ").join(".")};let e=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector)return t.shadowRoot.querySelector(o());return G(t,o())[0]})();!e&&n.params.createElements&&(e=C("div",n.params.wrapperClass),t.append(e),G(t,"."+n.params.slideClass).forEach(t=>{e.append(t)})),Object.assign(n,{el:t,wrapperEl:e,slidesEl:n.isElement&&!t.parentNode.host.slideSlots?t.parentNode.host:e,hostEl:n.isElement?t.parentNode.host:t,mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===V(t,"direction"),rtlTranslate:"horizontal"===n.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===V(t,"direction")),wrongRTL:"-webkit-box"===V(e,"display")})}return!0}init(t){const e=this;return e.initialized||!1!==e.mount(t)&&(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(void 0,!0),e.attachEvents(),t=[...e.el.querySelectorAll('[loading="lazy"]')],e.isElement&&t.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),t.forEach(t=>{t.complete?a(e,t):t.addEventListener("load",t=>{a(e,t.target)})}),v(e),e.initialized=!0,v(e),e.emit("init"),e.emit("afterInit")),e}destroy(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);const i=this,{params:n,el:o,wrapperEl:r,slides:s}=i;if(void 0!==i.params&&!i.destroyed){if(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),o&&"string"!=typeof o&&o.removeAttribute("style"),r&&r.removeAttribute("style"),s)&&s.length&&s.forEach(t=>{t.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass);t.removeAttribute("style");t.removeAttribute("data-swiper-slide-index")}),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(t=>{i.off(t)}),!1!==t){i.el&&"string"!=typeof i.el&&(i.el.swiper=null);{e=i;const a=e;Object.keys(a).forEach(t=>{try{a[t]=null}catch(t){}try{delete a[t]}catch(t){}})}}i.destroyed=!0}return null}static extendDefaults(t){d(_,t)}static get extendedDefaults(){return _}static get defaults(){return q}static installModule(t){w.prototype.__modules__||(w.prototype.__modules__=[]);var e=w.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?t.forEach(t=>w.installModule(t)):w.installModule(t),w}}function k(i,n,o,r){return i.params.createElements&&Object.keys(r).forEach(e=>{if(!o[e]&&!0===o.auto){let t=G(i.el,"."+r[e])[0];t||((t=C("div",r[e])).className=r[e],i.el.append(t)),o[e]=t,n[e]=t}}),o}function I(t){return"."+(t=void 0===t?"":t).trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}function U(t){let{swiper:i,duration:e,transformElements:n,allSlides:o}=t;const r=i["activeIndex"];if(i.params.virtualTranslate&&0!==e){let e=!1,t;(t=o?n:n.filter(t=>{t=t.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return i.slides.find(t=>t.shadowRoot&&t.shadowRoot===e.parentNode);return e.parentElement})(t):t;return i.getSlideIndex(t)===r})).forEach(t=>{s(t,()=>{if(e)return;if(!i||i.destroyed)return;e=!0;i.animating=!1;var t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(t)})})}}return Object.keys(y).forEach(e=>{Object.keys(y[e]).forEach(t=>{w.prototype[t]=y[e][t]})}),w.use([function(t){let{swiper:r,on:e,emit:i}=t;const n=A();let o=null,s=null;const a=()=>{if(!r||r.destroyed||!r.initialized)return;i("beforeResize");i("resize")},l=()=>{if(!r||r.destroyed||!r.initialized)return;i("orientationchange")};e("init",()=>{if(r.params.resizeObserver&&void 0!==n.ResizeObserver)return r&&!r.destroyed&&r.initialized?void(o=new ResizeObserver(i=>{s=n.requestAnimationFrame(()=>{var{width:t,height:e}=r;let n=t;let o=e;i.forEach(t=>{var{contentBoxSize:t,contentRect:e,target:i}=t;if(i&&i!==r.el)return;n=e?e.width:(t[0]||t).inlineSize;o=e?e.height:(t[0]||t).blockSize});n===t&&o===e||a()})})).observe(r.el):void 0;n.addEventListener("resize",a);n.addEventListener("orientationchange",l)}),e("destroy",()=>{(()=>{s&&n.cancelAnimationFrame(s);o&&o.unobserve&&r.el&&(o.unobserve(r.el),o=null)})();n.removeEventListener("resize",a);n.removeEventListener("orientationchange",l)})},function(t){let{swiper:n,extendParams:e,on:i,emit:o}=t;function r(t,e){void 0===e&&(e={});var i=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(n.__preventObserver__)return;if(1===t.length)return void o("observerUpdate",t[0]);function e(){o("observerUpdate",t[0])}a.requestAnimationFrame?a.requestAnimationFrame(e):a.setTimeout(e,0)});i.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:n.isElement||(void 0===e.childList||e).childList,characterData:void 0===e.characterData||e.characterData}),s.push(i)}const s=[],a=A();e({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(!n.params.observer)return;if(n.params.observeParents){var e=c(n.hostEl);for(let t=0;t{s.forEach(t=>{t.disconnect()});s.splice(0,s.length)})}]),w.use([function(t){let{swiper:s,extendParams:e,on:i,emit:a}=t;function o(t){let e;return!(t&&"string"==typeof t&&s.isElement&&(e=s.el.querySelector(t)||s.hostEl.querySelector(t)))&&(t&&("string"==typeof t&&(e=[...document.querySelectorAll(t)]),s.params.uniqueNavElements&&"string"==typeof t&&e&&1{t&&(t.classList[e?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=e),s.params.watchOverflow)&&s.enabled&&t.classList[s.isLocked?"add":"remove"](i.lockClass)})}function r(){var{nextEl:t,prevEl:e}=s.navigation;s.params.loop?(n(e,!1),n(t,!1)):(n(e,s.isBeginning&&!s.params.rewind),n(t,s.isEnd&&!s.params.rewind))}function l(t){t.preventDefault(),s.isBeginning&&!s.params.loop&&!s.params.rewind||(s.slidePrev(),a("navigationPrev"))}function u(t){t.preventDefault(),s.isEnd&&!s.params.loop&&!s.params.rewind||(s.slideNext(),a("navigationNext"))}function c(){const i=s.params.navigation;if(s.params.navigation=k(s,s.originalParams.navigation,s.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),i.nextEl||i.prevEl){var t=o(i.nextEl),e=o(i.prevEl);Object.assign(s.navigation,{nextEl:t,prevEl:e}),t=L(t),e=L(e);const n=(t,e)=>{t&&t.addEventListener("click","next"===e?u:l);!s.enabled&&t&&t.classList.add(...i.lockClass.split(" "))};t.forEach(t=>n(t,"next")),e.forEach(t=>n(t,"prev"))}}function h(){var{nextEl:t,prevEl:e}=s.navigation,t=L(t),e=L(e);const i=(t,e)=>{t.removeEventListener("click","next"===e?u:l);t.classList.remove(...s.params.navigation.disabledClass.split(" "))};t.forEach(t=>i(t,"next")),e.forEach(t=>i(t,"prev"))}e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),s.navigation={nextEl:null,prevEl:null},i("init",()=>{(!1===s.params.navigation.enabled?d:(c(),r))()}),i("toEdge fromEdge lock unlock",()=>{r()}),i("destroy",()=>{h()}),i("enable disable",()=>{var{nextEl:t,prevEl:e}=s.navigation;t=L(t);e=L(e);if(s.enabled)return void r();[...t,...e].filter(t=>!!t).forEach(t=>t.classList.add(s.params.navigation.lockClass))}),i("click",(t,e)=>{let{nextEl:i,prevEl:n}=s.navigation;i=L(i);n=L(n);var o=e.target;let r=n.includes(o)||i.includes(o);s.isElement&&!r&&(e=e.path||e.composedPath&&e.composedPath())&&(r=e.find(t=>i.includes(t)||n.includes(t)));if(s.params.navigation.hideOnClick&&!r&&(!(s.pagination&&s.params.pagination&&s.params.pagination.clickable)||s.pagination.el!==o&&!s.pagination.el.contains(o))){let t;i.length?t=i[0].classList.contains(s.params.navigation.hiddenClass):n.length&&(t=n[0].classList.contains(s.params.navigation.hiddenClass)),!0===t?a("navigationShow"):a("navigationHide"),[...i,...n].filter(t=>!!t).forEach(t=>t.classList.toggle(s.params.navigation.hiddenClass))}});const d=()=>{s.el.classList.add(...s.params.navigation.navigationDisabledClass.split(" "));h()};Object.assign(s.navigation,{enable:()=>{s.el.classList.remove(...s.params.navigation.navigationDisabledClass.split(" "));c();r()},disable:d,update:r,init:c,destroy:h})},function(t){let{swiper:f,extendParams:e,on:i,emit:m}=t;t="swiper-pagination",e({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:t+"-bullet",bulletActiveClass:t+"-bullet-active",modifierClass:t+"-",currentClass:t+"-current",totalClass:t+"-total",hiddenClass:t+"-hidden",progressbarFillClass:t+"-progressbar-fill",progressbarOppositeClass:t+"-progressbar-opposite",clickableClass:t+"-clickable",lockClass:t+"-lock",horizontalClass:t+"-horizontal",verticalClass:t+"-vertical",paginationDisabledClass:t+"-disabled"}}),f.pagination={el:null,bullets:[]};let g,v=0;function r(){return!f.params.pagination.el||!f.pagination.el||Array.isArray(f.pagination.el)&&0===f.pagination.el.length}function y(t,e){var i=f.params.pagination["bulletActiveClass"];(t=t&&t[`${"prev"===e?"previous":"next"}ElementSibling`])&&(t.classList.add(i+"-"+e),t=t[`${"prev"===e?"previous":"next"}ElementSibling`])&&t.classList.add(i+`-${e}-`+e)}function n(t){var e,i,n=t.target.closest(I(f.params.pagination.bulletClass));n&&(t.preventDefault(),t=P(n)*f.params.slidesPerGroup,f.params.loop?f.realIndex!==t&&(n=f.realIndex,e=t,i=f.slides.length,"next"===(i=(e%=i)===(n%=i)+1?"next":e===n-1?"previous":void 0)?f.slideNext():"previous"===i?f.slidePrev():f.slideToLoop(t)):f.slideTo(t))}function o(){var o=f.rtl;const s=f.params.pagination;if(!r()){var a=L(a=f.pagination.el);let r,e;var l=(f.virtual&&f.params.virtual.enabled?f.virtual:f).slides.length;const h=f.params.loop?Math.ceil(l/f.params.slidesPerGroup):f.snapGrid.length;if(f.params.loop?(e=f.previousRealIndex||0,r=1{t.style[f.isHorizontal()?"width":"height"]=g*(s.dynamicMainBullets+4)+"px"}),1s.dynamicMainBullets-1?v=s.dynamicMainBullets-1:v<0&&(v=0)),i=Math.max(r-v,0),n=i+(Math.min(u.length,s.dynamicMainBullets)-1),t=(n+i)/2),u.forEach(t=>{var e=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(t=>""+s.bulletActiveClass+t)].map(t=>"string"==typeof t&&t.includes(" ")?t.split(" "):t).flat();t.classList.remove(...e)}),1{var e=P(t);e===r?t.classList.add(...s.bulletActiveClass.split(" ")):f.isElement&&t.setAttribute("part","bullet");s.dynamicBullets&&(e>=i&&e<=n&&t.classList.add(...(s.bulletActiveClass+"-main").split(" ")),e===i&&y(t,"prev"),e===n)&&y(t,"next")});else{l=u[r];if(l&&l.classList.add(...s.bulletActiveClass.split(" ")),f.isElement&&u.forEach((t,e)=>{t.setAttribute("part",e===r?"bullet-active":"bullet")}),s.dynamicBullets){var l=u[i],c=u[n];for(let t=i;t<=n;t+=1)u[t]&&u[t].classList.add(...(s.bulletActiveClass+"-main").split(" "));y(l,"prev"),y(c,"next")}}if(s.dynamicBullets){l=Math.min(u.length,s.dynamicMainBullets+4);const d=(g*l-g)/2-t*g,p=o?"right":"left";u.forEach(t=>{t.style[f.isHorizontal()?p:"top"]=d+"px"})}}a.forEach((n,t)=>{"fraction"===s.type&&(n.querySelectorAll(I(s.currentClass)).forEach(t=>{t.textContent=s.formatFractionCurrent(r+1)}),n.querySelectorAll(I(s.totalClass)).forEach(t=>{t.textContent=s.formatFractionTotal(h)}));if("progressbar"===s.type){let t;t=s.progressbarOpposite?f.isHorizontal()?"vertical":"horizontal":f.isHorizontal()?"horizontal":"vertical";var o=(r+1)/h;let e=1,i=1;"horizontal"===t?e=o:i=o,n.querySelectorAll(I(s.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${e}) scaleY(${i})`;t.style.transitionDuration=f.params.speed+"ms"})}"custom"===s.type&&s.renderCustom?(n.innerHTML=s.renderCustom(f,r+1,h),0===t&&m("paginationRender",n)):(0===t&&m("paginationRender",n),m("paginationUpdate",n));f.params.watchOverflow&&f.enabled&&n.classList[f.isLocked?"add":"remove"](s.lockClass)})}}function s(){const n=f.params.pagination;if(!r()){var t=f.virtual&&f.params.virtual.enabled?f.virtual.slides.length:f.grid&&1t&&(e=t);for(let t=0;t${n.bulletElement}>`}"fraction"===n.type&&(i=n.renderFraction?n.renderFraction.call(f,n.currentClass,n.totalClass):` `+" / "+` `),"progressbar"===n.type&&(i=n.renderProgressbar?n.renderProgressbar.call(f,n.progressbarFillClass):` `),f.pagination.bullets=[],e.forEach(t=>{"custom"!==n.type&&(t.innerHTML=i||"");"bullets"===n.type&&f.pagination.bullets.push(...t.querySelectorAll(I(n.bulletClass)))}),"custom"!==n.type&&m("paginationRender",e[0])}}function a(){f.params.pagination=k(f,f.originalParams.pagination,f.params.pagination,{el:"swiper-pagination"});const e=f.params.pagination;if(e.el){let t;(t=(t=(t="string"==typeof e.el&&f.isElement?f.el.querySelector(e.el):t)||"string"!=typeof e.el?t:[...document.querySelectorAll(e.el)])||e.el)&&0!==t.length&&(f.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(t)&&1{if(c(t,".swiper")[0]!==f.el)return!1;return!0})),Array.isArray(t)&&1===t.length&&(t=t[0]),Object.assign(f.pagination,{el:t}),(t=L(t)).forEach(t=>{"bullets"===e.type&&e.clickable&&t.classList.add(...(e.clickableClass||"").split(" "));t.classList.add(e.modifierClass+e.type);t.classList.add(f.isHorizontal()?e.horizontalClass:e.verticalClass);"bullets"===e.type&&e.dynamicBullets&&(t.classList.add(""+e.modifierClass+e.type+"-dynamic"),v=0,e.dynamicMainBullets<1)&&(e.dynamicMainBullets=1);"progressbar"===e.type&&e.progressbarOpposite&&t.classList.add(e.progressbarOppositeClass);e.clickable&&t.addEventListener("click",n);f.enabled||t.classList.add(e.lockClass)}))}}function l(){const e=f.params.pagination;var t;r()||((t=f.pagination.el)&&(t=L(t)).forEach(t=>{t.classList.remove(e.hiddenClass);t.classList.remove(e.modifierClass+e.type);t.classList.remove(f.isHorizontal()?e.horizontalClass:e.verticalClass);e.clickable&&(t.classList.remove(...(e.clickableClass||"").split(" ")),t.removeEventListener("click",n))}),f.pagination.bullets&&f.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}i("changeDirection",()=>{if(!f.pagination||!f.pagination.el)return;const e=f.params.pagination;var t=f.pagination["el"];t=L(t);t.forEach(t=>{t.classList.remove(e.horizontalClass,e.verticalClass);t.classList.add(f.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{(!1===f.params.pagination.enabled?u:(a(),s(),o))()}),i("activeIndexChange",()=>{void 0===f.snapIndex&&o()}),i("snapIndexChange",()=>{o()}),i("snapGridLengthChange",()=>{s();o()}),i("destroy",()=>{l()}),i("enable disable",()=>{var t=f.pagination["el"];t&&(t=L(t)).forEach(t=>t.classList[f.enabled?"remove":"add"](f.params.pagination.lockClass))}),i("lock unlock",()=>{o()}),i("click",(t,e)=>{e=e.target;var i=L(f.pagination.el);f.params.pagination.el&&f.params.pagination.hideOnClick&&i&&0t.classList.toggle(f.params.pagination.hiddenClass))))});const u=()=>{f.el.classList.add(f.params.pagination.paginationDisabledClass);var t=f.pagination["el"];t&&(t=L(t)).forEach(t=>t.classList.add(f.params.pagination.paginationDisabledClass));l()};Object.assign(f.pagination,{enable:()=>{f.el.classList.remove(f.params.pagination.paginationDisabledClass);var t=f.pagination["el"];t&&(t=L(t)).forEach(t=>t.classList.remove(f.params.pagination.paginationDisabledClass));a();s();o()},disable:u,render:s,update:o,init:a,destroy:l})},function(t){let{swiper:l,extendParams:e,on:i,emit:r}=t;const s=z();let a=!1,u=null,c=null,h,d,p,n;function o(){if(l.params.scrollbar.el&&l.scrollbar.el){var{scrollbar:i,rtlTranslate:n}=l;const{dragEl:r,el:s}=i;var i=l.params.scrollbar,o=l.params.loop?l.progressLoop:l.progress;let t=d,e=(p-d)*o;n?0<(e=-e)?(t=d-e,e=0):-e+d>p&&(t=p+e):e<0?(t=d+e,e=0):e+d>p&&(t=p-e),l.isHorizontal()?(r.style.transform=`translate3d(${e}px, 0, 0)`,r.style.width=t+"px"):(r.style.transform=`translate3d(0px, ${e}px, 0)`,r.style.height=t+"px"),i.hide&&(clearTimeout(u),s.style.opacity=1,u=setTimeout(()=>{s.style.opacity=0;s.style.transitionDuration="400ms"},1e3))}}function f(){var t,e,i;l.params.scrollbar.el&&l.scrollbar.el&&(t=l["scrollbar"],{dragEl:e,el:i}=t,e.style.width="",e.style.height="",p=l.isHorizontal()?i.offsetWidth:i.offsetHeight,n=l.size/(l.virtualSize+l.params.slidesOffsetBefore-(l.params.centeredSlides?l.snapGrid[0]:0)),d="auto"===l.params.scrollbar.dragSize?p*n:parseInt(l.params.scrollbar.dragSize,10),l.isHorizontal()?e.style.width=d+"px":e.style.height=d+"px",1<=n?i.style.display="none":i.style.display="",l.params.scrollbar.hide&&(i.style.opacity=0),l.params.watchOverflow)&&l.enabled&&t.el.classList[l.isLocked?"add":"remove"](l.params.scrollbar.lockClass)}function m(t){return l.isHorizontal()?t.clientX:t.clientY}function g(t){var e,i,n,o,{scrollbar:r,rtlTranslate:s}=l,r=r["el"];let a;a=(m(t)-(t=r,r=A(),e=z(),i=t.getBoundingClientRect(),e=e.body,n=t.clientTop||e.clientTop||0,e=t.clientLeft||e.clientLeft||0,o=t===r?r.scrollY:t.scrollTop,r=t===r?r.scrollX:t.scrollLeft,{top:i.top+o-n,left:i.left+r-e}[l.isHorizontal()?"left":"top"])-(null!==h?h:d/2))/(p-d),a=Math.max(Math.min(a,1),0),s&&(a=1-a);t=l.minTranslate()+(l.maxTranslate()-l.minTranslate())*a;l.updateProgress(t),l.setTranslate(t),l.updateActiveIndex(),l.updateSlidesClasses()}function v(t){var e=l.params.scrollbar,{scrollbar:i,wrapperEl:n}=l,{el:i,dragEl:o}=i;a=!0,h=t.target===o?m(t)-t.target.getBoundingClientRect()[l.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),n.style.transitionDuration="100ms",o.style.transitionDuration="100ms",g(t),clearTimeout(c),i.style.transitionDuration="0ms",e.hide&&(i.style.opacity=1),l.params.cssMode&&(l.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",t)}function y(t){var{scrollbar:e,wrapperEl:i}=l,{el:e,dragEl:n}=e;a&&(t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1,g(t),i.style.transitionDuration="0ms",e.style.transitionDuration="0ms",n.style.transitionDuration="0ms",r("scrollbarDragMove",t))}function _(t){var e=l.params.scrollbar,{scrollbar:i,wrapperEl:n}=l;const o=i["el"];a&&(a=!1,l.params.cssMode&&(l.wrapperEl.style["scroll-snap-type"]="",n.style.transitionDuration=""),e.hide&&(clearTimeout(c),c=E(()=>{o.style.opacity=0;o.style.transitionDuration="400ms"},1e3)),r("scrollbarDragEnd",t),e.snapOnRelease)&&l.slideToClosest()}function w(t){var e,{scrollbar:i,params:n}=l,i=i.el;i&&(e=!!n.passiveListeners&&{passive:!1,capture:!1},n=!!n.passiveListeners&&{passive:!0,capture:!1},i=i)&&(i[i="on"===t?"addEventListener":"removeEventListener"]("pointerdown",v,e),s[i]("pointermove",y,e),s[i]("pointerup",_,n))}function b(){var{scrollbar:i,el:n}=l,o=(l.params.scrollbar=k(l,l.originalParams.scrollbar,l.params.scrollbar,{el:"swiper-scrollbar"}),l.params.scrollbar);if(o.el){let t;if((t="string"==typeof o.el&&l.isElement?l.el.querySelector(o.el):t)||"string"!=typeof o.el)t=t||o.el;else if(!(t=s.querySelectorAll(o.el)).length)return;(t=0<(t=l.params.uniqueNavElements&&"string"==typeof o.el&&1{if(!l.scrollbar||!l.scrollbar.el)return;const e=l.params.scrollbar;var t=l.scrollbar["el"];t=L(t);t.forEach(t=>{t.classList.remove(e.horizontalClass,e.verticalClass);t.classList.add(l.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{(!1===l.params.scrollbar.enabled?T:(b(),f(),o))()}),i("update resize observerUpdate lock unlock changeDirection",()=>{f()}),i("setTranslate",()=>{o()}),i("setTransition",(t,e)=>{e=e,l.params.scrollbar.el&&l.scrollbar.el&&(l.scrollbar.dragEl.style.transitionDuration=e+"ms")}),i("enable disable",()=>{var t=l.scrollbar["el"];t&&t.classList[l.enabled?"remove":"add"](...S(l.params.scrollbar.lockClass))}),i("destroy",()=>{x()});const T=()=>{l.el.classList.add(...S(l.params.scrollbar.scrollbarDisabledClass));l.scrollbar.el&&l.scrollbar.el.classList.add(...S(l.params.scrollbar.scrollbarDisabledClass));x()};Object.assign(l.scrollbar,{enable:()=>{l.el.classList.remove(...S(l.params.scrollbar.scrollbarDisabledClass));l.scrollbar.el&&l.scrollbar.el.classList.remove(...S(l.params.scrollbar.scrollbarDisabledClass));b();f();o()},disable:T,updateSize:f,setTranslate:o,init:b,destroy:x})},function(t){let{swiper:c,extendParams:e,on:i}=t;e({parallax:{enabled:!1}});const r="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(t,e)=>{var i=c["rtl"];i=i?-1:1;var n=t.getAttribute("data-swiper-parallax")||"0";let o=t.getAttribute("data-swiper-parallax-x");let r=t.getAttribute("data-swiper-parallax-y");var s=t.getAttribute("data-swiper-parallax-scale");var a=t.getAttribute("data-swiper-parallax-opacity");var l=t.getAttribute("data-swiper-parallax-rotate");o||r?(o=o||"0",r=r||"0"):c.isHorizontal()?(o=n,r="0"):(r=n,o="0");o=0<=o.indexOf("%")?parseInt(o,10)*e*i+"%":o*e*i+"px";r=0<=r.indexOf("%")?parseInt(r,10)*e+"%":r*e+"px";null!=a&&(n=a-(a-1)*(1-Math.abs(e)),t.style.opacity=n);let u=`translate3d(${o}, ${r}, 0px)`;null!=s&&(i=s-(s-1)*(1-Math.abs(e)),u+=` scale(${i})`);l&&null!=l&&(u+=` rotate(${l*e*-1}deg)`);t.style.transform=u},n=()=>{const{el:t,slides:e,progress:n,snapGrid:o}=c;var i=G(t,r);c.isElement&&i.push(...G(c.hostEl,r));i.forEach(t=>{s(t,n)});e.forEach((t,e)=>{let i=t.progress;1{s(t,i)})})};i("beforeInit",()=>{if(!c.params.parallax.enabled)return;c.params.watchSlidesProgress=!0;c.originalParams.watchSlidesProgress=!0}),i("init",()=>{if(!c.params.parallax.enabled)return;n()}),i("setTranslate",()=>{if(!c.params.parallax.enabled)return;n()}),i("setTransition",(t,e)=>{if(!c.params.parallax.enabled)return;!function(i){void 0===i&&(i=c.params.speed);var{el:t,hostEl:e}=c,t=[...t.querySelectorAll(r)];c.isElement&&t.push(...e.querySelectorAll(r)),t.forEach(t=>{let e=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||i;0===i&&(e=0);t.style.transitionDuration=e+"ms"})}(e)})},function(t){let{swiper:a,extendParams:e,on:i}=t;function l(t,e){const i=function(){let i,n,o;return(t,e)=>{n=-1;i=t.length;for(;1>1]<=e?n=o:i=o;return i}}();this.x=t,this.y=e,this.lastIndex=t.length-1;let n,o;return this.interpolate=function(t){return t?(o=i(this.x,t),n=o-1,(t-this.x[n])*(this.y[o]-this.y[n])/(this.x[o]-this.x[n])+this.y[n]):0},this}function n(){a.controller.control&&a.controller.spline&&(a.controller.spline=void 0,delete a.controller.spline)}e({controller:{control:void 0,inverse:!1,by:"slide"}}),a.controller={control:void 0},i("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof a.params.controller.control||a.params.controller.control instanceof HTMLElement))return void("string"==typeof a.params.controller.control?[...document.querySelectorAll(a.params.controller.control)]:[a.params.controller.control]).forEach(e=>{a.controller.control||(a.controller.control=[]);if(e&&e.swiper)a.controller.control.push(e.swiper);else if(e){const i=a.params.eventsPrefix+"init",n=t=>{a.controller.control.push(t.detail[0]);a.update();e.removeEventListener(i,n)};e.addEventListener(i,n)}});a.controller.control=a.params.controller.control}),i("update",()=>{n()}),i("resize",()=>{n()}),i("observerUpdate",()=>{n()}),i("setTranslate",(t,e,i)=>{if(!a.controller.control||a.controller.control.destroyed)return;a.controller.setTranslate(e,i)}),i("setTransition",(t,e,i)=>{if(!a.controller.control||a.controller.control.destroyed)return;a.controller.setTransition(e,i)}),Object.assign(a.controller,{setTranslate:function(t,e){var i=a.controller.control;let n,o;var r=a.constructor;function s(t){var e,i;t.destroyed||(e=a.rtlTranslate?-a.translate:a.translate,"slide"===a.params.controller.by&&(i=t,a.controller.spline=a.params.loop?new l(a.slidesGrid,i.slidesGrid):new l(a.snapGrid,i.snapGrid),o=-a.controller.spline.interpolate(-e)),o&&"container"!==a.params.controller.by||(n=(t.maxTranslate()-t.minTranslate())/(a.maxTranslate()-a.minTranslate()),!Number.isNaN(n)&&Number.isFinite(n)||(n=1),o=(e-a.minTranslate())*n+t.minTranslate()),a.params.controller.inverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setTranslate(o,a),t.updateActiveIndex(),t.updateSlidesClasses())}if(Array.isArray(i))for(let t=0;t{t.updateAutoHeight()}),s(t.wrapperEl,()=>{if(!n)return;t.transitionEnd()})))}if(Array.isArray(n))for(o=0;o{t.setAttribute("tabIndex","0")})}function c(t){(t=L(t)).forEach(t=>{t.setAttribute("tabIndex","-1")})}function h(t,e){(t=L(t)).forEach(t=>{t.setAttribute("role",e)})}function d(t,e){(t=L(t)).forEach(t=>{t.setAttribute("aria-roledescription",e)})}function p(t,e){(t=L(t)).forEach(t=>{t.setAttribute("aria-label",e)})}function f(t){(t=L(t)).forEach(t=>{t.setAttribute("aria-disabled",!0)})}function m(t){(t=L(t)).forEach(t=>{t.setAttribute("aria-disabled",!1)})}function g(t){var e,i;13!==t.keyCode&&32!==t.keyCode||(e=a.params.a11y,i=t.target,a.pagination&&a.pagination.el&&(i===a.pagination.el||a.pagination.el.contains(t.target))&&!t.target.matches(I(a.params.pagination.bulletClass)))||(a.navigation&&a.navigation.prevEl&&a.navigation.nextEl&&(t=L(a.navigation.prevEl),L(a.navigation.nextEl).includes(i)&&(a.isEnd&&!a.params.loop||a.slideNext(),a.isEnd?n(e.lastSlideMessage):n(e.nextSlideMessage)),t.includes(i))&&(a.isBeginning&&!a.params.loop||a.slidePrev(),a.isBeginning?n(e.firstSlideMessage):n(e.prevSlideMessage)),a.pagination&&i.matches(I(a.params.pagination.bulletClass))&&i.click())}function v(){return a.pagination&&a.pagination.bullets&&a.pagination.bullets.length}function y(){return v()&&a.params.pagination.clickable}const _=(t,e,i)=>{u(t);"BUTTON"!==t.tagName&&(h(t,"button"),t.addEventListener("keydown",g));p(t,i);i=t,n=e,(i=L(i)).forEach(t=>{t.setAttribute("aria-controls",n)});var n},w=t=>{r&&r!==t.target&&!r.contains(t.target)&&(o=!0);a.a11y.clicked=!0},b=()=>{o=!1;requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.destroyed||(a.a11y.clicked=!1)})})},x=t=>{s=(new Date).getTime()},T=t=>{if(a.a11y.clicked||!a.params.a11y.scrollOnFocus)return;if((new Date).getTime()-s<100)return;const e=t.target.closest(`.${a.params.slideClass}, swiper-slide`);if(!e||!a.slides.includes(e))return;r=e;var i=a.slides.indexOf(e)===a.activeIndex;var n=a.params.watchSlidesProgress&&a.visibleSlides&&a.visibleSlides.includes(e);if(i||n)return;if(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents)return;a.isHorizontal()?a.el.scrollLeft=0:a.el.scrollTop=0;requestAnimationFrame(()=>{if(o)return;a.params.loop?a.slideToLoop(parseInt(e.getAttribute("data-swiper-slide-index")),0):a.slideTo(a.slides.indexOf(e),0);o=!1})},A=()=>{const i=a.params.a11y;i.itemRoleDescriptionMessage&&d(a.slides,i.itemRoleDescriptionMessage);i.slideRole&&h(a.slides,i.slideRole);const n=a.slides.length;i.slideLabelMessage&&a.slides.forEach((t,e)=>{e=a.params.loop?parseInt(t.getAttribute("data-swiper-slide-index"),10):e;e=i.slideLabelMessage.replace(/\{\{index\}\}/,e+1).replace(/\{\{slidesLength\}\}/,n);p(t,e)})},S=()=>{const e=a.params.a11y;a.el.append(l);var t=a.el;e.containerRoleDescriptionMessage&&d(t,e.containerRoleDescriptionMessage);e.containerMessage&&p(t,e.containerMessage);e.containerRole&&h(t,e.containerRole);t=a.wrapperEl;const i=e.id||t.getAttribute("id")||"swiper-wrapper-"+(n=16,"x".repeat(n=void 0===n?16:n).replace(/x/g,()=>Math.round(16*Math.random()).toString(16)));var n=a.params.autoplay&&a.params.autoplay.enabled?"off":"polite";s=t,o=i,(s=L(s)).forEach(t=>{t.setAttribute("id",o)});var o;s=t,r=n,(s=L(s)).forEach(t=>{t.setAttribute("aria-live",r)});var r;A();var{nextEl:t,prevEl:s}=a.navigation||{};t=L(t);s=L(s);t&&t.forEach(t=>_(t,i,e.nextSlideMessage));s&&s.forEach(t=>_(t,i,e.prevSlideMessage));y()&&L(a.pagination.el).forEach(t=>{t.addEventListener("keydown",g)});t=z();t.addEventListener("visibilitychange",x);a.el.addEventListener("focus",T,!0);a.el.addEventListener("focus",T,!0);a.el.addEventListener("pointerdown",w,!0);a.el.addEventListener("pointerup",b,!0)};i("beforeInit",()=>{l=C("span",a.params.a11y.notificationClass);l.setAttribute("aria-live","assertive");l.setAttribute("aria-atomic","true")}),i("afterInit",()=>{if(!a.params.a11y.enabled)return;S()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{if(!a.params.a11y.enabled)return;A()}),i("fromEdge toEdge afterInit lock unlock",()=>{if(!a.params.a11y.enabled)return;a.params.loop||a.params.rewind||!a.navigation||({nextEl:t,prevEl:e}=a.navigation,e&&(a.isBeginning?(f(e),c):(m(e),u))(e),t&&(a.isEnd?(f(t),c):(m(t),u))(t));var t,e}),i("paginationUpdate",()=>{if(!a.params.a11y.enabled)return;!function(){const e=a.params.a11y;v()&&a.pagination.bullets.forEach(t=>{a.params.pagination.clickable&&(u(t),a.params.pagination.renderBullet||(h(t,"button"),p(t,e.paginationBulletMessage.replace(/\{\{index\}\}/,P(t)+1))));t.matches(I(a.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}()}),i("destroy",()=>{if(!a.params.a11y.enabled)return;!function(){l&&l.remove();var{nextEl:t,prevEl:e}=a.navigation||{},t=L(t),e=L(e);t&&t.forEach(t=>t.removeEventListener("keydown",g)),e&&e.forEach(t=>t.removeEventListener("keydown",g)),y()&&L(a.pagination.el).forEach(t=>{t.removeEventListener("keydown",g)}),z().removeEventListener("visibilitychange",x),a.el&&"string"!=typeof a.el&&(a.el.removeEventListener("focus",T,!0),a.el.removeEventListener("pointerdown",w,!0),a.el.removeEventListener("pointerup",b,!0))}()})},function(t){let{swiper:r,extendParams:e,on:i,emit:s,params:n}=t;r.autoplay={running:!1,paused:!1,timeLeft:0},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,u=n&&n.autoplay?n.autoplay.delay:3e3,c=n&&n.autoplay?n.autoplay.delay:3e3,h,d=(new Date).getTime(),o,p,f,m,g,v,y;function _(t){!r||r.destroyed||!r.wrapperEl||t.target!==r.wrapperEl||(r.wrapperEl.removeEventListener("transitionend",_),y)||t.detail&&t.detail.bySwiperTouchMove||E()}const w=()=>{if(r.destroyed||!r.autoplay.running)return;r.autoplay.paused?o=!0:o&&(c=h,o=!1);var t=r.autoplay.paused?h:d+c-(new Date).getTime();r.autoplay.timeLeft=t;s("autoplayTimeLeft",t,t/u);l=requestAnimationFrame(()=>{w()})},b=()=>{let t;t=r.virtual&&r.params.virtual.enabled?r.slides.find(t=>t.classList.contains("swiper-slide-active")):r.slides[r.activeIndex];if(!t)return;var e=parseInt(t.getAttribute("data-swiper-autoplay"),10);return e},x=t=>{if(r.destroyed||!r.autoplay.running)return;cancelAnimationFrame(l);w();let e=void 0===t?r.params.autoplay.delay:t;u=r.params.autoplay.delay;c=r.params.autoplay.delay;var i=b();!Number.isNaN(i)&&0{if(!r||r.destroyed)return;r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(n,!0,!0),s("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,n,!0,!0),s("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(n,!0,!0),s("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,n,!0,!0),s("autoplay"));r.params.cssMode&&(d=(new Date).getTime(),requestAnimationFrame(()=>{x()}))};0{o()},e)):requestAnimationFrame(()=>{o()});return e},T=()=>{d=(new Date).getTime();r.autoplay.running=!0;x();s("autoplayStart")},A=()=>{r.autoplay.running=!1;clearTimeout(a);cancelAnimationFrame(l);s("autoplayStop")},S=(t,e)=>{if(r.destroyed||!r.autoplay.running)return;clearTimeout(a);t||(v=!0);t=()=>{s("autoplayPause");r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",_):E()};r.autoplay.paused=!0;if(e)return g&&(h=r.params.autoplay.delay),g=!1,void t();e=h||r.params.autoplay.delay;h=e-((new Date).getTime()-d);if(r.isEnd&&h<0&&!r.params.loop)return;h<0&&(h=0);t()},E=()=>{if(r.isEnd&&h<0&&!r.params.loop||r.destroyed||!r.autoplay.running)return;d=(new Date).getTime();v?(v=!1,x(h)):x();r.autoplay.paused=!1;s("autoplayResume")},M=()=>{if(r.destroyed||!r.autoplay.running)return;var t=z();"hidden"===t.visibilityState&&(v=!0,S(!0));"visible"===t.visibilityState&&E()},C=t=>{if("mouse"!==t.pointerType)return;v=!0;y=!0;if(r.animating||r.autoplay.paused)return;S(!0)},P=t=>{if("mouse"!==t.pointerType)return;y=!1;r.autoplay.paused&&E()};i("init",()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",C),r.el.addEventListener("pointerleave",P)),z().addEventListener("visibilitychange",M),T())}),i("destroy",()=>{r.el&&"string"!=typeof r.el&&(r.el.removeEventListener("pointerenter",C),r.el.removeEventListener("pointerleave",P));t=z(),t.removeEventListener("visibilitychange",M);var t;r.autoplay.running&&A()}),i("_freeModeStaticRelease",()=>{(f||v)&&E()}),i("_freeModeNoMomentumRelease",()=>{r.params.autoplay.disableOnInteraction?A():S(!0,!0)}),i("beforeTransitionStart",(t,e,i)=>{if(r.destroyed||!r.autoplay.running)return;i||!r.params.autoplay.disableOnInteraction?S(!0,!0):A()}),i("sliderFirstMove",()=>{if(r.destroyed||!r.autoplay.running)return;if(r.params.autoplay.disableOnInteraction)return void A();p=!0;f=!1;v=!1;m=setTimeout(()=>{v=!0;f=!0;S(!0)},200)}),i("touchEnd",()=>{if(r.destroyed||!r.autoplay.running||!p)return;clearTimeout(m);clearTimeout(a);if(r.params.autoplay.disableOnInteraction)return f=!1,void(p=!1);f&&r.params.cssMode&&E();f=!1;p=!1}),i("slideChange",()=>{if(r.destroyed||!r.autoplay.running)return;g=!0}),Object.assign(r.autoplay,{start:T,stop:A,pause:S,resume:E})},function(t){let{swiper:c,extendParams:e,on:i}=t,n=(e({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}}),!1),o=!1;function r(){var e=c.thumbs.swiper;if(e&&!e.destroyed){var i=e.clickedIndex,t=e.clickedSlide;if(!(t&&t.classList.contains(c.params.thumbs.slideThumbActiveClass)||null==i)){let t;t=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,c.params.loop?c.slideToLoop(t):c.slideTo(t)}}}function s(){var t=c.params["thumbs"];if(n)return!1;n=!0;var e=c.constructor;if(t.swiper instanceof e){if(t.swiper.destroyed)return n=!1;c.thumbs.swiper=t.swiper,Object.assign(c.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(c.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),c.thumbs.swiper.update()}else l(t.swiper)&&(t=Object.assign({},t.swiper),Object.assign(t,{watchSlidesProgress:!0,slideToClickedSlide:!1}),c.thumbs.swiper=new e(t),o=!0);return c.thumbs.swiper.el.classList.add(c.params.thumbs.thumbsContainerClass),c.thumbs.swiper.on("tap",r),!0}function a(i){var n=c.thumbs.swiper;if(n&&!n.destroyed){var o="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let e=1;const u=c.params.thumbs.slideThumbActiveClass;if(1t.classList.remove(u)),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let t=0;t{t.classList.add(u)});else for(let t=0;tt.getAttribute("data-swiper-slide-index")===""+c.realIndex),t=n.slides.indexOf(a),c.activeIndex>c.previousIndex?"next":"prev"):(t=c.realIndex)>c.previousIndex?"next":"prev",s&&(t+="next"===e?r:-1*r),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(t)<0&&(n.params.centeredSlides?t=t>l?t-Math.floor(o/2)+1:t+Math.floor(o/2)-1:t>l&&n.params.slidesPerGroup,n.slideTo(t,i?0:void 0))}}}c.thumbs={swiper:null},i("beforeInit",()=>{const o=c.params["thumbs"];if(!o||!o.swiper)return;if("string"==typeof o.swiper||o.swiper instanceof HTMLElement){const t=z(),e=()=>{const e="string"==typeof o.swiper?t.querySelector(o.swiper):o.swiper;if(e&&e.swiper)o.swiper=e.swiper,s(),a(!0);else if(e){const i=c.params.eventsPrefix+"init",n=t=>{o.swiper=t.detail[0];e.removeEventListener(i,n);s();a(!0);o.swiper.update();c.update()};e.addEventListener(i,n)}return e},i=()=>{if(c.destroyed)return;var t=e();t||requestAnimationFrame(i)};requestAnimationFrame(i)}else s(),a(!0)}),i("slideChange update resize observerUpdate",()=>{a()}),i("setTransition",(t,e)=>{var i=c.thumbs.swiper;if(!i||i.destroyed)return;i.setTransition(e)}),i("beforeDestroy",()=>{var t=c.thumbs.swiper;if(!t||t.destroyed)return;o&&t.destroy()}),Object.assign(c.thumbs,{init:s,update:a})},function(e){let{swiper:s,extendParams:t,on:i}=e;t({fadeEffect:{crossFade:!1}});{const{effect:n,swiper:o,on:r,setTranslate:a,setTransition:l,overwriteParams:u,perspective:c,recreateShadows:h,getEffectParams:d}=e={effect:"fade",swiper:s,on:i,setTranslate:()=>{var t=s["slides"];s.params.fadeEffect;for(let i=0;i{var t=s.slides.map(t=>f(t));t.forEach(t=>{t.style.transitionDuration=e+"ms"});U({swiper:s,duration:e,transformElements:t,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!s.params.cssMode})};r("beforeInit",()=>{if(o.params.effect!==n)return;o.classNames.push(""+o.params.containerModifierClass+n);c&&c()&&o.classNames.push(o.params.containerModifierClass+"3d");var t=u?u():{};Object.assign(o.params,t);Object.assign(o.originalParams,t)}),r("setTranslate",()=>{if(o.params.effect!==n)return;a()}),r("setTransition",(t,e)=>{if(o.params.effect!==n)return;l(e)}),r("transitionEnd",()=>{if(o.params.effect!==n)return;h&&d&&d().slideShadows&&(o.slides.forEach(t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>t.remove())}),h())});let t;r("virtualUpdate",()=>{if(o.params.effect!==n)return;o.slides.length||(t=!0);requestAnimationFrame(()=>{t&&o.slides&&o.slides.length&&(a(),t=!1)})})}}]),w}();if(!function(s){"use strict";s.ThreeSixty=function(t,e){var o,r=this,i=[];r.$el=s(t),r.el=t,r.$el.data("ThreeSixty",r),r.init=function(){(o=s.extend({},s.ThreeSixty.defaultOptions,e)).disableSpin&&(o.currentFrame=1,o.endFrame=1),r.initProgress(),r.loadImages()},r.resize=function(){},r.initProgress=function(){r.$el.css({width:o.width+"px",height:o.height+"px","background-image":"none !important"}),o.styles&&r.$el.css(o.styles),r.responsive(),r.$el.find(o.progress).css({marginTop:o.height/2-15+"px"}),r.$el.find(o.progress).fadeIn("slow"),r.$el.find(o.imgList).hide()},r.loadImages=function(){var t=document.createElement("li"),e=o.zeroBased?0:1,e=o.imgArray?o.imgArray[o.loadedImages]:o.domain+o.imagePath+o.filePrefix+r.zeroPad(o.loadedImages+e)+o.ext+(r.browser.isIE()?"?"+(new Date).getTime():""),e=s(" ").attr("src",e).addClass("previous-image").appendTo(t);i.push(e),r.$el.find(o.imgList).append(t),s(e).on("load",function(){r.imageLoaded()})},r.imageLoaded=function(){o.loadedImages+=1,s(o.progress+" span").text(Math.floor(o.loadedImages/o.totalFrames*100)+"%"),o.loadedImages>=o.totalFrames?(o.disableSpin&&i[0].removeClass("previous-image").addClass("current-image"),s(o.progress).fadeOut("slow",function(){s(this).hide(),r.showImages(),r.showNavigation()})):r.loadImages()},r.showImages=function(){r.$el.find(".txtC").fadeIn(),r.$el.find(o.imgList).fadeIn(),r.ready=!0,o.ready=!0,o.drag&&r.initEvents(),r.refresh(),r.initPlugins(),o.onReady(),setTimeout(function(){r.responsive()},50)},r.initPlugins=function(){s.each(o.plugins,function(t,e){if("function"!=typeof s[e])throw new Error(e+" not available.");s[e].call(r,r.$el,o)})},r.showNavigation=function(){var t,e,i,n;o.navigation&&!o.navigation_init&&(t=s("
").attr("class","nav_bar"),e=s(" ").attr({href:"#",class:"nav_bar_next"}).html("next"),i=s(" ").attr({href:"#",class:"nav_bar_previous"}).html("previous"),n=s(" ").attr({href:"#",class:"nav_bar_play"}).html("play"),t.append(i),t.append(n),t.append(e),r.$el.prepend(t),e.bind("click touchstart",r.next),i.bind("click touchstart",r.previous),n.bind("click touchstart",r.play_stop),o.navigation_init=!0)},r.play_stop=function(t){t.preventDefault(),o.autoplay?(o.autoplay=!1,s(t.currentTarget).removeClass("nav_bar_stop").addClass("nav_bar_play"),clearInterval(o.play),o.play=null):(o.autoplay=!0,o.play=setInterval(r.moveToNextFrame,o.playSpeed),s(t.currentTarget).removeClass("nav_bar_play").addClass("nav_bar_stop"))},r.next=function(t){t&&t.preventDefault(),o.endFrame-=parseInt(o.prevNextFrames),r.refresh()},r.previous=function(t){t&&t.preventDefault(),o.endFrame+=parseInt(o.prevNextFrames),r.refresh()},r.play=function(t,e){t=t||o.playSpeed,e=e||o.autoplayDirection;o.autoplayDirection=e,o.autoplay||(o.autoplay=!0,o.play=setInterval(r.moveToNextFrame,t))},r.stop=function(){o.autoplay&&(o.autoplay=!1,clearInterval(o.play),o.play=null)},r.moveToNextFrame=function(){1===o.autoplayDirection?--o.endFrame:o.endFrame+=1,r.refresh()},r.gotoAndPlay=function(t){var e,i,n;o.disableWrap?(o.endFrame=t,r.refresh()):(e=1<(e=0===(e=Math.ceil(o.endFrame/o.totalFrames))?1:e)?o.endFrame-(e-1)*o.totalFrames:o.endFrame,i=o.totalFrames-e,n=(n=0)
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},l.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=p(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&p(document).find(p.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),o=n.length;o--;){var r,s=n[o];"click"==s?this.$element.on("click."+this.type,this.options.selector,p.proxy(this.toggle,this)):"manual"!=s&&(r="hover"==s?"mouseleave":"focusout",this.$element.on(("hover"==s?"mouseenter":"focusin")+"."+this.type,this.options.selector,p.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,p.proxy(this.leave,this)))}this.options.selector?this._options=p.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(t){var e,i=this.$element.data();for(e in i)i.hasOwnProperty(e)&&-1!==p.inArray(e,n)&&delete i[e];return(t=p.extend({},this.getDefaults(),i,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=o(t.template,t.whiteList,t.sanitizeFn)),t},l.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&p.each(this._options,function(t,e){n[t]!=e&&(i[t]=e)}),i},l.prototype.enter=function(t){var e=t instanceof this.constructor?t:p(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),p(t.currentTarget).data("bs."+this.type,e)),t instanceof p.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(t){var e=t instanceof this.constructor?t:p(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),p(t.currentTarget).data("bs."+this.type,e)),t instanceof p.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},l.prototype.show=function(){var e,t,i,n,o,r,s,a=p.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(a),o=p.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!a.isDefaultPrevented())&&o&&(a=(e=this).tip(),o=this.getUID(this.type),this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade"),o="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,(s=(t=/\s?auto?\s?/i).test(o))&&(o=o.replace(t,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?a.appendTo(p(document).find(this.options.container)):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),i=a[0].offsetWidth,n=a[0].offsetHeight,s&&(s=o,r=this.getPosition(this.$viewport),o="bottom"==o&&t.bottom+n>r.bottom?"top":"top"==o&&t.top-nr.width?"left":"left"==o&&t.left-ir.top+r.height&&(s.top=r.top+r.height-n)):(t=e.left-o,n=e.left+o+i,tr.right&&(s.left=r.left+r.width-n))),s},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},l.prototype.tip=function(){if(this.$tip||(this.$tip=p(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var e=this;t&&!(e=p(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),p(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},l.prototype.sanitizeHtml=function(t){return o(t,this.options.whiteList,this.options.sanitizeFn)};var e=p.fn.tooltip;p.fn.tooltip=function(n){return this.each(function(){var t=p(this),e=t.data("bs.tooltip"),i="object"==typeof n&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.tooltip",e=new l(this,i)),"string"==typeof n&&e[n]())})},p.fn.tooltip.Constructor=l,p.fn.tooltip.noConflict=function(){return p.fn.tooltip=e,this}}(jQuery),function(o){"use strict";function r(t,e){this.init("popover",t,e)}if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.4.1",r.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((r.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t,e=this.tip(),i=this.getTitle(),n=this.getContent();this.options.html?(t=typeof n,this.options.sanitize&&(i=this.sanitizeHtml(i),"string"==t)&&(n=this.sanitizeHtml(n)),e.find(".popover-title").html(i),e.find(".popover-content").children().detach().end()["string"==t?"html":"append"](n)):(e.find(".popover-title").text(i),e.find(".popover-content").children().detach().end().text(n)),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=o.fn.popover;o.fn.popover=function(n){return this.each(function(){var t=o(this),e=t.data("bs.popover"),i="object"==typeof n&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.popover",e=new r(this,i)),"string"==typeof n&&e[n]())})},o.fn.popover.Constructor=r,o.fn.popover.noConflict=function(){return o.fn.popover=t,this}}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):((t="undefined"!=typeof globalThis?globalThis:t||self).Vimeo=t.Vimeo||{},t.Vimeo.Player=e())}(this,function(){"use strict";function n(t,e){for(var i=0;i=this.duration)throw new Error("Vivus [constructor]: delay must be shorter than duration")},n.prototype.setCallback=function(t){if(t&&t.constructor!==Function)throw new Error('Vivus [constructor]: "callback" parameter must be a function');this.callback=t||function(){}},n.prototype.mapping=function(){for(var t,e,i,n,o,r=n=o=0,s=this.el.querySelectorAll("path"),a=0;a=this.frameLength))return this.trace(),void(this.handle=i(function(){t.drawer()}));this.stop(),this.currentFrame=this.frameLength,this.trace(),this.selfDestroy&&this.destroy()}this.callback(this),this.instanceCallback&&(this.instanceCallback(this),this.instanceCallback=null)},n.prototype.trace=function(){for(var t,e,i=this.animTimingFunction(this.currentFrame/this.frameLength)*this.frameLength,n=0;nr.oldScroll?r.forward:r.backward;for(o in this.waypoints[t]){var a,l,u=this.waypoints[t][o];null!==u.triggerPoint&&(a=r.oldScroll=u.triggerPoint,a&&l||!a&&!l)&&(u.queueTrigger(s),i[u.group.id]=u.group)}}for(e in i)i[e].flushTriggers();this.oldScroll={x:n.horizontal.newScroll,y:n.vertical.newScroll}},o.prototype.innerHeight=function(){return this.element==this.element.window?p.viewportHeight():this.adapter.innerHeight()},o.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},o.prototype.innerWidth=function(){return this.element==this.element.window?p.viewportWidth():this.adapter.innerWidth()},o.prototype.destroy=function(){var t,e=[];for(t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var n=0,o=e.length;n=s.oldScroll,u=!h&&!a,!d&&(h&&a)?(l.queueTrigger(s.backward),o[l.group.id]=l.group):(!d&&u||d&&s.oldScroll>=l.triggerPoint)&&(l.queueTrigger(s.forward),o[l.group.id]=l.group)}}return p.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},o.findOrCreateByElement=function(t){return o.findByElement(t)||new o(t)},o.refreshAll=function(){for(var t in n)n[t].refresh()},o.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){t&&t(),o.refreshAll()},p.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},p.Context=o}(),function(){"use strict";function r(t,e){return t.triggerPoint-e.triggerPoint}function s(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.Waypoint;function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t];e.sort("up"===t||"left"===t?s:r);for(var i=0,n=e.length;i