1function navigationSublevelWrap(t,e){t.each(function(){var t=$(this),n=t.parents("ul").length;n>0&&t.wrap(function(){return'<div class="'+e+n+'"></div>'})})}function menuPrepare(){origMenuContent.length||(origMenuContent=menu.html()),menuHolder.css("width",menuHolderMaxWidth),allMenus.push([currentMenu.html(),Math.round(calcTotalMenuItemsWidth())]);for(var t=0;t<=menuChildrenCount;t++){moreButton.length&&moreButton.remove();var e=currentMenu.children("li:last").remove();currentMenu.append(moreButton);var n=calcTotalMenuItemsWidth();moreButton.children("ul").prepend($(e)),allMenus.push([currentMenu.html(),Math.round(n)])}menuHolder.css("width","")}function calcTotalMenuItemsWidth(){var t=0;return currentMenu.children().each(function(){t+=$(this)[0].getBoundingClientRect().width}),t}function addMoreButton(){for(var t=0;t<=menuChildrenCount;t++){if(currentMenuWidth<=allMenus[0][1]&¤tMenuWidth>=allMenus[t][1]){currentMenu.empty(),currentMenu.append(allMenus[t][0]);return}if(currentMenuWidth>allMenus[0][1]){currentMenu.empty(),currentMenu.append(origMenuContent);return}}}function disableLinks(t){$(t).each(function(){("#"===$(this).attr("href")||"javascript.void(0)"===$(this).attr("href"))&&$(this).click(function(t){t.preventDefault()})})}jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,n,o,r){return jQuery.easing[jQuery.easing.def](t,e,n,o,r)},easeInQuad:function(t,e,n,o,r){return o*(e/=r)*e+n},easeOutQuad:function(t,e,n,o,r){return-o*(e/=r)*(e-2)+n},easeInOutQuad:function(t,e,n,o,r){return(e/=r/2)<1?o/2*e*e+n:-o/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,o,r){return o*(e/=r)*e*e+n},easeOutCubic:function(t,e,n,o,r){return o*((e=e/r-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,o,r){return(e/=r/2)<1?o/2*e*e*e+n:o/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,o,r){return o*(e/=r)*e*e*e+n},easeOutQuart:function(t,e,n,o,r){return-o*((e=e/r-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,o,r){return(e/=r/2)<1?o/2*e*e*e*e+n:-o/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,o,r){return o*(e/=r)*e*e*e*e+n},easeOutQuint:function(t,e,n,o,r){return o*((e=e/r-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,o,r){return(e/=r/2)<1?o/2*e*e*e*e*e+n:o/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,o,r){return-o*Math.cos(e/r*(Math.PI/2))+o+n},easeOutSine:function(t,e,n,o,r){return o*Math.sin(e/r*(Math.PI/2))+n},easeInOutSine:function(t,e,n,o,r){return-o/2*(Math.cos(Math.PI*e/r)-1)+n},easeInExpo:function(t,e,n,o,r){return 0==e?n:o*Math.pow(2,10*(e/r-1))+n},easeOutExpo:function(t,e,n,o,r){return e==r?n+o:o*(-Math.pow(2,-10*e/r)+1)+n},easeInOutExpo:function(t,e,n,o,r){return 0==e?n:e==r?n+o:(e/=r/2)<1?o/2*Math.pow(2,10*(e-1))+n:o/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(t,e,n,o,r){return-o*(Math.sqrt(1-(e/=r)*e)-1)+n},easeOutCirc:function(t,e,n,o,r){return o*Math.sqrt(1-(e=e/r-1)*e)+n},easeInOutCirc:function(t,e,n,o,r){return(e/=r/2)<1?-o/2*(Math.sqrt(1-e*e)-1)+n:o/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,o,r){var s=1.70158,a=0,l=o;if(0==e)return n;if(1==(e/=r))return n+o;if(a||(a=.3*r),l<Math.abs(o)){l=o;var s=a/4}else var s=a/(2*Math.PI)*Math.asin(o/l);return-(l*Math.pow(2,10*(e-=1))*Math.sin((e*r-s)*(2*Math.PI)/a))+n},easeOutElastic:function(t,e,n,o,r){var s=1.70158,a=0,l=o;if(0==e)return n;if(1==(e/=r))return n+o;if(a||(a=.3*r),l<Math.abs(o)){l=o;var s=a/4}else var s=a/(2*Math.PI)*Math.asin(o/l);return l*Math.pow(2,-10*e)*Math.sin((e*r-s)*(2*Math.PI)/a)+o+n},easeInOutElastic:function(t,e,n,o,r){var s=1.70158,a=0,l=o;if(0==e)return n;if(2==(e/=r/2))return n+o;if(a||(a=r*(.3*1.5)),l<Math.abs(o)){l=o;var s=a/4}else var s=a/(2*Math.PI)*Math.asin(o/l);return e<1?-.5*(l*Math.pow(2,10*(e-=1))*Math.sin((e*r-s)*(2*Math.PI)/a))+n:l*Math.pow(2,-10*(e-=1))*Math.sin((e*r-s)*(2*Math.PI)/a)*.5+o+n},easeInBack:function(t,e,n,o,r,s){return void 0==s&&(s=1.70158),o*(e/=r)*e*((s+1)*e-s)+n},easeOutBack:function(t,e,n,o,r,s){return void 0==s&&(s=1.70158),o*((e=e/r-1)*e*((s+1)*e+s)+1)+n},easeInOutBack:function(t,e,n,o,r,s){return(void 0==s&&(s=1.70158),(e/=r/2)<1)?o/2*(e*e*(((s*=1.525)+1)*e-s))+n:o/2*((e-=2)*e*(((s*=1.525)+1)*e+s)+2)+n},easeInBounce:function(t,e,n,o,r){return o-jQuery.easing.easeOutBounce(t,r-e,0,o,r)+n},easeOutBounce:function(t,e,n,o,r){return(e/=r)<1/2.75?o*(7.5625*e*e)+n:e<2/2.75?o*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?o*(7.5625*(e-=2.25/2.75)*e+.9375)+n:o*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,o,r){return e<r/2?.5*jQuery.easing.easeInBounce(t,2*e,0,o,r)+n:.5*jQuery.easing.easeOutBounce(t,2*e-r,0,o,r)+.5*o+n}}),function(t){var e={},n={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSli
1des:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(o){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(o)}),this;var r={},s=this;e.el=this;var a=t(window).width(),l=t(window).height(),c=function(){r.settings=t.extend({},n,o),r.settings.slideWidth=parseInt(r.settings.slideWidth),r.children=s.children(r.settings.slideSelector),r.children.length<r.settings.minSlides&&(r.settings.minSlides=r.children.length),r.children.length<r.settings.maxSlides&&(r.settings.maxSlides=r.children.length),r.settings.randomStart&&(r.settings.startSlide=Math.floor(Math.random()*r.children.length)),r.active={index:r.settings.startSlide},r.carousel=r.settings.minSlides>1||r.settings.maxSlides>1,r.carousel&&(r.settings.preloadImages="all"),r.minThreshold=r.settings.minSlides*r.settings.slideWidth+(r.settings.minSlides-1)*r.settings.slideMargin,r.maxThreshold=r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin,r.working=!1,r.controls={},r.interval=null,r.animProp="vertical"==r.settings.mode?"top":"left",r.usingCSS=r.settings.useCSS&&"fade"!=r.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in e)if(void 0!==t.style[e[n]])return r.cssPrefix=e[n].replace("Perspective","").toLowerCase(),r.animProp="-"+r.cssPrefix+"-transform",!0;return!1}(),"vertical"==r.settings.mode&&(r.settings.maxSlides=r.settings.minSlides),s.data("origStyle",s.attr("style")),s.children(r.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),u()},u=function(){s.wrap('<div class="'+r.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),r.viewport=s.parent(),r.loader=t('<div class="bx-loading" />'),r.viewport.prepend(r.loader),s.css({width:"horizontal"==r.settings.mode?100*r.children.length+215+"%":"auto",position:"relative"}),r.usingCSS&&r.settings.easing?s.css("-"+r.cssPrefix+"-transition-timing-function",r.settings.easing):r.settings.easing||(r.settings.easing="swing"),g(),r.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),r.viewport.parent().css({maxWidth:f()}),r.settings.pager||r.viewport.parent().css({margin:"0 auto 0px"}),r.children.css({float:"horizontal"==r.settings.mode?"left":"none",listStyle:"none",position:"relative"}),r.children.css("width",m()),"horizontal"==r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginRight",r.settings.slideMargin),"vertical"==r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginBottom",r.settings.slideMargin),"fade"==r.settings.mode&&(r.children.css({position:"absolute",zIndex:0,display:"none"}),r.children.eq(r.settings.startSlide).css({zIndex:r.settings.slideZIndex,display:"block"})),r.controls.el=t('<div class="bx-controls" />'),r.settings.captions&&j(),r.active.last=r.settings.startSlide==v()-1,r.settings.video&&s.fitVids();var e=r.children.eq(r.settings.startSlide);"all"==r.settings.preloadImages&&(e=r.children),r.settings.ticker?r.settings.pager=!1:(r.settings.pager&&x(),r.settings.controls&&T(),r.settings.auto&&r.settings.autoControls&&k(),(r.settings.controls||r.settings.autoControls||r.settings.pager)&&r.viewport.after(r.controls.el)),h(e,d)},h=function(e,n){var o=e.find("img, iframe").length;if(0==o){n();return}var r=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++r==o&&n()}).each(function(){this.complete&&t(this).load()})})},d=function(){if(r.settings.infiniteLoop&&"fade"!=r.settings.mode&&!r.settings.ticker){var e="vertical"==r.settings.mode?r.settings.minSlides:r.settings.maxSlides,n=r.children.slice(0,e).clone().addClass("bx-clone"),o=r.children.slice(-e).clone().addClass("bx-clone");s.append(n).prepend(o)}r.loader.remove(),_(),"vertical"==r.settings.mode&&(r.settings.adaptiveHeight=!0),r.viewport.height(p()),s.redrawSlider(),r.settings.onSliderLoad(r.active.index),r.initialized=!0,r.settings.responsive&&t(window).bind("resize",Z),r.settings.auto&&r.settings.autoStart&&(v()>1||r.settings.autoSlideForOnePage)&&N(),r.settings.ticker&&D(),r.settings.pager&&M(r.settings.startSlide),r.settings.controls&&z(),r.settings.touchEnabled&&!r.settings.ticker&&B()},p=function(){var e=0,n=t();if("vertical"==r.settings.mode||r.settings.adaptiveHeight){if(r.carousel){var o=1==r.settings.moveSlides?r.active.index:r.active.index*y();for(i=1,n=r.children.eq(o);i<=r.settings.maxSlides-1;i++)n=o+i>=r.children.length?n.add(r.children.eq(i-1)):n.add(r.children.eq(o+i))}else n=r.children.eq(r.active.index)}else n=r.children;return"vertical"==r.settings.mode?(n.each(function(n){e+=t(this).outerHeight()}),r.settings.slideMargin>0&&(e+=r.settings.slideMargin*(r.settings.minSlides-1))):e=Math.max.apply(Math,n.map(function(){return t(this).outerHeight(!1)}).get()),"border-box"==r.viewport.css("box-sizing")?e+=parseFloat(r.viewport.css("padding-top"))+parseFloat(r.viewport.css("padding-bottom"))+parseFloat(r.viewport.css("border-top-width"))+parseFloat(r.viewport.css("border-bottom-width")):"padding-box"==r.viewport.css("box-sizing")&&(e+=parseFloat(r.viewport.css("padding-top"))+parseFloat(r.viewport.css("padding-bottom"))),e},f=function(){var t="100%";return r.settings.slideWidth>0&&(t="horizontal"==r.settings.mode?r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin:r.settings.slideWidth),t},m=function(){var t=r.settings.slideWidth,e=r.viewport.width();return 0==r.settings.slideWidth||r.settings.slideWidth>e&&!r.carousel||"vertical"==r.settings.mode?t=e:r.settings.maxSlides>1&&"horizontal"==r.settings.mode&&(e>r.maxThreshold||e<r.minThreshold&&(t=(e-r.settings.slideMargin*(r.settings.minSlides-1))/r.settings.minSlides)),t},g=function(){var t=1;if("horizontal"==r.settings.mode&&r.settings.slideWidth>0){if(r.viewport.width()<r.minThreshold)t=r.settings.minSlides;else if(r.viewport.width()>r.maxThreshold)t=r.settings.maxSlides;else{var e=r.children.first().width()+r.settings.slideMargin;t=Math.floor((r.viewport.width()+r.settings.slideMargin)/e)}}else"vertical"==r.settings.mode&&(t=r.settings.minSlides);return t},v=function(){var t=0;if(r.settings.moveSlides>0){if(r.settings.infiniteLoop)t=Math.ceil(r.children.length/y());else for(var e=0,n=0;e<r.children.length;)++t,e=n+g(),n+=r.settings.moveSlides<=g()?r.settings.moveSlides:g()}else t=Math.ceil(r.children.length/g());return t},y=function(){return r.settings.moveSlides>0&&r.settings.moveSlides<=g()?r.settings.moveSlides:g()},_=function(){if(r.children.length>r.settings.maxSlides&&r.active.last&&!r.settings.infiniteLoop){if("horizontal"==r.settings.mode){var t=r.children.last(
1),e=t.position();b(-(e.left-(r.viewport.width()-t.outerWidth())),"reset",0)}else if("vertical"==r.settings.mode){var n=r.children.length-r.settings.minSlides,e=r.children.eq(n).position();b(-e.top,"reset",0)}}else{var e=r.children.eq(r.active.index*y()).position();r.active.index==v()-1&&(r.active.last=!0),void 0!=e&&("horizontal"==r.settings.mode?b(-e.left,"reset",0):"vertical"==r.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,n,o){if(r.usingCSS){var a="vertical"==r.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";s.css("-"+r.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"==e?(s.css(r.animProp,a),s.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){s.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),I()})):"reset"==e?s.css(r.animProp,a):"ticker"==e&&(s.css("-"+r.cssPrefix+"-transition-timing-function","linear"),s.css(r.animProp,a),s.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){s.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(o.resetValue,"reset",0),R()}))}else{var l={};l[r.animProp]=t,"slide"==e?s.animate(l,n,r.settings.easing,function(){I()}):"reset"==e?s.css(r.animProp,t):"ticker"==e&&s.animate(l,speed,"linear",function(){b(o.resetValue,"reset",0),R()})}},w=function(){for(var e="",n=v(),o=0;o<n;o++){var s="";r.settings.buildPager&&t.isFunction(r.settings.buildPager)?(s=r.settings.buildPager(o),r.pagerEl.addClass("bx-custom-pager")):(s=o+1,r.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+o+'" class="bx-pager-link">'+s+"</a></div>"}r.pagerEl.html(e)},x=function(){r.settings.pagerCustom?r.pagerEl=t(r.settings.pagerCustom):(r.pagerEl=t('<div class="bx-pager" />'),r.settings.pagerSelector?t(r.settings.pagerSelector).html(r.pagerEl):r.controls.el.addClass("bx-has-pager").append(r.pagerEl),w()),r.pagerEl.on("click","a",O)},T=function(){r.controls.next=t('<a class="bx-next" href="">'+r.settings.nextText+"</a>"),r.controls.prev=t('<a class="bx-prev" href="">'+r.settings.prevText+"</a>"),r.controls.next.bind("click",C),r.controls.prev.bind("click",S),r.settings.nextSelector&&t(r.settings.nextSelector).append(r.controls.next),r.settings.prevSelector&&t(r.settings.prevSelector).append(r.controls.prev),r.settings.nextSelector||r.settings.prevSelector||(r.controls.directionEl=t('<div class="bx-controls-direction" />'),r.controls.directionEl.append(r.controls.prev).append(r.controls.next),r.controls.el.addClass("bx-has-controls-direction").append(r.controls.directionEl))},k=function(){r.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+r.settings.startText+"</a></div>"),r.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+r.settings.stopText+"</a></div>"),r.controls.autoEl=t('<div class="bx-controls-auto" />'),r.controls.autoEl.on("click",".bx-start",E),r.controls.autoEl.on("click",".bx-stop",P),r.settings.autoControlsCombine?r.controls.autoEl.append(r.controls.start):r.controls.autoEl.append(r.controls.start).append(r.controls.stop),r.settings.autoControlsSelector?t(r.settings.autoControlsSelector).html(r.controls.autoEl):r.controls.el.addClass("bx-has-controls-auto").append(r.controls.autoEl),A(r.settings.autoStart?"stop":"start")},j=function(){r.children.each(function(e){var n=t(this).find("img:first").attr("title");void 0!=n&&(""+n).length&&t(this).append('<div class="bx-caption"><span>'+n+"</span></div>")})},C=function(t){r.settings.auto&&s.stopAuto(),s.goToNextSlide(),t.preventDefault()},S=function(t){r.settings.auto&&s.stopAuto(),s.goToPrevSlide(),t.preventDefault()},E=function(t){s.startAuto(),t.preventDefault()},P=function(t){s.stopAuto(),t.preventDefault()},O=function(e){r.settings.auto&&s.stopAuto();var n=t(e.currentTarget);if(void 0!==n.attr("data-slide-index")){var o=parseInt(n.attr("data-slide-index"));o!=r.active.index&&s.goToSlide(o),e.preventDefault()}},M=function(e){var n=r.children.length;if("short"==r.settings.pagerType){r.settings.maxSlides>1&&(n=Math.ceil(r.children.length/r.settings.maxSlides)),r.pagerEl.html(e+1+r.settings.pagerShortSeparator+n);return}r.pagerEl.find("a").removeClass("active"),r.pagerEl.each(function(n,o){t(o).find("a").eq(e).addClass("active")})},I=function(){if(r.settings.infiniteLoop){var t="";0==r.active.index?t=r.children.eq(0).position():r.active.index==v()-1&&r.carousel?t=r.children.eq((v()-1)*y()).position():r.active.index==r.children.length-1&&(t=r.children.eq(r.children.length-1).position()),t&&("horizontal"==r.settings.mode?b(-t.left,"reset",0):"vertical"==r.settings.mode&&b(-t.top,"reset",0))}r.working=!1,r.settings.onSlideAfter(r.children.eq(r.active.index),r.oldIndex,r.active.index)},A=function(t){r.settings.autoControlsCombine?r.controls.autoEl.html(r.controls[t]):(r.controls.autoEl.find("a").removeClass("active"),r.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},z=function(){1==v()?(r.controls.prev.addClass("disabled"),r.controls.next.addClass("disabled")):!r.settings.infiniteLoop&&r.settings.hideControlOnEnd&&(0==r.active.index?(r.controls.prev.addClass("disabled"),r.controls.next.removeClass("disabled")):r.active.index==v()-1?(r.controls.next.addClass("disabled"),r.controls.prev.removeClass("disabled")):(r.controls.prev.removeClass("disabled"),r.controls.next.removeClass("disabled")))},N=function(){r.settings.autoDelay>0?setTimeout(s.startAuto,r.settings.autoDelay):s.startAuto(),r.settings.autoHover&&s.hover(function(){r.interval&&(s.stopAuto(!0),r.autoPaused=!0)},function(){r.autoPaused&&(s.startAuto(!0),r.autoPaused=null)})},D=function(){var e=0;if("next"==r.settings.autoDirection)s.append(r.children.clone().addClass("bx-clone"));else{s.prepend(r.children.clone().addClass("bx-clone"));var n=r.children.first().position();e="horizontal"==r.settings.mode?-n.left:-n.top}b(e,"reset",0),r.settings.pager=!1,r.settings.controls=!1,r.settings.autoControls=!1,r.settings.tickerHover&&!r.usingCSS&&r.viewport.hover(function(){s.stop()},function(){var e=0;r.children.each(function(n){e+="horizontal"==r.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});
1var n=r.settings.speed/e,o="horizontal"==r.settings.mode?"left":"top",a=n*(e-Math.abs(parseInt(s.css(o))));R(a)}),R()},R=function(t){speed=t||r.settings.speed;var e={left:0,top:0},n={left:0,top:0};"next"==r.settings.autoDirection?e=s.find(".bx-clone").first().position():n=r.children.first().position();var o="horizontal"==r.settings.mode?-e.left:-e.top,a="horizontal"==r.settings.mode?-n.left:-n.top;b(o,"ticker",speed,{resetValue:a})},B=function(){r.touch={start:{x:0,y:0},end:{x:0,y:0}},r.viewport.bind("touchstart",F)},F=function(t){if(r.working)t.preventDefault();else{r.touch.originalPos=s.position();var e=t.originalEvent;r.touch.start.x=e.changedTouches[0].pageX,r.touch.start.y=e.changedTouches[0].pageY,r.viewport.bind("touchmove",H),r.viewport.bind("touchend",W)}},H=function(t){var e=t.originalEvent,n=Math.abs(e.changedTouches[0].pageX-r.touch.start.x),o=Math.abs(e.changedTouches[0].pageY-r.touch.start.y);if(3*n>o&&r.settings.preventDefaultSwipeX?t.preventDefault():3*o>n&&r.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=r.settings.mode&&r.settings.oneToOneTouch){var s=0;if("horizontal"==r.settings.mode){var a=e.changedTouches[0].pageX-r.touch.start.x;s=r.touch.originalPos.left+a}else{var a=e.changedTouches[0].pageY-r.touch.start.y;s=r.touch.originalPos.top+a}b(s,"reset",0)}},W=function(t){r.viewport.unbind("touchmove",H);var e=t.originalEvent,n=0;if(r.touch.end.x=e.changedTouches[0].pageX,r.touch.end.y=e.changedTouches[0].pageY,"fade"==r.settings.mode){var o=Math.abs(r.touch.start.x-r.touch.end.x);o>=r.settings.swipeThreshold&&(r.touch.start.x>r.touch.end.x?s.goToNextSlide():s.goToPrevSlide(),s.stopAuto())}else{var o=0;"horizontal"==r.settings.mode?(o=r.touch.end.x-r.touch.start.x,n=r.touch.originalPos.left):(o=r.touch.end.y-r.touch.start.y,n=r.touch.originalPos.top),!r.settings.infiniteLoop&&(0==r.active.index&&o>0||r.active.last&&o<0)?b(n,"reset",200):Math.abs(o)>=r.settings.swipeThreshold?(o<0?s.goToNextSlide():s.goToPrevSlide(),s.stopAuto()):b(n,"reset",200)}r.viewport.unbind("touchend",W)},Z=function(e){if(r.initialized){var n=t(window).width(),o=t(window).height();(a!=n||l!=o)&&(a=n,l=o,s.redrawSlider(),r.settings.onSliderResize.call(s,r.active.index))}};return s.goToSlide=function(e,n){if(!r.working&&r.active.index!=e){if(r.working=!0,r.oldIndex=r.active.index,e<0?r.active.index=v()-1:e>=v()?r.active.index=0:r.active.index=e,r.settings.onSlideBefore(r.children.eq(r.active.index),r.oldIndex,r.active.index),"next"==n?r.settings.onSlideNext(r.children.eq(r.active.index),r.oldIndex,r.active.index):"prev"==n&&r.settings.onSlidePrev(r.children.eq(r.active.index),r.oldIndex,r.active.index),r.active.last=r.active.index>=v()-1,r.settings.pager&&M(r.active.index),r.settings.controls&&z(),"fade"==r.settings.mode)r.settings.adaptiveHeight&&r.viewport.height()!=p()&&r.viewport.animate({height:p()},r.settings.adaptiveHeightSpeed),r.children.filter(":visible").fadeOut(r.settings.speed).css({zIndex:0}),r.children.eq(r.active.index).css("zIndex",r.settings.slideZIndex+1).fadeIn(r.settings.speed,function(){t(this).css("zIndex",r.settings.slideZIndex),I()});else{r.settings.adaptiveHeight&&r.viewport.height()!=p()&&r.viewport.animate({height:p()},r.settings.adaptiveHeightSpeed);var o=0,a={left:0,top:0};if(!r.settings.infiniteLoop&&r.carousel&&r.active.last){if("horizontal"==r.settings.mode){var l=r.children.eq(r.children.length-1);a=l.position(),o=r.viewport.width()-l.outerWidth()}else{var c=r.children.length-r.settings.minSlides;a=r.children.eq(c).position()}}else if(r.carousel&&r.active.last&&"prev"==n){var u=1==r.settings.moveSlides?r.settings.maxSlides-y():(v()-1)*y()-(r.children.length-r.settings.maxSlides),l=s.children(".bx-clone").eq(u);a=l.position()}else if("next"==n&&0==r.active.index)a=s.find("> .bx-clone").eq(r.settings.maxSlides).position(),r.active.last=!1;else if(e>=0){var h=e*y();a=r.children.eq(h).position()}void 0!==a&&b("horizontal"==r.settings.mode?-(a.left-o):-a.top,"slide",r.settings.speed)}}},s.goToNextSlide=function(){if(r.settings.infiniteLoop||!r.active.last){var t=parseInt(r.active.index)+1;s.goToSlide(t,"next")}},s.goToPrevSlide=function(){if(r.settings.infiniteLoop||0!=r.active.index){var t=parseInt(r.active.index)-1;s.goToSlide(t,"prev")}},s.startAuto=function(t){!r.interval&&(r.interval=setInterval(function(){"next"==r.settings.autoDirection?s.goToNextSlide():s.goToPrevSlide()},r.settings.pause),r.settings.autoControls&&!0!=t&&A("stop"))},s.stopAuto=function(t){r.interval&&(clearInterval(r.interval),r.interval=null,r.settings.autoControls&&!0!=t&&A("start"))},s.getCurrentSlide=function(){return r.active.index},s.getCurrentSlideElement=function(){return r.children.eq(r.active.index)},s.getSlideCount=function(){return r.children.length},s.redrawSlider=function(){r.children.add(s.find(".bx-clone")).width(m()
1),r.viewport.css("height",p()),r.settings.ticker||_(),r.active.last&&(r.active.index=v()-1),r.active.index>=v()&&(r.active.last=!0),r.settings.pager&&!r.settings.pagerCustom&&(w(),M(r.active.index))},s.destroySlider=function(){r.initialized&&(r.initialized=!1,t(".bx-clone",this).remove(),r.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),r.controls.el&&r.controls.el.remove(),r.controls.next&&r.controls.next.remove(),r.controls.prev&&r.controls.prev.remove(),r.pagerEl&&r.settings.controls&&r.pagerEl.remove(),t(".bx-caption",this).remove(),r.controls.autoEl&&r.controls.autoEl.remove(),clearInterval(r.interval),r.settings.responsive&&t(window).unbind("resize",Z))},s.reloadSlider=function(t){void 0!=t&&(o=t),s.destroySlider(),c()},c(),this}}(jQuery),/*! 2* FitVids 1.0 3* 4* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 5* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 6* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 7* 8* Date: Thu Sept 01 18:00:00 2011 -0500 9*/function(t){"use strict";t.fn.fitVids=function(e){var n={customSelector:null},o=document.createElement("div"),r=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return o.className="fit-vids-style",o.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>",r.parentNode.insertBefore(o,r),e&&t.extend(n,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];n.customSelector&&e.push(n.customSelector),t(this).find(e.join(",")).each(function(){var e=t(this);if(("embed"!==this.tagName.toLowerCase()||!e.parent("object").length)&&!e.parent(".fluid-width-video-wrapper").length){var n="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),o=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10);e.attr("id")||e.attr("id","fitvid"+Math.floor(999999*Math.random())),e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*(n/o)+"%"),e.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(t){var e,n,o,r,s="mmenu",a="5.6.4";t[s]&&t[s].version>a||(t[s]=function(t,e,n){this.$menu=t,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var o=this.$pnls.children();return this._initAddons(),this.init(o),"function"==typeof this.___debug&&this.___debug(),this},t[s].version=a,t[s].addons={},t[s].uniqueId=0,t[s].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[s].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[s].prototype={init:function(t){t=t.not("."+e.nopanel),t=this._initPanels(t),this.trigger("init",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+e.listview).children().removeClass(e.selected),t.addClass(e.selected),this.trigger("setSelected",t)},openPanel:function(n){var o=n.parent(),r=this;if(o.hasClass(e.vertical)){var a=o.parents("."+e.subopened);
9if(a.length)return void this.openPanel(a.first());o.addClass(e.opened),this.trigger("openPanel",n),this.trigger("openingPanel",n),this.trigger("openedPanel",n)}else{if(n.hasClass(e.current))return;var l=this.$pnls.children("."+e.panel),c=l.filter("."+e.current);l.removeClass(e.highest).removeClass(e.current).not(n).not(c).not("."+e.vertical).addClass(e.hidden),t[s].support.csstransitions||c.addClass(e.hidden),n.hasClass(e.opened)?n.nextAll("."+e.opened).addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(n.addClass(e.highest),c.addClass(e.subopened)),n.removeClass(e.hidden).addClass(e.current),r.trigger("openPanel",n),setTimeout(function(){n.removeClass(e.subopened).addClass(e.opened),r.trigger("openingPanel",n),r.__transitionend(n,function(){r.trigger("openedPanel",n)},r.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&(n.removeClass(e.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+e.listview).children().removeClass(e.selected).filter("."+e.vertical).removeClass(e.opened);var t=this.$pnls.children("."+e.panel).first();this.$pnls.children("."+e.panel).not(t).removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden),this.openPanel(t)},togglePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&this[n.hasClass(e.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(this.cbck[e])for(var n=0,o=this.cbck[e].length;o>n;n++)this.cbck[e][n].apply(this,t)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){t(this).attr("id",e.mm(t(this).attr("id")))})),this.$menu.contents().each(function(){3==t(this)[0].nodeType&&t(this).remove()}),this.$pnls=t('<div class="'+e.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(e.wrapper);var n=[e.menu];this.opts.slidingSubmenus||n.push(e.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&n.push(this.opts.extensions),this.$menu.addClass(n.join(" "))},_initPanels:function(o){var r=this,s=this.__findAddBack(o,"ul, ol");this.__refactorClass(s,this.conf.classNames.inset,"inset").addClass(e.nolistview+" "+e.nopanel),s.not("."+e.nolistview).addClass(e.listview);var a=this.__findAddBack(o,"."+e.listview).children();this.__refactorClass(a,this.conf.classNames.selected,"selected"),this.__refactorClass(a,this.conf.classNames.divider,"divider"),this.__refactorClass(a,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(o,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var l=t(),c=o.add(o.find("."+e.panel)).add(this.__findAddBack(o,"."+e.listview).children().children(this.conf.panelNodetype)).not("."+e.nopanel);this.__refactorClass(c,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||c.addClass(e.vertical),c.each(function(){var n=t(this),o=n;n.is("ul, ol")?(n.wrap('<div class="'+e.panel+'" />'),o=n.parent()):o.addClass(e.panel);var s=n.attr("id");n.removeAttr("id"),o.attr("id",s||r.__getUniqueId()),n.hasClass(e.vertical)&&(n.removeClass(r.conf.classNames.vertical),o.add(o.parent()).addClass(e.vertical)),l=l.add(o)});var u=t("."+e.panel,this.$menu);l.each(function(o){var s,a,l=t(this),c=l.parent(),u=c.children("a, span").first();if(c.is("."+e.panels)||(c.data(n.sub,l),l.data(n.parent,c)),c.children("."+e.next).length||c.parent().is("."+e.listview)&&(s=l.attr("id"),a=t('<a class="'+e.next+'" href="#'+s+'" data-target="#'+s+'" />').insertBefore(u),u.is("span")&&a.addClass(e.fullsubopen)),!l.children("."+e.navbar).length&&!c.hasClass(e.vertical)){c=c.parent().is("."+e.listview)?c.closest("."+e.panel):(u=c.closest("."+e.panel).find('a[href="#'+l.attr("id")+'"]').first()).closest("."+e.panel);var h=!1,d=t('<div class="'+e.navbar+'" />');if(c.length){switch(s=c.attr("id"),r.opts.navbar.titleLink){case"anchor":h=u.attr("href");break;case"panel":case"parent":h="#"+s;break;default:h=!1}d.append('<a class="'+e.btn+" "+e.prev+'" href="#'+s+'" data-target="#'+s+'" />').append(t('<a class="'+e.title+'"'+(h?' href="'+h+'"':"")+" />").text(u.text())).prependTo(l),r.opts.navbar.add&&l.addClass(e.hasnavbar)}else r.opts.navbar.title&&(d.append('<a class="'+e.title+'">'+r.opts.navbar.title+"</a>").prependTo(l),r.opts.navbar.add&&l.addClass(e.hasnavbar))}});var h=this.__findAddBack(o,"."+e.listview).children("."+e.selected).removeClass(e.selected).last(
9).addClass(e.selected);h.add(h.parentsUntil("."+e.menu,"li")).filter("."+e.vertical).addClass(e.opened).end().each(function(){t(this).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened)}),h.children("."+e.panel).not("."+e.vertical).addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened);var d=u.filter("."+e.opened);return d.length||(d=l.first()),d.addClass(e.opened).last().addClass(e.current),l.not("."+e.vertical).not(d.last()).addClass(e.hidden).end().filter(function(){return!t(this).parent().hasClass(e.panels)}).appendTo(this.$pnls),l},_initAnchors:function(){var n=this;r.$body.on(o.click+"-oncanvas","a[href]",function(o){var r=t(this),a=!1,l=n.$menu.find(r).length;for(var c in t[s].addons)if(t[s].addons[c].clickAnchor.call(n,r,l)){a=!0;break}var u=r.attr("href");if(!a&&l&&u.length>1&&"#"==u.slice(0,1))try{var h=t(u,n.$menu);h.is("."+e.panel)&&(a=!0,n[r.parent().hasClass(e.vertical)?"togglePanel":"openPanel"](h))}catch(t){}if(a&&o.preventDefault(),!a&&l&&r.is("."+e.listview+" > li > a")&&!r.is('[rel="external"]')&&!r.is('[target="_blank"]')){n.__valueOrFn(n.opts.onClick.setSelected,r)&&n.setSelected(t(o.target).parent());var d=n.__valueOrFn(n.opts.onClick.preventDefault,r,"#"==u.slice(0,1));d&&o.preventDefault(),n.__valueOrFn(n.opts.onClick.close,r,d)&&n.close()}})},_initAddons:function(){var e;for(e in t[s].addons)t[s].addons[e].add.call(this),t[s].addons[e].add=function(){};for(e in t[s].addons)t[s].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=e.umm(t)),t},__api:function(){var e=this,n={};return t.each(this._api,function(t){var o=this;n[o]=function(){var t=e[o].apply(e,arguments);return void 0===t?n:t}}),n},__valueOrFn:function(t,e,n){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==n?n:t},__refactorClass:function(t,n,o){return t.filter("."+n).removeClass(n).addClass(e[o])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+e.divider).not("."+e.hidden)},__transitionend:function(t,e,n){var r=!1,s=function(){r||e.call(t[0]),r=!0};t.one(o.transitionend,s),t.one(o.webkitTransitionEnd,s),setTimeout(s,1.1*n)},__getUniqueId:function(){return e.mm(t[s].uniqueId++)}},t.fn[s]=function(a,l){return t[s].glbl||(r={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},e={},n={},o={},t.each([e,n,o],function(t,e){e.add=function(t){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e[t[n]]=e.mm(t[n])}}),e.mm=function(t){return"mm-"+t},e.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),e.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.
9slice(3)),t},n.mm=function(t){return"mm-"+t},n.add("parent sub"),o.mm=function(t){return t+".mm"},o.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[s]._c=e,t[s]._d=n,t[s]._e=o,t[s].glbl=r),a=t.extend(!0,{},t[s].defaults,a),l=t.extend(!0,{},t[s].configuration,l),this.each(function(){var e=t(this);if(!e.data(s)){var n=new t[s](e,a,l);n.$menu.data(s,n.__api())}})},t[s].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var t=(document.body||document.documentElement).style,e="transition";if("string"==typeof t[e])return!0;var n=["Moz","webkit","Webkit","Khtml","O","ms"];e=e.charAt(0).toUpperCase()+e.substr(1);for(var o=0;o<n.length;o++)if("string"==typeof t[n[o]+e])return!0;return!1}()})}(jQuery),function(t){var e,n,o,r,s="mmenu",a="offCanvas";t[s].addons[a]={setup:function(){if(this.opts[a]){var n=this.opts[a],o=this.conf[a
9];r=t[s].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==n.position||"bottom"==n.position)&&(n.zposition="front"),"string"!=typeof o.pageSelector&&(o.pageSelector="> "+o.pageNodetype),r.$allMenus=(r.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var l=[e.offcanvas];"left"!=n.position&&l.push(e.mm(n.position)),"back"!=n.zposition&&l.push(e.mm(n.zposition)),this.$menu.addClass(l.join(" ")).parent().removeClass(e.wrapper),this.setPage(r.$page),this._initBlocker(),this["_initWindow_"+a](),this.$menu[o.menuInjectMethod+"To"](o.menuWrapperSelector);var c=window.location.hash;if(c){var u=this._getOriginalMenuId();u&&u==c.slice(1)&&this.open()}}},add:function(){e=t[s]._c,n=t[s]._d,o=t[s]._e,e.add("offcanvas slideout blocking modal background opening blocker page"),n.add("style"),o.add("resize")},clickAnchor:function(t,e){if(!this.opts[a])return!1;var n=this._getOriginalMenuId();return n&&t.is('[href="#'+n+'"]')?(this.open(),!0):r.$page?!!((n=r.$page.first().attr("id"))&&t.is('[href="#'+n+'"]'))&&(this.close(),!0):void 0}},t[s].defaults[a]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[s].configuration[a]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[s].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[s].prototype._openSetup=function(){var s=this,l=this.opts[a];this.closeAllOthers(),r.$page.each(function(){t(this).data(n.style,t(this).attr("style")||"")}),r.$wndw.trigger(o.resize+"-"+a,[!0]);var c=[e.opened];l.blockUI&&c.push(e.blocking),"modal"==l.blockUI&&c.push(e.modal),l.moveBackground&&c.push(e.background),"left"!=l.position&&c.push(e.mm(this.opts[a].position)),"back"!=l.zposition&&c.push(e.mm(this.opts[a].zposition)),this.opts.extensions&&c.push(this.opts.extensions),r.$html.addClass(c.join(" ")),setTimeout(function(){s.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(e.current+" "+e.opened)},t[s].prototype._openFinish=function(){var t=this;this.__transitionend(r.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),r.$html.addClass(e.opening),this.trigger("opening")},t[s].prototype.close=function(){if(this.vars.opened){var o=this;this.__transitionend(r.$page.first(),function(){o.$menu.removeClass(e.current).removeClass(e.opened),r.$html.removeClass(e.opened).removeClass(e.blocking).removeClass(e.modal).removeClass(e.background).removeClass(e.mm(o.opts[a].position)).removeClass(e.mm(o.opts[a].zposition)),o.opts.extensions&&r.$html.removeClass(o.opts.extensions),r.$page.each(function(){t(this).attr("style",t(this).data(n.style))}),o.vars.opened=!1,o.trigger("closed")},this.conf.transitionDuration),r.$html.removeClass(e.opening),this.trigger("close"),this.trigger("closing")}},t[s].prototype.closeAllOthers=function(){r.$allMenus.not(this.$menu).each(function(){var e=t(this).data(s);e&&e.close&&e.close()})}
9,t[s].prototype.setPage=function(n){var o=this,s=this.conf[a];n&&n.length||(n=r.$body.find(s.pageSelector),s.noPageSelector.length&&(n=n.not(s.noPageSelector.join(", "))),n.length>1&&s.wrapPageIfNeeded&&(n=n.wrapAll("<"+this.conf[a].pageNodetype+" />").parent())),n.each(function(){t(this).attr("id",t(this).attr("id")||o.__getUniqueId())}),n.addClass(e.page+" "+e.slideout),r.$page=n,this.trigger("setPage",n)},t[s].prototype["_initWindow_"+a]=function(){r.$wndw.off(o.keydown+"-"+a).on(o.keydown+"-"+a,function(t){return r.$html.hasClass(e.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;r.$wndw.off(o.resize+"-"+a).on(o.resize+"-"+a,function(n,o){if(1==r.$page.length&&(o||r.$html.hasClass(e.opened))){var s=r.$wndw.height();(o||s!=t)&&(t=s,r.$page.css("minHeight",s))}})},t[s].prototype._initBlocker=function(){var n=this;this.opts[a].blockUI&&(r.$blck||(r.$blck=t('<div id="'+e.blocker+'" class="'+e.slideout+'" />')),r.$blck.appendTo(r.$body).off(o.touchstart+"-"+a+" "+o.touchmove+"-"+a).on(o.touchstart+"-"+a+" "+o.touchmove+"-"+a,function(t){t.preventDefault(),t.stopPropagation(),r.$blck.trigger(o.mousedown+"-"+a)}).off(o.mousedown+"-"+a).on(o.mousedown+"-"+a,function(t){t.preventDefault(),r.$html.hasClass(e.modal)||(n.closeAllOthers(),n.close())}))}}(jQuery),function(t){var e,n,o,r="mmenu",s="scrollBugFix";t[r].addons[s]={setup:function(){var a=this,l=this.opts[s];if(this.conf[s],o=t[r].glbl,t[r].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof l&&(l={fix:l}),"object"!=typeof l&&(l={}),(l=this.opts[s]=t.extend(!0,{},t[r].defaults[s],l)).fix)){var c=this.$menu.attr("id"),u=!1;this.bind("opening",function(){this.$pnls.children("."+e.current).scrollTop(0)}),o.$docu.on(n.touchmove,function(t){a.vars.opened&&t.preventDefault()}),o.$body.on(n.touchstart,"#"+c+"> ."+e.panels+"> ."+e.current,function(t){a.vars.opened&&(u||(u=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),u=!1))}).on(n.touchmove,"#"+c+"> ."+e.panels+"> ."+e.current,function(e){a.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),o.$wndw.on(n.orientationchange,function(){a.$pnls.children("."+e.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){e=t[r]._c,t[r]._d,n=t[r]._e},clickAnchor:function(t,e){}},t[r].defaults[s]={fix:!0}}(jQuery),function(t){var e,n,o="mmenu",r="autoHeight";t[o].addons[r]={setup:function(){if(this.opts.offCanvas){var n=this.opts[r];if(this.conf[r],t[o].glbl,"boolean"==typeof n&&n&&(n={height:"auto"}),"string"==typeof n&&(n={height:n}),"object"!=typeof n&&(n={}),"auto"==(n=this.opts[r]=t.extend(!0,{},t[o].defaults[r],n)).height||"highest"==n.height){this.$menu.addClass(e.autoheight);var s=function(o){if(this.vars.opened){var r=parseInt(this.$pnls.css("top"),10)||0,s=parseInt(this.$pnls.css("bottom"),10)||0,a=0;this.$menu.addClass(e.measureheight),"auto"==n.height?((o=o||this.$pnls.children("."+e.current)).is("."+e.vertical)&&(o=o.parents("."+e.panel).not("."+e.vertical).first()),a=o.outerHeight()):"highest"==n.height&&this.$pnls.children().each(function(){var n=t(this);n.is("."+e.vertical)&&(n=n.parents("."+e.panel).not("."+e.vertical).first()),a=Math.max(a,n.outerHeight())}),this.$menu.height(a+r+s).removeClass(e.measureheight)}};this.bind("opening",s),"highest"==n.height&&this.bind("init",s),"auto"==n.height&&(this.bind("update",s),this.bind("openPanel",s),this.bind("closePanel",s))}}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("autoheight measureheight"),n.add("resize")},clickAnchor:function(t,e){}},t[o].defaults[r]={height:"default"}}(jQuery),function(t){var e,n,o="mmenu",r="backButton";t[o].addons[r]={setup:function(){if(this.opts.offCanvas){var s=this,a=this.opts[r];if(this.conf[r],n=t[o].glbl,"boolean"==typeof a&&(a={close:a}),"object"!=typeof a&&(a={}),(a=t.extend(!0,{},t[o].defaults[r],a)).close){var l="#"+s.$menu.attr("id");this.bind("opened",function(t){location.hash!=l&&history.pushState(null,document.title,l)}),t(window).on("popstate",function(t){n.$html.hasClass(e.opened)?(t.stopPropagation(),s.close()):location.hash==l&&(t.stopPropagation(),s.open())})}}},add:function(){return window.history&&window.history.pushState?(e=t[o]._c,t[o]._d,void t[o]._e):void(t[o].addons[r].setup=function(){})},clickAnchor:function(t,e){}},t[o].defaults[r]={close:!1}}(jQuery),function(t){var e,n,o="mmenu",r="columns";t[o].addons[r]={setup:function(){var s=this.opts[r];if(this.conf[r],n=t[o].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),"number"==typeof s.visible&&(s.visible={min:s.visible,max:s.visible}),(s=this.opts[r]=t.extend(!0,{},t[o].defaults[r],s)).add){s.visible.min=Math.max(1,Math.min(6,s.visible.min)),s.visible.max=Math.max(s.visible.min,Math.min(6,s.visible.max)),this.$menu.addClass(e.columns);for(var a=this.opts.offCanvas?this.$menu.add(n.$html):this.$menu,l=[],c=0;c<=s.visible.max;
9c++)l.push(e.columns+"-"+c);l=l.join(" ");var u=function(){var t=this.$pnls.children("."+e.panel).filter("."+e.opened).length;t=Math.min(s.visible.max,Math.max(s.visible.min,t)),a.removeClass(l).addClass(e.columns+"-"+t)},h=function(n){this.$pnls.children("."+e.panel).removeClass(l).filter("."+e.subopened).removeClass(e.hidden).add(n).slice(-s.visible.max).each(function(n){t(this).addClass(e.columns+"-"+n)})};this.bind("open",u),this.bind("close",function(){this.opts.offCanvas&&n.$html.removeClass(l)}),this.bind("init",function(t){h.call(this,this.$pnls.children("."+e.current)),s.hideNavbars&&t.removeClass(e.hasnavbar)}),this.bind("openPanel",h),this.bind("openingPanel",u),this.bind("openedPanel",u),this.opts.offCanvas||u.call(this)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("columns")},clickAnchor:function(n,o){if(!this.opts[r].add)return!1;if(o){var s=n.attr("href");if(s.length>1&&"#"==s.slice(0,1))try{if(t(s,this.$menu).is("."+e.panel))for(var a=parseInt(n.closest("."+e.panel).attr("class").split(e.columns+"-")[1].split(" ")[0],10)+1;!1!==a;){var l=this.$pnls.children("."+e.columns+"-"+a);if(!l.length){a=!1;break}a++,l.removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden)}}catch(t){}}}},t[o].defaults[r]={add:!1,visible:{min:1,max:3},hideNavbars:!1}}(jQuery),function(t){var e,n,o="mmenu",r="counters";t[o].addons[r]={setup:function(){var s=this,a=this.opts[r];this.conf[r],t[o].glbl,"boolean"==typeof a&&(a={add:a,update:a}),"object"!=typeof a&&(a={}),a=this.opts[r]=t.extend(!0,{},t[o].defaults[r],a),this.bind("init",function(e){this.__refactorClass(t("em",e),this.conf.classNames[r].counter,"counter")}),a.add&&this.bind("init",function(o){var r;("panels"===a.addTo?o:o.filter(a.addTo)).each(function(){var o=t(this).data(n.parent);o&&(o.children("em."+e.counter).length||o.prepend(t('<em class="'+e.counter+'" />')))})}),a.update&&this.bind("update",function(){this.$pnls.children("."+e.panel).each(function(){var o=t(this),r=o.data(n.parent);if(r){var a=r.children("em."+e.counter);a.length&&(o=o.children("."+e.listview)).length&&a.html(s.__filterListItems(o.children()).length)}})})},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[o].defaults[r]={add:!1,addTo:"panels",update:!1},t[o].configuration.classNames[r]={counter:"Counter"}}(jQuery),function(t){var e,n,o="mmenu",r="dividers";t[o].addons[r]={setup:function(){var s=this,a=this.opts[r];if(this.conf[r],t[o].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[r]=t.extend(!0,{},t[o].defaults[r],a),this.bind("init",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[r].collapsed,"collapsed")}),a.add&&this.bind("init",function(n){var o;o="panels"===a.addTo?n:n.filter(a.addTo),t("."+e.divider,o).remove(),o.find("."+e.listview).not("."+e.vertical).each(function(){var n="";s.__filterListItems(t(this).children()).each(function(){var o=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();o!=n&&o.length&&(n=o,t('<li class="'+e.divider+'">'+o+"</li>").insertBefore(this))})})}),a.collapse&&this.bind("init",function(n){t("."+e.divider,n).each(function(){var n=t(this);n.nextUntil("."+e.divider,"."+e.collapsed).length&&(n.children("."+e.subopen).length||(n.wrapInner("<span />"),n.prepend('<a href="#" class="'+e.subopen+" "+e.fullsubopen+'" />')))})}),a.fixed){var l=function(n){if((n=n||this.$pnls.children("."+e.current)).find("."+e.divider).not("."+e.hidden).length){this.$menu.addClass(e.hasdividers);var o=n.scrollTop()||0,r="";n.is(":visible")&&n.find("."+e.divider).not("."+e.hidden).each(function(){t(this).position().top+o<o+1&&(r=t(this).text())}),this.$fixeddivider.text(r)}else this.$menu.removeClass(e.hasdividers)};this.$fixeddivider=t('<ul class="'+e.listview+" "+e.fixeddivider+'"><li class="'+e.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",l),this.bind("update",l),this.bind("init",function(e){e.off(n.scroll+"-dividers "+n.touchmove+"-dividers").on(n.scroll+"-dividers "+n.touchmove+"-dividers",function(e){l.call(s,t(this))})})}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("collapsed uncollapsed fixeddivider hasdividers"),n.add("scroll")},clickAnchor:function(t,n){if(this.opts[r].collapse&&n){var o=t.parent();if(o.is("."+e.divider)){var s=o.nextUntil("."+e.divider,"."+e.collapsed);return o.toggleClass(e.opened),s[o.hasClass(e.opened)?"addClass":"removeClass"](e.uncollapsed),!0}}return!1}},t[o].defaults[r]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[o].configuration.classNames[r]={collapsed:"Collapsed"}}(jQuery),function(t){function e(t,e,n){return e>t&&(t=e),t>n&&(t=n),t}var n,o,r="mmenu",s="dragOpen";t[r].addons[s]={setup:function(){if(this.opts.offCanvas){var a=this,l=this.opts[s],c=this.conf[s];if(o=t[r].glbl,"boolean"==typeof l&&(l={open:l}),"object"!=typeof l&&(l={}),(l=this.opts[s]=t.extend(!0,{},t[r].defaults[s],l)).open){var u,h,d,p,f,m={},g=0,v=!1,y=!1,_=0,b=0;switch(this.opts.offCanvas.position){case"left":case"right":m.events="panleft panright",m.typeLower="x",m.typeUpper="X",y="width";break;case"top":case"bottom":m.events="panup pandown",m.typeLower="y",m.typeUpper="Y",y="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":m.negative=!0,p=function(t){t>=o.$wndw[y]()-l.maxStartPos&&(g=1)};break;default:m.negative=!1,p=function(t){t<=l.maxStartPos&&(g=1)}}switch(this.opts.offCanvas.position){case"left":m.open_dir="right",m.close_dir="left";break;case"right":m.open_dir="left",m.close_dir="right";break;case"top":m.open_dir="down",m.close_dir="up";break;case"bottom":m.open_dir="up",m.close_dir="down"}f="front"===this.opts.offCanvas.zposition?function(){return this.$menu}:function(){return t("."+n.slideout)};var w=this.__valueOrFn(l.pageNode,this.$menu,o.$page);"string"==typeof w&&(w=t(w)),new Hammer(w[0],l.vendors.hammer).on("panstart",function(t){p(t.center[m.typeLower]),o.$slideOutNodes=f(),v=m.open_dir}).on(m.events+" panend",function(t){g>0&&t.preventDefault()}).on(m.events,function(t){if(u=t["delta"+m.typeUpper],m.negative&&(u=-u),u!=_&&(v=u>=_?m.open_dir:m.close_dir),(_=u)>l.threshold&&1==g){if(o.$html.hasClass(n.opened))return;g=2,a._openSetup(),a.trigger("opening"),o.$html.addClass(n.dragging),b=e(o.$wndw[y]()*c[y].perc,c[y].min,c[y].max)}2==g&&(h=e(_,10,b)-("front"==a.opts.offCanvas.zposition?b:0),m.negative&&(h=-h),d="translate"+m.typeUpper+"("+h+"px )",o.$slideOutNodes.css({"-webkit-transform":"-webkit-"+d,transform:d}))}).on("panend",function(t){2==g&&(o.$html.removeClass(n.dragging),o.$slideOutNodes.css("transform",""),a[v==m.open_dir?"_openFinish":"close"]()),g=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[r].addons[s].setup=function(){}):(n=t[r]._c,t[r]._d,t[r]._e,void n.add("dragging"))},clickAnchor:function(t,e){}},t[r].defaults[s]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer
9:{}}},t[r].configuration[s]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),function(t){var e,n,o,r,s="mmenu",a="dropdown";t[s].addons[a]={setup:function(){if(this.opts.offCanvas){var l=this,c=this.opts[a],u=this.conf[a];if(r=t[s].glbl,"boolean"==typeof c&&c&&(c={drop:c}),"object"!=typeof c&&(c={}),"string"==typeof c.position&&(c.position={of:c.position}),(c=this.opts[a]=t.extend(!0,{},t[s].defaults[a],c)).drop){if("string"!=typeof c.position.of){var h=this.$menu.attr("id");h&&h.length&&(this.conf.clone&&(h=e.umm(h)),c.position.of='[href="#'+h+'"]')}if("string"==typeof c.position.of){var d=t(c.position.of);if(d.length){this.$menu.addClass(e.dropdown),c.tip&&this.$menu.addClass(e.tip),c.event=c.event.split(" "),1==c.event.length&&(c.event[1]=c.event[0]),"hover"==c.event[0]&&d.on(o.mouseenter+"-dropdown",function(){l.open()}),"hover"==c.event[1]&&this.$menu.on(o.mouseleave+"-dropdown",function(){l.close()}),this.bind("opening",function(){this.$menu.data(n.style,this.$menu.attr("style")||""),r.$html.addClass(e.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(n.style)),r.$html.removeClass(e.dropdown)});var p=function(n,o){var l,h,p=o[0],f=o[1],m="x"==n?"left":"top",g="x"==n?"right":"bottom",v="x"==n?"width":"height",y=null,_=r.$wndw["x"==n?"scrollLeft":"scrollTop"](),b=d.offset()[m]-=_,w=b+d["x"==n?"outerWidth":"outerHeight"](),x=r.$wndw[v](),T=u.offset.button[n]+u.offset.viewport[n];if(c.position[n])switch(c.position[n]){case"left":case"bottom":y="after";break;case"right":case"top":y="before"}return null===y&&(y=x/2>b+(w-b)/2?"after":"before"),"after"==y?(h=x-((l="x"==n?b:w)+T),p[m]=l+u.offset.button[n],p[g]="auto",f.push(e["x"==n?"tipleft":"tiptop"])):(h=(l="x"==n?w:b)-T,p[g]="calc( 100% - "+(l-u.offset.button[n])+"px )",p[m]="auto",f.push(e["x"==n?"tipright":"tipbottom"])),p["x"==n?"maxWidth":"maxHeight"]=Math.min(t[s].configuration[a][v].max,h),[p,f]},f=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(n.style));var o=[{},[]];o=p.call(this,"y",o),o=p.call(this,"x",o),this.$menu.css(o[0]),c.tip&&this.$menu.removeClass(e.tipleft+" "+e.tipright+" "+e.tiptop+" "+e.tipbottom).addClass(o[1].join(" "))}};this.bind("opening",f),r.$wndw.on(o.resize+"-dropdown",function(t){f.call(l)}),this.opts.offCanvas.blockUI||r.$wndw.on(o.scroll+"-dropdown",function(t){f.call(l)})}}}}},add:function(){e=t[s]._c,n=t[s]._d,o=t[s]._e,e.add("dropdown tip tipleft tipright tiptop tipbottom"),o.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[s].defaults[a]={drop:!1,event:"click",position:{},tip:!0},t[s].configuration[a]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(t){var e,n,o="mmenu",r="fixedElements";t[o].addons[r]={setup:function(){if(this.opts.offCanvas){var e=this.opts[r];this.conf[r],n=t[o].glbl,e=this.opts[r]=t.extend(!0,{},t[o].defaults[r],e);var s=function(t){var e=this.conf.classNames[r].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(n.$body)};s.call(this,n.$page),this.bind("setPage",s)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("fixed")},clickAnchor:function(t,e){}},t[o].configuration.classNames[r]={fixed:"Fixed"}}(jQuery),function(t){var e,n="mmenu",o="iconPanels";t[n].addons[o]={setup:function(){var r=this,s=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),s=this.opts[o]=t.extend(!0,{},t[n].defaults[o],s),s.visible++,s.add){this.$menu.addClass(e.iconpanel);for(var a=[],l=0;l<=s.visible;l++)a.push(e.iconpanel+"-"+l);a=a.join(" ");var c=function(n){n.hasClass(e.vertical)||r.$pnls.children("."+e.panel).removeClass(a).filter("."+e.subopened).removeClass(e.hidden).add(n).not("."+e.vertical).slice(-s.visible).each(function(n){t(this).addClass(e.iconpanel+"-"+n)})};this.bind("openPanel",c),this.bind("init",function(n){c.call(r,r.$pnls.children("."+e.current)),s.hideNavbars&&n.removeClass(e.hasnavbar),n.not("."+e.vertical).each(function(){t(this).children("."+e.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+e.panel).attr("id")+'" class="'+e.subblocker+'" />')})})}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[n].defaults[o]={add:!1,visible:3,hideNavbars:!1}}(jQuery),function(t){var e,n="mmenu",o="navbars";t[n].addons[o]={setup:function(){var r=this,s=this.opts[o],a=this.conf[o];if(t[n].glbl,void 0!==s){s instanceof Array||(s=[s]);var l={};for(var c in t.each(s,function(c){var u=s[c];"boolean"==typeof u&&u&&(u={}),"object"!=typeof u&&(u={}),void 0===u.content&&(u.content=["prev","title"]),u.content instanceof Array||(u.content=[u.content]);var h=(u=t.extend(!0,{},r.opts.navbar,u)).position,d=u.height;"number"!=typeof d&&(d=1),d=Math.min(4,Math.max(1,d)),"bottom"!=h&&(h="top"),l[h]||(l[h]=0),l[h]++;var p=t("<div />").addClass(e.navbar+" "+e.navbar+"-"+h+" "+e.navbar+"-"+h+"-"+l[h]+" "+e.navbar+"-size-"+d);l[h]+=d-1;for(var f=0,m=0,g=u.content.length;g>m;m++){var v=t[n].addons[o][u.content[m]]||!1;v?f+=v.call(r,p,u,a):((v=u.content[m])instanceof t||(v=t(u.content[m])),p.append(v))}(f+=Math.ceil(p.children().not("."+e.btn).not("."+e.title+"-prev").length/d))>1&&p.addClass(e.navbar+"-content-"+f),p.children("."+e.btn).length&&p.addClass(e.hasbtns),p.prependTo(r.$menu)}),l)r.$menu.addClass(e.hasnavbar+"-"+c+"-"+l[c])}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("close hasbtns")},clickAnchor:function(t,e){}},t[n].configuration[o]={breadcrumbSeparator:"/"}
9,t[n].configuration.classNames[o]={}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.breadcrumbs=function(n,o,r){var s=t[e]._c,a=t[e]._d;s.add("breadcrumbs separator");var l=t('<span class="'+s.breadcrumbs+'" />').appendTo(n);this.bind("init",function(e){e.removeClass(s.hasnavbar).each(function(){for(var e=[],n=t(this),o=t('<span class="'+s.breadcrumbs+'"></span>'),l=t(this).children().first(),c=!0;l&&l.length;){l.is("."+s.panel)||(l=l.closest("."+s.panel));var u=l.children("."+s.navbar).children("."+s.title).text();e.unshift(c?"<span>"+u+"</span>":'<a href="#'+l.attr("id")+'">'+u+"</a>"),c=!1,l=l.data(a.parent)}o.append(e.join('<span class="'+s.separator+'">'+r.breadcrumbSeparator+"</span>")).appendTo(n.children("."+s.navbar))})});var c=function(){l.html(this.$pnls.children("."+s.current).children("."+s.navbar).children("."+s.breadcrumbs).html())};return this.bind("openPanel",c),this.bind("init",c),0}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.close=function(n,o){var r=t[e]._c,s=t[e].glbl,a=t('<a class="'+r.close+" "+r.btn+'" href="#" />').appendTo(n),l=function(t){a.attr("href","#"+t.attr("id"))};return l.call(this,s.$page),this.bind("setPage",l),-1}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].next=function(o,r){var s,a,l=t[e]._c,c=t('<a class="'+l.next+" "+l.btn+'" href="#" />').appendTo(o),u=function(t){var e=(t=t||this.$pnls.children("."+l.current)).find("."+this.conf.classNames[n].panelNext);s=e.attr("href"),a=e.html(),c[s?"attr":"removeAttr"]("href",s),c[s||a?"removeClass":"addClass"](l.hidden),c.html(a)};return this.bind("openPanel",u),this.bind("init",function(){u.call(this)}),-1},t[e].configuration.classNames[n].panelNext="Next"}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].prev=function(o,r){var s=t[e]._c,a=t('<a class="'+s.prev+" "+s.btn+'" href="#" />').appendTo(o);this.bind("init",function(t){t.removeClass(s.hasnavbar).children("."+s.navbar).addClass(s.hidden)});var l,c,u=function(t){if(!(t=t||this.$pnls.children("."+s.current)).hasClass(s.vertical)){var e=t.find("."+this.conf.classNames[n].panelPrev);e.length||(e=t.children("."+s.navbar).children("."+s.prev)),l=e.attr("href"),c=e.html(),a[l?"attr":"removeAttr"]("href",l),a[l||c?"removeClass":"addClass"](s.hidden),a.html(c)}};return this.bind("openPanel",u),this.bind("init",function(){u.call(this)}),-1},t[e].configuration.classNames[n].panelPrev="Prev"}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.searchfield=function(n,o){var r=t[e]._c,s=t('<div class="'+r.search+'" />').appendTo(n);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=s,0}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].title=function(o,r){var s,a,l=t[e]._c,c=t('<a class="'+l.title+'" />').appendTo(o),u=function(t){if(!(t=t||this.$pnls.children("."+l.current)).hasClass(l.vertical)){var e=t.find("."+this.conf.classNames[n].panelTitle);e.length||(e=t.children("."+l.navbar).children("."+l.title)),s=e.attr("href"),a=e.html()||r.title,c[s?"attr":"removeAttr"]("href",s),c[s||a?"removeClass":"addClass"](l.hidden),c.html(a)}};return this.bind("openPanel",u),this.bind("init",function(t){u.call(this)}),0},t[e].configuration.classNames[n].panelTitle="Title"}(jQuery),function(t){function e(t,e,n){t.prop("aria-"+e,n)[n?"attr":"removeAttr"]("aria-"+e,"true")}function n(t){return'<span class="'+o.sronly+'">'+t+"</span>"}var o,r="mmenu",s="screenReader";t[r].addons[s]={setup:function(){var a=this.opts[s],l=this.conf[s];if(t[r].glbl,"boolean"==typeof a&&(a={aria:a,text:a}),"object"!=typeof a&&(a={}),(a=this.opts[s]=t.extend(!0,{},t[r].defaults[s],a)).aria){if(this.opts.offCanvas){var c=function(){e(this.$menu,"hidden",!0)};this.bind("open",function(){e(this.$menu,"hidden",!1)}),this.bind("close",c),c.call(this)}var u=function(){e(this.$menu.find("."+o.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+o.hidden),"hidden",!1)};this.bind("update",u),this.bind("openPanel",u),this.bind("openPanel",function(t){e(this.$pnls.children("."+o.panel).not(t).not("."+o.hidden),"hidden",!0),e(t,"hidden",!1)});var h=function(t){e(t.find("."+o.prev+", ."+o.next),"haspopup",!0)};this.bind("init",h),h.call(this,this.$menu.children("."+o.navbar))}if(a.text){var d=function(e){e.children("."+o.navbar).children("."+o.prev).html(n(l.text.closeSubmenu)).end().children("."+o.next).html(n(l.text.openSubmenu)).end().children("."+o.close).html(n(l.text.closeMenu)),e.is("."+o.panel)&&e.find("."+o.listview).find("."+o.next).each(function(){t(this).html(n(l.text[t(this).parent().is("."+o.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",d),d.call(this,this.$menu)}},add:function(){o=t[r]._c,t[r]._d,t[r]._e,o.add("sronly")},clickAnchor:function(t,e){}},t[r].defaults[s]={aria:!1,text:!1},t[r].configuration[s]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(t){var e,n,o,r="mmenu",s="searchfield";t[r].addons[s]={setup:function(){var a=this,l=this.opts[s],c=this.conf[s];t[r].glbl,"boolean"==typeof l&&(l={add:l}),"object"!=typeof l&&(l={}),"boolean"==typeof l.resultsPanel&&(l.resultsPanel={add:l.resultsPanel}),l=this.opts[s]=t.extend(!0,{},t[r].defaults[s],l),c=this.conf[s]=t.extend(!0,{},t[r].configuration[s],c),this.bind("close",function(){this.$menu.find("."+e.search).find("input").blur()}),this.bind("init",function(r){if(l.add){var u;if(("panels"===l.addTo?r:this.$menu.find(l.addTo)).each(function(){var n=t(this);if(!n.is("."+e.panel)||!n.is("."+e.vertical)){if(!n.children("."+e.search).length){var r,s=a.__valueOrFn(c.clear,n),u=a.__valueOrFn(c.form,n),h=a.__valueOrFn(c.input,n),d=a.__valueOrFn(c.submit,n),p=t("<"+(u?"form":"div")+' class="'+e.search+'" />'),f=t('<input placeholder="'+l.placeholder+'" type="text" autocomplete="off" />');if(p.append(f),h)for(r in h)f.attr(r,h[r]);if(s&&t('<a class="'+e.btn+" "+e.clear+'" href="#" />').appendTo(p).on(o.click+"-searchfield",function(t){t.preventDefault(),f.val("").trigger(o.keyup+"-searchfield")}),u){for(r in u)p.attr(r,u[r]);d&&!s&&t('<a class="'+e.btn+" "+e.next+'" href="#" />').appendTo(p).on(o.click+"-searchfield",function(t){t.preventDefault(),p.submit()})}n.hasClass(e.search)?n.replaceWith(p):n.prepend(p).addClass(e.hassearch)}if(l.noResults&&(n.closest("."+e.panel).length||(n=a.$pnls.children("."+e.panel).first()),!n.children("."+e.noresultsmsg).length)){var m=n.children("."+e.listview).first();t('<div class="'+e.noresultsmsg+" "+e.hidden+'" />').append(l.noResults)[m.length?"insertAfter":"prependTo"](m.length?m:n)}}}),l.search){if(l.resultsPanel.add){l.showSubPanels=!1;var h=this.$pnls.children("."+e.resultspanel);h.length||(h=t('<div class="'+e.panel+" "+e.resultspanel+" "+e.hidden+'" />').appendTo(this.$pnls).append('<div class="'+e.navbar+" "+e.hidden+'"><a class="'+e.title+'">'+l.resultsPanel.title+"</a></div>").append('<ul class="'+e.listview+'" />').append(this.$pnls.find("."+e.noresultsmsg).first().clone()),this.init(h))}this.$menu.find("."+e.search).each(function(){var r,c,u=t(this),d=u.closest("."+e.panel).length;d?c=r=u.closest("."+e.panel):(r=t("."+e.panel,a.$menu),c=a.$menu),l.resultsPanel.add&&(r=r.not(h));var p=u.children("input"),f=a.__findAddBack(r,"."+e.listview).children("li"),m=f.filter("."+e.divider),g=a.__filterListItems(f),v="",y=function(){var o=p.val().toLowerCase();
9if(o!=v){if(v=o,l.resultsPanel.add&&h.children("."+e.listview).empty(),r.scrollTop(0),g.add(m).addClass(e.hidden).find("."+e.fullsubopensearch).removeClass(e.fullsubopen+" "+e.fullsubopensearch),g.each(function(){var o=t(this),r="a";(l.showTextItems||l.showSubPanels&&o.find("."+e.next))&&(r="a, span"),(o.data(n.searchtext)||o.children(r).text()).toLowerCase().indexOf(v)>-1&&o.add(o.prevAll("."+e.divider).first()).removeClass(e.hidden)}),l.showSubPanels&&r.each(function(o){var r=t(this);a.__filterListItems(r.find("."+e.listview).children()).each(function(){var o=t(this),r=o.data(n.sub);o.removeClass(e.nosubresults),r&&r.find("."+e.listview).children().removeClass(e.hidden)})}),l.resultsPanel.add){if(""===v)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+e.subopened).last());else{var s=t();r.each(function(){var n=a.__filterListItems(t(this).find("."+e.listview).children()).not("."+e.hidden).clone(!0);n.length&&(l.resultsPanel.dividers&&(s=s.add('<li class="'+e.divider+'">'+t(this).children("."+e.navbar).text()+"</li>")),s=s.add(n))}),s.find("."+e.next).remove(),h.children("."+e.listview).append(s),this.openPanel(h)}}else t(r.get().reverse()).each(function(o){var r=t(this),s=r.data(n.parent);s&&(a.__filterListItems(r.find("."+e.listview).children()).length?(s.hasClass(e.hidden)&&s.children("."+e.next).not("."+e.fullsubopen).addClass(e.fullsubopen).addClass(e.fullsubopensearch),s.removeClass(e.hidden).removeClass(e.nosubresults).prevAll("."+e.divider).first().removeClass(e.hidden)):d||(r.hasClass(e.opened)&&setTimeout(function(){a.openPanel(s.closest("."+e.panel))},(o+1)*(1.5*a.conf.openingInterval)),s.addClass(e.nosubresults)))});c.find("."+e.noresultsmsg)[g.not("."+e.hidden).length?"addClass":"removeClass"](e.hidden),this.update()}};p.off(o.keyup+"-"+s+" "+o.change+"-"+s).on(o.keyup+"-"+s,function(t){(function(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1})(t.keyCode)||y.call(a)}).on(o.change+"-"+s,function(t){y.call(a)});var _=u.children("."+e.btn);_.length&&p.on(o.keyup+"-"+s,function(t){_[p.val().length?"removeClass":"addClass"](e.hidden)}),p.trigger(o.keyup+"-"+s)})}}})},add:function(){e=t[r]._c,n=t[r]._d,o=t[r]._e,e.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),n.add("searchtext"),o.add("change keyup")},clickAnchor:function(t,e){}},t[r].defaults[s]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[r].configuration[s]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(t){var e,n,o="mmenu",r="sectionIndexer";t[o].addons[r]={setup:function(){var s=this,a=this.opts[r];this.conf[r],t[o].glbl,"boolean"==typeof a&&(a={add:a}),"object"!=typeof a&&(a={}),a=this.opts[r]=t.extend(!0,{},t[o].defaults[r],a),this.bind("init",function(o){if(a.add){var r;("panels"===a.addTo?o:t(a.addTo,this.$menu).filter("."+e.panel)).find("."+e.divider).closest("."+e.panel).addClass(e.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+e.hasindexer).length){this.$indexer=t('<div class="'+e.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(n.mouseover+"-sectionindexer "+e.touchstart+"-sectionindexer",function(n){var o=t(this).attr("href").slice(1),r=s.$pnls.children("."+e.current),a=r.find("."+e.listview),l=!1,c=r.scrollTop();r.scrollTop(0),a.children("."+e.divider).not("."+e.hidden).each(function(){!1===l&&o==t(this).text().slice(0,1).toLowerCase()&&(l=t(this).position().top)}),r.scrollTop(!1!==l?l:c)});var l=function(t){s.$menu[(t.hasClass(e.hasindexer)?"add":"remove")+"Class"](e.hasindexer)};this.bind("openPanel",l),l.call(this,this.$pnls.children("."+e.current))}})},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("indexer hasindexer"),n.add("mouseover touchstart")},clickAnchor:function(t,n){return!!t.parent().is("."+e.indexer)||void 0}},t[o].defaults[r]={add:!1,addTo:"panels"}}(jQuery),function(t){var e,n,o="mmenu",r="setSelected";t[o].addons[r]={setup:function(){var s=this.opts[r];if(this.conf[r],t[o].glbl,"boolean"==typeof s&&(s={hover:s,parent:s}),"object"!=typeof s&&(s={}),(s=this.opts[r]=t.extend(!0,{},t[o].defaults[r],s)).current||this.bind("init",function(t){t.find("."+e.listview).children("."+e.selected).removeClass(e.selected)}),s.hover&&this.$menu.addClass(e.hoverselected),s.parent){this.$menu.addClass(e.parentselected);var a=function(t){this.$pnls.find("."+e.listview).find("."+e.next).removeClass(e.selected);for(var o=t.data(n.parent);o&&o.length;)o=o.children("."+e.next).addClass(e.selected).closest("."+e.panel).data(n.parent)};this.bind("openedPanel",a),this.bind("init",function(t){a.call(this,this.$pnls.children("."+e.current))})}},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[o].defaults[r]={current:!0,hover:!1,parent:!1}}(jQuery),function(t){var e,n="mmenu",o="toggles";t[n].addons[o]={setup:function(){var r=this;this.opts[o],this.conf[o],t[n].glbl,this.bind("init",function(n){this.__refactorClass(t("input",n),this.conf.classNames[o].toggle,"toggle"),this.__refactorClass(t("input",n),this.conf.classNames[o].check,"check"),t("input."+e.toggle+", input."+e.check,n).each(function(){var n=t(this),o=n.closest("li"),s=n.hasClass(e.toggle)?"toggle":"check",a=n.attr("id")||r.__getUniqueId();o.children('label[for="'+a+'"]').length||(n.attr("id",a),o.prepend(n),t('<label for="'+a+'" class="'+e[s]+'"></label>').insertBefore(o.children("a, span").last()))})})},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("toggle check")},clickAnchor:function(t,e){}},t[n].configuration.classNames[o]={toggle:"Toggle",check:"Check"}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=Array.prototype.slice,n=Array.prototype.splice,o={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:1e3},r=t(window),s=t(document),a=[],l=r.height(),c=function(){for(var e=r.scrollTop(),n=s.height(),o=n-l,c=e>o?o-e:0,u=0,h=a.length;u<h;u++){var d=a[u],p=d.stickyWrapper.offset().top-d.topSpacing-c;if(d.stickyWrapper.css("height",d.stickyElement.outerHeight()),e<=p)null!==d.currentTop&&(d.stickyElement.css({width:"",position:"",top:"","z-index":""}),d.stickyElement.parent().removeClass(d.className),d.stickyElement.trigger("sticky-end",[d]),d.currentTop=null);else{var f,m=n-d.stickyElement.outerHeight()-d.topSpacing-d.bottomSpacing-e-c;m<0?m+=d.topSpacing:m=d.topSpacing,d.currentTop!==m&&(d.getWidthFrom?f=t(d.getWidthFrom).width()||null:d.widthFromWrapper&&(f=d.stickyWrapper.width()),null==f&&(f=d.stickyElement.width()),d.stickyElement.css("width",f).css("position","fixed").css("top",m).css("z-index",d.zIndex),d.stickyElement.parent().addClass(d.className),null===d.currentTop?d.stickyElement.trigger("sticky-start",[d]):d.stickyElement.trigger("sticky-update",[d]),d.currentTop===d.topSpacing&&d.currentTop>m||null===d.currentTop&&m<d.topSpacing?d.stickyElement.trigger("sticky-bottom-reached",[d]):null!==d.currentTop&&m===d.topSpacing&&d.currentTop<m&&d.stickyElement.trigger("sticky-bottom-unreached",[d]),d.currentTop=m);var g=d.stickyWrapper.parent();d.stickyElement.offset().top+d.stickyElement.outerHeight()>=g.offset().top+g.outerHeight()&&d.stickyElement.offset().top<=d.topSpacing?d.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):d.stickyElement.css("position","fixed").css("top",m).css("bottom","").css("z-index",d.zIndex)}}},u=function(){l=r.height();for(var e=0,n=a.length;e<n;e++){var o=a[e],s=null;o.getWidthFrom?o.responsiveWidth&&(s=t(o.getWidthFrom).width()):o.widthFromWrapper&&(s=o.stickyWrapper.width()),null!=s&&o.stickyElement.css("width",s)}},h={init:function(e){var n=t.extend({},o,e);return this.each(function(){var e=t(this),r=e.attr("id"),s=r?r+"-"+o.wrapperClassName:o.wrapperClassName,l=t("<div></div>").attr("id",s).addClass(n.wrapperClassName);e.wrapAll(function(){if(0==t(this).parent("#"+s).length)return l});var c=e.parent();n.center&&c.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),n.stickyElement=e,n.stickyWrapper=c,n.currentTop=null,a.push(n),h.setWrapperHeight(this),h.setupChangeListeners(this)})},setWrapperHeight:function(e){var n=t(e),o=n.parent();o&&o.css("height",n.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&h.setWrapperHeight(t)}).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){h.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){h.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){h.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){h.setWrapperHeight(t)}))},update:c,unstick:function(e){return this.each(function(){for(var e=t
9(this),o=-1,r=a.length;r-- >0;)a[r].stickyElement.get(0)===this&&(n.call(a,r,1),o=r);-1!==o&&(e.unwrap(),e.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",c,!1),window.addEventListener("resize",u,!1)):window.attachEvent&&(window.attachEvent("onscroll",c),window.attachEvent("onresize",u)),t.fn.sticky=function(n){return h[n]?h[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):h.init.apply(this,arguments)},t.fn.unstick=function(n){return h[n]?h[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):h.unstick.apply(this,arguments)},t(function(){setTimeout(c,0)})}),function(t,e,n,o){"use strict";var r=n("html"),s=n(t),a=n(e),l=n.fancybox=function(){l.open.apply(this,arguments)},c=navigator.userAgent.match(/msie/i),u=null,h=o!==e.createTouch,d=function(t){return t&&t.hasOwnProperty&&t instanceof n},p=function(t){return t&&"string"===n.type(t)},f=function(t){return p(t)&&t.indexOf("%")>0},m=function(t,e){var n=parseInt(t,10)||0;return e&&f(t)&&(n=l.getViewport()[e]/100*n),Math.ceil(n)},g=function(t,e){return m(t,e)+"px"};n.extend(l,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!h,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(c?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(n.isPlainObject(e)||(e={}),!1!==l.close(!0)))return n.isArray(t)||(t=d(t)?n(t).get():[t]),n.each(t,function(r,s){var a,c,u,h,f,m,g,v={};"object"===n.type(s)&&(s.nodeType&&(s=n(s)),d(s)?(v={href:s.data("fancybox-href")||s.attr("href"),title:s.data("fancybox-title")||s.attr("title"),isDom:!0,element:s},n.metadata&&n.extend(!0,v,s.metadata())):v=s),a=e.href||v.href||(p(s)?s:null),c=o!==e.title?e.title:v.title||"",(h=(u=e.content||v.content)?"html":e.type||v.type)||!v.isDom||(h=s.data("fancybox-type"))||(h=(f=s.prop("class").match(/fancybox\.(\w+)/))?f[1]:null),p(a)&&(!
9h&&(l.isImage(a)?h="image":l.isSWF(a)?h="swf":"#"===a.charAt(0)?h="inline":p(s)&&(h="html",u=s)),"ajax"===h&&(a=(m=a.split(/\s+/,2)).shift(),g=m.shift())),u||("inline"===h?a?u=n(p(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):v.isDom&&(u=s):"html"===h?u=a:h||a||!v.isDom||(h="inline",u=s)),n.extend(v,{href:a,type:h,content:u,title:c,selector:g}),t[r]=v}),l.opts=n.extend(!0,{},l.defaults,e),o!==e.keys&&(l.opts.keys=!!e.keys&&n.extend({},l.defaults.keys,e.keys)),l.group=t,l._start(l.opts.index)},cancel:function(){var t=l.coming;t&&!1!==l.trigger("onCancel")&&(l.hideLoading(),l.ajaxLoad&&l.ajaxLoad.abort(),l.ajaxLoad=null,l.imgPreload&&(l.imgPreload.onload=l.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),l.coming=null,l.current||l._afterZoomOut(t))},close:function(t){l.cancel(),!1!==l.trigger("beforeClose")&&(l.unbindEvents(),l.isActive&&(l.isOpen&&!0!==t?(l.isOpen=l.isOpened=!1,l.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),l.wrap.stop(!0,!0).removeClass("fancybox-opened"),l.transitions[l.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),l._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(l.player.timer)},n=function(){e(),l.current&&l.player.isActive&&(l.player.timer=setTimeout(l.next,l.current.playSpeed))},o=function(){e(),a.unbind(".player"),l.player.isActive=!1,l.trigger("onPlayEnd")};!0!==t&&(l.player.isActive||!1===t)?o():l.current&&(l.current.loop||l.current.index<l.group.length-1)&&(l.player.isActive=!0,a.bind({"onCancel.player beforeClose.player":o,"onUpdate.player":n,"beforeLoad.player":e}),n(),l.trigger("onPlayStart"))},next:function(t){var e=l.current;e&&(p(t)||(t=e.direction.next),l.jumpto(e.index+1,t,"next"))},prev:function(t){var e=l.current;e&&(p(t)||(t=e.direction.prev),l.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,n){var r=l.current;r&&(t=m(t),l.direction=e||r.direction[t>=r.index?"next":"prev"],l.router=n||"jumpto",r.loop&&(t<0&&(t=r.group.length+t%r.group.length),t%=r.group.length),o!==r.group[t]&&(l.cancel(),l._start(t)))},reposition:function(t,e){var o,r=l.current,s=r?r.wrap:null;s&&(o=l._getPosition(e),t&&"scroll"===t.type?(delete o.position,s.stop(!0,!0).animate(o,200)):(s.css(o),r.pos=n.extend({},r.dim,o)))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(u),u=null),l.isOpen&&!u&&(u=setTimeout(function(){var o=l.current;o&&!l.isClosing&&(l.wrap.removeClass("fancybox-tmp"),(n||"load"===e||"resize"===e&&o.autoResize)&&l._setDimension(),"scroll"===e&&o.canShrink||l.reposition(t),l.trigger("onUpdate"),u=null)},n&&!h?0:300))},toggle:function(t){l.isOpen&&(l.current.fitToView="boolean"===n.type(t)?t:!l.current.fitToView,h&&(l.wrap.removeAttr("style").addClass("fancybox-tmp"),l.trigger("onUpdate")),l.update())},hideLoading:function(){a.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;l.hideLoading(),t=n('<div id="fancybox-loading"><div></div></div>').click(l.cancel).appendTo("body"),a.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),l.cancel())}),l.defaults.fixed||(e=l.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=l.current&&l.current.locked||!1,n={x:s.scrollLeft(),y:s.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=h&&t.innerWidth?t.innerWidth:s.width(),n.h=h&&t.innerHeight?t.innerHeight:s.height()),n},unbindEvents:function(){l.wrap&&d(l.wrap)&&l.wrap.unbind(".fb"),a.unbind(".fb"),s.unbind(".fb")},bindEvents:function(){var t,e=l.current;e&&(s.bind("orientationchange.fb"+(h?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),l.update),(t=e.keys)&&a.bind("keydown.fb",function(r){var s=r.which||r.keyCode,a=r.target||r.srcElement;if(27===s&&l.coming)return!1;r.ctrlKey||r.altKey||r.shiftKey||r.metaKey||a&&(a.type||n(a).is("[contenteditable]"))||n.each(t,function(t,a){return e.group.length>1&&o!==a[s]?(l[t](a[s]),r.preventDefault(),!1):n.inArray(s,a)>-1?(l[t](),r.preventDefault(),!1):void 0})}),n.fn.mousewheel&&e.mouseWheel&&l.wrap.bind("mousewheel.fb",function(t,o,r,s){for(var a,c=n(t.target||null),u=!1;c.length&&!(u||c.is(".fancybox-skin")||c.is(".fancybox-wrap"));)u=(a=c[0])&&!(a.style.overflow&&"hidden"===a.style.overflow)&&(a.clientWidth&&a.scrollWidth>a.clientWidth||a.clientHeight&&a.scrollHeight>a.clientHeight),c=n(c).parent();0===o||u||!(l.group.length>1)||e.canShrink||(s>0||r>0?l.prev(s>0?"down":"left"):(s<0||r<0)&&l.next(s<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var o,r=e||l.coming||l.current;if(r){if(n.isFunction(r[t])&&(o=r[t].apply(r,Array.prototype.slice.call(arguments,1
9))),!1===o)return!1;r.helpers&&n.each(r.helpers,function(e,o){o&&l.helpers[e]&&n.isFunction(l.helpers[e][t])&&l.helpers[e][t](n.extend(!0,{},l.helpers[e].defaults,o),r)}),a.trigger(t)}},isImage:function(t){return p(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return p(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,o,r,s,a,c={};if(t=m(t),!(e=l.group[t]||null))return!1;if(s=(c=n.extend(!0,{},l.opts,e)).margin,a=c.padding,"number"===n.type(s)&&(c.margin=[s,s,s,s]),"number"===n.type(a)&&(c.padding=[a,a,a,a]),c.modal&&n.extend(!0,c,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),c.autoSize&&(c.autoWidth=c.autoHeight=!0),"auto"===c.width&&(c.autoWidth=!0),"auto"===c.height&&(c.autoHeight=!0),c.group=l.group,c.index=t,l.coming=c,!1===l.trigger("beforeLoad")){l.coming=null;return}if(r=c.type,o=c.href,!r)return l.coming=null,!!l.current&&!!l.router&&"jumpto"!==l.router&&(l.current.index=t,l[l.router](l.direction));if(l.isActive=!0,("image"===r||"swf"===r)&&(c.autoHeight=c.autoWidth=!1,c.scrolling="visible"),"image"===r&&(c.aspectRatio=!0),"iframe"===r&&h&&(c.scrolling="scroll"),c.wrap=n(c.tpl.wrap).addClass("fancybox-"+(h?"mobile":"desktop")+" fancybox-type-"+r+" fancybox-tmp "+c.wrapCSS).appendTo(c.parent||"body"),n.extend(c,{skin:n(".fancybox-skin",c.wrap),outer:n(".fancybox-outer",c.wrap),inner:n(".fancybox-inner",c.wrap)}),n.each(["Top","Right","Bottom","Left"],function(t,e){c.skin.css("padding"+e,g(c.padding[t]))}),l.trigger("onReady"),"inline"===r||"html"===r){if(!c.content||!c.content.length)return l._error("content")}else if(!o)return l._error("href");"image"===r?l._loadImage():"ajax"===r?l._loadAjax():"iframe"===r?l._loadIframe():l._afterLoad()},_error:function(t){n.extend(l.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:l.coming.tpl.error}),l._afterLoad()},_loadImage:function(){var t=l.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,l.coming.width=this.width/l.opts.pixelRatio,l.coming.height=this.height/l.opts.pixelRatio,l._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,l._error("image")},t.src=l.coming.href,!0!==t.complete&&l.showLoading()},_loadAjax:function(){var t=l.coming;l.showLoading(),l.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){l.coming&&"abort"!==e?l._error("ajax",t):l.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,l._afterLoad())}}))},_loadIframe:function(){var t=l.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",h?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(l.showLoading(),e.one("load",function(){n(this).data("ready",1),h||n(this).bind("load.fb",l.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),l._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||l._afterLoad()},_preloadImages:function(){var t,e,n=l.group,o=l.current,r=n.length,s=o.preload?Math.min(o.preload,r-1):0;for(e=1;e<=s;e+=1)"image"===(t=n[(o.index+e)%r]).type&&t.href&&(new Image().src=t.href)},_afterLoad:function(){var t,e,o,r,s,a=l.coming,c=l.current,u="fancybox-placeholder";if(l.hideLoading(),a&&!1!==l.isActive){if(!1===l.trigger("afterLoad",a,c)){a.wrap.stop(!0).trigger("onReset").remove(),l.coming=null;return}switch(c&&(l.trigger("beforeChange",c),c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),l.unbindEvents(),t=a.content,e=a.type,o=a.scrolling,n.extend(l,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:c}),r=a.href,e){case"inline":case"ajax":case"html":a.selector?t=n("<div>").html(t).find(a.selector):d(t)&&(t.data(u)||t.data(u,n('<div class="'+u+'"></div>').insertAfter(t).hide()),t=t.show().detach(),a.wrap.bind("onReset",function(){n(this).find(t).length&&t.hide().replaceAll(t.data(u)).data(u,!1)}));break;case"image":t=a.tpl.image.replace("{href}",r);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+r+'"></param>',s="",n.each(a.swf,function(e,n){t+='<param name="'+e+'" value="'+n+'"></param>',s+=" "+e+'="'+n+'"'}),t+='<embed src="'+r+'" type="application/x-shockwave-flash" width="100%" height="100%"'+s+"></embed></object>"}d(t)&&t.parent().is(a.inner)||a.inner.append(t),l.trigger("beforeShow"),a.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),l._setDimension(),l.reposition(),l.isOpen=!1,l.coming=null,l.bindEvents(),l.isOpened?c.prevMethod&&l.transitions[c.prevMethod]():n(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),l.transitions[l.isOpened?a.nextMethod:a.openMethod](),l._preloadImages()}},_setDimension:function(){var t,e,o,r,s,a,c,u,h,d,p,v,y,_,b,w=l.getViewport(),x=0,T=!1,k=!1,j=l.wrap,C=l.skin,S=l.inner,E=l.current,P=E.width,O=E.height,M=E.minWidth,I=E.minHeight,A=E.maxWidth,z=E.maxHeight,N=E.scrolling,D=E.scrollOutside?E.scrollbarWidth:0,R=E.margin,B=m(R[1]+R[3]),F=m(R[0]+R[2]);if(j.add(C).add(S).width("auto").height("auto").removeClass("fancybox-tmp"),t=m(C.outerWidth(!0)-C.width()),e=m(C.outerHeight(!0)-C.height()),o=B+t,r=F+e,s=f(P)?(w.w-o)*m(P)/100:P,a=f(O)?(w.h-r)*m(O)/100:O,"iframe"===E.type){if(_=E.content,E.autoHeight&&1===_.data("ready"))try{_[0].contentWindow.document.location&&(S.width(s).height(9999),b=_.contents().find("body"),D&&b.css("overflow-x","hidden"),a=b.outerHeight(!0))}catch(t){}}else(E.autoWidth||E.autoHeight)&&(S.addClass("fancybox-tmp"),E.autoWidth||S.width(s),E.autoHeight||S.height(a),E.autoWidth&&(s=S.width()),E.autoHeight&&(a=S.height()),S.removeClass("fancybox-tmp"));if(P=m(s),O=m(a),h=s/a,M=m(f(M)?m(M,"w")-o:M),A=m(f(A)?m(A,"w")-o:A),I=m(f(I)?m(I,"h")-r:I),z=m(f(z)?m(z,"h")-r:z),c=A,u=z,E.fitToView&&
vendor: 5,685 bytes, line 9
9(A=Math.min(w.w-o,A),z=Math.min(w.h-r,z)),v=w.w-B,y=w.h-F,E.aspectRatio?(P>A&&(O=m((P=A)/h)),O>z&&(P=m((O=z)*h)),P<M&&(O=m((P=M)/h)),O<I&&(P=m((O=I)*h))):(P=Math.max(M,Math.min(P,A)),E.autoHeight&&"iframe"!==E.type&&(S.width(P),O=S.height()),O=Math.max(I,Math.min(O,z))),E.fitToView){if(S.width(P).height(O),j.width(P+t),d=j.width(),p=j.height(),E.aspectRatio)for(;(d>v||p>y)&&P>M&&O>I&&!(x++>19);)(P=m((O=Math.max(I,Math.min(z,O-10)))*h))<M&&(O=m((P=M)/h)),P>A&&(O=m((P=A)/h)),S.width(P).height(O),j.width(P+t),d=j.width(),p=j.height();else P=Math.max(M,Math.min(P,P-(d-v))),O=Math.max(I,Math.min(O,O-(p-y)))}D&&"auto"===N&&O<a&&P+t+D<v&&(P+=D),S.width(P).height(O),j.width(P+t),d=j.width(),p=j.height(),T=(d>v||p>y)&&P>M&&O>I,k=E.aspectRatio?P<c&&O<u&&P<s&&O<a:(P<c||O<u)&&(P<s||O<a),n.extend(E,{dim:{width:g(d),height:g(p)},origWidth:s,origHeight:a,canShrink:T,canExpand:k,wPadding:t,hPadding:e,wrapSpace:p-C.outerHeight(!0),skinSpace:C.height()-O}),!_&&E.autoHeight&&O>I&&O<z&&!k&&S.height("auto")},_getPosition:function(t){var e=l.current,n=l.getViewport(),o=e.margin,r=l.wrap.width()+o[1]+o[3],s=l.wrap.height()+o[0]+o[2],a={position:"absolute",top:o[0],left:o[3]};return e.autoCenter&&e.fixed&&!t&&s<=n.h&&r<=n.w?a.position="fixed":e.locked||(a.top+=n.y,a.left+=n.x),a.top=g(Math.max(a.top,a.top+(n.h-s)*e.topRatio)),a.left=g(Math.max(a.left,a.left+(n.w-r)*e.leftRatio)),a},_afterZoomIn:function(){var t=l.current;t&&(l.isOpen=l.isOpened=!0,l.wrap.css("overflow","visible").addClass("fancybox-opened"),l.update(),(t.closeClick||t.nextClick&&l.group.length>1)&&l.inner.css("cursor","pointer").bind("click.fb",function(e){n(e.target).is("a")||n(e.target).parent().is("a")||(e.preventDefault(),l[t.closeClick?"close":"next"]())}),t.closeBtn&&n(t.tpl.closeBtn).appendTo(l.skin).bind("click.fb",function(t){t.preventDefault(),l.close()}),t.arrows&&l.group.length>1&&((t.loop||t.index>0)&&n(t.tpl.prev).appendTo(l.outer).bind("click.fb",l.prev),(t.loop||t.index<l.group.length-1)&&n(t.tpl.next).appendTo(l.outer).bind("click.fb",l.next)),l.trigger("afterShow"),t.loop||t.index!==t.group.length-1?l.opts.autoPlay&&!l.player.isActive&&(l.opts.autoPlay=!1,l.play()):l.play(!1))},_afterZoomOut:function(t){t=t||l.current,n(".fancybox-wrap").trigger("onReset").remove(),n.extend(l,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),l.trigger("afterClose",t)}}),l.transitions={getOrigPosition:function(){var t=l.current,e=t.element,n=t.orig,o={},r=50,s=50,a=t.hPadding,c=t.wPadding,u=l.getViewport();return!n&&t.isDom&&e.is(":visible")&&!(n=e.find("img:first")).length&&(n=e),d(n)?(o=n.offset(),n.is("img")&&(r=n.outerWidth(),s=n.outerHeight())):(o.top=u.y+(u.h-s)*t.topRatio,o.left=u.x+(u.w-r)*t.leftRatio),("fixed"===l.wrap.css("position")||t.locked)&&(o.top-=u.y,o.left-=u.x),o={top:g(o.top-a*t.topRatio),left:g(o.left-c*t.leftRatio),width:g(r+c),height:g(s+a)}},step:function(t,e){var n,o,r=e.prop,s=l.current,a=s.wrapSpace,c=s.skinSpace;("width"===r||"height"===r)&&(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),l.isClosing&&(n=1-n),o=t-("width"===r?s.wPadding:s.hPadding),l.skin[r](m("width"===r?o:o-a*n)),l.inner[r](m("width"===r?o:o-a*n-c*n)))},zoomIn:function(){var t=l.current,e=t.pos,o=t.openEffect,r="elastic"===o,s=n.extend({opacity:1},e);delete s.position,r?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===o&&(e.opacity=.1),l.wrap.css(e).animate(s,{duration:"none"===o?0:t.openSpeed,easing:t.openEasing,step:r?this.step:null,complete:l._afterZoomIn})},zoomOut:function(){var t=l.current,e=t.closeEffect,n="elastic"===e,o={opacity:.1};n&&(o=this.getOrigPosition(),t.closeOpacity&&(o.opacity=.1)),l.wrap.animate(o,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:l._afterZoomOut})},changeIn:function(){var t,e=l.current,n=e.nextEffect,o=e.pos,r={opacity:1},s=l.direction;o.opacity=.1,"elastic"===n&&(t="down"===s||"up"===s?"top":"left","down"===s||"right"===s?(o[t]=g(m(o[t])-200),r[t]="+=200px"):(o[t]=g(m(o[t])+200),r[t]="-=200px")),"none"===n?l._afterZoomIn():l.wrap.css(o).animate(r,{duration:e.nextSpeed,easing:e.nextEasing,complete:l._afterZoomIn})},changeOut:function(){var t=l.previous,e=t.prevEffect,o={opacity:.1},r=l.direction;"elastic"===e&&(o["down"===r||"up"===r?"top":"left"]=("up"===r||"left"===r?"-":"+")+"=200px"),t.wrap.animate(o,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},l.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!h,fixed:!0},overlay:null,fixed:!1,el:n("html"),create:function(t){t=n.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=n('<div class="fancybox-overlay"></div>').appendTo(l.coming?l.coming.parent:t.parent),this.fixed=!1,t.fixed&&l.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=n.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(s.bind("resize.overlay",n.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(n(t.target).hasClass("fancybox-overlay"))return l.isActive?l.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;s.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),t=s.scrollTop(),e=s.scrollLeft(),this.el.removeClass("fancybox-lock"),s.scrollTop(t).scrollLeft(e)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var t,n="100%";
9this.overlay.width(n).height("100%"),c?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),a.width()>t&&(n=a.width())):a.width()>s.width()&&(n=a.width()),this.overlay.width(n).height(a.height())},onReady:function(t,e){var o=this.overlay;n(".fancybox-overlay").stop(!0,!0),o||this.create(t),t.locked&&this.fixed&&e.fixed&&(o||(this.margin=a.height()>s.height()&&n("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var o,r;e.locked&&(!1!==this.margin&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),o=s.scrollTop(),r=s.scrollLeft(),this.el.addClass("fancybox-lock"),s.scrollTop(o).scrollLeft(r)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!l.coming&&this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}},l.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,o,r=l.current,s=r.title,a=t.type;if(n.isFunction(s)&&(s=s.call(r.element,r)),p(s)&&""!==n.trim(s)){switch(e=n('<div class="fancybox-title fancybox-title-'+a+'-wrap">'+s+"</div>"),a){case"inside":o=l.skin;break;case"outside":o=l.wrap;break;case"over":o=l.inner;break;default:o=l.skin,e.appendTo("body"),c&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),l.current.margin[2]+=Math.abs(m(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](o)}}},n.fn.fancybox=function(t){var e,o=n(this),r=this.selector||"",s=function(s){var a,c,u=n(this).blur(),h=e;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||u.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",(c=u.attr(a))||(a="rel",c=u.get(0)[a]),c&&""!==c&&"nofollow"!==c&&(h=(u=(u=r.length?n(r):o).filter("["+a+'="'+c+'"]')).index(this)),t.index=h,!1!==l.open(u,t)&&s.preventDefault())};return e=(t=t||{}).index||0,r&&!1!==t.live?a.undelegate(r,"click.fb-start").delegate(r+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):o.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready(function(){var e,s,a,c;o===n.scrollbarWidth&&(n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),o=e.innerWidth()-e.height(99).innerWidth();return t.remove(),o}),o===n.support.fixedPosition&&(n.support.fixedPosition=(c=20===(a=n('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===a[0].offsetTop,a.remove(),c)),n.extend(l.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),e=n(t).width(),r.addClass("fancybox-lock-test"),s=n(t).width(),r.removeClass("fancybox-lock-test"),n("<style type='text/css'>.fancybox-margin{margin-right:"+(s-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),function(t){t.fn.sameHeight=function(r){var s=t.extend({skipClass:"same-height-ignore",leftEdgeClass:"same-height-left",rightEdgeClass:"same-height-right",elements:">*",flexible:!1,multiLine:!1,useMinHeight:!1,biggestHeight:!1},r);return this.each(function(){var r,a,l=t(this),c=l.find(s.elements).not("."+s.skipClass);if(c.length){h();var u=function(){a||(a=!0,h(),clearTimeout(r),r=setTimeout(function(){h(),setTimeout(function(){a=!1},10)},100))};s.flexible&&t(window).bind("resize orientationchange fontresize",u),t(window).bind("load",u)}function h(){var r,a,u,h;c.css(s.useMinHeight&&e?"minHeight":"height",""),s.multiLine?(a=t(),u=0,h=c.eq(0).offset().top,c.each(function(e){var l=t(this);l.offset().top===h?a=a.add(this):(r=n(a),u=Math.max(u,o(a,r,s)),a=l,h=l.offset().top)}),a.length&&(r=n(a),u=Math.max(u,o(a,r,s))),s.biggestHeight&&c.css(s.useMinHeight&&e?"minHeight":"height",u)):o(c,l,s)}})};var e=void 0!==document.documentElement.style.maxHeight;function n(e){var n=0;return e.each(function(){n=Math.max(n,t(this).outerHeight())}),n}function o(n,o,r){var s,a="number"==typeof o?o:o.height();return n.removeClass(r.leftEdgeClass).removeClass(r.rightEdgeClass).each(function(n){var l=t
9(this),c=0,u="border-box"===l.css("boxSizing")||"border-box"===l.css("-moz-box-sizing")||"border-box"===l.css("-webkit-box-sizing");"number"!=typeof o&&l.parents().each(function(){var e=t(this);if(o.is(this))return!1;c+=e.outerHeight()-e.height()}),(s=a-c-(u?0:l.outerHeight()-l.height()))>0&&l.css(r.useMinHeight&&e?"minHeight":"height",s)}),n.filter(":first").addClass(r.leftEdgeClass),n.filter(":last").addClass(r.rightEdgeClass),s}}(jQuery),jQuery.onFontResize=function(t){var e={trigger:function(e){t(window).trigger("fontresize",[e])}};return t(function(){var n="font-resize-frame-"+Math.floor(1e3*Math.random()),o=t("<iframe>").attr("id",n).addClass("font-resize-helper");if(o.css({width:"100em",height:"10px",position:"absolute",borderWidth:0,top:"-9999px",left:"-9999px"}).appendTo("body"),window.attachEvent&&!window.addEventListener)o.bind("resize",function(){t.onFontResize.trigger(o[0].offsetWidth/100)});else{var r=o[0].contentWindow.document;r.open(),r.write('<script>window.onload = function(){var em = parent.jQuery("#'+n+'")[0];window.onresize = function(){if(parent.jQuery.onFontResize){parent.jQuery.onFontResize.trigger(em.offsetWidth / 100);}}};</script>'),r.close()}e.initialSize=o[0].offsetWidth/100}),e}(jQuery),function(t){function e(e){this.options=t.extend({takeSizeFrom:".element",takeSize:"height",spacingProp:"padding-top",flexible:!0},e),this.init()}e.prototype={init:function(){for(var t,e=["left","right","top","bottom","margin","margin-top","margin-bottom","margin-left","margin-right","padding","padding-top","padding-bottom","padding-left","padding-right"],n=0;n<e.length;n++)e[n]===this.options.spacingProp&&(t=!0);if(this.options.holder&&void 0!==t&&(this.findElements(),this.setElemSpacing(),this.options.flexible))return this.attachEvents()},findElements:function(){this.elements={holder:t(this.options.holder),takeSizeFrom:t(this.options.takeSizeFrom)}},attachEvents:function(){this.bindHandlers(["onWindowResize"]),t(window).bind("resize orientationchange",this.onWindowResize)},onWindowResize:function(){this.destroyed||this.setElemSpacing()},bindHandlers:function(e){var n=this;t.each(e,function(t,e){var o=n[e];n[e]=function(){return o.apply(n,arguments)}})},setElemSpacing:function(){"width"===this.options.takeSize?this.elements.holder.css(this.options.spacingProp,this.elements.takeSizeFrom.outerWidth()):"height"===this.options.takeSize&&this.elements.holder.css(this.options.spacingProp,this.elements.takeSizeFrom.outerHeight())},destroy:function(){var e=this;e.options.flexible&&(e.destroyed=!0,t(window).unbind("resize orientationchange",e.onWindowResize)),e.elements.holder.css(this.options.spacingProp,""),e.elements.holder.removeData("setSpacing")}},t.fn.setSpacing=function(n){return this.each(function(){t(this).data("setSpacing",new e(t.extend(n,{holder:this})))})}}(jQuery),ResponsiveHelper=function(t){var e,n=[],o=t(window),r=!1;function s(){var r=o.width();r!==e&&(e=r,t.each(n,function(e,n){t.each(n.data,function(t,e){e.currentActive&&!a(e.range[0],e.range[1])&&(e.currentActive=!1,"function"==typeof e.disableCallback&&e.disableCallback())}),t.each(n.data,function(t,e){!e.currentActive&&a(e.range[0],e.range[1])&&(e.currentActive=!0,"function"==typeof e.enableCallback&&e.enableCallback())})}))}function a(t,n){var o,s="";return t>0&&(s+="(min-width: "+t+"px)"),n<1/0&&(s+=(s?" and ":"")+"(max-width: "+n+"px)"),o=s,window.matchMedia&&r?matchMedia(o).matches:window.styleMedia?styleMedia.matchMedium(o):window.media?media.matchMedium(o):e>=t&&e<=n}return window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?r=!0:window.matchMedia.toString().indexOf("native")>-1&&(r=!0)),o.bind("load resize orientationchange",s),{addRange:function(o){var r={data:{}};t.each(o,function(t,e){var n;r.data[t]={range:[parseInt((n=t.split(".."))[0],10)||-1/0,parseInt(n[1],10)||1/0].sort(function(t,e){return t-e}),enableCallback:e.on,disableCallback:e.off}}),n.push(r),e=null,s()}}}(jQuery),function(t){function e(e){this.options=t.extend({place:"",move:"inside",setClass:!1},e),this.init()}e.prototype={init:function(){this.options.holder&&(this.findElements(),this.setAnchor(),this.move(),this.setClass())},findElements:function(){this.elements={holder:t(this.options.holder),place:t(this.options.place)}},setAnchor:function(){this.anchorElem=t("<span>"),this.anchorElem.attr("data-anchor-id",this.elements.holder.data("moved-id")).insertBefore(this.elements.holder).css("display","none")},move:function(){var t=this,e={after:function(){t.elements.holder.insertAfter(t.elements.place)},before:function(){t.elements.holder.insertBefore(t.elements.place)},inside:function(){t.elements.place.prepend(t.elements.holder)}};void 0!==e[this.options.move]?e[this.options.move]():e.inside()},setClass:function(){this.options.setClass&&this.elements.holder.addClass(this.options.setClass)},destroy:function(){this.elements.holder.insertAfter(this.anchorElem).removeClass(this.options.setClass).removeData("moveElement"),this.anchorElem.remove(),n=[]}},t.fn.moveElement=function(o){return this.each(function(){n.push(this),t.each(n,function(e,o){e===n.length-1&&t(o).attr("data-moved-id",e+1)}),t(this).data("moveElement",new e(t.extend(o,{holder:this})))})};var n=[]}(jQuery),function(t){function e(e){this.options=t.extend({commentClass:".form-input-comments",commonLayoutWrapper:'<div class="contact-form-columns">',inputHolder:".form__group"},e),this.init()}e.prototype={init:function(){this.findElements(),this.wrapElements()},findElements:function(){this.holder=t(this.options.holder),this.comments=this.holder.find(this.options.commentClass),this.inputHolder=this.holder.find(this.options.inputHolder)},wrapElements:function(){this.comments.length&&(this.inputHolder.wrapAll(this.options.commonLayoutWrapper),this.comments.find("textarea").css({width:"",height:""}))},destroy:function(){this.comments.length&&this.inputHolder.unwrap(this.options.commonLayoutWrapper),this.holder.removeData("layoutContactForm")}},t.fn.layoutContactForm=function(n){return this.each(function(){void 0===t(this).data("layoutContactForm")&&t(this).data("layoutContactForm",new e(t.extend(n,{holder:this})))})}}
9(jQuery),function(t,e){function n(t,e){return t.innerHeight()>e.maxHeight}function o(e,n){for(;t.inArray(e.slice(-1),n.lastCharacter.remove)>-1;)e=e.slice(0,-1);return 0>t.inArray(e.slice(-1),n.lastCharacter.noEllipsis)&&(e+=n.ellipsis),e}function r(t){return{width:t.innerWidth(),height:t.innerHeight()}}function s(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function a(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function l(t){do t=t.previousSibling;while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function c(e,n,o){var r,s=e&&e[0];if(s){if(!o){if(3===s.nodeType)return s;if(t.trim(e.text()))return c(e.contents().last(),n)}for(r=l(s);!r;){if((e=e.parent()).is(n)||!e.length)return!1;r=l(e[0])}if(r)return c(t(r),n)}return!1}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var l,h=this,d=h.contents();h.data("dotdotdot")&&h.trigger("destroy.dot"),h.data("dotdotdot-style",h.attr("style")||""),h.css("word-wrap","break-word"),"nowrap"===h.css("white-space")&&h.css("white-space","normal"),h.bind_events=function(){return h.bind("update.dot",function(e,r){switch(h.removeClass("is-truncated"),e.preventDefault(),e.stopPropagation(),typeof p.height){case"number":p.maxHeight=p.height;break;case"function":p.maxHeight=p.height.call(h[0]);break;default:p.maxHeight=function(t){for(var e=t.innerHeight(),n=["paddingTop","paddingBottom"],o=0,r=n.length;r>o;o++){var s=parseInt(t.css(n[o]),10);isNaN(s)&&(s=0),e-=s}return e}(h)}p.maxHeight+=p.tolerance,void 0!==r&&(("string"==typeof r||"nodeType"in r&&1===r.nodeType)&&(r=t("<div />").append(r).contents()),r instanceof t&&(d=r)),(v=h.wrapInner('<div class="dotdotdot" />').children()).contents().detach().end().append(d.clone(!0)).find("br").replaceWith(" <br /> ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var l=!1,u=!1;return f.afterElement&&((l=f.afterElement.clone(!0)).show(),f.afterElement.detach()),n(v,p)&&(u="children"==p.wrap?function(t,e,o){var r=t.children(),s=!1;t.empty();for(var a=0,l=r.length;l>a;a++){var c=r.eq(a);if(t.append(c),o&&t.append(o),n(t,e)){c.remove(),s=!0;break}o&&o.detach()}return s}(v,p,l):function e(r,l,u,h,d){var p=!1;return r.contents().detach().each(function(){var f=t(this);if(void 0===this)return!0;if(f.is("script, .dotdotdot-keep"))r.append(f);else{if(p)return!0;r.append(f),!d||f.is(h.after)||f.find(h.after).length||r[r.is("a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](d),n(u,h)&&(p=3==this.nodeType?function(e,r,l,u,h){var d=e[0];if(!d)return!1;var p=a(d),f=-1!==p.indexOf(" ")?" ":"ã",m="letter"==u.wrap?"":f,g=p.split(m),v=-1,y=-1,_=0,b=g.length-1;for(u.fallbackToLetter&&0==_&&0==b&&(m="",b=(g=p.split(m)).length-1);b>=_&&(0!=_||0!=b);){var w=Math.floor((_+b)/2);if(w==y)break;y=w,s(d,g.slice(0,y+1).join(m)+u.ellipsis),l.children().each(function(){t(this).toggle().toggle()}),n(l,u)?(b=y,u.fallbackToLetter&&0==_&&0==b&&(m="",g=g[0].split(m),v=-1,y=-1,_=0,b=g.length-1)):(v=y,_=y)}if(-1==v||1==g.length&&0==g[0].length){var x=e.parent();e.detach();var T=h&&h.closest(x).length?h.length:0;if(x.contents().length>T?d=c(x.contents().eq(-1-T),r):(d=c(x,r,!0),T||x.detach()),d&&(p=o(a(d),u),s(d,p),T&&h)){var k=h.parent();t(d).parent().append(h),t.trim(k.html())||k.remove()}}else s(d,p=o(g.slice(0,v+1).join(m),u));return!0}(f,l,u,h,d):e(f,l,u,h,d)),p||d&&d.detach()}}),l.addClass("is-truncated"),p}(v,h,v,p,l)),v.replaceWith(v.contents()),v=null,t.isFunction(p.callback)&&p.callback.call(h[0],u,d),f.isTruncated=u,u}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(h[0],f.isTruncated),f.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(h[0],d),d}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),h.unwatch().unbind_events().contents().detach().end().append(d).attr("style",h.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),h},h.unbind_events=function(){return h.unbind(".dot"),h},h.watch=function(){if(h.unwatch(),"window"==p.watch){var e=t(window),n=e.width(),o=e.height();e.bind("resize.dot"+f.dotId,function(){n==e.width()&&o==e.height()&&p.windowResizeFix||(n=e.width(),o=e.height(),g&&clearInterval(g),g=setTimeout(function(){h.trigger("update.dot")},100))})}else m=r(h),g=setInterval(function(){if(h.is(":visible")){var t=r(h);m.width==t.width&&m.height==t.height||(h.trigger("update.dot"),m=t)}},500);return h},h.unwatch=function(){return t(window).unbind("resize.dot"+f.dotId),g&&clearInterval(g),h};var p=t.extend(!0,{},t.fn.dotdotdot.defaults,e),f={},m={},g=null,v=null;return p.lastCharacter.remove instanceof Array||(p.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),p.lastCharacter.n
9oEllipsis instanceof Array||(p.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),f.afterElement=!!(l=p.after)&&("string"==typeof l?!!(l=t(l,h)).length&&l:!!l.jquery&&l),f.isTruncated=!1,f.dotId=u++,h.data("dotdotdot",!0).bind_events().trigger("update.dot"),p.watch&&h.watch(),h},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","ã",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var u=1,h=t.fn.html;t.fn.html=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?this.trigger("update",[n]):h.apply(this,arguments)};var d=t.fn.text;t.fn.text=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?(n=t("<div />").text(n).html(),this.trigger("update",[n])):d.apply(this,arguments)}}}(jQuery),jQuery(document).ready(function(t){t(".dot-ellipsis").each(function(){var e=t(this).hasClass("dot-resize-update"),n=t(this).hasClass("dot-timer-update"),o=0,r=t(this).attr("class").split(/\s+/);t.each(r,function(t,e){var n=e.match(/^dot-height-(\d+)$/);null!==n&&(o=Number(n[1]))});var s={};n&&(s.watch=!0),e&&(s.watch="window"),o>0&&(s.height=o),t(this).dotdotdot(s)})}),jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")}),/*! 10* FitText.js 1.2 11* 12* Copyright 2011, Dave Rupert http://daverupert.com 13* Released under the WTFPL license 14* http://sam.zoy.org/wtfpl/ 15* 16* Date: Thu May 05 14:23:00 2011 -0600 17*/function(t){t.fn.fitText=function(e,n){var o=e||1,r=t.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},n);return this.each(function(){var e=t(this),n=function(){e.css("font-size",Math.max(Math.min(e.width()/(10*o),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};n(),t(window).on("resize.fittext orientationchange.fittext",n)})}}(jQuery),function(t){var e=/Windows Phone/.test(navigator.userAgent)||"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;function n(e){this.options=t.extend({heightProp:"height",recalcOnPageScroll:!1,setScrollTo:"",extraSpacing:0},e),this.init()}n.prototype={init:function(){for(var t,e=["height","max-height","maxHeight"],n=0;n<e.length;n++)e[n]===this.options.heightProp&&(t=!0);this.options.holder&&void 0!==t&&(this.findElements(),this.attachEvents(),this.setHeight())},findElements:function(){this.scrollAreaWrapper=t(this.options.holder),this.scrollArea=this.options.setScrollTo?this.scrollAreaWrapper.find(this.options.setScrollTo):this.scrollAreaWrapper},attachEvents:function(){if(!this.destroyed){var n=this,o=null;this.onResize=function(){n.setHeight()},this.onScroll=function(){clearTimeout(o),o=setTimeout(function(){n.setHeight()},2e3)},e?(t(window).on("orientationchange",this.onResize),t(window).on("touchend",this.onScroll)):(t(window).on("resize",this.onResize),this.options.recalcOnPageScroll&&t(window).on("scroll",this.onScroll))}},calcHeight:function(){var e=t(window),n=Math.round(this.scrollAreaWrapper.offset().top),o=(window.innerHeight,window.innerHeight),r=e.scrollTop();this.scrollAreaWrapperHeight=0,n>=r?this.scrollAreaWrapperHeight=o-(n-r)-this.options.extraSpacing:this.scrollAreaWrapperHeight=o-(n-this.options.extraSpacing)},setHeight:function(){this.destroyed||(this.calcHeight(),this.scrollArea.css(this.options.heightProp,this.scrollAreaWrapperHeight),this.scrollArea.css("overflow","auto"))},destroy:function(){var n=this;n.destroyed=!0,e?(t(window).off("orientationchange",this.onResize),t(window).off("touchend",this.onScroll)):(t(window).off("resize",this.onResize),this.options.recalcOnPageScroll&&t(window).off("scroll",this.onScroll)),this.scrollArea.css(this.options.heightProp,""),this.scrollArea.css("overflow",""),this.scrollAreaWrapper.removeData("scrollArea")}},t.fn.scrollArea=function(e){return this.each(function(){t(this).data("scrollArea",new n(t.extend(e,{holder:this})))})}}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.L={})}(this,function(t){"use strict";var e=Object.freeze;function n(t){var e,n,o,r;for(n=1,o=arguments.length;n<o;n++)for(e in r=arguments[n])t[e]=r[e];return t}Object.freeze=function(t){return t};var o=Object.create||function(t){return r.prototype=t,new r};function r(){}function s(t,e){var n=Array.prototype.slice;
17if(t.bind)return t.bind.apply(t,n.call(arguments,1));var o=n.call(arguments,2);return function(){return t.apply(e,o.length?o.concat(n.call(arguments)):arguments)}}var a=0;function l(t){return t._leaflet_id=t._leaflet_id||++a,t._leaflet_id}function c(t,e,n){var o,r,s,a;return a=function(){o=!1,r&&(s.apply(n,r),r=!1)},s=function(){o?r=arguments:(t.apply(n,arguments),setTimeout(a,e),o=!0)}}function u(t,e,n){var o=e[1],r=e[0],s=o-r;return t===o&&n?t:((t-r)%s+s)%s+r}function h(){return!1}function d(t,e){return+(Math.round(t+"e+"+(e=void 0===e?6:e))+"e-"+e)}function p(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return p(t).split(/\s+/)}function m(t,e){for(var n in t.hasOwnProperty("options")||(t.options=t.options?o(t.options):{}),e)t.options[n]=e[n];return t.options}function g(t,e,n){var o=[];for(var r in t)o.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(t[r]));return(e&&-1!==e.indexOf("?")?"&":"?")+o.join("&")}var v=/\{ *([\w_-]+) *\}/g;function y(t,e){return t.replace(v,function(t,n){var o=e[n];if(void 0===o)throw Error("No value provided for variable "+t);return"function"==typeof o&&(o=o(e)),o})}var _=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function b(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return -1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var T=0;function k(t){var e=+new Date,n=Math.max(0,16-(e-T));return T=e+n,window.setTimeout(t,n)}var j=window.requestAnimationFrame||x("RequestAnimationFrame")||k,C=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function S(t,e,n){if(!n||j!==k)return j.call(window,s(t,e));t.call(e)}function E(t){t&&C.call(window,t)}var P=(Object.freeze||Object)({freeze:e,extend:n,create:o,bind:s,lastId:a,stamp:l,throttle:c,wrapNum:u,falseFn:h,formatNum:d,trim:p,splitWords:f,setOptions:m,getParamString:g,template:y,isArray:_,indexOf:b,emptyImageUrl:w,requestFn:j,cancelFn:C,requestAnimFrame:S,cancelAnimFrame:E});function O(){}O.extend=function(t){function e(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var r=e.__super__=this.prototype,s=o(r);for(var a in(s.constructor=e).prototype=s,this)this.hasOwnProperty(a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&(n(e,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=_(t)?t:[t];for(var e=0;e<t.length;
vendor: 7,481 bytes, line 17
17e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",Error().stack)}}(t.includes),n.apply(null,[s].concat(t.includes)),delete t.includes),s.options&&(t.options=n(o(s.options),t.options)),n(s,t),s._initHooks=[],s.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=s._initHooks.length;t<e;t++)s._initHooks[t].call(this)}},e},O.include=function(t){return n(this.prototype,t),this},O.mergeOptions=function(t){return n(this.prototype.options,t),this},O.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push("function"==typeof t?t:function(){this[t].apply(this,e)}),this};var M={on:function(t,e,n){if("object"==typeof t)for(var o in t)this._on(o,t[o],e);else for(var r=0,s=(t=f(t)).length;r<s;r++)this._on(t[r],e,n);return this},off:function(t,e,n){if(t){if("object"==typeof t)for(var o in t)this._off(o,t[o],e);else for(var r=0,s=(t=f(t)).length;r<s;r++)this._off(t[r],e,n)}else delete this._events;return this},_on:function(t,e,n){this._events=this._events||{};var o=this._events[t];o||(o=[],this._events[t]=o),n===this&&(n=void 0);for(var r={fn:e,ctx:n},s=o,a=0,l=s.length;a<l;a++)if(s[a].fn===e&&s[a].ctx===n)return;s.push(r)},_off:function(t,e,n){var o,r,s;if(this._events&&(o=this._events[t])){if(e){if(n===this&&(n=void 0),o)for(r=0,s=o.length;r<s;r++){var a=o[r];if(a.ctx===n&&a.fn===e)return a.fn=h,this._firingCount&&(this._events[t]=o=o.slice()),void o.splice(r,1)}}else{for(r=0,s=o.length;r<s;r++)o[r].fn=h;delete this._events[t]}}},fire:function(t,e,o){if(!this.listens(t,o))return this;var r=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var a=0,l=s.length;a<l;a++){var c=s[a];c.fn.call(c.ctx||this,r)}this._firingCount--}}return o&&this._propagateEvent(r),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e){for(var o in this._eventParents)if(this._eventParents[o].listens(t,e))return!0}return!1},once:function(t,e,n){if("object"==typeof t){for(var o in t)this.once(o,t[o],e);return this}var r=s(function(){this.off(t,e,n).off(t,r,n)},this);return this.on(t,e,n).on(t,r,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[l(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[l(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};M.addEventListener=M.on,M.removeEventListener=M.clearAllEventListeners=M.off,M.addOneTimeEventListener=M.once,M.fireEvent=M.fire,M.hasEventListeners=M.listens;var I=O.extend(M);function A(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var z=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function N(t,e,n){return t instanceof A?t:_(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,n)}function D(t,e){if(t)for(var n=e?[t,e]:t,o=0,r=n.length;o<r;o++)this.extend(n[o])}function R(t,e){return!t||t instanceof D?t:new D(t,e)}function B(t,e){if(t)for(var n=e?[t,e]:t,o=0,r=n.length;o<r;o++)this.extend(n[o])}function F(t,e){return t instanceof B?t:new B(t,e)}function H(t,e,n){if(isNaN(t)||isNaN(e))throw Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function W(t,e,n){return t instanceof H?t:_(t)&&"object"!=typeof t[0]?3===t.length?new H(t[0],t[1],t[2]):2===t.length?new H(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new H(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new H(t,e,n)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(N(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(N(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(t){var e=(t=N(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=N(t)).x===this.x&&t.y===this.y},contains:function(t){return Math.abs((t=N(t)).x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+d(this.x)+", "+d(this.y)+")"}},D.prototype={extend:function(t){return t=N(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new A((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new A(this.min.x,this.max.y)},getTopRight:function(){return new A(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof A?N(t):R(t))instanceof D?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,n=this.max,o=t.min,r=t.max,s=r.x>=e.x&&o.x<=n.x,a=r.y>=e.y&&o.y<=n.y;return s&&a},overlaps:function(t){t=R(t);var e=this.min,n=this.max,o=t.min,r=t.max,s=r.x>e.x&&o.x<n.x,a=r.y>e.y&&o.y<n.y;return s&&a},isValid:function(){return!(!this.min||!this.max)}},B.prototype={extend:function(t){var e,n,o=this._southWest,r=this._northEast;if(t instanceof H)n=e=t;else{if(!(t instanceof B))return t?this.extend(W(t)||F(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return o||r?(o.lat=Math.min(e.lat,o.lat),o.lng=Math.min(e.lng,o.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new H(e.lat,e.lng),this._northEast=new H(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,o=Math.abs(e.lat-n.lat)*t,r=Math.abs(e.lng-n.lng)*t;return new B(new H(e.lat-o,e.lng-r),new H(n.lat+o,n.lng+r))},getCenter:function(){return new H((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
17,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof H||"lat"in t?W(t):F(t);var e,n,o=this._southWest,r=this._northEast;return t instanceof B?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=o.lat&&n.lat<=r.lat&&e.lng>=o.lng&&n.lng<=r.lng},intersects:function(t){t=F(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),r=t.getNorthEast(),s=r.lat>=e.lat&&o.lat<=n.lat,a=r.lng>=e.lng&&o.lng<=n.lng;return s&&a},overlaps:function(t){t=F(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),r=t.getNorthEast(),s=r.lat>e.lat&&o.lat<n.lat,a=r.lng>e.lng&&o.lng<n.lng;return s&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=F(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var Z,V={latLngToPoint:function(t,e){var n=this.projection.project(t),o=this.scale(e);return this.transformation._transform(n,o)},pointToLatLng:function(t,e){var n=this.scale(e),o=this.transformation.untransform(t,n);return this.projection.unproject(o)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new D(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:(H.prototype={equals:function(t,e){return!!t&&(t=W(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+d(this.lat,t)+", "+d(this.lng,t)+")"},distanceTo:function(t){return U.distance(this,W(t))},wrap:function(){return U.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new H(this.lat,this.lng,this.alt)}},!1),wrapLatLng:function(t){var e=this.wrapLng?u(t.lng,this.wrapLng,!0):t.lng;return new H(this.wrapLat?u(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),o=e.lat-n.lat,r=e.lng-n.lng;if(0==o&&0==r)return t;
17var s=t.getSouthWest(),a=t.getNorthEast();return new B(new H(s.lat-o,s.lng-r),new H(a.lat-o,a.lng-r))}},U=n({},V,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,o=t.lat*n,r=e.lat*n,s=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),l=s*s+Math.cos(o)*Math.cos(r)*a*a;return this.R*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)))}}),q={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,o=Math.sin(Math.max(Math.min(n,t.lat),-n)*e);return new A(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new H((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(Z=6378137*Math.PI,new D([-Z,-Z],[Z,Z]))};function Y(t,e,n,o){if(_(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=o}function G(t,e,n,o){return new Y(t,e,n,o)}Y.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new A((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Q,X=n({},U,{code:"EPSG:3857",projection:q,transformation:G(Q=.5/(Math.PI*q.R),.5,-Q,.5)}),K=n({},X,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function tt(t,e){var n,o,r,s,a,l,c="";for(n=0,r=t.length;n<r;n++){for(o=0,s=(a=t[n]).length;o<s;o++)c+=(o?"L":"M")+(l=a[o]).x+" "+l.y;c+=e?tE?"z":"x":""}return c||"M0 0"}var te=document.documentElement.style,tn="ActiveXObject"in window,ti=tn&&!document.addEventListener,to="msLaunchUri"in navigator&&!("documentMode"in document),tr=tO("webkit"),ts=tO("android"),ta=tO("android 2")||tO("android 3"),tl=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),tc=ts&&tO("Google")&&tl<537&&!("AudioNode"in window),tu=!!window.opera,th=tO("chrome"),td=tO("gecko")&&!tr&&!tu&&!tn,tp=!th&&tO("safari"),tf=tO("phantom"),tm="OTransition"in te,tg=0===navigator.platform.indexOf("Win"),tv=tn&&"transition"in te,ty="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ta,t_="MozPerspective"in te,tb=!window.L_DISABLE_3D&&(tv||ty||t_)&&!tm&&!tf,tw="undefined"!=typeof orientation||tO("mobile"),tx=!window.PointerEvent&&window.MSPointerEvent,tT=!(!window.PointerEvent&&!tx),tk=!window.L_NO_TOUCH&&(tT||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),tj=tw&&tu,tC=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),tS=!!document.createElement("canvas").getContext,tE=!(!document.createElementNS||!J("svg").createSVGRect),tP=!tE&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function tO(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var tM=(Object.freeze||Object)({ie:tn,ielt9:ti,edge:to,webkit:tr,android:ts,android23:ta,androidStock:tc,opera:tu,chrome:th,gecko:td,safari:tp,phantom:tf,opera12:tm,win:tg,ie3d:tv,webkit3d:ty,gecko3d:t_,any3d:tb,mobile:tw,mobileWebkit:tw&&tr,mobileWebkit3d:tw&&ty,msPointer:tx,pointer:tT,touch:tk,mobileOpera:tj,mobileGecko:tw&&td,retina:tC,canvas:tS,svg:tE,vml:tP}),tL=tx?"MSPointerDown":"pointerdown",tI=tx?"MSPointerMove":"pointermove",tA=tx?"MSPointerUp":"pointerup",tz=tx?"MSPointerCancel":"pointercancel",tN=["INPUT","SELECT","OPTION"],tD={},tR=!1,tB=0;function tF(t){tD[t.pointerId]=t,tB++}function tH(t){tD[t.pointerId]&&(tD[t.pointerId]=t)}function t$(t){delete tD[t.pointerId],tB--}function tW(t,e){for(var n in t.touches=[],tD)t.touches.push(tD[n]);t.changedTouches=[t],e(t)}var tZ,tV,tU,tq,tY,tG=tx?"MSPointerDown":tT?"pointerdown":"touchstart",tQ=tx?"MSPointerUp":tT?"pointerup":"touchend",tX="_leaflet_",tK=eo(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),tJ=eo(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),t0="webkitTransition"===tJ||"OTransition"===tJ?tJ+"End":"transitionend";function t1(t){return"string"==typeof t?document.getElementById(t):t}function t6(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);n=o?o[e]:null}return"auto"===n?null:n}function t4(t,e,n){var o=document.createElement(t);return o.className=e||"",n&&n.appendChild(o),o}function t2(t){var e=t.parentNode;e&&e.removeChild(t)}function t5(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function t8(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function t7(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function t3(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=en(t);return 0<n.length&&RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function t9(t,e){if(void 0!==t.classList)for(var n=f(e),o=0,r=n.length;o<r;o++)t.classList.add(n[o]);else if(!t3(t,e)){var s=en(t);ee(t,(s?s+" ":"")+e)}}function et(t,e){void 0!==t.classList?t.classList.remove(e):ee(t,p((" "+en(t)+" ").replace(" "+e+" "," ")))}function ee(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function en(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function ei(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,o="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(o)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+o+"(opacity="+e+")"}(t,e)}function eo(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function er(t,e,n){var o=e||new A(0,0);t.style[tK]=(tv?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function es(t,e){t._leaflet_pos=e,tb?er(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ea(t){return t._leaflet_pos||new A(0,0)}if("onselectstart"in document)tZ=function(){eg(window,"selectstart",ek)},tV=function(){ey(window,"selectstart",ek)};else{var el=eo(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);tZ=function(){if(el){var t=document.documentElement.style;tU=t[el],t[el]="none"}},tV=function(){el&&(document.documentElement.style[el]=tU,tU=void 0)}}function ec(){eg(window,"dragstart",ek)}function eu(){ey(window,"dragstart",ek)}function eh(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(ed(),tY=(tq=t).style.outline,t.style.outline="none",eg(window,"keydown",ed))}
17function ed(){tq&&(tq.style.outline=tY,tY=tq=void 0,ey(window,"keydown",ed))}function ep(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function ef(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var em=(Object.freeze||Object)({TRANSFORM:tK,TRANSITION:tJ,TRANSITION_END:t0,get:t1,getStyle:t6,create:t4,remove:t2,empty:t5,toFront:t8,toBack:t7,hasClass:t3,addClass:t9,removeClass:et,setClass:ee,getClass:en,setOpacity:ei,testProp:eo,setTransform:er,setPosition:es,getPosition:ea,disableTextSelection:tZ,enableTextSelection:tV,disableImageDrag:ec,enableImageDrag:eu,preventOutline:eh,restoreOutline:ed,getSizedParentNode:ep,getScale:ef});function eg(t,e,n,o){if("object"==typeof e)for(var r in e)e_(t,r,e[r],n);else for(var s=0,a=(e=f(e)).length;s<a;s++)e_(t,e[s],n,o);return this}var ev="_leaflet_events";function ey(t,e,n,o){if("object"==typeof e)for(var r in e)eb(t,r,e[r],n);else if(e)for(var s=0,a=(e=f(e)).length;s<a;s++)eb(t,e[s],n,o);else{for(var l in t[ev])eb(t,l,t[ev][l]);delete t[ev]}return this}function e_(t,e,n,o){var r=e+l(n)+(o?"_"+l(o):"");if(t[ev]&&t[ev][r])return this;var a=function(e){return n.call(o||t,e||window.event)},c=a;tT&&0===e.indexOf("touch")?function(t,e,n,o){var r,a,l,c,u,h;return"touchstart"===e?(r=t,a=s(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(0>tN.indexOf(t.target.tagName)))return;ek(t)}tW(t,n)}),r["_leaflet_touchstart"+o]=a,r.addEventListener(tL,a,!1),tR||(document.documentElement.addEventListener(tL,tF,!0),document.documentElement.addEventListener(tI,tH,!0),document.documentElement.addEventListener(tA,t$,!0),document.documentElement.addEventListener(tz,t$,!0),tR=!0)):"touchmove"===e?(l=t,c=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&tW(t,n)},l["_leaflet_touchmove"+o]=c,l.addEventListener(tI,c,!1)):"touchend"===e&&(u=t,h=function(t){tW(t,n)},u["_leaflet_touchend"+o]=h,u.addEventListener(tA,h,!1),u.addEventListener(tz,h,!1)),this}(t,e,a,r):!tk||"dblclick"!==e||tT&&th?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",a,!1):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,eI(t,e)&&c(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1)):("click"===e&&ts&&(a=function(t){!function(t,e){var n=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,o=eP&&n-eP;if(o&&100<o&&o<500||t.target._simulatedClick&&!t._simulated)return ej(t);eP=n,e(t)}(t,c)}),t.addEventListener(e,a,!1)):"attachEvent"in t&&t.attachEvent("on"+e,a):function(t,e,n){var o,r,s=!1;function a(t){var e;if(tT){if(!to||"mouse"===t.pointerType)return;e=tB}else e=t.touches.length;if(!(1<e)){var n=Date.now(),a=n-(o||n);r=t.touches?t.touches[0]:t,s=0<a&&a<=250,o=n}}function l(t){if(s&&!r.cancelBubble){if(tT){if(!to||"mouse"===t.pointerType)return;var n,a,l={};for(a in r)n=r[a],l[a]=n&&n.bind?n.bind(r):n;r=l}r.type="dblclick",r.button=0,e(r),o=null}}return t[tX+tG+n]=a,t[tX+tQ+n]=l,t[tX+"dblclick"+n]=e,t.addEventListener(tG,a,!1),t.addEventListener(tQ,l,!1),t.addEventListener("dblclick",e,!1),this}(t,a,r),t[ev]=t[ev]||{},t[ev][r]=a}function eb(t,e,n,o){var r,s=e+l(n)+(o?"_"+l(o):""),a=t[ev]&&t[ev][s];if(!a)return this;tT&&0===e.indexOf("touch")?(r=t["_leaflet_"+e+s],"touchstart"===e?t.removeEventListener(tL,r,!1):"touchmove"===e?t.removeEventListener(tI,r,!1):"touchend"===e&&(t.removeEventListener(tA,r,!1),t.removeEventListener(tz,r,!1))):!tk||"dblclick"!==e||tT&&th?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",a,!1):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a):function(t,e){var n=t[tX+tG+e],o=t[tX+tQ+e],r=t[tX+"dblclick"+e];return t.removeEventListener(tG,n,!1),t.removeEventListener(tQ,o,!1),to||t.removeEventListener("dblclick",r,!1),this}(t,s),t[ev][s]=null}function ew(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,eL(t),this}function ex(t){return e_(t,"mousewheel",ew),this}function eT(t){return eg(t,"mousedown touchstart dblclick",ew),e_(t,"click",eM),this}function ek(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function ej(t){return ek(t),ew(t),this}function eC(t,e){if(!e)return new A(t.clientX,t.clientY);var n=ef(e),o=n.boundingClientRect;return new A((t.clientX-o.left)/n.x-e.clientLeft,(t.clientY-o.top)/n.y-e.clientTop)}var eS=tg&&th?2*window.devicePixelRatio:td?window.devicePixelRatio:1;function eE(t){return to?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/eS:t.deltaY&&1===t.deltaMode?-(20*t.deltaY):t.deltaY&&2===t.deltaMode?-(60*t.deltaY):t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&32765>Math.abs(t.detail)?-(20*t.detail):t.detail?-(60*(t.detail/32765)):0}var eP,eO={};function eM(t){eO[t.type]=!0}function eL(t){var e=eO[t.type];return eO[t.type]=!1,e}function eI(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var eA=(Object.freeze||Object)({on:eg,off:ey,stopPropagation:ew,disableScrollPropagation:ex,disableClickPropagation:eT,preventDefault:ek,stop:ej,getMousePosition:eC,getWheelDelta:eE,fakeStop:eM,skipped:eL,isExternalTarget:eI,addListener:eg,removeListener:ey}),ez=I.extend({run:function(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=ea(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=S(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),es(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),eN=I.extend({options:{crs:X,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=m(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(W(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=tJ&&tb&&!tj&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),eg(this._proxy,t0,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 1,299 bytes, line 17
17,setView:function(t,e,o){return(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(W(t),e,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&!0!==o&&(void 0!==o.animate&&(o.zoom=n({animate:o.animate},o.zoom),o.pan=n({animate:o.animate,duration:o.duration},o.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,o.zoom):this._tryAnimatedPan(t,o.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(tb?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(tb?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var o=this.getZoomScale(e),r=this.getSize().divideBy(2),s=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(r).multiplyBy(1-1/o),a=this.containerPointToLatLng(r.add(s));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():F(t);var n=N(e.paddingTopLeft||e.padding||[0,0]),o=N(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,!1,n.add(o));if((r="number"==typeof e.maxZoom?Math.min(e.maxZoom,r):r)===1/0)return{center:t.getCenter(),zoom:r};
17var s=o.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),r),l=this.project(t.getNorthEast(),r);return{center:this.unproject(a.add(l).divideBy(2).add(s),r),zoom:r}},fitBounds:function(t,e){if(!(t=F(t)).isValid())throw Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=N(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ez,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){t9(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!tb)return this.setView(t,e,n);this._stop();var o=this.project(this.getCenter()),r=this.project(t),s=this.getSize(),a=this._zoom;t=W(t),e=void 0===e?a:e;var l=Math.max(s.x,s.y),c=l*this.getZoomScale(a,e),u=r.distanceTo(o)||1;function h(t){var e=(c*c-l*l+(t?-1:1)*2.0164*2.0164*u*u)/(2*(t?c:l)*2.0164*u),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}var f=h(0),m=Date.now(),g=(h(1)-f)/1.42,v=n.duration?1e3*n.duration:1e3*g*.8;return this._moveStart(!0,n.noMoveStart),(function n(){var s,c=(Date.now()-m)/v,h=(1-Math.pow(1-c,1.5))*g;c<=1?(this._flyToFrame=S(n,this),this._move(this.unproject(o.add(r.subtract(o).multiplyBy(l*(p(f)*(d(s=f+1.42*h)/p(s))-d(f))/2.0164/u)),a),this.get
vendor: 12,893 bytes, line 17
17ScaleZoom(l/(l*(p(f)/p(f+1.42*h))),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}).call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return(t=F(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,F(t));return n.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=N((e=e||{}).paddingTopLeft||e.padding||[0,0]),o=N(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),s=this.project(r),a=this.project(t),l=this.getPixelBounds(),c=l.getSize().divideBy(2),u=R([l.min.add(n),l.max.subtract(o)]);if(!u.contains(a)){this._enforcingBounds=!0;var h=s.subtract(a),d=N(a.x+h.x,a.y+h.y);(a.x<u.min.x||a.x>u.max.x)&&(d.x=s.x-h.x,0<h.x?d.x+=c.x-n.x:d.x-=c.x-o.x),(a.y<u.min.y||a.y>u.max.y)&&(d.y=s.y-h.y,0<h.y?d.y+=c.y-n.y:d.y-=c.y-o.y),this.panTo(this.unproject(d),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),r=e.divideBy(2).round(),a=o.divideBy(2).round(),l=r.subtract(a);return l.x||l.y?(t.animate&&t.pan?this.panBy(l):(t.pan&&this._rawPanBy(l),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=s(this._handleGeolocationResponse,this),o=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,o,t):navigator.geolocation.getCurrentPosition(e,o,t),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=t.code,n=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: "+n+"."})},_handleGeolocationResponse:function(t){var e=new H(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),o=this._locateOptions;if(o.setView){var r=this.getBoundsZoom(n);this.setView(e,o.maxZoom?Math.min(r,o.maxZoom):r)}var s={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(s[a]=t.coords[a]);this.fire("locationfound",s)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){var t;if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw 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(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),t2(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)t2(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=t4("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},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 B(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,n){t=F(t),n=N(n||[0,0]);var o=this.getZoom()||0,r=this.getMinZoom(),s=this.getMaxZoom(),a=t.getNorthWest(),l=t.getSouthEast(),c=this.getSize().subtract(n),u=R(this.project(l,o),this.project(a,o)).getSize(),h=tb?this.options.zoomSnap:1,d=c.x/u.x,p=c.y/u.y;return o=this.getScaleZoom(e?Math.max(d,p):Math.min(d,p),o),h&&(o=Math.round(o/(h/100))*(h/100),o=e?Math.ceil(o/h)*h:Math.floor(o/h)*h),Math.max(r,Math.min(s,o))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new D(n,n.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 n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var o=n.zoom(t*n.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(W(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(N(t),e)},layerPointToLatLng:function(t){var e=N(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(W(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(W(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(W(t),W(e))},containerPointToLayerPoint:function(t){return N(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return N(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(N(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(W(t)))},mouseEventToContainerPoint:function(t){return eC(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=t1(t);if(!e)throw Error("Map container not found.");if(e._leaflet_id)throw Error("Map container is already initialized.");eg(e,"scroll",this._onScroll,this),this._containerId=l(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&tb,t9(t,"leaflet-container"+(tk?" leaflet-touch":"")+(tC?" leaflet-retina":"")+(ti?" leaflet-oldie":"")+(tp?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=t6(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),es(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(t9(t.markerPane,"leaflet-zoom-hide"),t9(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){es(this._mapPane,new A(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,!1)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){es(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 Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?ey:eg;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),tb&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=S(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 n,o=[],r="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((n=this._targets[l(s)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)&&(r&&!eI(s,t)||(o.push(n),r))||s===this._container)break;s=s.parentNode}return o.length||a||r||!eI(s,t)||(o=[this]),o},_handleDOMEvent:function(t){if(this._loaded&&!eL(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||eh(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,o){if("click"===t.type){var r=n({},t);r.type="preclick",this._fireDOMEvent(r,r.type,o)}if(!t._stopped&&(o=(o||[]).concat(this._findEventTargets(t,e))).length){var s=o[0];"contextmenu"===e&&s.listens(e,!0)&&ek(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var l=s.getLatLng&&(!s._radius||s._radius<=10);a.containerPoint=l?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=l?s.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var c=0;c<o.length;c++)if(o[c].fire(e,a,!0),a.originalEvent._stopped||!1===o[c].options.bubblingMouseEvents&&-1!==b(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return ea(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var o=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,n){var o=this._getNewPixelOrigin(n,e);
17return R([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var o=this.project(t,e),r=this.getSize().divideBy(2),s=new D(o.subtract(r),o.add(r)),a=this._getBoundsOffset(s,n,e);return a.round().equals([0,0])?t:this.unproject(o.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),o=new D(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,n){var o=R(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),r=o.min.subtract(t.min),s=o.max.subtract(t.max);return new A(this._rebound(r.x,-s.x),this._rebound(r.y,-s.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),o=tb?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){et(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=t4("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=this._proxy.style[tK];er(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[tK]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),e=this.getZoom();er(this._proxy,this.project(t,e),this.getZoomScale(e,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){t2(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/o);return!(!0!==n.animate&&!this.getSize().contains(r))&&(S(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,t9(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&et(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),S(function(){this._moveEnd(!0)},this))}});function eD(t){return new eR(t)}var eR=O.extend({options:{position:"topright"},initialize:function(t){m(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),n=this.getPosition(),o=t._controlCorners[n];return t9(e,"leaflet-control"),-1!==n.indexOf("bottom")?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(t2(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<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}});eN.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this}
vendor: 5,218 bytes, line 17
17,_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=t4("div",e+"control-container",this._container);function o(o,r){t[o+r]=t4("div",e+o+" "+e+r,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)t2(this._controlCorners[t]);t2(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var eB=eR.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,o){return n<o?-1:o<n?1:0}},initialize:function(t,e,n){for(var o in m(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[o],o);for(o in e)this._addLayer(e[o],o,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return eR.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(l(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){t9(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(t9(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):et(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return et(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=t4("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),eT(e),ex(e);var o=this._section=t4("section",t+"-list");n&&(this._map.on("click",this.collapse,this),ts||eg(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var r=this._layersLink=t4("a",t+"-toggle",e);r.href="#",r.title="Layers",tk?(eg(r,"click",ej),eg(r,"click",this.expand,this)):eg(r,"focus",this.expand,this),n||this.expand(),this._baseLayersList=t4("div",t+"-base",o),this._separator=t4("div",t+"-separator",o),this._overlaysList=t4("div",t+"-overlays",o),e.appendChild(o)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&l(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(s(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;t5(this._baseLayersList),t5(this._overlaysList),this._layerControlInputs=[];var t,e,n,o,r=0;for(n=0;n<this._layers.length;n++)o=this._layers[n],this._addItem(o),e=e||o.overlay,t=t||!o.overlay,r+=o.overlay?0:1;return this.options.hideSingleBase&&(t=t&&1<r,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(l(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n=document.createElement("div");return n.innerHTML='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n.firstChild},_addItem:function(t){var e,n=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=o):e=this._createRadioElement("leaflet-base-layers_"+l(this),o),this._layerControlInputs.push(e),e.layerId=l(t.layer),eg(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var s=document.createElement("div");return n.appendChild(s),s.appendChild(e),s.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,o=[],r=[];this._handlingClick=!0;for(var s=n.length-1;0<=s;s--)t=n[s],e=this._getLayer(t.layerId).layer,t.checked?o.push(e):t.checked||r.push(e);for(s=0;s<r.length;s++)this._map.hasLayer(r[s])&&this._map.removeLayer(r[s]);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])||this._map.addLayer(o[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,o=this._map.getZoom(),r
17=n.length-1;0<=r;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&o<e.options.minZoom||void 0!==e.options.maxZoom&&o>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),eF=eR.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=t4("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},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._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,o,r){var s=t4("a",n,o);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),eT(s),eg(s,"click",ej),eg(s,"click",r,this),eg(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";et(this._zoomInButton,e),et(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&t9(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&t9(this._zoomInButton,e)}});eN.mergeOptions({zoomControl:!0}),eN.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new eF,this.addControl(this.zoomControl))});var eH=eR.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=t4("div",e),o=this.options;return this._addScales(o,e+"-line",n),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=t4("div",e,n)),t.imperial&&(this._iScale=t4("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_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,n,o,r=3.2808399*t;5280<r?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(o=this._getRoundNum(r),this._updateScale(this._iScale,o+" ft",o/r))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=10<=n?10:5<=n?5:3<=n?3:2<=n?2:1)}}),e$=eR.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){m(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=t4("div","leaflet-control-attribution"),eT(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},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=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});eN.mergeOptions({attributionControl:!0}),eN.addInitHook(function(){this.options.attributionControl&&(new e$).addTo(this)}),eR.Layers=eB,eR.Zoom=eF,eR.Scale=eH,eR.Attribution=e$,eD.layers=function(t,e,n){return new eB(t,e,n)},eD.zoom=function(t){return new eF(t)},eD.scale=function(t){return new eH(t)},eD.attribution=function(t){return new e$(t)};var eW=O.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}});eW.addTo=function(t,e){return t.addHandler(e,this),this};var eZ,eV=tk?"touchstart mousedown":"mousedown",eU={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},eq={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},eY=I.extend({options:{clickTolerance:3},initialize:function(t,e,n,o){m(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n}
17,enable:function(){this._enabled||(eg(this._dragStartTarget,eV,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(eY._dragging===this&&this.finishDrag(),ey(this._dragStartTarget,eV,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!t3(this._element,"leaflet-zoom-anim")&&!(eY._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((eY._dragging=this)._preventOutline&&eh(this._element),ec(),tZ(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,n=ep(this._element);this._startPoint=new A(e.clientX,e.clientY),this._parentScale=ef(n),eg(document,eq[t.type],this._onMove,this),eg(document,eU[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled){if(t.touches&&1<t.touches.length)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new A(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,ek(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=ea(this._element).subtract(n),t9(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),t9(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,E(this._animRequest),this._lastEvent=t,this._animRequest=S(this._updatePosition,this,!0)))}}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),es(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in et(document.body,"leaflet-dragging"),this._lastTarget&&(et(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),eq)ey(document,eq[t],this._onMove,this),ey(document,eU[t],this._onUp,this);eu(),tV(),this._moved&&this._moving&&(E(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,eY._dragging=!1}});function eG(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=function(t,e){var n=t.length,o=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(n);o[0]=o[n-1]=1,function t(e,n,o,r,s){var a,l,c,u=0;for(l=r+1;l<=s-1;l++)u<(c=e0(e[l],e[r],e[s],!0))&&(a=l,u=c);o<u&&(n[a]=1,t(e,n,o,r,a),t(e,n,o,a,s))}(t,o,e,0,n-1);var r,s=[];for(r=0;r<n;r++)o[r]&&s.push(t[r]);return s}(t=function(t,e){for(var n,o,r,s,a=[t[0]],l=1,c=0,u=t.length;l<u;l++)n=t[l],e<(r=(o=t[c]).x-n.x)*r+(s=o.y-n.y)*s&&(a.push(t[l]),c=l);return c<u-1&&a.push(t[u-1]),a}(t,n),n)}function eQ(t,e,n){return Math.sqrt(e0(t,e,n,!0))}function eX(t,e,n,o,r){var s,a,l,c=o?eZ:eJ(t,n),u=eJ(e,n);for(eZ=u;;){if(!(c|u))return[t,e];if(c&u)return!1;l=eJ(a=eK(t,e,s=c||u,n,r),n),s===c?(t=a,c=l):(e=a,u=l)}}function eK(t,e,n,o,r){var s,a,l=e.x-t.x,c=e.y-t.y,u=o.min,h=o.max;return 8&n?(s=t.x+l*(h.y-t.y)/c,a=h.y):4&n?(s=t.x+l*(u.y-t.y)/c,a=u.y):2&n?(s=h.x,a=t.y+c*(h.x-t.x)/l):1&n&&(s=u.x,a=t.y+c*(u.x-t.x)/l),new A(s,a,r)}function eJ(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function e0(t,e,n,o){var r,s=e.x,a=e.y,l=n.x-s,c=n.y-a,u=l*l+c*c;return 0<u&&(1<(r=((t.x-s)*l+(t.y-a)*c)/u)?(s=n.x,a=n.y):0<r&&(s+=l*r,a+=c*r)),l=t.x-s,c=t.y-a,o?l*l+c*c:new A(s,a)}function e1(t){return!_(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function e6(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),e1(t)}var e4=(Object.freeze||Object)({simplify:eG,pointToSegmentDistance:eQ,closestPointOnSegment:function(t,e,n){return e0(t,e,n)},clipSegment:eX,_getEdgeIntersection:eK,_getBitCode:eJ,_sqClosestPointOnSegment:e0,isFlat:e1,_flat:e6});function e2(t,e,n){var o,r,s,a,l,c,u,h,d,p=[1,4,2,8];for(r=0,u=t.length;r<u;r++)t[r]._code=eJ(t[r],e);for(a=0;a<4;a++){for(h=p[a],o=[],r=0,s=(u=t.length)-1;r<u;s=r++)l=t[r],c=t[s],l._code&h?c._code&h||((d=eK(c,l,h,e,n))._code=eJ(d,e),o.push(d)):(c._code&h&&((d=eK(c,l,h,e,n))._code=eJ(d,e),o.push(d)),o.push(l));t=o}return t}var e5,e8=(Object.freeze||Object)({clipPolygon:e2}),e7={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new H(t.y,t.x)},bounds:new D([-180,-90],[180,90])},e3={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,o=t.lat*e,r=this.R_MINOR/n,s=Math.sqrt(1-r*r),a=s*Math.sin(o);return o=-n*Math.log(Math.max(Math.tan(Math.PI/4-o/2)/Math.pow((1-a)/(1+a),s/2),1e-10)),new A(t.lng*e*n,o)},unproject:function(t){for(var e,n=180/Math.PI,o=this.R,r=this.R_MINOR/o,s=Math.sqrt(1-r*r),a=Math.exp(-t.y/o),l=Math.PI/2-2*Math.atan(a),c=0,u=.1;c<15&&1e-7<Math.abs(u);c++)e=Math.pow((1-(e=s*Math.sin(l)))/(1+e),s/2),l+=u=Math.PI/2-2*Math.atan(a*e)-l;return new H(l*n,t.x*n/o)}},e9=(Object.freeze||Object)({LonLat:e7,Mercator:e3,SphericalMercator:q}),nt=n({}
vendor: 11,938 bytes, line 17
17,U,{code:"EPSG:3395",projection:e3,transformation:G(e5=.5/(Math.PI*e3.R),.5,-e5,.5)}),ne=n({},U,{code:"EPSG:4326",projection:e7,transformation:G(1/180,1,-1/180,.5)}),nn=n({},V,{projection:e7,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(n*n+o*o)},infinite:!0});V.Earth=U,V.EPSG3395=nt,V.EPSG3857=X,V.EPSG900913=K,V.EPSG4326=ne,V.Simple=nn;var ni=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[l(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[l(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});eN.include({addLayer:function(t){if(!t._layerAdd)throw Error("The provided object is not a Layer.");var e=l(t);return this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=l(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return!!t&&l(t) in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?_(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[l(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=l(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var o in this._zoomBoundLayers){var r=this._zoomBoundLayers[o].options;t=void 0===r.minZoom?t:Math.min(t,r.minZoom),e=void 0===r.maxZoom?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var no=ni.extend({initialize:function(t,e){var n,o;if(m(this,e),this._layers={},t)for(n=0,o=t.length;n<o;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t) in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,o=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,o);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return l(t)}}),nr=no.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),no.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),no.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new B;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),ns=O.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){m(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(o,t),o},_setIconStyles:function(t,e){var n=this.options,o=n[e+"Size"];"number"==typeof o&&(o=[o,o]);var r=N(o),s=N("shadow"===e&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return tC&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),na=ns.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return na.imagePath||(na.imagePath=this._detectIconPath()),(this.options.imagePath||na.imagePath)+ns.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=t4("div","leaflet-default-icon-path",document.body),e=t6(t,"background-image")||t6(t,"backgroundImage");return document.body.removeChild(t),e=null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),nl=eW.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new eY(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),t9(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&et(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,o=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,s=ea(e._icon),a=n.getPixelBounds(),l=n.getPixelOrigin(),c=R(a.min._subtract(l).add(r),a.max._subtract(l).subtract(r));if(!c.contains(s)){var u=N((Math.max(c.max.x,s.x)-c.max.x)/(a.max.x-c.max.x)-(Math.min(c.min.x,s.x)-c.min.x)/(a.min.x-c.min.x),(Math.max(c.max.y,s.y)-c.max.y)/(a.max.y-c.max.y)-(Math.min(c.min.y,s.y)-c.min.y)/(a.min.y-c.min.y)).multiplyBy(o);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),es(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=S(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=S(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,o=ea(e._icon),r=e._map.layerPointToLatLng(o);n&&es(n,o),e._latlng=r,t.latlng=r,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),nc=ni.extend({options:{icon:new na,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){m(this,e),this._latlng=W(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=W(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),t9(n,e),t.keyboard&&(n.tabIndex="0"),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var r=t.icon.createShadow(this._shadow),s=!1;r!==this._shadow&&(this._removeShadow(),s=!0),r&&(t9(r,e),r.alt=""),this._shadow=r,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),t2(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&t2(this._shadow),this._shadow=null},_setPos:function(t){es(this._icon,t),this._shadow&&es(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(t9(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),nl)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new nl(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ei(this._icon,t),this._shadow&&ei(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),nu=ni.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
17illRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return m(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t.hasOwnProperty("weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),nh=nu.extend({options:{fill:!0,radius:10},initialize:function(t,e){m(this,e),this._latlng=W(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=W(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}
vendor: 4,900 bytes, line 17
17,setStyle:function(t){var e=t&&t.radius||this._radius;return nu.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),o=[t+n,e+n];this._pxBounds=new D(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),nd=nh.extend({initialize:function(t,e,o){if("number"==typeof e&&(e=n({},o,{radius:e})),m(this,e),this._latlng=W(t),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new B(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:nu.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===U.distance){var r=Math.PI/180,s=this._mRadius/U.R/r,a=n.project([e+s,t]),l=n.project([e-s,t]),c=a.add(l).divideBy(2),u=n.unproject(c).lat,h=Math.acos((Math.cos(s*r)-Math.sin(e*r)*Math.sin(u*r))/(Math.cos(e*r)*Math.cos(u*r)))/r;(isNaN(h)||0===h)&&(h=s/Math.cos(Math.PI/180*e)),this._point=c.subtract(n.getPixelOrigin()),this._radius=isNaN(h)?0:c.x-n.project([u,t-h]).x,this._radiusY=c.y-a.y}else{var d=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}}),np=nu.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){m(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,o=1/0,r=null,s=e0,a=0,l=this._parts.length;a<l;a++)for(var c=this._parts[a],u=1,h=c.length;u<h;u++){var d=s(t,e=c[u-1],n=c[u],!0);d<o&&(o=d,r=s(t,e,n))}return r&&(r.distance=Math.sqrt(o)),r},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");var t,e,n,o,r,s,a,l=this._rings[0],c=l.length;if(!c)return null;for(e=t=0;t<c-1;t++)e+=l[t].distanceTo(l[t+1])/2;if(0===e)return this._map.layerPointToLatLng(l[0]);for(o=t=0;t<c-1;t++)if(r=l[t],s=l[t+1],e<(o+=n=r.distanceTo(s)))return a=(o-e)/n,this._map.layerPointToLatLng([s.x-a*(s.x-r.x),s.y-a*(s.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=W(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new B,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return e1(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=e1(t),o=0,r=t.length;o<r;o++)n?(e[o]=W(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new D;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new A(t,t);this._pxBounds=new D([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var o,r,s=t[0]instanceof H,a=t.length;if(s){for(r=[],o=0;o<a;o++)r[o]=this._map.latLngToLayerPoint(t[o]),n.extend(r[o]);e.push(r)}else for(o=0;o<a;o++)this._projectLatlngs(t[o],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else{var e,n,o,r,s,a,l,c=this._parts;for(o=e=0,r=this._rings.length;e<r;e++)for(n=0,s=(l=this._rings[e]).length;n<s-1;n++)(a=eX(l[n],l[n+1],t,n,!0))&&(c[o]=c[o]||[],c[o].push(a[0]),a[1]===l[n+1]&&n!==s-2||(c[o].push(a[1]),o++))}}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,o=t.length;n<o;n++)t[n]=eG(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,o,r,s,a,l,c=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,s=this._parts.length;n<s;n++)for(o=0,r=(a=(l=this._parts[n]).length)-1;o<a;r=o++)if((e||0!==o)&&eQ(t,l[r],l[o])<=c)return!0;return!1}});np._flat=e6;var nf=np.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 51,462 bytes, line 17
17,getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");var t,e,n,o,r,s,a,l,c,u=this._rings[0],h=u.length;if(!h)return null;for(s=a=l=0,t=0,e=h-1;t<h;e=t++)n=u[t],o=u[e],r=n.y*o.x-o.y*n.x,a+=(n.x+o.x)*r,l+=(n.y+o.y)*r,s+=3*r;return c=0===s?u[0]:[a/s,l/s],this._map.layerPointToLatLng(c)},_convertLatLngs:function(t){var e=np.prototype._convertLatLngs.call(this,t),n=e.length;return 2<=n&&e[0]instanceof H&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){np.prototype._setLatLngs.call(this,t),e1(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return e1(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new A(e,e);if(t=new D(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else for(var o,r=0,s=this._rings.length;r<s;r++)(o=e2(this._rings[r],t,!0)).length&&this._parts.push(o)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,o,r,s,a,l,c,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,l=this._parts.length;r<l;r++)for(s=0,a=(c=(e=this._parts[r]).length)-1;s<c;a=s++)n=e[s],o=e[a],n.y>t.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(u=!u);return u||np.prototype._containsPoint.call(this,t,!0)}}),nm=nr.extend({initialize:function(t,e){m(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,o,r=_(t)?t:t.features;if(r){for(e=0,n=r.length;e<n;e++)((o=r[e]).geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var a=ng(t,s);return a?(a.feature=nx(t),a.defaultOptions=a.options,this.resetStyle(a),s.onEachFeature&&s.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function ng(t,e){var n,o,r,s,a="Feature"===t.type?t.geometry:t,l=a?a.coordinates:null,c=[],u=e&&e.pointToLayer,h=e&&e.coordsToLatLng||nv;if(!l&&!a)return null;switch(a.type){case"Point":return n=h(l),u?u(t,n):new nc(n);case"MultiPoint":for(r=0,s=l.length;r<s;r++)n=h(l[r]),c.push(u?u(t,n):new nc(n));return new nr(c);case"LineString":case"MultiLineString":return o=ny(l,"LineString"===a.type?0:1,h),new np(o,e);case"Polygon":case"MultiPolygon":return o=ny(l,"Polygon"===a.type?1:2,h),new nf(o,e);case"GeometryCollection":for(r=0,s=a.geometries.length;r<s;r++){var d=ng({geometry:a.geometries[r],type:"Feature",properties:t.properties},e);d&&c.push(d)}return new nr(c);default:throw Error("Invalid GeoJSON object.")}}function nv(t){return new H(t[1],t[0],t[2])}function ny(t,e,n){for(var o=[],r=0,s=t.length;r<s;r++)o.push(e?ny(t[r],e-1,n):(n||nv)(t[r]));return o}function n_(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[d(t.lng,e),d(t.lat,e),d(t.alt,e)]:[d(t.lng,e),d(t.lat,e)]}function nb(t,e,n,o){for(var r=[],s=0,a=t.length;s<a;s++)r.push(e?nb(t[s],e-1,n,o):n_(t[s],o));return!e&&n&&r.push(r[0]),r}function nw(t,e){return t.feature?n({},t.feature,{geometry:e}):nx(e)}function nx(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var nT={toGeoJSON:function(t){return nw(this,{type:"Point",coordinates:n_(this.getLatLng(),t)})}};function nk(t,e){return new nm(t,e)}nc.include(nT),nd.include(nT),nh.include(nT),np.include({toGeoJSON:function(t){var e=!e1(this._latlngs);return nw(this,{type:(e?"Multi":"")+"LineString",coordinates:nb(this._latlngs,e?1:0,!1,t)})}}),nf.include({toGeoJSON:function(t){var e=!e1(this._latlngs),n=e&&!e1(this._latlngs[0]),o=nb(this._latlngs,n?2:e?1:0,!0,t);return e||(o=[o]),nw(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),no.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),nw(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,o=[];return this.eachLayer(function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(n)o.push(r.geometry);else{var s=nx(r);"FeatureCollection"===s.type?o.push.apply(o,s.features):o.push(s)}}}),n?nw(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});var nj=ni.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=F(e),m(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(t9(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){t2(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&t8(this._image),this},bringToBack:function(){return this._map&&t7(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=F(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:t4("img");t9(e,"leaflet-image-layer"),this._zoomAnimated&&t9(e,"leaflet-zoom-animated"),this.options.className&&t9(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onload=s(this.fire,this,"load"),e.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;er(this._image,n,e)},_reset:function(){var t=this._image,e=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();es(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ei(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),nC=nj.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:t4("video");if(t9(e,"leaflet-image-layer"),this._zoomAnimated&&t9(e,"leaflet-zoom-animated"),e.onselectstart=h,e.onmousemove=h,e.onloadeddata=s(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],r=0;r<n.length;r++)o.push(n[r].src);this._url=0<n.length?o:[e.src]}else{_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var a=0;a<this._url.length;a++){var l=t4("source");l.src=this._url[a],e.appendChild(l)}}}}),nS=nj.extend({_initImage:function(){var t=this._image=this._url;t9(t,"leaflet-image-layer"),this._zoomAnimated&&t9(t,"leaflet-zoom-animated"),t.onselectstart=h,t.onmousemove=h}}),nE=ni.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){m(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ei(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ei(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(ei(this._container,0),this._removeTimeout=setTimeout(s(t2,void 0,this._container),200)):t2(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=W(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&t8(this._container),this},bringToBack:function(){return this._map&&t7(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof ni||(n=e,e=t),e instanceof nr)for(var o in t._layers){e=t._layers[o];break}if(!n){if(e.getCenter)n=e.getCenter();else{if(!e.getLatLng)throw Error("Unable to get source layer LatLng.");n=e.getLatLng()}}return this._source=e,this.update(),n},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=N(this.options.offset),n=this._getAnchor();this._zoomAnimated?es(this._container,t.add(n)):e=e.add(t).add(n);var o=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}}),nP=nE.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){nE.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof nu||this._source.on("preclick",ew))},onRemove:function(t){nE.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof nu||this._source.off("preclick",ew))},getEvents:function(){var t=nE.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=t4("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=t4("div",t+"-content-wrapper",e);if(this._contentNode=t4("div",t+"-content",n),eT(n),ex(this._contentNode),eg(n,"contextmenu",ew),this._tipContainer=t4("div",t+"-tip-container",e),this._tip=t4("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=t4("a",t+"-close-button",e);o.href="#close",o.innerHTML="×",eg(o,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.max(n=Math.min(n,this.options.maxWidth),this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var o=t.offsetHeight,r=this.options.maxHeight,s="leaflet-popup-scrolled";r&&r<o?(e.height=r+"px",t9(t,s)):et(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();es(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(t6(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,o=this._containerWidth,r=new A(this._containerLeft,-n-this._containerBottom);r._add(ea(this._container));var s=t.layerPointToContainerPoint(r),a=N(this.options.autoPanPadding),l=N(this.options.autoPanPaddingTopLeft||a),c=N(this.options.autoPanPaddingBottomRight||a),u=t.getSize(),h=0,d=0;s.x+o+c.x>u.x&&(h=s.x+o-u.x+c.x),s.x-h-l.x<0&&(h=s.x-l.x),s.y+n+c.y>u.y&&(d=s.y+n-u.y+c.y),s.y-d-l.y<0&&(d=s.y-l.y),(h||d)&&t.fire("autopanstart").panBy([h,d])}},_onCloseButtonClick:function(t){this._close(),ej(t)},_getAnchor:function(){return N(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});eN.mergeOptions({closePopupOnClick:!0}),eN.include({openPopup:function(t,e,n){return t instanceof nP||(t=new nP(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),ni.include({bindPopup:function(t,e){return t instanceof nP?(m(t,e),(this._popup=t)._source=this):(this._popup&&!e||(this._popup=new nP(e,this)),this._popup.setContent(t)),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,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),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=t.layer||t.target;this._popup&&this._map&&(ej(t),e instanceof nu?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var nO=nE.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){nE.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){nE.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=nE.prototype.getEvents.call(this);return tk&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=t4("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,n=this._container,o=e.latLngToContainerPoint(e.getCenter()),r=e.layerPointToContainerPoint(t),s=this.options.direction,a=n.offsetWidth,l=n.offsetHeight,c=N(this.options.offset),u=this._getAnchor();t="top"===s?t.add(N(-a/2+c.x,-l+c.y+u.y,!0)):"bottom"===s?t.subtract(N(a/2-c.x,-c.y,!0)):"center"===s?t.subtract(N(a/2+c.x,l/2-u.y+c.y,!0)):"right"===s||"auto"===s&&r.x<o.x?(s="right",t.add(N(c.x+u.x,u.y-l/2+c.y,!0))):(s="left",t.subtract(N(a+u.x-c.x,l/2-u.y-c.y,!0))),et(n,"leaflet-tooltip-right"),et(n,"leaflet-tooltip-left"),et(n,"leaflet-tooltip-top"),et(n,"leaflet-tooltip-bottom"),t9(n,"leaflet-tooltip-"+s),es(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ei(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return N(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});eN.include({openTooltip:function(t,e,n){return t instanceof nO||(t=new nO(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),ni.include({bindTooltip:function(t,e){return t instanceof nO?(m(t,e),(this._tooltip=t)._source=this):(this._tooltip&&!e||(this._tooltip=new nO(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),tk&&(e.click=this._openTooltip)),this[t?"off":"on"](e),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(t9(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(et(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,o=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),o=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(o)}});var nM=ns.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(t5(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var o=N(n.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});ns.Default=na;var nL=ni.extend({options:{tileSize:256,opacity:1,updateWhenIdle:tw,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){m(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),t2(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(t8(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(t7(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,o=-t(-1/0,1/0),r=0,s=n.length;r<s;r++)e=n[r].style.zIndex,n[r]!==this._container&&e&&(o=t(o,+e));isFinite(o)&&(this.options.zIndex=o+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ti){ei(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var o in this._tiles){var r=this._tiles[o];if(r.current&&r.loaded){var s=Math.min(1,(t-r.loaded)/200);ei(r.el,s),s<1?e=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=t4("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(t2(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[t],r=this._map;return o||((o=this._levels[t]={}).el=t4("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=r.project(r.unproject(r.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,r.getCenter(),r.getZoom()),o.el.offsetWidth,this._onCreateLevel(o)),this._level=o}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)t2(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,o){var r=Math.floor(t/2),s=Math.floor(e/2),a=n-1,l=new A(+r,+s);l.z=+a;var c=this._tileCoordsToKey(l),u=this._tiles[c];return u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),o<a&&this._retainParent(r,s,a,o))},_retainChildren:function(t,e,n,o){for(var r=2*t;r<2*t+2;r++)for(var s=2*e;s<2*e+2;s++){var a=new A(r,s);a.z=n+1;var l=this._tileCoordsToKey(a),c=this._tiles[l];c&&c.active?c.retain=!0:(c&&c.loaded&&(c.retain=!0),n+1<o&&this._retainChildren(r,s,n+1,o))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,o){var r=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom)&&(r=void 0);var s=this.options.updateWhenZooming&&r!==this._tileZoom;o&&!s||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var o=this._map.getZoomScale(n,t.zoom),r=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,n)).round();tb?er(t.el,r,o):es(t.el,r)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],o).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),o=e.getZoomScale(n,this._tileZoom),r=e.project(t,this._tileZoom).floor(),s=e.getSize().divideBy(2*o);return new D(r.subtract(s),r.add(s))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var o=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(o),s=r.getCenter(),a=[],l=this.options.keepBuffer,c=new D(r.getBottomLeft().subtract([l,-l]),r.getTopRight().add([l,-l]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var h=this._tiles[u].coords;h.z===this._tileZoom&&c.contains(new A(h.x,h.y))||(this._tiles[u].current=!1)}if(1<Math.abs(n-this._tileZoom))this._setView(t,n);else{for(var d=r.min.y;d<=r.max.y;d++)for(var p=r.min.x;p<=r.max.x;p++){var f=new A(p,d);if(f.z=this._tileZoom,this._isValidTile(f)){var m=this._tiles[this._tileCoordsToKey(f)];m?m.current=!0:a.push(f)}}if(a.sort(function(t,e){return t.distanceTo(s)-e.distanceTo(s)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(p=0;p<a.length;p++)this._addTile(a[p],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),o=t.scaleBy(n),r=o.add(n);return[e.unproject(o,t.z),e.unproject(r,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new B(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new A(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(t2(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){t9(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=h,t.onmousemove=h,ti&&this.options.opacity<1&&ei(t,this.options.opacity),ts&&!ta&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&S(s(this._tileReady,this,t,null,r)),es(r,n),this._tiles[o]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(ei(n.el,0),E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(t9(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ti||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?u(t.x,this._wrapX):t.x,this._wrapY?u(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(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}}),nI=nL.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=m(this,e)).detectRetina&&tC&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),ts||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return eg(n,"load",s(this._tileOnLoad,this,e,n)),eg(n,"error",s(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:tC?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=o),e["-y"]=o}return y(this._url,n(e,this.options))},_tileOnLoad:function(t,e){ti?setTimeout(s(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=h,e.onerror=h,e.complete||(e.src=w,t2(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return tc||e.el.setAttribute("src",w),nL.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==w))return nL.prototype._tileReady.call(this,t,e,n)}});function nA(t,e){return new nI(t,e)}var nz=nI.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var o=n({},this.defaultWmsParams);for(var r in e)r in this.options||(o[r]=e[r]);var s=(e=m(this,e)).detectRetina&&tC?2:1,a=this.getTileSize();o.width=a.x*s,o.height=a.y*s,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,nI.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,o=R(n.project(e[0]),n.project(e[1])),r=o.min,s=o.max,a=(1.3<=this._wmsVersion&&this._crs===ne?[r.y,r.x,s.y,s.x]:[r.x,r.y,s.x,s.y]).join(","),l=nI.prototype.getTileUrl.call(this,t);return l+g(this.wmsParams,l,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});nI.WMS=nz,nA.wms=function(t,e){return new nz(t,e)};var nN=ni.extend({options:{padding:.1,tolerance:0},initialize:function(t){m(this,t),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&t9(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),o=ea(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),a=this._map.project(t,e).subtract(s),l=r.multiplyBy(-n).add(o).add(r).subtract(a);tb?er(this._container,l,n):es(this._container,l)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),nD=nN.extend({getEvents:function(){var t=nN.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){nN.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");eg(t,"mousemove",c(this._onMouseMove,32,this),this),eg(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),eg(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,t2(this._container),ey(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){nN.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),o=tC?2:1;es(e,t.min),e.width=o*n.x,e.height=o*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",tC&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){nN.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);var e=(this._layers[l(t)]=t)._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,o=e.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete t._order,delete this._layers[l(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,o=t.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<o.length;n++){if(isNaN(e=Number(o[n])))return;r.push(e)}t.options._dashArray=r}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||S(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)t=o.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,o,r,s,a=t._parts,l=a.length,c=this._ctx;if(l){for(c.beginPath(),n=0;n<l;n++){for(o=0,r=a[n].length;o<r;o++)s=a[n][o],c[o?"lineTo":"moveTo"](s.x,s.y);e&&c.closePath()}this._fillStroke(c,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,o=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||o)/o;1!=r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(e.x,e.y/r,o,0,2*Math.PI,!1),1!=r&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,o=this._map.mouseEventToLayerPoint(t),r=this._drawFirst;r;r=r.next)(e=r.layer).options.interactive&&e._containsPoint(o)&&!this._map._draggableMoved(e)&&(n=e);n&&(eM(t),this._fireEvent([n],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(et(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,e){for(var n,o,r=this._drawFirst;r;r=r.next)(n=r.layer).options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(t9(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;n&&((n.prev=o)?o.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,(this._drawLast.next=e).next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;o&&((o.next=n)?n.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function nR(t){return tS?new nD(t):null}var nB=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),nF=tP?nB:J,nH=nN.extend({getEvents:function(){var t=nN.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=nF("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=nF("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){t2(this._container),ey(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){nN.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),es(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=nF("path");t.options.className&&t9(e,t.options.className),t.options.interactive&&t9(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){t2(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,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,tt(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),o="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+o+2*n+",0 "+o+-(2*n)+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){t8(t._path)},_bringToBack:function(t){t7(t._path)}});function n$(t){return tE||tP?new nH(t):null}tP&&nH.include({_initContainer:function(){this._container=t4("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(nN.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=nB("shape");t9(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=nB("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;t2(e),t.removeInteractiveTarget(e),delete this._layers[l(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,o=t.options,r=t._container;r.stroked=!!o.stroke,r.filled=!!o.fill,o.stroke?(e||(e=t._stroke=nB("stroke")),r.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=_(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(r.removeChild(e),t._stroke=null),o.fill?(n||(n=t._fill=nB("fill")),r.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),o=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+o+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){t8(t._container)},_bringToBack:function(t){t7(t._container)}}),eN.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&nR(t)||n$(t)}});var nW=nf.extend({initialize:function(t,e){nf.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=F(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});nH.create=nF,nH.pointsToPath=tt,nm.geometryToLayer=ng,nm.coordsToLatLng=nv,nm.coordsToLatLngs=ny,nm.latLngToCoords=n_,nm.latLngsToCoords=nb,nm.getFeature=nw,nm.asFeature=nx,eN.mergeOptions({boxZoom:!0});var nZ=eW.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(){eg(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ey(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){t2(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(),tZ(),ec(),this._startPoint=this._map.mouseEventToContainerPoint(t),eg(document,{contextmenu:ej,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=t4("div","leaflet-zoom-box",this._container),t9(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),n=e.getSize();es(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(t2(this._box),et(this._container,"leaflet-crosshair")),tV(),eu(),ey(document,{contextmenu:ej,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var e=new B(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});eN.addInitHook("addHandler","boxZoom",nZ),eN.mergeOptions({doubleClickZoom:!0});var nV=eW.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,n=e.getZoom(),o=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-o:n+o;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});eN.addInitHook("addHandler","doubleClickZoom",nV),eN.mergeOptions({dragging:!0,inertia:!ta,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var nU=eW.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new eY(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))}t9(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){et(this._map._container,"leaflet-grab"),et(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=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.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),n=this._initialWorldOffset,o=this._draggable._newPos.x,r=(o-e+n)%t+e-n,s=(o+e+n)%t-e-n;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Math.abs(r+n)<Math.abs(s+n)?r:s},_onDragEnd:function(t){var e=this._map,n=e.options,o=!n.inertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,l=r.multiplyBy(a/s),c=l.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,c),h=l.multiplyBy(u/c),d=u/(n.inertiaDeceleration*a),p=h.multiplyBy(-d/2).round();p.x||p.y?(p=e._limitOffset(p,e.options.maxBounds),S(function(){e.panBy(p,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}
vendor: 3,007 bytes, line 17
17)):e.fire("moveend")}}});eN.addInitHook("addHandler","dragging",nU),eN.mergeOptions({keyboard:!0,keyboardPanDelta:80});var nq=eW.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),eg(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),ey(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,o=this._panKeys={},r=this.keyCodes;for(e=0,n=r.left.length;e<n;e++)o[r.left[e]]=[-1*t,0];for(e=0,n=r.right.length;e<n;e++)o[r.right[e]]=[t,0];for(e=0,n=r.down.length;e<n;e++)o[r.down[e]]=[0,t];for(e=0,n=r.up.length;e<n;e++)o[r.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,o=this._zoomKeys={},r=this.keyCodes;for(e=0,n=r.zoomIn.length;e<n;e++)o[r.zoomIn[e]]=t;for(e=0,n=r.zoomOut.length;e<n;e++)o[r.zoomOut[e]]=-t},_addHooks:function(){eg(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ey(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=N(e).multiplyBy(3)),o.panBy(e),o.options.maxBounds&&o.panInsideBounds(o.options.maxBounds));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}ej(t)}}});eN.addInitHook("addHandler","keyboard",nq),eN.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nY=eW.extend({addHooks:function(){eg(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ey(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=eE(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),o),ej(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var o=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/M
17ath.LN2,r=n?Math.ceil(o/n)*n:o,s=t._limitZoom(e+(0<this._delta?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});eN.addInitHook("addHandler","scrollWheelZoom",nY),eN.mergeOptions({tap:!0,tapTolerance:15});var nG=eW.extend({addHooks:function(){eg(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ey(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(ek(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new A(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&t9(n,"leaflet-active"),this._holdTimeout=setTimeout(s(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),eg(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),ey(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&et(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});tk&&!tT&&eN.addInitHook("addHandler","tap",nG),eN.mergeOptions({touchZoom:tk&&!ta,bounceAtZoomLimits:!0});var nQ=eW.extend({addHooks:function(){t9(this._map._container,"leaflet-touch-zoom"),eg(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){et(this._map._container,"leaflet-touch-zoom"),ey(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),eg(document,"touchmove",this._onTouchMove,this),eg(document,"touchend",this._onTouchEnd,this),ek(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&1<r)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==r)return}else{var a=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1==r&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var l=s(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=S(l,this,!0),ek(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),ey(document,"touchmove",this._onTouchMove),ey(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});eN.addInitHook("addHandler","touchZoom",nQ),eN.BoxZoom=nZ,eN.DoubleClickZoom=nV,eN.Drag=nU,eN.Keyboard=nq,eN.ScrollWheelZoom=nY,eN.Tap=nG,eN.TouchZoom=nQ,Object.freeze=e,t.version="1.5.1+build.2e3e0ffb",t.Control=eR,t.control=eD,t.Browser=tM,t.Evented=I,t.Mixin={Events:M},t.Util=P,t.Class=O,t.Handler=eW,t.extend=n,t.bind=s,t.stamp=l,t.setOptions=m,t.DomEvent=eA,t.DomUtil=em,t.PosAnimation=ez,t.Draggable=eY,t.LineUtil=e4,t.PolyUtil=e8,t.Point=A,t.point=N,t.Bounds=D,t.bounds=R,t.Transformation=Y,t.transformation=G,t.Projection=e9,t.LatLng=H,t.latLng=W,t.LatLngBounds=B,t.latLngBounds=F,t.CRS=V,t.GeoJSON=nm,t.geoJSON=nk,t.geoJson=nk,t.L
17ayer=ni,t.LayerGroup=no,t.layerGroup=function(t,e){return new no(t,e)},t.FeatureGroup=nr,t.featureGroup=function(t){return new nr(t)},t.ImageOverlay=nj,t.imageOverlay=function(t,e,n){return new nj(t,e,n)},t.VideoOverlay=nC,t.videoOverlay=function(t,e,n){return new nC(t,e,n)},t.SVGOverlay=nS,t.svgOverlay=function(t,e,n){return new nS(t,e,n)},t.DivOverlay=nE,t.Popup=nP,t.popup=function(t,e){return new nP(t,e)},t.Tooltip=nO,t.tooltip=function(t,e){return new nO(t,e)},t.Icon=ns,t.icon=function(t){return new ns(t)},t.DivIcon=nM,t.divIcon=function(t){return new nM(t)},t.Marker=nc,t.marker=function(t,e){return new nc(t,e)},t.TileLayer=nI,t.tileLayer=nA,t.GridLayer=nL,t.gridLayer=function(t){return new nL(t)},t.SVG=nH,t.svg=n$,t.Renderer=nN,t.Canvas=nD,t.canvas=nR,t.Path=nu,t.CircleMarker=nh,t.circleMarker=function(t,e){return new nh(t,e)},t.Circle=nd,t.circle=function(t,e,n){return new nd(t,e,n)},t.Polyline=np,t.polyline=function(t,e){return new np(t,e)},t.Polygon=nf,t.polygon=function(t,e){return new nf(t,e)},t.Rectangle=nW,t.rectangle=function(t,e){return new nW(t,e)},t.Map=eN,t.map=function(t,e){return new eN(t,e)};var nX=window.L;t.noConflict=function(){return window.L=nX,this},window.L=t}),function(t){var e=function(e,n){this.$el=t(e),this.inputAttributes=n.attributes,this.options=n||{},this.config={fail:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>Oops! Upload failed</span>',notSupported:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File type not supported</span>',maxSize:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File exceeds max size</span>',fileSize:10485760,fileTypes:n.fileTypes,defaultLabel:""==this.options.label?this.options.label:this.options.helpText},this.itemInfo={},this.insertHTML(this.inputAttributes),this.$uploadFieldInput=this.$el.find(":file"),this.$label=this.$el.find(".labelHolder"),this.$close=this.$el.find(".la-cicon-close"),this.init(this.$el)};e.prototype.init=function(t){this.attachEvents()},e.prototype.attachEvents=function(){var e=this;e.$el.on("change",":file",function(){var e=t(this),n=e.get(0).files?e.get(0).files.length:1,o=e.val().replace(/\\/g,"/").replace(/.*\//,""),r=document.getElementById(e.attr("id")).files[0];r&&e.trigger("fileselect",[n,o,r])}),e.$uploadFieldInput.on("fileselect",function(t,n,o,r){e.validateFiles(t,n,o,r)}),e.$uploadFieldInput.on("focus",function(){e.$uploadFieldInput.addClass("has-focus")}).on("blur",function(){e.$uploadFieldInput.removeClass("has-focus")}),e.$close.on("click",function(t){t.preventDefault(),e.toggleInputState("reset"),e.uploadItems("removeLastUploaded"),e.$uploadFieldInput.val("")})},e.prototype.uploadItems=function(t){"object"!=typeof t?this.$uploadFieldInput.data("item",""):(this.$uploadFieldInput.data("item",JSON.stringify(t)),this.toggleInputState("close"))},e.prototype.toggleInputState=function(t){"reset"===t&&(t="upload",this.$label.html(this.config.defaultLabel)),this.$el.find(".la-cicon-"+t).show(),this.$el.find(".la-cicon-"+t).siblings("i").hide(),"upload"===t?this.$el.find(".status-label").show():this.$el.find(".status-label").hide()},e.prototype.encodeBaseSF=function(t,e,n){var o=this,r=new FileReader,s={};r.readAsDataURL(t),r.onload=function(){return s.id=e,s.string=r.result,s.size=t.size,s.extension=o.itemInfo.extension,s.icon=o.itemInfo.icon,n(s)},r.onerror=function(t){}},e.prototype.insertHTML=function(e){this.options.required;var n='<label for="'+e.id+'"><span class="labelHolder">'+this.config.defaultLabel+'</span><span class="btnS"><span class=""><i class="la-cicon-spinner icon-pulse icon-fw icon-load" style="display:none;"></i><i class="la-cicon-upload"></i><i class="la-cicon-close" style="display:none;"></i><span class="status-label"> Browse</span></span></span></label><span class="form-input-info">Maximum file size allowed: 10MB</label>',o=t("<input>",e).addClass("fileUpload");this.$el.append(o).append(n)},e.prototype.validateFiles=function(e,n,o,r){var s=this,a=s.$label.html(),l="",c=!1;t("label",s.$el).removeClass("has-error"),t(".error_container",s.$el.parent().parent()).remove(),s.itemInfo.extension=r.name.split(".").pop().toUpperCase(),s.itemInfo.icon="other",t.each(s.options.fileTypes,function(t,e){e.ext===s.itemInfo.extension&&(c=!0,s.itemInfo.icon=e.icon)}),e.target.value&&(l=e.target.value.split("\\").pop());var u='<span class="success"><i class="la-cicon-file-'+s.itemInfo.icon+'"></i>'+l+"</span>";l?(r.size>s.config.fileSize?s.updateLabel(s.config.maxSize):c?s.encodeBaseSF(r,l,function(t){s.uploadItems(t),s.updateLabel(u)}):s.updateLabel(s.config.notSupported),s.toggleInputState("close")):(s.$label.html(a),s.toggleInputState("load"))},e.prototype.updateLabel=function(t){void 0!==t&&this.$label.html(t)}
17;var n=t.fn.uploadField;t.fn.uploadField=function(n){n=t.extend({},t(this).data(),"object"==typeof n&&n),new e(this,n)},t.fn.uploadField.Constructor=e,t.fn.uploadField.noConflict=function(){return t.fn.uploadField=n,this}}(jQuery),function(t){"use strict";t(document).ready(function(){t("body").on("SMBLeadsFormReady",function(){var e=t('[data-control="form"]');e.length&&e.each(function(){""!=t(this).data("mhorgid")&&(t("<input>").attr({type:"hidden",name:"mh_orgId",value:t(this).data("mhorgid")}).appendTo(t("form",t(this))),t("<input>").attr({type:"hidden",name:"mh_template_id",value:t(this).data("templateId")}).appendTo(t("form",t(this))))})});var e=t(".form.isPleForm");e.length&&e.each(function(){var e=t(this).closest(".section");e.hasClass("section-form")||e.addClass("section-form")});var n=t(".section-form:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)");n.length&&e.length&&n.each(function(){t(this).find(e).addClass("form-themeExtras"),t("body").on("SMBLeadsFormReady",function(){var n=t(".forms--2col-textarea:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)"),o=t(".forms-option--b .leadForm .form__group:not(.checkbox__group):not(.radio__group)");n.find(e).each(function(){t(this).find(".form__group").not(".form-input-comments").wrapAll("<div class='groupWrap' />")}),o.each(function(){t(this).hasClass("hasLabel")&&t(this).addClass("optionB-enabled")})})})})}(window.jQuery),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).videojs=t()}(function(){var t;return(function t(e,n,o){function r(a,l){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!l&&c)return c(a,!0);if(s)return s(a,!0);var u=Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=n[a]={exports:{}};e[a][0].call(h.exports,function(t){return r(e[a][1][t]||t)},h,h.exports,t,e,n,o)}return n[a].exports}for(var s="function"==typeof require&&require,a=0;a<o.length;a++)r(o[a]);return r})({1:[function(t,e){(function(n){var o=void 0!==n?n:"undefined"!=typeof window?window:{},r=t("min-document");if("undefined"!=typeof document)e.exports=document;else{var s=o["__GLOBAL_DOCUMENT_CACHE@4"];s||(s=o["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":3}],2:[function(t,e){(function(t){e.exports="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(){},{}],4:[function(t,e){var n=t("../internal/getNative")(Date,"now");e.exports=n||function(){return(new Date).getTime()}},{"../internal/getNative":20}],5:[function(t,e){var n=t("../lang/isObject"),o=t("../date/now"),r=Math.max;e.exports=function(t,e,s){function a(e,n){n&&clearTimeout(n),d=g=v=void 0,e&&(y=o(),p=t.apply(m,h),g||d||(h=m=void 0))}function l(){var t=e-(o()-f);0>=t||t>e?a(v,d):g=setTimeout(l,t)}function c(){a(b,g)}function u(){if(h=arguments,f=o(),m=this,v=b&&(g||!w),!1===_)var n=w&&!g;else{d||w||(y=f);var r=_-(f-y),s=0>=r||r>_;s?(d&&(d=clearTimeout(d)),y=f,p=t.apply(m,h)):d||(d=setTimeout(c,r))}return s&&g?g=clearTimeout(g):g||e===_||(g=setTimeout(l,e)),n&&(s=!0,p=t.apply(m,h)),!s||g||d||(h=m=void 0),p}var h,d,p,f,m,g,v,y=0,_=!1,b=!0;if("function"!=typeof t)throw TypeError("Expected a function");if(e=0>e?0:+e||0,!0===s){var w=!0;b=!1}else n(s)&&(w=!!s.leading,_="maxWait"in s&&r(+s.maxWait||0,e),b="trailing"in s?!!s.trailing:b);return u.cancel=function(){g&&clearTimeout(g),d&&clearTimeout(d),y=0,d=g=v=void 0},u}},{"../date/now":4,"../lang/isObject":33}],6:[function(t,e){var n=Math.max;e.exports=function(t,e){if("function"!=typeof t)throw TypeError("Expected a function");return e=n(void 0===e?t.length-1:+e||0,0),function(){for(var o=arguments,r=-1,s=n(o.length-e,0),a=Array(s);++r<s;)a[r]=o[e+r];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,o[0],a);case 2:return t.call(this,o[0],o[1],a)}var l=Array(e+1);for(r=-1;++r<e;)l[r]=o[r];return l[e]=a,t.apply(this,l)}}},{}],7:[function(t,e){var n=t("./debounce"),o=t("../lang/isObject");e.exports=function(t,e,r){var s=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return!1===r?s=!1:o(r)&&(s="leading"in r?!!r.leading:s,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:s,maxWait:+e,trailing:a})}},{"../lang/isObject":33,"./debounce":5}],8:[function(t,e){e.exports=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}},{}],9:[function(t,e){e.exports=function(t,e){for(var n=-1,o=t.length;++n<o&&!1!==e(t[n],n,t););return t}},{}],10:[function(t,e){e.exports=function(t,e,n){n||(n={});for(var o=-1,r=e.length;++o<r;){var s=e[o];n[s]=t[s]}return n}},{}],11:[function(t,e){var n=t("./createBaseFor")();e.exports=n},{"./createBaseFor":18}],12:[function(t,e){var n=t("./baseFor"),o=t("../object/keysIn");e.exports=function(t,e){return n(t,e,o)}},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,e){var n=t("./arrayEach"),o=t("./baseMergeDeep"),r=t("../lang/isArray"),s=t("./isArrayLike"),a=t("../lang/isObject"),l=t("./isObjectLike"),c=t("../lang/isTypedArray"),u=t("../object/keys");e.exports=function t(e,h,d,p,f){if(!a(e))return e;
17var m=s(h)&&(r(h)||c(h)),g=m?void 0:u(h);return n(g||h,function(n,r){if(g&&(n=h[r=n]),l(n))p||(p=[]),f||(f=[]),o(e,h,r,t,d,p,f);else{var s=e[r],a=d?d(s,n,r,e,h):void 0,c=void 0===a;c&&(a=n),void 0===a&&(!m||r in e)||!c&&(a==a?a===s:s!=s)||(e[r]=a)}}),e}},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(t,e){var n=t("./arrayCopy"),o=t("../lang/isArguments"),r=t("../lang/isArray"),s=t("./isArrayLike"),a=t("../lang/isPlainObject"),l=t("../lang/isTypedArray"),c=t("../lang/toPlainObject");e.exports=function(t,e,u,h,d,p,f){for(var m=p.length,g=e[u];m--;)if(p[m]==g)return void(t[u]=f[m]);var v=t[u],y=d?d(v,g,u,t,e):void 0,_=void 0===y;_&&(y=g,s(g)&&(r(g)||l(g))?y=r(v)?v:s(v)?n(v):[]:a(g)||o(g)?y=o(v)?c(v):a(v)?v:{}:_=!1),p.push(g),f.push(y),_?t[u]=h(y,g,d,p,f):(y==y?y!==v:v==v)&&(t[u]=y)}},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(t,e){var n=t("./toObject");e.exports=function(t){return function(e){return null==e?void 0:n(e)[t]}}},{"./toObject":28}],16:[function(t,e){var n=t("../utility/identity");e.exports=function(t,e,o){if("function"!=typeof t)return n;if(void 0===e)return t;switch(o){case 1:return function(n){return t.call(e,n)};case 3:return function(n,o,r){return t.call(e,n,o,r)};case 4:return function(n,o,r,s){return t.call(e,n,o,r,s)};case 5:return function(n,o,r,s,a){return t.call(e,n,o,r,s,a)}}return function(){return t.apply(e,arguments)}}},{"../utility/identity":42}],17:[function(t,e){var n=t("./bindCallback"),o=t("./isIterateeCall"),r=t("../function/restParam");e.exports=function(t){return r(function(e,r){var s=-1,a=null==e?0:r.length,l=a>2?r[a-2]:void 0,c=a>2?r[2]:void 0,u=a>1?r[a-1]:void 0;for("function"==typeof l?(l=n(l,u,5),a-=2):a-=(l="function"==typeof u?u:void 0)?1:0,c&&o(r[0],r[1],c)&&(l=3>a?void 0:l,a=1);++s<a;){var h=r[s];h&&t(e,h,l)}return e})}},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(t,e){var n=t("./toObject");e.exports=function(t){return function(e,o,r){for(var s=n(e),a=r(e),l=a.length,c=t?l:-1;t?c--:++c<l;){var u=a[c];if(!1===o(s[u],u,s))break}return e}}},{"./toObject":28}],19:[function(t,e){var n=t("./baseProperty")("length");e.exports=n},{"./baseProperty":15}],20:[function(t,e){var n=t("../lang/isNative");e.exports=function(t,e){var o=null==t?void 0:t[e];return n(o)?o:void 0}},{"../lang/isNative":32}],21:[function(t,e){var n=t("./getLength"),o=t("./isLength");e.exports=function(t){return null!=t&&o(n(t))}},{"./getLength":19,"./isLength":25}],22:[function(t,e){e.exports=function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}},{}],23:[function(t,e){var n=/^\d+$/;e.exports=function(t,e){return t="number"==typeof t||n.test(t)?+t:-1,e=null==e?9007199254740991:e,t>-1&&t%1==0&&e>t}},{}],24:[function(t,e){var n=t("./isArrayLike"),o=t("./isIndex"),r=t("../lang/isObject");e.exports=function(t,e,s){if(!r(s))return!1;var a=typeof e;if("number"==a?n(s)&&o(e,s.length):"string"==a&&e in s){var l=s[e];return t==t?t===l:l!=l}return!1}},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,e){e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&9007199254740991>=t}},{}],26:[function(t,e){e.exports=function(t){return!!t&&"object"==typeof t}},{}],27:[function(t,e){var n=t("../lang/isArguments"),o=t("../lang/isArray"),r=t("./isIndex"),s=t("./isLength"),a=t("../lang/isString"),l=t("../object/keysIn"),c=Object.prototype.hasOwnProperty;e.exports=function(t){for(var e=l(t),u=e.length,h=u&&t.length,d=!!h&&s(h)&&(o(t)||n(t)||a(t)),p=-1,f=[];++p<u;){var m=e[p];(d&&r(m,h)||c.call(t,m))&&f.push(m)}return f}},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(t,e){var n=t("../lang/isObject"),o=t("../lang/isString"),r=t("../support");e.exports=function(t){if(r.unindexedChars&&o(t)){for(var e=-1,s=t.length,a=Object(t);++e<s;)a[e]=t.charAt(e);return a}return n(t)?t:Object(t)}},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(t,e){var n=t("../internal/isArrayLike"),o=t("../internal/isObjectLike"),r=Object.prototype,s=r.hasOwnProperty,a=r.propertyIsEnumerable;e.exports=function(t){return o(t)&&n(t)&&s.call(t,"callee")&&!a.call(t,"callee")}},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(t,e){var n=t("../internal/getNative"),o=t("../internal/isLength"),r=t("../internal/isObjectLike"),s=Object.prototype.toString,a=n(Array,"isArray");e.exports=a||function(t){return r(t)&&o(t.length)&&"[object Array]"==s.call(t)}},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(t,e){var n=t("./isObject"),o=Object.prototype.toString;e.exports=function(t){return n(t)&&"[object Function]"==o.call(t)}},{"./isObject":33}],32:[function(t,e){var n=t("./isFunction"),o=t("../internal/isHostOb
17ject"),r=t("../internal/isObjectLike"),s=/^\[object .+?Constructor\]$/,a=Object.prototype,l=Function.prototype.toString,c=a.hasOwnProperty,u=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return null!=t&&(n(t)?u.test(l.call(t)):r(t)&&(o(t)?u:s).test(t))}},{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(t,e){e.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},{}],34:[function(t,e){var n=t("../internal/baseForIn"),o=t("./isArguments"),r=t("../internal/isHostObject"),s=t("../internal/isObjectLike"),a=t("../support"),l=Object.prototype,c=l.hasOwnProperty,u=l.toString;e.exports=function(t){var e,l;return!(!s(t)||"[object Object]"!=u.call(t)||r(t)||o(t))&&(!!c.call(t,"constructor")||"function"!=typeof(e=t.constructor)||e instanceof e)&&(a.ownLast?(n(t,function(t,e,n){return l=c.call(n,e),!1}),!1!==l):(n(t,function(t,e){l=e}),void 0===l||c.call(t,l)))}},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(t,e){var n=t("../internal/isObjectLike"),o=Object.prototype.toString;e.exports=function(t){return"string"==typeof t||n(t)&&"[object String]"==o.call(t)}},{"../internal/isObjectLike":26}],36:[function(t,e){var n=t("../internal/isLength"),o=t("../internal/isObjectLike"),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1;var s=Object.prototype.toString;e.exports=function(t){return o(t)&&n(t.length)&&!!r[s.call(t)]}},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(t,e){var n=t("../internal/baseCopy"),o=t("../object/keysIn");e.exports=function(t){return n(t,o(t))}},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(t,e){var n=t("../internal/getNative"),o=t("../internal/isArrayLike"),r=t("../lang/isObject"),s=t("../internal/shimKeys"),a=t("../support"),l=n(Object,"keys");e.exports=l?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||("function"==typeof t?a.enumPrototypes:o(t))?s(t):r(t)?l(t):[]}:s},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(t,e){var n=t("../internal/arrayEach"),o=t("../lang/isArguments"),r=t("../lang/isArray"),s=t("../lang/isFunction"),a=t("../internal/isIndex"),l=t("../internal/isLength"),c=t("../lang/isObject"),u=t("../lang/isString"),h=t("../support"),d="[object Error]",p="[object Object]",f="[object String]",m=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g=Error.prototype,v=Object.prototype,y=String.prototype,_=v.hasOwnProperty,b=v.toString,w={};w["[object Array]"]=w["[object Date]"]=w["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},w["[object Boolean]"]=w[f]={constructor:!0,toString:!0,valueOf:!0},w[d]=w["[object Function]"]=w["[object RegExp]"]={constructor:!0,toString:!0},w[p]={constructor:!0},n(m,function(t){for(var e in w)if(_.call(w,e)){var n=w[e];n[t]=_.call(n,t)}}),e.exports=function(t){if(null==t)return[];c(t)||(t=Object(t));var e=t.length;e=e&&l(e)&&(r(t)||o(t)||u(t))&&e||0;for(var n=t.constructor,x=-1,T=s(n)&&n.prototype||v,k=T===t,j=Array(e),C=e>0,S=h.enumErrorProps&&(t===g||t instanceof Error),E=h.enumPrototypes&&s(t);++x<e;)j[x]=x+"";for(var P in t)E&&"prototype"==P||S&&("message"==P||"name"==P)||C&&a(P,e)||"constructor"==P&&(k||!_.call(t,P))||j.push(P);if(h.nonEnumShadows&&t!==v){var O=t===y?f:t===g?d:b.call(t),M=w[O]||w[p];for(O==p&&(T=v),e=m.length;e--;){var I=M[P=m[e]];k&&I||(I?!_.call(t,P):t[P]===T[P])||j.push(P)}}return j}},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(t,e){var n=t("../internal/baseMerge"),o=t("../internal/createAssigner")(n);e.exports=o},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(t,e){var n=Array.prototype,o=Error.prototype,r=Object.prototype.propertyIsEnumerable,s=n.splice,a={};(function(t){var e=function(){this.x=t},n={0:t,length:t},l=[];for(var c in e.prototype={valueOf:t,y:t},new e)l.push(c);a.enumErrorProps=r.call(o,"message")||r.call(o,"name"),a.enumPrototypes=r.call(e,"prototype"),a.nonEnumShadows=!/valueOf/.test(l),a.ownLast="x"!=l[0],a.spliceObjects=(s.call(n,0,1),!n[0]),a.unindexedChars="x"+Object("x")[0]!="xx"})(1,0),e.exports=a},{}],42:[function(t,e){e.exports=function(t){return t}},{}],43:[function(t,e){"use strict";var n=t("object-keys");e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test");
17if("string"==typeof e)return!1;for(e in t[e]=42,t)return!1;if(0!==n(t).length||"function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(t,e);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},{"object-keys":50}],44:[function(t,e){"use strict";var n=t("object-keys"),o=t("function-bind"),r=t("./hasSymbols")(),s=Object,a=o.call(Function.call,Array.prototype.push),l=o.call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(t){if(!(null!=t))throw TypeError("target must be an object");var e,o,c,u,h,d,p,f=s(t);for(e=1;e<arguments.length;++e){if(o=s(arguments[e]),u=n(o),r&&Object.getOwnPropertySymbols)for(h=Object.getOwnPropertySymbols(o),c=0;c<h.length;++c)p=h[c],l(o,p)&&a(u,p);for(c=0;c<u.length;++c)d=o[p=u[c]],l(o,p)&&(f[p]=d)}return f}},{"./hasSymbols":43,"function-bind":49,"object-keys":50}],45:[function(t,e){"use strict";var n=t("define-properties"),o=t("./implementation");n(o,{implementation:o,getPolyfill:t("./polyfill"),shim:t("./shim")}),e.exports=o},{"./implementation":44,"./polyfill":52,"./shim":53,"define-properties":46}],46:[function(t,e){"use strict";var n=t("object-keys"),o=t("foreach"),r="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=Object.defineProperty&&function(){var t={};try{for(var e in Object.defineProperty(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,n,o){(!(e in t)||"function"==typeof o&&"[object Function]"===s.call(o)&&o())&&(a?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},c=function(t,e){var s=arguments.length>2?arguments[2]:{},a=n(e);r&&(a=a.concat(Object.getOwnPropertySymbols(e))),o(a,function(n){l(t,n,e[n],s[n])})};c.supportsDescriptors=!!a,e.exports=c},{foreach:47,"object-keys":50}],47:[function(t,e){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function(t,e,r){if("[object Function]"!==o.call(e))throw TypeError("iterator must be a function");var s=t.length;if(s===+s)for(var a=0;s>a;a++)e.call(r,t[a],a,t);else for(var l in t)n.call(t,l)&&e.call(r,t[l],l,t)}},{}],48:[function(t,e){var n=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw TypeError("Function.prototype.bind called on incompatible "+e);for(var r,s=n.call(arguments,1),a=Math.max(0,e.length-s.length),l=[],c=0;a>c;c++)l.push("$"+c);if(r=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var o=e.apply(this,s.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,s.concat(n.call(arguments)))}),e.prototype){var u=function(){};u.prototype=e.prototype,r.prototype=new u,u.prototype=null}return r}},{}],49:[function(t,e){var n=t("./implementation");e.exports=Function.prototype.bind||n},{"./implementation":48}],50:[function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Array.prototype.slice,s=t("./isArguments"),a=!({toString:null}).propertyIsEnumerable("toString"),l=(function(){}).propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(t){var e=t.constructor;return e&&e.prototype===t},h={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{u(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!d)return u(t);try{return u(t)}catch(t){return!1}},f=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),u=s(t),h=e&&"[object String]"===o.call(t),d=[];if(!e&&!r&&!u)throw TypeError("Object.keys called on a non-object");var f=l&&r;if(h&&t.length>
170&&!n.call(t,0))for(var m=0;m<t.length;++m)d.push(String(m));if(u&&t.length>0)for(var g=0;g<t.length;++g)d.push(String(g));else for(var v in t)f&&"prototype"===v||!n.call(t,v)||d.push(String(v));if(a)for(var y=p(t),_=0;_<c.length;++_)y&&"constructor"===c[_]||!n.call(t,c[_])||d.push(c[_]);return d};f.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return t(s(e)?r.call(e):e)}}}else Object.keys=f;return Object.keys||f},e.exports=f},{"./isArguments":51}],51:[function(t,e){"use strict";var n=Object.prototype.toString;e.exports=function(t){var e=n.call(t),o="[object Arguments]"===e;return o||(o="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),o}},{}],52:[function(t,e){"use strict";var n=t("./implementation"),o=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},o=0;o<e.length;++o)n[e[o]]=e[o];var r=Object.assign({},n),s="";for(var a in r)s+=a;return t!==s},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}};e.exports=function(){return Object.assign?o()?n:r()?n:Object.assign:n}},{"./implementation":44}],53:[function(t,e){"use strict";var n=t("define-properties"),o=t("./polyfill");e.exports=function(){var t=o();return n(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},{"./polyfill":52,"define-properties":46}],54:[function(t,e){e.exports=function(t,e){var n,o=null;try{n=JSON.parse(t,e)}catch(t){o=t}return[o,n]}},{}],55:[function(t,e){e.exports=function(t){for(var e="",n=0;n<arguments.length;n++)e+=t[n].replace(/\n\r?\s*/g,"")+(arguments[n+1]||"");return e}},{}],56:[function(t,e){"use strict";function n(t,e,n){var o=t;return l(e)?(n=e,"string"==typeof t&&(o={uri:t})):o=u(e,{uri:t}),o.callback=n,o}function o(t,e,o){return r(e=n(t,e,o))}function r(t){function e(t){clearTimeout(d),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,s)}function n(){if(!h){clearTimeout(d);var e,n=s,o=null;0!==(e=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status)?(n={body:function(){var t=void 0;if(l.response?t=l.response:"text"!==l.responseType&&l.responseType||(t=l.responseText||l.responseXML),y)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:f,headers:{},url:p,rawRequest:l},l.getAllResponseHeaders&&(n.headers=c(l.getAllResponseHeaders()))):o=Error("Internal XMLHttpRequest Error"),r(o,n,n.body)}}var r=t.callback;if(void 0===r)throw Error("callback argument missing");r=a(r);var s={body:void 0,headers:{},statusCode:0,method:f,url:p,rawRequest:l},l=t.xhr||null;l||(l=t.cors||t.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var u,h,d,p=l.url=t.uri||t.url,f=l.method=t.method||"GET",m=t.body||t.data||null,g=l.headers=t.headers||{},v=!!t.sync,y=!1;if("json"in t&&(y=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),m=JSON.stringify(t.json))),l.onreadystatechange=function(){4===l.readyState&&n()},l.onload=n,l.onerror=e,l.onprogress=function(){},l.ontimeout=e,l.open(f,p,!v,t.username,t.password),v||(l.withCredentials=!!t.withCredentials),!v&&t.timeout>0&&(d=setTimeout(function(){h=!0,l.abort("timeout");var t=Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",e(t)},t.timeout)),l.setRequestHeader)for(u in g)g.hasOwnProperty(u)&&l.setRequestHeader(u,g[u]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(m),l}var s=t("global/window"),a=t("once"),l=t("is-function"),c=t("parse-headers"),u=t("xtend");e.exports=o,o.XMLHttpRequest=s.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:s.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){o["delete"===t?"del":t]=function(e,o,s){return(o=n(e,o,s)).method=t.toUpperCase(),r(o)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(t,e){e.exports=function(t){var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},{}],58:[function(t,e){function n(t){var e=!1;return function(){return e?void 0:(e=!0,t.apply(this,arguments))}}e.exports=n,n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0})})},{}],59:[function(t,e){var n=t("is-function");e.exports=function(t,e,s){if(!n(e))throw TypeError("iterator must be a function");arguments.length<3&&(s=this),"[object Array]"===o.call(t)?function(t,e,n){for(var o=0,s=t.length;s>o;o++)r.call(t,o)&&e.call(n,t[o],o,t)}(t,e,s):"string"==typeof t?function(t,e,n){for(var o=0,r=t.length;r>o;o++)e.call(n,t.charAt(o),o,t)}(t,e,s):function(t,e,n){for(var o in t)r.call(t,o)&&e.call(n,t[o],o,t)}(t,e,s)};var o=Object.prototype.toString,r=Object.prototype.hasOwnProperty},{"is-function":57}],60:[function(t,e,n){(n=e.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],61:[function(t,e){var n=t("trim"),o=t("for-each");e.exports=function(t){if(!t)return{};var e={};return o(n(t).split("\n"),function(t){var o,r=t.indexOf(":"),s=n(t.slice(0,r)).toLowerCase(),a=n(t.slice(r+1));void 0===e[s]?e[s]=a:(o=e[s],"[object Array]"===Object.prototype.toString.call(o))?e[s].push(a):e[s]=[e[s],a]}),e}},{"for-each":59,trim:60}],62:[function(t,e){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var o=arguments[e];for(var r in o)n.call(o,r)&&(t[r]=o[r])}return t};var n=Object.prototype.hasOwnProperty},{}],63:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./button.js")),s=o(t("./component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(){this.player_.play()},e}(r.default);a.prototype.controlText_="Play Video",s.default.registerComponent("BigPlayButton",a),n.default=a,e.exports=n.default},{"./button.js":64,"./component.js":67}],64:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./clickable-component.js")),a=r(t("./component")),l=(o(t("./utils/events.js")),t("./utils/fn.js")),c=r((o(l),t("./utils/log.js"))),u=(r(t("global/document")),t("object.assign")),h=r(u),d=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"button":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];e=h.default({className:this.buildCSSClass()},e),"button"!==t&&(c.default.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),e=h.default({tabIndex:0},e),n=h.default({role:"button"},n)),n=h.default({type:"button","aria-live":"polite"},n);var o=a.default.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(o),o},e.prototype.addChild=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this.constructor.name;return c.default.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),a.default.prototype.addChild.call(this,t,e)},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which||t.prototype.handleKeyPress.call(this,e)},e}(s.default);a.default.registerComponent("Button",d),n.default=d,e.exports=n.default},{"./clickable-component.js":65,"./component":67,"./utils/events.js":144,"./ut
17ils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],65:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./component")),a=o(t("./utils/dom.js")),l=o(t("./utils/events.js")),c=o(t("./utils/fn.js")),u=r(t("./utils/log.js")),h=r(t("global/document")),d=r(t("object.assign")),p=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.emitTapEvents(),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];n=d.default({className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&u.default.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),o=d.default({role:"button","aria-live":"polite"},o);var r=t.prototype.createEl.call(this,e,n,o);return this.createControlTextEl(r),r},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=a.createEl("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_),this.controlTextEl_},e.prototype.controlText=function(t){return t?(this.controlText_=t,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.prototype.addChild.call(this,e,n)},e.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),this},e.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),this},e.prototype.handleClick=function(){},e.prototype.handleFocus=function(){l.on(h.default,"keydown",c.bind(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleClick(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(){l.off(h.default,"keydown",c.bind(this,this.handleKeyPress))},e}(s.default);s.default.registerComponent("ClickableComponent",p),n.default=p,e.exports=n.default},{"./component":67,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],66:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./button")),s=o(t("./component")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.controlText(o&&o.controlText||this.localize("Close"))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},e}(r.default);s.default.registerComponent("CloseButton",a),n.default=a,e.exports=n.default},{"./button":64,"./component":67}],67:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("global/window")),a=o(t("./utils/dom.js")),l=o(t("./utils/fn.js")),c=o(t("./utils/guid.js")),u=o(t("./utils/events.js")),h=r(t("./utils/log.js")),d=r(t("./utils/to-title-case.js")),p=r(t("object.assign")),f=r(t("./utils/merge-options.js")),m=function(){function t(e,n,o){if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this.player_=!e&&this.play?e=this:e,this.options_=f.default({},this.options_),n=this.options_=f.default(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";
17this.id_=r+"_component_"+c.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(o),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),a.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return h.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t&&(this.options_=f.default(this.options_,t)),this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,n){return a.createEl(t,e,n)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!e||!n)return t;var o=n[e];if(o&&o[t])return o[t];var r=n[e.split("-")[0]];return r&&r[t]?r[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){return this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],r=void 0,s=void 0;if("string"==typeof e){s=e,n||(n={}),!0===n&&(h.default.warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),n={});var a=n.componentClass||d.default(s);n.name=s;var l=t.getComponent(a);if(!l)throw Error("Component "+a+" does not exist");if("function"!=typeof l)return null;r=new l(this.player_||this,n)}else r=e;if(this.children_.splice(o,0,r),"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(s=s||r.name&&r.name())&&(this.childNameIndex_[s]=r),"function"==typeof r.el&&r.el()){var c=this.contentEl().children[o]||null;this.contentEl().insertBefore(r.el(),c)}return r},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var o=t.el();o&&o.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e,n,o,r=this,s=this.options_.children;s&&(e=r.options_,n=void 0,o=t.getComponent("Tech"),(n=Array.isArray(s)?s:Object.keys(s)).concat(Object.keys(r.options_).filter(function(t){return!n.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var e=void 0,n=void 0;return"string"==typeof t?n=s[e=t]||r.options_[e]||{}:(e=t.name,n=t),{name:e,opts:n}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||d.default(e.name));return n&&!o.isTech(n)}).forEach(function(t){var n=t.name,o=t.opts;if(void 0!==e[n]&&(o=e[n]),!1!==o){!0===o&&(o={}),o.playerOptions=r.options_.playerOptions;var s=r.addChild(n,o);s&&(r[n]=s)}}))},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,n){var o,r,s,a=this;return"string"==typeof t||Array.isArray(t)?u.on(this.el_,t,l.bind(this,e)):(o=l.bind(a,n),(r=function(){return a.off(t,e,o)}).guid=o.guid,a.on("dispose",r),(s=function(){return a.off("dispose",r)}).guid=o.guid,t.nodeName?(u.on(t,e,o),u.on(t,"dispose",s)):"function"==typeof t.on&&(t.on(e,o),t.on("dispose",s))),this},t.prototype.off=function(t,e,n){if(!t||"string"==typeof t||Array.isArray(t))u.off(this.el_,t,e);else{var o=l.bind(this,n);this.off("dispose",o),t.nodeName?(u.off(t,e,o),u.off(t,"dispose",o)):(t.off(e,o),t.off("dispose",o))}return this},t.prototype.one=function(t,e,n){var o,r,s=this,a=arguments;return"string"==typeof t||Array.isArray(t)?u.one(this.el_,t,l.bind(this,e)):(o=l.bind(s,n),(r=function n(){s.off(t,e,n),o.apply(null,a)}).guid=o.guid,s.on(t,e,r)),this},t.prototype.trigger=function(t,e){return u.trigger(this.el_,t,e),this},t.prototype.ready=function(t){var e=!(arguments.length<=1)&&void 0!==arguments[1]&&arguments[1];return t&&(this.isReady_?e?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t))),this},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return a.$(t,e||this.contentEl())},t.prototype.$$=function(t,e){return a.$$(t,e||this.contentEl())},t.prototype.hasClass=function(t){return a.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return a.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return a.removeElClass(this.el_,t),this},t.prototype.toggleClass=function(t,e){return a.toggleElClass(this.el_,t,e),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.dimension=function(t,e,n){if(void 0!==e)return(null===e||e!=e)&&(e=0),this.el_.style[t]=-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?e:"auto"===e?"":e+"px",n||this.trigger("resize"),this;if(!this.el_)return 0;var o=this.el_.style[t],r=o.indexOf("px");return -1!==r?parseInt(o.slice(0,r),10):parseInt(this.el_["offset"+d.default(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw Error("currentDimension only accepts width or height value");if("function"==typeof s.default.getComputedStyle){var n=s.default.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}else if(this.el_.currentStyle){var o="offset"+d.default(t);e=this.el_[o]}return parseFloat(e)},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(o){1===o.touches.length&&(e=p.default({},o.touches[0]),t=(new Date).getTime(),n=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)n=!1;else if(e){var o=t.touches[0].pageX-e.pageX,r=t.touches[0].pageY-e.pageY;Math.sqrt(o*o+r*r)>10&&(n=!1)}});var o=function(){n=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(o){e=null,!0===n&&200>(new Date).getTime()-t&&(o.preventDefault(),this.trigger("tap"))})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=l.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.prototype.setTimeout=function(t,e){t=l.bind(this,t);var n=s.default.setTimeout(t,e),o=function(){this.clearTimeout(n)};return o.guid="vjs-timeout-"+n,this.on("dispose",o),n},t.prototype.clearTimeout=function(t){s.default.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=l.bind(this,t);var n=s.default.setInterval(t,e),o=function(){this.clearInterval(n)};return o.guid="vjs-interval-"+n,this.on("dispose",o),n},t.prototype.clearInterval=function(t){s.default.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,n){return t.components_||(t.components_={}),t.components_[e]=n,n},t.getComponent=function(e){return t.components_&&t.components_[e]?t.components_[e]:s.default&&s.default.videojs&&s.default.videojs[e]?(h.default.warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),s.default.videojs[e]):void 0},t.extend=function(e){e=e||{},h.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var n=e.init||e.init||this.prototype.init||this.prototype.init||function(){},o=function(){n.apply(this,arguments)};for(var r in o.prototype=Object.create(this.prototype),o.prototype.constructor=o,o.extend=t.extend,e)e.hasOwnProperty(r)&&(o.prototype[r]=e[r]);return o},t}();m.registerComponent("Component",m),n.default=m,e.exports=n.default}
17,{"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/to-title-case.js":152,"global/window":2,"object.assign":45}],68:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../track-button.js")),s=o(t("../../component.js")),a=o((function(t){if(!t||!t.__esModule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("../../utils/fn.js")),t("./audio-track-menu-item.js"))),l=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.tracks=n.audioTracks&&n.audioTracks(),t.call(this,n,o),this.el_.setAttribute("aria-label","Audio Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],e=this.player_.audioTracks&&this.player_.audioTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];t.push(new a.default(this.player_,{selectable:!0,track:o}))}return t},e}(r.default);s.default.registerComponent("AudioTrackButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./audio-track-menu-item.js":69}],69:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-item.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r,s=o.track,l=n.audioTracks();o.label=s.label||s.language||"Unknown",o.selected=s.enabled,t.call(this,n,o),this.track=s,l&&(r=a.bind(this,this.handleTracksChange),l.addEventListener("change",r),this.on("dispose",function(){l.removeEventListener("change",r)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){var n=this.player_.audioTracks();if(t.prototype.handleClick.call(this,e),n)for(var o=0;o<n.length;o++){var r=n[o];r===this.track&&(r.enabled=!0)}},e.prototype.handleTracksChange=function(){this.selected(this.track.enabled)},e}(r.default);s.default.registerComponent("AudioTrackMenuItem",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],70:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../component.js")),s=(o(t("./play-toggle.js")),t("./time-controls/current-time-display.js")),a=(o(s),t("./time-controls/duration-display.js")),l=(o(a),t("./time-controls/time-divider.js")),c=(o(l),t("./time-controls/remaining-time-display.js")),u=(o(c),t("./live-display.js")),h=(o(u),t("./progress-control/progress-control.js")),d=(o(h),t("./fullscreen-toggle.js")),p=(o(d),t("./volume-control/volume-control.js")),f=(o(p),t("./volume-menu-button.js")),m=(o(f),t("./mute-toggle.js")),g=(o(m),t("./text-track-controls/chapters-button.js")),v=(o(g),t("./text-track-controls/descriptions-button.js")),y=(o(v),t("./text-track-controls/subtitles-button.js")),_=(o(y),t("./text-track-controls/captions-button.js")),b=(o(_),t("./audio-track-controls/audio-track-button.js")),w=(o(b),t("./playback-rate-menu/playback-rate-menu-button.js")),x=(o(w),t("./spacer-control
17s/custom-control-spacer.js")),T=(o(x),function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},e}(r.default));T.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},r.default.registerComponent("ControlBar",T),n.default=T,e.exports=n.default},{"../component.js":67,"./audio-track-controls/audio-track-button.js":68,"./fullscreen-toggle.js":71,"./live-display.js":72,"./mute-toggle.js":73,"./play-toggle.js":74,"./playback-rate-menu/playback-rate-menu-button.js":75,"./progress-control/progress-control.js":80,"./spacer-controls/custom-control-spacer.js":83,"./text-track-controls/captions-button.js":86,"./text-track-controls/chapters-button.js":87,"./text-track-controls/descriptions-button.js":89,"./text-track-controls/subtitles-button.js":91,"./time-controls/current-time-display.js":94,"./time-controls/duration-display.js":95,"./time-controls/remaining-time-display.js":96,"./time-controls/time-divider.js":97,"./volume-control/volume-control.js":100,"./volume-menu-button.js":102}],71:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../button.js")),s=o(t("../component.js")),a=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},e}(r.default);a.prototype.controlText_="Fullscreen",s.default.registerComponent("FullscreenToggle",a),n.default=a,e.exports=n.default},{"../button.js":64,"../component.js":67}],72:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../component"))&&o.__esModule?o:{default:o},s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},e}(r.default);r.default.registerComponent("LiveDisplay",a),n.default=a,e.exports=n.default},{"../component":67,"../utils/dom.js":143}],73:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../button")),s=o(t("../component")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"volumechange",this.update),n.tech_&&!1===n.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){this.update(),!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},e.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:.33>t?e=1:.67>t&&(e=2);var n=this.player_.muted()?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n);for(var o=0;4>o;o++)a.removeElClass(this.el_,"vjs-vol-"+o);a.addElClass(this.el_,"vjs-vol-"+e)},e}(r.default);l.prototype.controlText_="Mute",s.default.registerComponent("MuteToggle",l),n.default=l,e.exports=n.default},{"../button":64,"../component":67,"../utils/dom.js":143}],74:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../button.js")),s=o(t("../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"play",this.handlePlay),this.on(n,"pause",this.handlePause)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(r.default);a.prototype.controlText_="Play",s.default.registerComponent("PlayToggle",a),n.default=a,e.exports=n.default},{"../button.js":64,"../component.js":67}],75:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-button.js")),s=o(t("../../menu/menu.js")),a=o(t("./playback-rate-menu-item.js")),l=o(t("../../component.js")),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateVisibility(),this.updateLabel(),this.on(n,"loadstart",this.updateVisibility),this.on(n,"ratechange",this.updateLabel)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new s.default(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;n>=0;n--)t.addChild(new a.default(this.player(),{rate:e[n]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),n=e[0],o=0;o<e.length;o++)if(e[o]>t){n=e[o];break}this.player().playbackRate(n)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(r.default);u.prototype.controlText_="Playback Rate",l.default.registerComponent("PlaybackRateMenuButton",u),n.default=u,e.exports=n.default},{"../../component.js":67,"../../menu/menu-button.js":109,"../../menu/menu.js":111,"../../utils/dom.js":143,"./playback-rate-menu-item.js":76}],76:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-item.js")),s=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r=o.rate,s=parseFloat(r,10);o.label=r,o.selected=1===s,t.call(this,n,o),this.label=r,this.rate=s,this.on(n,"ratechange",this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},e}(r.default);a.prototype.contentElType="button",s.default.registerComponent("PlaybackRateMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110}
17],77:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../../component.js"))&&o.__esModule?o:{default:o},s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"progress",this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},e.prototype.update=function(){var t=this.player_.buffered(),e=this.player_.duration(),n=this.player_.bufferedEnd(),o=this.el_.children,r=function(t,e){var n=t/e||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=r(n,e);for(var a=0;a<t.length;a++){var l=t.start(a),c=t.end(a),u=o[a];u||(u=this.el_.appendChild(s.createEl())),u.style.left=r(l,n),u.style.width=r(c-l,n)}for(var a=o.length;a>t.length;a--)this.el_.removeChild(o[a-1])},e}(r.default);r.default.registerComponent("LoadProgressBar",a),n.default=a,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143}],78:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("global/window")),a=r(t("../../component.js")),l=o(t("../../utils/dom.js")),c=o(t("../../utils/fn.js")),u=r(t("../../utils/format-time.js")),h=r(t("lodash-compat/function/throttle")),d=function(t){function e(n,o){var r=this;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltip=l.createEl("div",{className:"vjs-time-tooltip"}),this.el().appendChild(this.tooltip),this.addClass("vjs-keep-tooltips-inside")),this.update(0,0),n.on("ready",function(){r.on(n.controlBar.progressControl.el(),"mousemove",h.default(c.bind(r,r.handleMouseMove),25))})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),n=this.calculateDistance(t)*e,o=t.pageX-l.findElPosition(this.el().parentNode).left;this.update(n,o)},e.prototype.update=function(t,e){var n=u.default(t,this.player_.duration());if(this.el().style.left=e+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var o=this.clampPosition_(e),r=parseFloat(s.default.getComputedStyle(this.tooltip).width);this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(r/2-(e-o+1))+"px"}},e.prototype.calculateDistance=function(t){return l.getPointerPosition(this.el().parentNode,t).x},e.prototype.clampPosition_=function(t){if(!this.keepTooltipsInside)return t;var e=parseFloat(s.default.getComputedStyle(this.player().el()).width),n=parseFloat(s.default.getComputedStyle(this.tooltip).width)/2,o=t;return n>t?o=Math.ceil(n):t>e-n&&(o=Math.floor(e-n)),o},e}(a.default);a.default.registerComponent("MouseTimeDisplay",d),n.default=d,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146,"global/window":2,"lodash-compat/function/throttle":7}],79:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../../component.js")),a=o(t("../../utils/fn.js")),l=r((o(t("../../utils/dom.js")),t("../../utils/format-time.js"))),c=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateDataAttr(),this.on(n,"timeupdate",this.updateDataAttr),n.ready(a.bind(this,this.updateDataAttr)),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&this.addClass("vjs-keep-tooltips-inside")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",l.default(t,this.player_.duration()))},e}(s.default);s.default.registerComponent("PlayProgressBar",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],80:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=(o(t("./seek-bar.js")),t("./mouse-time-display.js")),a=(o(s),function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(r.default));a.prototype.options_={children:["seekBar"]},r.default.registerComponent("ProgressControl",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./mouse-time-display.js":78,"./seek-bar.js":81}],81:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("global/window")),s=o(t("../../slider/slider.js")),a=o(t("../../component.js")),l=(o(t("./load-progress-bar.js")),t("./play-progress-bar.js")),c=(o(l),t("./tooltip-progress-bar.js")),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(c),t("../../utils/fn.js"))),h=o(t("../../utils/format-time.js")),d=(o(t("object.assign")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateProgress),this.on(n,"ended",this.updateProgress),n.ready(u.bind(this,this.updateProgress)),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltipProgressBar=this.addChild("TooltipProgressBar"))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},e.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=parseFloat(r.default.getComputedStyle(this.player().el()).width),e=parseFloat(r.default.getComputedStyle(this.tooltipProgressBar.tooltip).width),n=this.tooltipProgressBar.el().style;n.maxWidth=Math.floor(t-e/2)+"px",n.minWidth=Math.ceil(e/2)+"px",n.right="-"+e/2+"px"}},e.prototype.updateAriaAttributes=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",h.default(e,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){t.prototype.handleMouseDown.call(this,e),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(s.default));d.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},d.prototype.playerEvent="timeupdate",a.default.registerComponent("SeekBar",d),n.default=d,e.exports=n.default},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"../../utils/format-time.js":146,"./load-progress-bar.js":77,"./play-progress-bar.js":79,"./tooltip-progress-bar.js":82,"global/window":2,"object.assign":45}],82:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../../component.js")),a=o(t("../../utils/fn.js")),l=r((o(t("../../utils/dom.js")),t("../../utils/format-time.js"))),c=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateDataAttr(),this.on(n,"timeupdate",this.updateDataAttr),n.ready(a.bind(this,this.updateDataAttr))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>
17\n <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});return this.tooltip=e.querySelector(".vjs-time-tooltip"),e},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=l.default(t,this.player_.duration());this.el_.setAttribute("data-current-time",e),this.tooltip.innerHTML=e},e}(s.default);s.default.registerComponent("TooltipProgressBar",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],83:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./spacer.js")),s=o(t("../../component.js")),a=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(r.default);s.default.registerComponent("CustomControlSpacer",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./spacer.js":84}],84:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../../component.js"))&&o.__esModule?o:{default:o},s=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(r.default);r.default.registerComponent("Spacer",s),n.default=s,e.exports=n.default},{"../../component.js":67}],85:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-menu-item.js")),s=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.track={kind:o.kind,player:n,label:o.kind+" settings",selectable:!1,default:!1,mode:"disabled"},o.selectable=!1,t.call(this,n,o),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+o.kind+" settings dialog")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},e}(r.default);s.default.registerComponent("CaptionSettingsMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-menu-item.js":93}],86:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-button.js")),s=o(t("../../component.js")),a=o(t("./caption-settings-menu-item.js")),l=function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Captions Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(){var e=2;t.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(e=1),this.items&&this.items.length>e?this.show():this.hide()},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||e.push(new a.default(this.player_,{kind:this.kind_})),t.prototype.createItems.call(this,e)},e}(r.default);l.prototype.kind_="captions",l.prototype.controlText_="Captions",s.default.registerComponent("CaptionsButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"./caption-settings-menu-item.js":85,"./text-track-button.js":92}],87:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./text-track-button.js")),a=r(t("../../component.js")),l=r(t("./text-track-menu-item.js")),c=r(t("./chapters-track-menu-item.js")),u=r(t("../../menu/menu.js")),h=o(t("../../utils/dom.js")),d=r((o(t("../../utils/fn.js")),t("../../utils/to-title-case.js"))),p=(r(t("global/window")),function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Chapters Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];o.kind===this.kind_&&t.push(new l.default(this.player_,{track:o}))}return t},e.prototype.createMenu=function(){for(var t=this,e=this.player_.textTracks()||[],n=void 0,o=this.items=[],r=0,s=e.length;s>r;r++){var a=e[r];if(a.kind===this.kind_){n=a;break}}var l=this.menu;if(void 0===l){l=new u.default(this.player_);var p=h.createEl("li",{className:"vjs-menu-title",innerHTML:d.default(this.kind_),tabIndex:-1});l.children_.unshift(p),h.insertElFirst(p,l.contentEl())}if(n&&null==n.cues){n.mode="hidden";var f=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n);
17f&&f.addEventListener("load",function(){return t.update()})}if(n&&n.cues&&n.cues.length>0){for(var m=n.cues,g=void 0,r=0,v=m.length;v>r;r++){g=m[r];var y=new c.default(this.player_,{track:n,cue:g});o.push(y),l.addChild(y)}this.addChild(l)}return this.items.length>0&&this.show(),l},e}(s.default));p.prototype.kind_="chapters",p.prototype.controlText_="Chapters",a.default.registerComponent("ChaptersButton",p),n.default=p,e.exports=n.default},{"../../component.js":67,"../../menu/menu.js":111,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/to-title-case.js":152,"./chapters-track-menu-item.js":88,"./text-track-button.js":92,"./text-track-menu-item.js":93,"global/window":2}],88:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-item.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r=o.track,s=o.cue,l=n.currentTime();o.label=s.text,o.selected=s.startTime<=l&&l<s.endTime,t.call(this,n,o),this.track=r,this.cue=s,r.addEventListener("cuechange",a.bind(this,this.update))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(){var t=this.cue,e=this.player_.currentTime();this.selected(t.startTime<=e&&e<t.endTime)},e}(r.default);s.default.registerComponent("ChaptersTrackMenuItem",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],89:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-button.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Descriptions Menu");var s,l=n.textTracks();l&&(s=a.bind(this,this.handleTracksChange),l.addEventListener("change",s),this.on("dispose",function(){l.removeEventListener("change",s)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleTracksChange=function(){for(var t=this.player().textTracks(),e=!1,n=0,o=t.length;o>n;n++){var r=t[n];if(r.kind!==this.kind_&&"showing"===r.mode){e=!0;break}}e?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e}(r.default);l.prototype.kind_="descriptions",l.prototype.controlText_="Descriptions",s.default.registerComponent("DescriptionsButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"./text-track-button.js":92}],90:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-menu-item.js")),s=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.track={kind:o.kind,player:n,label:o.kind+" off",default:!1,mode:"disabled"},o.selectable=!0,t.call(this,n,o),this.selected(!0)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleTracksChange=function(){for(var t=this.player().textTracks(),e=!0,n=0,o=t.length;o>n;n++){var r=t[n];if(r.kind===this.track.kind&&"showing"===r.mode){e=!1;break}}this.selected(e)},e}(r.default);s.default.registerComponent("OffTextTrackMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-menu-item.js":93}],91:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./text-track-button.js")),s=o(t("../../component.js")),a=function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Subtitles Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e}(r.default);a.prototype.kind_="subtitles",a.prototype.controlText_="Subtitles",s.default.registerComponent("SubtitlesButton",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-button.js":92}],92:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../track-button.js")),s=o(t("../../component.js")),a=o((function(t){if(!t||!t.__esMo
17dule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("../../utils/fn.js")),t("./text-track-menu-item.js"))),l=o(t("./off-text-track-menu-item.js")),c=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.tracks=n.textTracks(),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];t.push(new l.default(this.player_,{kind:this.kind_}));var e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];o.kind===this.kind_&&t.push(new a.default(this.player_,{selectable:!0,track:o}))}return t},e}(r.default);s.default.registerComponent("TextTrackButton",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./off-text-track-menu-item.js":90,"./text-track-menu-item.js":93}],93:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../menu/menu-item.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=o(t("global/window")),c=o(t("global/document")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r,s,u=o.track,h=n.textTracks();o.label=u.label||u.language||"Unknown",o.selected=u.default||"showing"===u.mode,t.call(this,n,o),this.track=u,h&&(r=a.bind(this,this.handleTracksChange),h.addEventListener("change",r),this.on("dispose",function(){h.removeEventListener("change",r)})),h&&void 0===h.onchange&&(s=void 0,this.on(["tap","click"],function(){if("object"!=typeof l.default.Event)try{s=new l.default.Event("change")}catch(t){}s||(s=c.default.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(s)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){var n=this.track.kind,o=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),o)for(var r=0;r<o.length;r++){var s=o[r];s.kind===n&&(s.mode=s===this.track?"showing":"disabled")}},e.prototype.handleTracksChange=function(){this.selected("showing"===this.track.mode)},e}(r.default);s.default.registerComponent("TextTrackMenuItem",u),n.default=u,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145,"global/document":1,"global/window":2}],94:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),n=a.default(t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+n)},e}(r.default);r.default.registerComponent("CurrentTimeDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],95:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent),this.on(n,"loadedmetadata",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var e=this.localize("Duration Time"),n=a.default(t);this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+n}},e}(r.default);r.default.registerComponent("DurationDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],96:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=a.default(this.player_.remainingTime());e!==this.formattedTime_&&(this.formattedTime_=e,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+e)}},e}(r.default);r.default.registerComponent("RemainingTimeDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],97:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../../component.js"))&&o.__esModule?o:{default:o},s=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(r.default);r.default.registerComponent("TimeDivider",s),n.default=s,e.exports=n.default},{"../../component.js":67}],98:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../menu/menu-button.js")),s=o(t("../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var r=o.tracks;
17if(t.call(this,n,o),this.items.length<=1&&this.hide(),r){var s=a.bind(this,this.update);r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),this.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})}}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);s.default.registerComponent("TrackButton",l),n.default=l,e.exports=n.default},{"../component.js":67,"../menu/menu-button.js":109,"../utils/fn.js":145}],99:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../slider/slider.js")),s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=(o(t("./volume-level.js")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"volumechange",this.updateARIAAttributes),n.ready(a.bind(this,this.updateARIAAttributes))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},e.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},e}(r.default));l.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},l.prototype.playerEvent="volumechange",s.default.registerComponent("VolumeBar",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"./volume-level.js":101}],100:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../../component.js")),s=(o(t("./volume-bar.js")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),n.tech_&&!1===n.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(r.default));s.prototype.options_={children:["volumeBar"]},r.default.registerComponent("VolumeControl",s),n.default=s,e.exports=n.default},{"../../component.js":67,"./volume-bar.js":99}],101:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("../../component.js"))&&o.__esModule?o:{default:o},s=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(r.default);
17r.default.registerComponent("VolumeLevel",s),n.default=s,e.exports=n.default},{"../../component.js":67}],102:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/fn.js")),s=o(t("../component.js")),a=o(t("../popup/popup.js")),l=o(t("../popup/popup-button.js")),c=o(t("./mute-toggle.js")),u=o(t("./volume-control/volume-bar.js")),h=function(t){function e(n){function o(){n.tech_&&!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),void 0===r.inline&&(r.inline=!0),void 0===r.vertical&&(r.vertical=!r.inline),r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=!!r.vertical,t.call(this,n,r),this.on(n,"volumechange",this.volumeUpdate),this.on(n,"loadstart",this.volumeUpdate),o.call(this),this.on(n,"loadstart",o),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createPopup=function(){var t=new a.default(this.player_,{contentElType:"div"}),e=new u.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},e.prototype.handleClick=function(){c.default.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],r.bind(this,this.handleMouseDown))},e.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},e.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove))},e}(l.default);h.prototype.volumeUpdate=c.default.prototype.update,h.prototype.controlText_="Mute",s.default.registerComponent("VolumeMenuButton",h),n.default=h,e.exports=n.default},{"../component.js":67,"../popup/popup-button.js":115,"../popup/popup.js":116,"../utils/fn.js":145,"./mute-toggle.js":73,"./volume-control/volume-bar.js":99}],103:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./component")),s=o(t("./modal-dialog")),a=o((function(t){if(!t||!t.__esModule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("./utils/dom")),t("./utils/merge-options"))),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"error",this.open)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(s.default);l.prototype.options_=a.default(s.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),r.default.registerComponent("ErrorDisplay",l),n.default=l,e.exports=n.default},{"./component":67,"./modal-dialog":112,"./utils/dom":143,"./utils/merge-options":149}],104:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./utils/events.js")),r=function(){};r.prototype.allowedEvents_={},r.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},o.on(this,t,e),this.addEventListener=n},r.prototype.addEventListener=r.prototype.on,r.prototype.off=function(t,e){o.off(this,t,e)},r.prototype.removeEventListener=r.prototype.off,r.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},o.one(this,t,e),this.addEventListener=n},r.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=o.fixEvent(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),o.trigger(this,t)},r.prototype.dispatchEvent=r.prototype.trigger,n.default=r,e.exports=n.default},{"./utils/events.js":144}],105:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("./utils/log"))&&o.__esModule?o:{default:o},s=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)};n.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=function(){t.apply(this,arguments)},o={};for(var a in"object"==typeof e?("function"==typeof e.init&&(r.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(n=e.constructor),o=e):"function"==typeof e&&(n=e),s(n,t),o)o.hasOwnProperty(a)&&(n.prototype[a]=o[a]);return n},e.exports=n.default},{"./utils/log":148}],106:[function(t,e,n){"use strict";n.__esModule=!0;for(var o=t("global/document"),r=o&&o.__esModule?o:{default:o},s={},a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
17webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=a[0],c=void 0,u=0;u<a.length;u++)if(a[u][1]in r.default){c=a[u];break}if(c)for(var u=0;u<c.length;u++)s[l[u]]=c[u];n.default=s,e.exports=n.default},{"global/document":1}],107:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("./component"))&&o.__esModule?o:{default:o},s=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},e}(r.default);r.default.registerComponent("LoadingSpinner",s),n.default=s,e.exports=n.default},{"./component":67}],108:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("object.assign"))&&o.__esModule?o:{default:o},s=function t(e){"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:"object"==typeof e&&r.default(this,e),this.message||(this.message=t.defaultMessages[this.code]||"")};s.prototype.code=0,s.prototype.message="",s.prototype.status=null,s.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],s.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var a=0;a<s.errorTypes.length;a++)s[s.errorTypes[a]]=a,s.prototype[s.errorTypes[a]]=a;n.default=s,e.exports=n.default},{"object.assign":45}],109:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../clickable-component.js")),a=r(t("../component.js")),l=r(t("./menu.js")),c=o(t("../utils/dom.js")),u=o(t("../utils/fn.js")),h=r(t("../utils/to-title-case.js")),d=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update(),this.enabled_=!0,this.el_.setAttribute("aria-haspopup","true"),this.el_.setAttribute("role","menuitem"),this.on("keydown",this.handleSubmenuKeyPress)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createMenu=function(){var t=new l.default(this.player_);if(this.options_.title){var e=c.createEl("li",{className:"vjs-menu-title",innerHTML:h.default(this.options_.title),tabIndex:-1});t.children_.unshift(e),c.insertElFirst(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return"vjs-menu-button "+(e+=!0===this.options_.inline?"-inline":"-popup")+" "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.one("mouseout",u.bind(this,function(){this.menu.unlockShowing(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.preventDefault()):38===e.which||40===e.which?this.buttonPressed_||(this.pressButton(),e.preventDefault()):t.prototype.handleKeyPress.call(this,e)},e.prototype.handleSubmenuKeyPress=function(t){(27===t.which||9===t.which)&&(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault())},e.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},e.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","fal
17se"),this.el_.focus())},e.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,t.prototype.disable.call(this)},e.prototype.enable=function(){return this.enabled_=!0,t.prototype.enable.call(this)},e}(s.default);a.default.registerComponent("MenuButton",d),n.default=d,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./menu.js":111}],110:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../clickable-component.js")),s=o(t("../component.js")),a=o(t("object.assign")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.selectable=o.selectable,this.selected(o.selected),this.selectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitem")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(e,n,o){return t.prototype.createEl.call(this,"li",a.default({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),o)},e.prototype.handleClick=function(){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))},e}(r.default);s.default.registerComponent("MenuItem",l),n.default=l,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"object.assign":45}],111:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var r,s=(r=t("../component.js"))&&r.__esModule?r:{default:r},a=o(t("../utils/dom.js")),l=o(t("../utils/fn.js")),c=o(t("../utils/events.js")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.focusedChild_=-1,this.on("keydown",this.handleKeyPress)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.setAttribute("role","presentation"),n.appendChild(this.contentEl_),c.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):(38===t.which||39===t.which)&&(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),e.length>0&&(0>t?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(s.default);s.default.registerComponent("Menu",u),n.default=u,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],112:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var s=r(t("./utils/dom")),a=r(t("./utils/fn")),l=(o(t("./utils/log")),t("./component")),c=o(l),u=(o(t("./close-button")),"vjs-modal-dialog"),h=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=s.createEl("div",{className:u+"-content"},{role:"document"}),this.descEl_=s.createEl("p",{className:u+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),s.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.buildCSSClass=function(){return u+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},e.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!t.paused(),this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var o=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton"),this.contentEl_=o,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},e.prototype.fill=function(){return this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,o=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),s.insertContent(e,t),this.trigger("modalfill"),o?n.insertBefore(e,o):n.appendChild(e),this},e.prototype.empty=function(){return this.trigger("beforemodalempty"),s.emptyEl(this.contentEl()),this.trigger("modalempty"),this},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e}(c.default);h.prototype.options_={temporary:!0}
17,c.default.registerComponent("ModalDialog",h),n.default=h,e.exports=n.default},{"./close-button":66,"./component":67,"./utils/dom":143,"./utils/fn":145,"./utils/log":148}],113:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./component.js")),a=r(t("global/document")),l=r(t("global/window")),c=o(t("./utils/events.js")),u=o(t("./utils/dom.js")),h=o(t("./utils/fn.js")),d=o(t("./utils/guid.js")),p=o(t("./utils/browser.js")),f=r(t("./utils/log.js")),m=r(t("./utils/to-title-case.js")),g=t("./utils/time-ranges.js"),v=t("./utils/buffer.js"),y=o(t("./utils/stylesheet.js")),_=r(t("./fullscreen-api.js")),b=r(t("./media-error.js")),w=r(t("safe-json-parse/tuple")),x=r(t("object.assign")),T=r(t("./utils/merge-options.js")),k=r(t("./tracks/text-track-list-converter.js")),j=r(t("./tracks/audio-track-list.js")),C=r(t("./tracks/video-track-list.js")),S=(r(t("./tech/loader.js")),t("./poster-image.js")),E=(r(S),t("./tracks/text-track-display.js")),P=(r(E),t("./loading-spinner.js")),O=(r(P),t("./big-play-button.js")),M=(r(O),t("./control-bar/control-bar.js")),I=(r(M),t("./error-display.js")),A=(r(I),t("./tracks/text-track-settings.js")),z=(r(A),t("./modal-dialog")),N=r(z),D=r(t("./tech/tech.js")),R=(r(t("./tech/html5.js")),function(t){function e(n,o,r){var s,a,l=this;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),n.id=n.id||"vjs_video_"+d.newGUID(),(o=x.default(e.getTagSettings(n),o)).initChildren=!1,o.createEl=!1,o.reportTouchActivity=!1,t.call(this,null,o,r),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=n,this.tagAttributes=n&&u.getElAttributes(n),this.language(this.options_.language),o.languages?(s={},Object.getOwnPropertyNames(o.languages).forEach(function(t){s[t.toLowerCase()]=o.languages[t]}),l.languages_=s):this.languages_=e.prototype.options_.languages,this.cache_={},this.poster_=o.poster||"",this.controls_=!!o.controls,n.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var c=T.default(this.options_);o.plugins&&Object.getOwnPropertyNames(a=o.plugins).forEach(function(t){"function"==typeof this[t]?this[t](a[t]):f.default.error("Unable to find plugin:",t)},l),this.options_.playerOptions=c,this.initChildren(),this.isAudio("audio"===n.nodeName.toLowerCase()),this.addClass(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label","audio player"):this.el_.setAttribute("aria-label","video player"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),p.IS_IOS||this.addClass("vjs-workinghover"),e.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.el_=t.prototype.createEl.call(this,"div"),n=this.tag;n.removeAttribute("width"),n.removeAttribute("height");var o=u.getElAttributes(n);
17if(Object.getOwnPropertyNames(o).forEach(function(t){"class"===t?e.className=o[t]:e.setAttribute(t,o[t])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==l.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=y.createStyleElement("vjs-styles-dimensions");var r=u.$(".vjs-styles-defaults"),s=u.$("head");s.insertBefore(this.styleEl_,r?r.nextSibling:s.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var a=n.getElementsByTagName("a"),c=0;c<a.length;c++){var h=a.item(c);u.addElClass(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&n.parentNode.insertBefore(e,n),u.insertElFirst(n,e),this.children_.unshift(n),this.el_=e,e},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e)this[n]=void 0;else{var o=parseFloat(e);if(isNaN(o))return f.default.error('Improper value "'+e+'" supplied for for '+t),this;this[n]=o}return this.updateStyleEl_(),this},e.prototype.fluid=function(t){return void 0===t?!!this.fluid_:(this.fluid_=!!t,void(t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")))},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0===l.default.VIDEOJS_NO_DYNAMIC_STYLE){var t="number"==typeof this.width_?this.width_:this.options_.width,e="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void(n&&(t>=0&&(n.width=t),e>=0&&(n.height=e)))}var o=void 0,r=void 0,s=void 0,a=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),c=a[1]/a[0];o=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/c:this.videoWidth()||300,r=void 0!==this.height_?this.height_:o*c,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),y.setTextContent(this.styleEl_,"\n ."+s+" {\n width: "+o+"px;\n height: "+r+"px;\n }\n\n ."+s+".vjs-fluid {\n padding-top: "+100*c+"%;\n }\n ")},e.prototype.loadTech_=function(t,e){this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(D.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var n=x.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:e,playerId:this.id(),techId:this.id()+"_"+t+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[t.toLowerCase()]);this.tag&&(n.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime),this.cache_.src=e.src);var o=D.default.getTech(t);o||(o=s.default.getComponent(t)),this.tech_=new o(n),this.tech_.ready(h.bind(this,this.handleTechReady_),!0),k.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControl
17sListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||u.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=k.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.tech_;var e="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw l.default.alert(e),Error(e)},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechProgress_=function(){this.trigger("progress")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t&&t.code)},e.prototype.handleTechSuspend_=function(){this.trigger("suspend")},e.prototype.handleTechAbort_=function(){this.trigger("abort")},e.prototype.handleTechEmptied_=function(){this.trigger("emptied")},e.prototype.handleTechStalled_=function(){this.trigger("stalled")},e.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},e.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},e.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},e.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},e.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},e.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_[t](e)}catch(t){throw f.default(t),t}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?f.default("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?(f.default("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):f.default(e),e}},e.prototype.play=function(){return this.techCall_("play"),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):this.cache_.currentTime=this.techGet_("currentTime")||0},e.prototype.duration=function(t){return void 0===t?this.cache_.duration||0:(0>(t=parseFloat(t)||0)&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=g.createTimeRange(0,0)),t},e.prototype.bufferedPercent=function(){return v.bufferedPercent(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):isNaN(e=parseFloat(this.techGet_("volume")))?1:e},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=_.default;return this.isFullscreen(!0),t.requestFullscreen?(c.on(a.default,t.fullscreenchange,h.bind(this,function e(){this.isFullscreen(a.default[t.fullscreenElement]),!1===this.isFullscreen()&&c.off(a.default,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=_.default;return this.isFullscreen(!1),t.requestFullscreen?a.default[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=a.default.documentElement.style.overflow,c.on(a.default,"keydown",h.bind(this,this.fullWindowOnEscKey)),a.default.documentElement.style.overflow="hidden",u.addElClass(a.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,c.off(a.default,"keydown",this.fullWindowOnEscKey),a.default.documentElement.style.overflow=this.docOrigOverflow,u.removeElClass(a.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,n=0,o=this.options_.techOrder;n<o.length;n++){var r=m.default(o[n]),a=D.default.getTech(r);if(a||(a=s.default.getComponent(r)),a){if(a.isSupported()&&(e=a.canPlayType(t)))return e}else f.default.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e=this.options_.techOrder.map(m.default).map(function(t){return[t,D.default.getTech(t)||s.default.getComponent(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(f.default.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(t,e,n){var o=void 0;return t.some(function(t){return e.some(function(e){return!!(o=n(t,e))||void 0})}),o},o=function(t,e){var n=t[0];return t[1].canPlaySource(e)?{source:e,tech:n}:void 0};return(this.options_.sourceOrder?n(t,e,function(t,e){return o(e,t)}):n(e,t,o))||!1},e.prototype.src=function(t){if(void 0===t)return this.techGet_("src");var e=D.default.getTech(this.techName_);return e||(e=s.default.getComponent(this.techName_)),Array.isArray(t)?this.sourceList_(t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!e.canPlaySource(t)?this.sourceList_([t]):(this.cache_.src=t.src,this.currentType_=t.type||"",this.ready(function(){e.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},e.prototype.sourceList_=function(t){var e=this.selectSource(t);e?e.tech===this.techName_?this.src(e.source):this.loadTech_(e.tech,e.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},e.prototype.load=function(){return this.techCall_("load"),this},e.prototype.reset=function(){return this.loadTech_(m.default(this.options_.techOrder[0]),null),this.techCall_("reset"),this},e.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},e.prototype.currentType=function(){return this.currentType_||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),this.options_.preload=t,this):this.techGet_("preload")},e.prototype.autoplay=function(t){return void 0!==t?(this.techCall_("setAutoplay",t),this.options_.autoplay=t,this):this.techGet_("autoplay",t)},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),this.options_.loop=t,this):this.techGet_("loop")},e.prototype.poster=function(t){return void 0===t?this.poster_:(t||(t=""),this.poster_=t,this.techCall_("setPoster",t),this.trigger("posterchange"),this)},e.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},e.prototype.controls=function(t){return void 0!==t?(t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
17sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},e.prototype.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(this.error_=t instanceof b.default?t:new b.default(t),this.addClass("vjs-error"),f.default.error("(CODE:"+this.error_.code+" "+b.default.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},e.prototype.ended=function(){return this.techGet_("ended")},e.prototype.seeking=function(){return this.techGet_("seeking")},e.prototype.seekable=function(){return this.techGet_("seekable")},e.prototype.reportUserActivity=function(){this.userActivity_=!0},e.prototype.userActive=function(t){return void 0!==t?((t=!!t)!==this.userActive_&&(this.userActive_=t,t?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,n=void 0,o=h.bind(this,this.reportUserActivity);this.on("mousedown",function(){o(),this.clearInterval(t),t=this.setInterval(o,250)}),this.on("mousemove",function(t){(t.screenX!==e||t.screenY!==n)&&(e=t.screenX,n=t.screenY,o())}),this.on("mouseup",function(){o(),this.clearInterval(t)}),this.on("keydown",o),this.on("keyup",o);var r=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r);var t=this.options_.inactivityTimeout;t>0&&(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.networkState=function(){return this.techGet_("networkState")},e.prototype.readyState=function(){return this.techGet_("readyState")},e.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new C.default,this.videoTracks_)},e.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new j.default,this.audioTracks_)},e.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},e.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},e.prototype.addTextTrack=function(t,e,n){return this.tech_&&this.tech_.addTextTrack(t,e,n)},e.prototype.addRemoteTextTrack=function(t){return this.tech_&&this.tech_.addRemoteTextTrack(t)},e.prototype.removeRemoteTextTrack=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.track,n=void 0===e?arguments[0]:e;this.tech_&&this.tech_.removeRemoteTextTrack(n)},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=(""+t).toLowerCase(),this)},e.prototype.languages=function(){return T.default(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=T.default(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var o=e[n];(o=T.default(o)).player=void 0,t.tracks[n]=o}return t},e.prototype.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var o=new N.default(n,e);return n.addChild(o),o.on("dispose",function(){n.removeChild(o)}),o.open()},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=u.getElAttributes(t),o=n["data-setup"];if(null!==o){var r=w.default(o||"{}"),s=r[0],a=r[1];s&&f.default.error(s),x.default(n,a)}if(x.default(e,n),t.hasChildNodes())for(var l=t.childNodes,c=0,h=l.length;h>c;c++){var d=l[c],p=d.nodeName.toLowerCase();"source"===p?e.sources.push(u.getElAttributes(d)):"track"===p&&e.tracks.push(u.getElAttributes(d))}return e},e}(s.default));R.players={};var B=l.default.navigator;R.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:a.default.getElementsByTagName("html")[0].getAttribute("lang")||B.languages&&B.languages[0]||B.userLanguage||B.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},R.prototype.handleLoadedMetaData_,R.prototype.handleLoadedData_,R.prototype.handleUserActive_,R.prototype.handleUserInactive_,R.prototype.handleTimeUpdate_,R.prototype.handleTechEnded_,R.prototype.handleVolumeChange_,R.prototype.handleError_,R.prototype.flexNotSupported_=function(){var t=a.default.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)}
17,s.default.registerComponent("Player",R),n.default=R,e.exports=n.default},{"./big-play-button.js":63,"./component.js":67,"./control-bar/control-bar.js":70,"./error-display.js":103,"./fullscreen-api.js":106,"./loading-spinner.js":107,"./media-error.js":108,"./modal-dialog":112,"./poster-image.js":117,"./tech/html5.js":122,"./tech/loader.js":123,"./tech/tech.js":124,"./tracks/audio-track-list.js":125,"./tracks/text-track-display.js":130,"./tracks/text-track-list-converter.js":131,"./tracks/text-track-settings.js":133,"./tracks/video-track-list.js":138,"./utils/browser.js":140,"./utils/buffer.js":141,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/to-title-case.js":152,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":54}],114:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("./player.js"))&&o.__esModule?o:{default:o};n.default=function(t,e){r.default.prototype[t]=e},e.exports=n.default},{"./player.js":113}],115:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../clickable-component.js")),a=r(t("../component.js")),l=(o((r(t("./popup.js")),t("../utils/dom.js"))),t("../utils/fn.js")),c=(r((o(l),t("../utils/to-title-case.js"))),function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createPopup=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return"vjs-menu-button "+(e+=!0===this.options_.inline?"-inline":"-popup")+" "+t.prototype.buildCSSClass.call(this)},e}(s.default));a.default.registerComponent("PopupButton",c),n.default=c,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./popup.js":116}],116:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var r,s=(r=t("../component.js"))&&r.__esModule?r:{default:r},a=o(t("../utils/dom.js")),l=o(t("../utils/fn.js")),c=o(t("../utils/events.js")),u=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"});var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),c.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e}(s.default);s.default.registerComponent("Popup",u),n.default=u,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],117:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./clickable-component.js")),a=r(t("./component.js")),l=o(t("./utils/fn.js")),c=o(t("./utils/dom.js")),u=o(t("./utils/browser.js")),h=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update(),n.on("posterchange",l.bind(this,this.update))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=c.createEl("div",{className:"vjs-poster",tabIndex:-1});
17return u.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=c.createEl("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e}(s.default);a.default.registerComponent("PosterImage",h),n.default=h,e.exports=n.default},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":140,"./utils/dom.js":143,"./utils/fn.js":145}],118:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./utils/events.js")),s=o(t("global/document")),a=o(t("global/window")),l=!1,c=void 0,u=function(){var t=s.default.getElementsByTagName("video"),e=s.default.getElementsByTagName("audio"),n=[];if(t&&t.length>0)for(var o=0,r=t.length;r>o;o++)n.push(t[o]);if(e&&e.length>0)for(var o=0,r=e.length;r>o;o++)n.push(e[o]);if(n&&n.length>0)for(var o=0,r=n.length;r>o;o++){var a=n[o];if(!a||!a.getAttribute){h(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&c(a)}else l||h(1)},h=function(t,e){e&&(c=e),setTimeout(u,t)};"complete"===s.default.readyState?l=!0:r.one(a.default,"load",function(){l=!0}),n.autoSetup=u,n.autoSetupTimeout=h,n.hasLoaded=function(){return l}},{"./utils/events.js":144,"global/document":1,"global/window":2}],119:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),a=o(t("object.assign")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(n,"controlsvisible",this.update),this.on(n,this.playerEvent,this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return n.className=n.className+" vjs-slider",n=a.default({tabIndex:0},n),o=a.default({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},o),t.prototype.createEl.call(this,e,n,o)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;t.preventDefault(),s.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;s.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||0>t||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%";this.vertical()?e.el().style.height=n:e.el().style.width=n}}},e.prototype.calculateDistance=function(t){var e=s.getPointerPosition(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):(38===t.which||39===t.which)&&(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){return void 0===t?this.vertical_||!1:(this.vertical_=!!t,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},e}(r.default);r.default.registerComponent("Slider",l),n.default=l,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"object.assign":45}],120:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),o=void 0;return -1!==n?o=n+1:0===(n=o=t.lastIndexOf("/")+1)&&(n=o=t.length),e.connection=t.substring(0,n),e.stream=t.substring(o,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e){return t.rtmpSourceHandler.canPlayType(e.type)||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,n){var o=t.streamToParts(e.src);
17n.setRtmpConnection(o.connection),n.setRtmpStream(o.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t},e.exports=n.default},{}],121:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function s(t){k[t]=function(){return this.el_.vjs_getProperty(t)}}n.__esModule=!0;for(var a=t("./tech"),l=r(a),c=t("../utils/dom.js"),u=o(c),h=t("../utils/url.js"),d=o(h),p=t("../utils/time-ranges.js"),f=t("./flash-rtmp"),m=r(f),g=t("../component"),v=r(g),y=t("global/window"),_=r(y),b=t("object.assign"),w=r(b),x=_.default.navigator,T=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),n.source&&this.ready(function(){this.setSource(n.source)},!0),n.startTime&&this.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),_.default.videojs=_.default.videojs||{},_.default.videojs.Flash=_.default.videojs.Flash||{},_.default.videojs.Flash.onReady=e.onReady,_.default.videojs.Flash.onEvent=e.onEvent,_.default.videojs.Flash.onError=e.onError,this.on("seeked",function(){this.lastSeekTarget_=void 0})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=this.options_;t.swf||(t.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var n=t.techId,o=w.default({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.preload,loop:t.loop,muted:t.muted},t.flashVars),r=w.default({wmode:"opaque",bgcolor:"#000000"},t.params),s=w.default({id:n,name:n,class:"vjs-tech"},t.attributes);return this.el_=e.embed(t.swf,o,r,s),this.el_.tech=this,this.el_},e.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},e.prototype.pause=function(){this.el_.vjs_pause()},e.prototype.src=function(t){return void 0===t?this.currentSrc():this.setSrc(t)},e.prototype.setSrc=function(t){if(t=d.getAbsoluteURL(t),this.el_.vjs_src(t),this.autoplay()){var e=this;this.setTimeout(function(){e.play()},0)}},e.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},e.prototype.setCurrentTime=function(e){var n=this.seekable();n.length&&(e=(e=e>n.start(0)?e:n.start(0))<n.end(n.length-1)?e:n.end(n.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),t.prototype.setCurrentTime.call(this))},e.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},e.prototype.load=function(){this.el_.vjs_load()},e.prototype.poster=function(){this.el_.vjs_getProperty("poster")},e.prototype.setPoster=function(){},e.prototype.seekable=function(){var t=this.duration();return 0===t?p.createTimeRange():p.createTimeRange(0,t)},e.prototype.buffered=function(){var t=this.el_.vjs_getProperty("buffered");return 0===t.length?p.createTimeRange():p.createTimeRange(t[0][0],t[0][1])},e.prototype.supportsFullScreen=function(){return!1},e.prototype.enterFullScreen=function(){return!1},e}(l.default),k=T.prototype,j="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),C="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),S=0;S<j.length;S++)s(j[S]),function(t){k["set"+(t.charAt(0).toUpperCase()+t.slice(1))]=function(e){return this.el_.vjs_setProperty(t,e)}}(j[S]);for(var S=0;S<C.length;S++)s(C[S]);T.isSupported=function(){return T.version()[0]>=10},l.default.withSourceHandlers(T),T.nativeSourceHandler={},T.nativeSourceHandler.canPlayType=function(t){return t in T.formats?"maybe":""},T.nativeSourceHandler.canHandleSource=function(t){var e,n,o;return e=t.type?t.type.replace(/;.*/,"").toLowerCase():(n=t.src,(o=d.getFileExtension(n))?"video/"+o:""),T.nativeSourceHandler.canPlayType(e)},T.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},T.nativeSourceHandler.dispose=function(){},T.registerSourceHandler(T.nativeSourceHandler),T.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},T.onReady=function(t){var e=u.getEl(t),n=e&&e.tech;n&&n.el()&&T.checkReady(n)},T.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){T.checkReady(t)},50))},T.onEvent=function(t,e){u.getEl(t).tech.trigger(e)},T.onError=function(t,e){var n=u.getEl(t).tech;return"srcnotfound"===e?n.error(4):void n.error("FLASH: "+e)},T.version=function(){var t="0,0,0";try{t=new _.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{x.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(x.plugins["Shockwave Flash 2.0"]||x.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},T.embed=function(t,e,n,o){var r=T.getEmbedCode(t,e,n,o);return u.createEl("div",{innerHTML:r}).childNodes[0]},T.getEmbedCode=function(t,e,n,o){var r="",s="",a="";return e&&Object.getOwnPropertyNames(e).forEach(function(t){r+=t+"="+e[t]+"&"}),Object.getOwnPropertyNames(n=w.default({movie:t,flashvars:r,allowScriptAccess:"always",allowNetworking:"all"}
17,n)).forEach(function(t){s+='<param name="'+t+'" value="'+n[t]+'" />'}),Object.getOwnPropertyNames(o=w.default({data:t,width:"100%",height:"100%"},o)).forEach(function(t){a+=t+'="'+o[t]+'" '}),'<object type="application/x-shockwave-flash" '+a+">"+s+"</object>"},m.default(T),v.default.registerComponent("Flash",T),l.default.registerTech("Flash",T),n.default=T,e.exports=n.default},{"../component":67,"../utils/dom.js":143,"../utils/time-ranges.js":151,"../utils/url.js":153,"./flash-rtmp":120,"./tech":124,"global/window":2,"object.assign":45}],122:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s,a=((s=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n This may prevent text tracks from loading."],s),l=r(t("./tech.js")),c=r(t("../component")),u=o(t("../utils/dom.js")),h=o(t("../utils/url.js")),d=o(t("../utils/fn.js")),p=r(t("../utils/log.js")),f=r(t("tsml")),m=o((r(t("../../../src/js/tracks/text-track.js")),t("../utils/browser.js"))),g=r(t("global/document")),v=r(t("global/window")),y=r(t("object.assign")),_=r(t("../utils/merge-options.js")),b=r(t("../utils/to-title-case.js")),w=function(t){function e(n,o){var r=this;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o);var s=n.source,l=!1;if(s&&(this.el_.currentSrc!==s.src||n.tag&&3===n.tag.initNetworkState_)?this.setSource(s):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var c=this.el_.childNodes,u=c.length,g=[];u--;){var v=c[u];"track"===v.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(v),this.remoteTextTracks().addTrack_(v.track),l||this.el_.hasAttribute("crossorigin")||!h.isCrossOrigin(v.src)||(l=!0)):g.push(v))}for(var y=0;y<g.length;y++)this.el_.removeChild(g[y])}["audio","video"].forEach(function(t){var e=b.default(t);if(r["featuresNative"+e+"Tracks"]){var n=r.el()[t+"Tracks"];n&&n.addEventListener&&(n.addEventListener("change",d.bind(r,r["handle"+e+"TrackChange_"])),n.addEventListener("addtrack",d.bind(r,r["handle"+e+"TrackAdd_"])),n.addEventListener("removetrack",d.bind(r,r["handle"+e+"TrackRemove_"])))}}),this.featuresNativeTextTracks&&(l&&p.default.warn(f.default(a)),this.handleTextTrackChange_=d.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=d.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=d.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_()),(m.TOUCH_ENABLED&&
17!0===n.nativeControlsForTouch||m.IS_IPHONE||m.IS_NATIVE_ANDROID)&&this.setControls(!0),this.triggerReady()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){var n=this;["audio","video","text"].forEach(function(t){var e=b.default(t),o=n.el_[t+"Tracks"];o&&o.removeEventListener&&(o.removeEventListener("change",n["handle"+e+"TrackChange_"]),o.removeEventListener("addtrack",n["handle"+e+"TrackAdd_"]),o.removeEventListener("removetrack",n["handle"+e+"TrackRemove_"]))}),e.disposeMediaElement(this.el_),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!1===this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=g.default.createElement("video");var o=this.options_.tag&&u.getElAttributes(this.options_.tag),r=_.default({},o);
17m.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete r.controls,u.setElAttributes(t,y.default(r,{id:this.options_.techId,class:"vjs-tech"}))}}for(var s=["autoplay","preload","loop","muted"],a=s.length-1;a>=0;a--){var l=s[a],c={};void 0!==this.options_[l]&&(c[l]=this.options_[l]),u.setElAttributes(t,c)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e,n,o,r=(e=!1,n=function(){e=!0},this.on("loadstart",n),o=function(){e||this.trigger("loadstart")},this.on("loadedmetadata",o),this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",o),e||this.trigger("loadstart")}),{v:void 0});if("object"==typeof r)return r.v}var s=["loadstart"];s.push("loadedmetadata"),t.readyState>=2&&s.push("loadeddata"),t.readyState>=3&&s.push("canplay"),t.readyState>=4&&s.push("canplaythrough"),this.ready(function(){s.forEach(function(t){this.trigger(t)},this)})}},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e<t.length;e++)this.textTracks().addTrack_(t[e]);t.addEventListener&&(t.addEventListener("change",this.handleTextTrackChange_),t.addEventListener("addtrack",this.handleTextTrackAdd_),t.addEventListener("removetrack",this.handleTextTrackRemove_))}},e.prototype.handleTextTrackChange=function(){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleTextTrackAdd=function(t){this.textTracks().addTrack_(t.track)},e.prototype.handleTextTrackRemove=function(t){this.textTracks().removeTrack_(t.track)},e.prototype.handleVideoTrackChange_=function(){var t=this.videoTracks();this.videoTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleVideoTrackAdd_=function(t){this.videoTracks().addTrack_(t.track)},e.prototype.handleVideoTrackRemove_=function(t){this.videoTracks().removeTrack_(t.track)},e.prototype.handleAudioTrackChange_=function(){var t=this.audioTracks();this.audioTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleAudioTrackAdd_=function(t){this.audioTracks().addTrack_(t.track)},e.prototype.handleAudioTrackRemove_=function(t){this.audioTracks().removeTrack_(t.track)},e.prototype.play=function(){this.el_.play()},e.prototype.pause=function(){this.el_.pause()},e.prototype.paused=function(){return this.el_.paused},e.prototype.currentTime=function(){return this.el_.currentTime},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){p.default(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){return this.el_.duration||0},e.prototype.buffered=function(){return this.el_.buffered},e.prototype.volume=function(){return this.el_.volume},e.prototype.setVolume=function(t){this.el_.volume=t},e.prototype.muted=function(){return this.el_.muted},e.prototype.setMuted=function(t){this.el_.muted=t},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=v.default.navigator.userAgent;if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;"webkitDisplayingFullscreen"in t&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){return void 0===t?this.el_.src:void this.setSrc(t)},e.prototype.setSrc=function(t){this.el_.src=t},e.prototype.load=function(){this.el_.load()},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.poster=function(){return this.el_.poster},e.prototype.setPoster=function(t){this.el_.poster=t},e.prototype.preload=function(){return this.el_.preload},e.prototype.setPreload=function(t){this.el_.preload=t},e.prototype.autoplay=function(){return this.el_.autoplay},e.prototype.setAutoplay=function(t){this.el_.autoplay=t},e.prototype.controls=function(){return this.el_.controls},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.loop=function(){return this.el_.loop},e.prototype.setLoop=function(t){this.el_.loop=t},e.prototype.error=function(){return this.el_.error},e.prototype.seeking=function(){return this.el_.seeking},e.prototype.seekable=function(){return this.el_.seekable},e.prototype.ended=function(){return this.el_.ended},e.prototype.defaultMuted=function(){return this.el_.defaultMuted},e.prototype.playbackRate=function(){return this.el_.playbackRate},e.prototype.played=function(){return this.el_.played},e.prototype.setPlaybackRate=function(t){this.el_.playbackRate=t},e.prototype.networkState=function(){return this.el_.networkState},e.prototype.readyState=function(){return this.el_.readyState},e.prototype.videoWidth=function(){return this.el_.videoWidth},e.prototype.videoHeight=function(){return this.el_.videoHeight},e.prototype.textTracks=function(){return t.prototype.textTracks.call(this)},e.prototype.addTextTrack=function(e,n,o){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,o):t.prototype.addTextTrack.call(this,e,n,o)},e.prototype.addRemoteTextTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!this.featuresNativeTextTracks)return t.prototype.addRemoteTextTrack.call(this,e);var n=g.default.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),this.el().appendChild(n),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.removeRemoteTextTrack.call(this,e);var n=void 0,o=void 0,r=this.remoteTextTrackEls().getTrackElementByTrack_(e);for(this.remoteTextTrackEls().removeTrackElement_(r),this.remoteTextTracks().removeTrack_(e),o=(n=this.$$("track")).length;o--;)(e===n[o]||e===n[o].track)&&this.el().removeChild(n[o])},e}(l.default);w.TEST_VID=g.default.createElement("video");var x=g.default.createElement("track");x.kind="captions",x.srclang="en",x.label="English",w.TEST_VID.appendChild(x),w.isSupported=function(){try{w.TEST_VID.volume=.5}catch(t){return!1}
17return!!w.TEST_VID.canPlayType},l.default.withSourceHandlers(w),w.nativeSourceHandler={},w.nativeSourceHandler.canPlayType=function(t){try{return w.TEST_VID.canPlayType(t)}catch(t){return""}},w.nativeSourceHandler.canHandleSource=function(t){var e;return t.type?w.nativeSourceHandler.canPlayType(t.type):t.src?(e=h.getFileExtension(t.src),w.nativeSourceHandler.canPlayType("video/"+e)):""},w.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},w.nativeSourceHandler.dispose=function(){},w.registerSourceHandler(w.nativeSourceHandler),w.canControlVolume=function(){var t=w.TEST_VID.volume;return w.TEST_VID.volume=t/2+.1,t!==w.TEST_VID.volume},w.canControlPlaybackRate=function(){if(m.IS_ANDROID&&m.IS_CHROME)return!1;var t=w.TEST_VID.playbackRate;return w.TEST_VID.playbackRate=t/2+.1,t!==w.TEST_VID.playbackRate},w.supportsNativeTextTracks=function(){var t;return(t=!!w.TEST_VID.textTracks)&&w.TEST_VID.textTracks.length>0&&(t="number"!=typeof w.TEST_VID.textTracks[0].mode),t&&m.IS_FIREFOX&&(t=!1),!t||"onremovetrack"in w.TEST_VID.textTracks||(t=!1),t},w.supportsNativeVideoTracks=function(){return!!w.TEST_VID.videoTracks},w.supportsNativeAudioTracks=function(){return!!w.TEST_VID.audioTracks},w.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],w.prototype.featuresVolumeControl=w.canControlVolume(),w.prototype.featuresPlaybackRate=w.canControlPlaybackRate(),w.prototype.movingMediaElementInDOM=!m.IS_IOS,w.prototype.featuresFullscreenResize=!0,w.prototype.featuresProgressEvents=!0,w.prototype.featuresNativeTextTracks=w.supportsNativeTextTracks(),w.prototype.featuresNativeVideoTracks=w.supportsNativeVideoTracks(),w.prototype.featuresNativeAudioTracks=w.supportsNativeAudioTracks();var T=void 0,k=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,j=/^video\/mp4/i;w.patchCanPlayType=function(){m.ANDROID_VERSION>=4&&(T||(T=w.TEST_VID.constructor.prototype.canPlayType),w.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&k.test(t)?"maybe":T.call(this,t)}),m.IS_OLD_ANDROID&&(T||(T=w.TEST_VID.constructor.prototype.canPlayType),w.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&j.test(t)?"maybe":T.call(this,t)})},w.unpatchCanPlayType=function(){var t=w.TEST_VID.constructor.prototype.canPlayType;return w.TEST_VID.constructor.prototype.canPlayType=T,T=null,t},w.patchCanPlayType(),w.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},w.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},c.default.registerComponent("Html5",w),l.default.registerTech("Html5",w),n.default=w,e.exports=n.default},{"../../../src/js/tracks/text-track.js":134,"../component":67,"../utils/browser.js":140,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/to-title-case.js":152,"../utils/url.js":153,"./tech.js":124,"global/document":1,"global/window":2,"object.assign":45,tsml:55}],123:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../component.js")),s=o(t("./tech.js")),a=(o(t("global/window")),t("../utils/to-title-case.js")),l=o(a),c=function(t){function e(n,o,a){if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),t.call(this,n,o,a),o.playerOptions.sources&&0!==o.playerOptions.sources.length)n.src(o.playerOptions.sources);else for(var c=0,u=o.playerOptions.techOrder;c<u.length;c++){var h=l.default(u[c]),d=s.default.getTech(h);if(h||(d=r.default.getComponent(h)),d&&d.isSupported()){n.loadTech_(h);break}}}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);r.default.registerComponent("MediaLoader",c),n.default=c,e.exports=n.default},{"../component.js":67,"../utils/to-title-case.js":152,"./tech.js":124,"global/window":2}],124:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("../component")),s=o(t("../tracks/html-track-element")),a=o(t("../tracks/html-track-element-list")),l=o(t("../utils/merge-options.js")),c=o(t("../tracks/text-track")),u=o(t("../tracks/text-track-list")),h=(o(t("../tracks/video-track")),t("../tracks/video-track-list")),d=o(h),p=o(t("../tracks/audio-track-list")),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(t("../tracks/audio-track")),t("../utils/fn.js"))),m=o(t("../utils/log.js")),g=t("../utils/time-ranges.js"),v=t("../utils/buffer.js"),y=o(t("../media-error.js")),_=o(t("global/window")),b=
17o(t("global/document")),w=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),n.reportTouchActivity=!1,t.call(this,null,n,o),this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),this.textTracks_=n.textTracks,this.videoTracks_=n.videoTracks,this.audioTracks_=n.audioTracks,this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),(!1===n.nativeCaptions||!1===n.nativeTextTracks)&&(this.featuresNativeTextTracks=!1),this.featuresNativeTextTracks||this.on("ready",this.emulateTextTracks),this.initTextTrackListeners(),this.initTrackListeners(),this.emitTapEvents()}/*! Time Tracking -------------------------------------------------------------- */return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(){this.stopTrackingProgress(),this.progressInterval=this.setInterval(f.bind(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(){this.duration_=this.duration()},e.prototype.buffered=function(){return g.createTimeRange(0,0)},e.prototype.bufferedPercent=function(){return v.bufferedPercent(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var n=e[t+"Tracks"]()||[],o=n.length;o--;){var r=n[o];"text"===t&&e.removeRemoteTextTrack(r),n.removeTrack_(r)}})},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=t instanceof y.default?t:new y.default(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?g.createTimeRange(0,0):g.createTimeRange()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTextTrackListeners=function(){var t=f.bind(this,function(){this.trigger("texttrackchange")}),e=this.textTracks();e&&(e.addEventListener("removetrack",t),e.addEventListener("addtrack",t),this.on("dispose",f.bind(this,function(){e.removeEventListener("removetrack",t),e.removeEventListener("addtrack",t)})))},e.prototype.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(e){var n=function(){t.trigger(e+"trackchange")},o=t[e+"Tracks"]();
17o.addEventListener("removetrack",n),o.addEventListener("addtrack",n),t.on("dispose",function(){o.removeEventListener("removetrack",n),o.removeEventListener("addtrack",n)})})},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks();if(e){_.default.WebVTT||null==this.el().parentNode||((n=b.default.createElement("script")).src=t.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",n.onload=function(){t.trigger("vttjsloaded")},n.onerror=function(){t.trigger("vttjserror")},t.on("dispose",function(){n.onload=null,n.onerror=null}),_.default.WebVTT=!0,t.el().parentNode.appendChild(n));var n,o=function(){return t.trigger("texttrackchange")},r=function(){o();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};r(),e.addEventListener("change",r),this.on("dispose",function(){e.removeEventListener("change",r)})}},e.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new d.default,this.videoTracks_},e.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new p.default,this.audioTracks_},e.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new u.default,this.textTracks_},e.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new u.default,this.remoteTextTracks_},e.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new a.default,this.remoteTextTrackEls_},e.prototype.addTextTrack=function(t,e,n){if(!t)throw Error("TextTrack kind is required but was not provided");return x(this,t,e,n)},e.prototype.addRemoteTextTrack=function(t){var e=l.default(t,{tech:this}),n=new s.default(e);return this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),this.textTracks().addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(t){this.textTracks().removeTrack_(t);var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack_(t)},e.prototype.setPoster=function(){},e.prototype.canPlayType=function(){return""},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw Error("Tech "+t+" must be a Tech");return e.techs_[t]=n,n},e.getTech=function(t){return e.techs_&&e.techs_[t]?e.techs_[t]:_.default&&_.default.videojs&&_.default.videojs[t]?(m.default.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),_.default.videojs[t]):void 0},e}(r.default);w.prototype.textTracks_,w.prototype.audioTracks_,w.prototype.videoTracks_;var x=function(t,e,n,o){var r=arguments.length<=4||void 0===arguments[4]?{}:arguments[4],s=t.textTracks();r.kind=e,n&&(r.label=n),o&&(r.language=o),r.tech=t;var a=new c.default(r);return s.addTrack_(a),a};w.prototype.featuresVolumeControl=!0,w.prototype.featuresFullscreenResize=!1,w.prototype.featuresPlaybackRate=!1,w.prototype.featuresProgressEvents=!1,w.prototype.featuresTimeupdateEvents=!1,w.prototype.featuresNativeTextTracks=!1,w.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var o=t.sourceHandlers;o||(o=t.sourceHandlers=[]),void 0===n&&(n=o.length),o.splice(n,0,e)},t.canPlayType=function(e){for(var n=t.sourceHandlers||[],o=void 0,r=0;r<n.length;r++)if(o=n[r].canPlayType(e))return o;return""},t.selectSourceHandler=function(e){for(var n=t.sourceHandlers||[],o=0;o<n.length;o++)if(n[o].canHandleSource(e))return n[o];return null},t.canPlaySource=function(e){var n=t.selectSourceHandler(e);return n?n.canHandleSource(e):""},["seekable","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e);return n||(t.nativeSourceHandler?n=t.nativeSourceHandler:m.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),n!==t.nativeSourceHandler&&(this.currentSource_=e,this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",t.prototype.firstLoadStartListener_)),this.sourceHandler_=n.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler),this},t.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.successiveLoadStartListener_=function(){this.currentSource_=null,this.disposeSourceHandler(),this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&(this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose())}},r.default.registerComponent("Tech",w),r.default.registerComponent("MediaTechController",w),w.registerTech("Tech",w),n.default=w,e.exports=n.default},{"../component":67,"../media-error.js":108,"../tracks/audio-track":126,"../tracks/audio-track-list":125,"../tracks/html-track-element":128,"../tracks/html-track-element-list":127,"../tracks/text-track":134,"../tracks/text-track-list":132,"../tracks/video-track":139,"../tracks/video-track-list":138,"../utils/buffer.js":141,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/time-ranges.js":151,"global/document":1,"global/window":2}],125:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./track-list")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),a=o(t("global/document")),l=function(t,e){for(var n=0;n<t.length;n++)e.id!==t[n].id&&(t[n].enabled=!1)},c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);for(var o=void 0,c=n.length-1;c>=0;c--)if(n[c].enabled){l(n,n[c]);break}if(s.IS_IE8){for(var u in o=a.default.createElement("custom"),r.default.prototype)"constructor"!==u&&(
17o[u]=r.default.prototype[u]);for(var u in e.prototype)"constructor"!==u&&(o[u]=e.prototype[u])}return(o=t.call(this,n,o)).changing_=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){var n=this;e.enabled&&l(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,l(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(r.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],126:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=t("./track-enums"),s=o(t("./track")),a=o(t("../utils/merge-options")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=a.default(n,{kind:r.AudioTrackKind[n.kind]||""}),s=t.call(this,o),c=!1;if(l.IS_IE8)for(var u in e.prototype)"constructor"!==u&&(s[u]=e.prototype[u]);return Object.defineProperty(s,"enabled",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("enabledchange"))}}),o.enabled&&(s.enabled=o.enabled),s.loaded_=!0,s}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(s.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],127:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),s=(o=t("global/document"))&&o.__esModule?o:{default:o},a=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t);var n=this;if(r.IS_IE8)for(var o in n=s.default.createElement("custom"),t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var a=0,l=e.length;l>a;a++)n.addTrackElement_(e[a]);return r.IS_IE8?n:void 0}return t.prototype.addTrackElement_=function(t){this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,o=this.trackElements_.length;o>n;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;n>e;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}();n.default=a,e.exports=n.default},{"../utils/browser.js":140,"global/document":1}],128:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),s=o(t("global/document")),a=o(t("../event-target")),l=o(t("../tracks/text-track")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this);var o=void 0,a=this;if(r.IS_IE8)for(var c in a=s.default.createElement("custom"),e.prototype)"constructor"!==c&&(a[c]=e.prototype[c]);var u=new l.default(n);return a.kind=u.kind,a.src=u.src,a.srclang=u.language,a.label=u.label,a.default=u.default,Object.defineProperty(a,"readyState",{get:function(){return o}}),Object.defineProperty(a,"track",{get:function(){return u}}),o=0,u.addEventListener("loadeddata",function(){o=2,a.trigger({type:"load",target:a})}),r.IS_IE8?a:void 0}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);c.prototype.allowedEvents_={load:"load"},c.NONE=0,c.LOADING=1,c.LOADED=2,c.ERROR=3,n.default=c,e.exports=n.default},{"../event-target":104,"../tracks/text-track":134,"../utils/browser.js":140,"global/document":1}],129:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),s=(o=t("global/document"))&&o.__esModule?o:{default:o},a=function(){function t(e){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t);var n=this;if(r.IS_IE8)for(var o in n=s.default.createElement("custom"),t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);return t.prototype.setCues_.call(n,e),Object.defineProperty(n,"length",{get:function(){return this.length_}}),r.IS_IE8?n:void 0}return t.prototype.setCues_=function(t){var e=this.length||0,n=0,o=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(o>e)for(n=e;o>n;n++)r.call(this,n)},t.prototype.getCueById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var r=this[n];if(r.id===t){e=r;break}}return e},t}();n.default=a,e.exports=n.default},{"../utils/browser.js":140,"global/document":1}],130:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function s(t,e,n){try{t.style[e]=n}catch(t){}}n.__esModule=!0;var a=o(t("../component")),l=(o(t("../menu/menu.js")),t("../menu/menu-item.js")),c=(o(l),t("../menu/menu-button.js")),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(c),t("../utils/fn.js"))),h=(o(t("global/document")),t("global/window")),d=o(h),p="#222",f="#ccc",m={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
17script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},g=function(t){function e(n,o,r){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,r),n.on("loadstart",u.bind(this,this.toggleDisplay)),n.on("texttrackchange",u.bind(this,this.updateDisplay)),n.ready(u.bind(this,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)return void this.hide();n.on("fullscreenchange",u.bind(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++){var o=t[e];this.player_.addRemoteTextTrack(o)}var r={captions:1,subtitles:1},s=this.player_.textTracks(),a=void 0,l=void 0;if(s){for(var e=0;e<s.length;e++){var o=s[e];o.default&&("descriptions"!==o.kind||a?o.kind in r&&!l&&(l=o):a=o)}l?l.mode="showing":a&&(a.mode="showing")}}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"assertive","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof d.default.WebVTT&&d.default.WebVTT.processCues(d.default,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();if(this.clearDisplay(),t){for(var e=null,n=null,o=t.length;o--;){var r=t[o];"showing"===r.mode&&("descriptions"===r.kind?e=r:n=r)}n?this.updateForTrack(n):e&&this.updateForTrack(e)}},e.prototype.updateForTrack=function(t){if("function"==typeof d.default.WebVTT&&t.activeCues){for(var e=this.player_.textTrackSettings.getValues(),n=[],o=0;o<t.activeCues.length;o++)n.push(t.activeCues[o]);d.default.WebVTT.processCues(d.default,n,this.el_);for(var a=n.length;a--;){var l=n[a];if(l){var c=l.displayState;if(e.color&&(c.firstChild.style.color=e.color),e.textOpacity&&s(c.firstChild,"color",r(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(c.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&s(c.firstChild,"backgroundColor",r(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?s(c,"backgroundColor",r(e.windowColor,e.windowOpacity)):c.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?c.firstChild.style.textShadow="2px 2px 3px "+p+", 2px 2px 4px "+p+", 2px 2px 5px "+p:"raised"===e.edgeStyle?c.firstChild.style.textShadow="1px 1px "+p+", 2px 2px "+p+", 3px 3px "+p:"depressed"===e.edgeStyle?c.firstChild.style.textShadow="1px 1px "+f+", 0 1px "+f+", -1px -1px "+p+", 0 -1px "+p:"uniform"===e.edgeStyle&&(c.firstChild.style.textShadow="0 0 4px "+p+", 0 0 4px "+p+", 0 0 4px "+p+", 0 0 4px "+p)),e.fontPercent&&1!==e.fontPercent){var u=d.default.parseFloat(c.style.fontSize);c.style.fontSize=u*e.fontPercent+"px",c.style.height="auto",c.style.top="auto",c.style.bottom="2px"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?c.firstChild.style.fontVariant="small-caps":c.firstChild.style.fontFamily=m[e.fontFamily])}}}},e}(a.default);a.default.registerComponent("TextTrackDisplay",g),n.default=g,e.exports=n.default},{"../component":67,"../menu/menu-button.js":109,"../menu/menu-item.js":110,"../menu/menu.js":111,"../utils/fn.js":145,"global/document":1,"global/window":2}],131:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,n){return t[n]&&(e[n]=t[n]),e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})};n.default={textTracksToJson:function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=o(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return -1===n.indexOf(t)}).map(o))},jsonToTextTracks:function(t,e){return t.forEach(function(t){var n=e.addRemoteTextTrack(t).track;
17!t.src&&t.cues&&t.cues.forEach(function(t){return n.addCue(t)})}),e.textTracks()},trackToJson_:o},e.exports=n.default},{}],132:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./track-list")),a=o(t("../utils/fn.js")),l=o(t("../utils/browser.js")),c=r(t("global/document")),u=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=void 0;if(l.IS_IE8){for(var r in o=c.default.createElement("custom"),s.default.prototype)"constructor"!==r&&(o[r]=s.default.prototype[r]);for(var r in e.prototype)"constructor"!==r&&(o[r]=e.prototype[r])}return t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){t.prototype.addTrack_.call(this,e),e.addEventListener("modechange",a.bind(this,function(){this.trigger("change")}))},e.prototype.removeTrack_=function(t){for(var e=void 0,n=0,o=this.length;o>n;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var r=this[n];if(r.id===t){e=r;break}}return e},e}(s.default);n.default=u,e.exports=n.default},{"../utils/browser.js":140,"../utils/fn.js":145,"./track-list":136,"global/document":1}],133:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function s(t){var e=void 0;return t.selectedOptions?e=t.selectedOptions[0]:t.options&&(e=t.options[t.options.selectedIndex]),e.value}function a(t,e){if(e){var n=void 0;for(n=0;n<t.options.length&&t.options[n].value!==e;n++);t.selectedIndex=n}}n.__esModule=!0;var l=r(t("../component")),c=o(t("../utils/events.js")),u=o(t("../utils/fn.js")),h=r(t("../utils/log.js")),d=r(t("safe-json-parse/tuple")),p=r(t("global/window")),f=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.hide(),void 0===o.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),c.on(this.$(".vjs-done-button"),"click",u.bind(this,function(){this.saveSettings(),this.hide()})),c.on(this.$(".vjs-default-button"),"click",u.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),c.on(this.$(".vjs-fg-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-bg-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".window-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-text-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-bg-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-window-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-font-percent select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-edge-style select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-font-family select"),"change",u.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'<div class="vjs-tracksettings">\n <div class="vjs-tracksettings-colors">\n <div class="vjs-fg-color vjs-tracksetting">\n <label class="vjs-label">Foreground</label>\n <select>\n <option value="">---</option>\n <option value="#FFF">White</option>\n <option value="#000">Black</option>\n <option value="#F00">Red</option>\n <option value="#0F0">Green</option>\n <option value="#00F">Blue</option>\n <option value="#FF0">Yellow</option>\n <option value="#F0F">Magenta</option>\n <option value="#0FF">Cyan</option>\n </select>
17\n <span class="vjs-text-opacity vjs-opacity">\n <select>\n <option value="">---</option>\n <option value="1">Opaque</option>\n <option value="0.5">Semi-Opaque</option>\n </select>\n </span>\n </div> <!-- vjs-fg-color -->\n <div class="vjs-bg-color vjs-tracksetting">\n <label class="vjs-label">Background</label>\n <select>\n <option value="">---</option>\n <option value="#FFF">White</option>\n <option value="#000">Black</option>\n <option value="#F00">Red</option>\n <option value="#0F0">Green</option>\n <option value="#00F">Blue</option>\n <option value="#FF0">Yellow</option>\n <option value="#F0F">Magenta</option>\n <option value="#0FF">Cyan</option>\n </select>\n <span class="vjs-bg-opacity vjs-opacity">\n <select>\n <option value="">---</option>\n <option value="1">Opaque</option>\n <option value="0.5">Semi-Transparent</option>\n <option value="0">Transparent</option>\n </select>\n </span>\n </div> <!-- vjs-bg-color -->\n <div class="window-color vjs-tracksetting">\n <label class="vjs-label">Window</label>\n <select>\n <option value="">---</option>\n <option value="#FFF">White</option>\n <option value="#000">Black</option>\n <option value="#F00">Red</option>\n <option value="#0F0">Green</option>\n <option value="#00F">Blue</option>\n <option value="#FF0">Yellow</option>\n <option value="#F0F">Magenta</option>\n <option value="#0FF">Cyan</option>\n </select>\n <span class="vjs-window-opacity vjs-opacity">\n <select>\n <option value="">---</option>\n <option value="1">Opaque</option>\n <option value="0.5">Semi-Transparent</option>\n <option value="0">Transparent</option>\n </select>\n </span>\n </div> <!-- vjs-window-color -->\n </div> <!-- vjs-tracksettings -->\n <div class="vjs-tracksettings-font">\n <div class="vjs-font-percent vjs-tracksetting">\n <label class="vjs-label">Font Size</label>\n <select>\n <option value="0.50">50%</option>\n <option value="0.75">75%</option>\n <option value="1.00" selected>100%</option>\n <option value="1.25">125%</option>\n <option value="1.50">150%</option>\n <option value="1.75">175%</option>\n <option value="2.00">200%</option>\n <option value="3.00">300%</option>\n <option value="4.00">400%</option>\n </select>\n </div> <!-- vjs-font-percent -->\n <div class="vjs-edge-style vjs-tracksetting">\n <label class="vjs-label">Text Edge Style</label>\n <select>\n <option value="none">None</option>\n <option value="raised">Raised</option>\n <option value="depressed">Depressed</option>\n <option value="uniform">Uniform</option>\n <option value="dropshadow">Dropshadow</option>\n </select>\n </div> <!-- vjs-edge-style -->\n <div class="vjs-font-family vjs-tracksetting">\n <label class="vjs-label">Font Family</label>\n <select>\n <option value="">Default</option>\n <option value="monospaceSerif">Monospace Serif</option>\n <option value="proportionalSerif">Proportional Serif</option>\n <option value="monospaceSansSerif">Monospace Sans-Serif</option>\n <option value="proportionalSansSerif">Proportional Sans-Serif</option>\n <option value="casual">Casual</option>\n <option value="script">Script</option>\n <option value="small-caps">Small Caps</option>\n </select>\n </div> <!-- vjs-font-family -->\n </div>\n </div>\n <div class="vjs-tracksettings-controls">\n <button class="vjs-default-button">Defaults</button>\n <button class="vjs-done-button">Done</button>\n </div>'})},e.prototype.getValues=function(){var t=s(this.$(".vjs-edge-style select")),e=s(this.$(".vjs-font-family select")),n=s(this.$(".vjs-fg-color > select")),o=s(this.$(".vjs-text-opacity > select")),r=s(this.$(".vjs-bg-color > select")),a=s(this.$(".vjs-bg-opacity > select")),l=s(this.$(".window-color > select")),c={backgroundOpacity:a,textOpacity:o,windowOpacity:s(this.$(".vjs-window-opacity > select")),edgeStyle:t,fontFamily:e,color:n,backgroundColor:r,windowColor:l,fontPercent:p.default.parseFloat(s(this.$(".vjs-font-percent > select")))};for(var u in c)(""===c[u]||"none"===c[u]||"fontPercent"===u&&1===c[u])&&delete c[u];return c},e.prototype.setValues=function(t){a(this.$(".vjs-edge-style select"),t.edgeStyle),a(this.$(".vjs-font-family select"),t.fontFamily),a(this.$(".vjs-fg-color > select"),t.color),a(this.$(".vjs-text-opacity > select"),t.textOpacity),a(this.$(".vjs-bg-color > select"),t.backgroundColor),a(this.$(".vjs-bg-opacity > select"),t.backgroundOpacity),a(this.$(".window-color > select"),t.windowColor),a(this.$(".vjs-window-opacity > select"),t.windowOpacity);var e=t.fontPercent;e&&(e=e.toFixed(2)),a(this.$(".vjs-font-percent > select"),e)},e.prototype.restoreSettings=function(){var t=void 0,e=void 0;try{var n=d.default(p.default.localStorage.getItem("vjs-text-track-settings"));t=n[0],e=n[1],t&&h.default.error(t)}catch(t){h.default.warn(t)}e&&this.setValues(e)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.getOwnPropertyNames(t).length>0?p.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):p.default.localStorage.removeItem("vjs-text-track-settings")}catch(t){h.default.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(l.default);l.default.registerComponent("TextTrackSettings",f),n.default=f,e.exports=n.default},{"../component":67,"../utils/events.js":144,"../utils/fn.js":145,"../utils/log.js":148,"global/window":2,"safe-json-parse/tuple":54}],134:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("./text-track-cue-list")),a=o(t("../utils/fn.js")),l=t("./track-enums"),c=r(t("../utils/log.js")),u=(r(t("global/document")),t("global/window")),h=r(u),d=r(t("./track.js")),p=t("../utils/url.js"),f=r(t("xhr")),m=r(t("../utils/merge-options")),g=o(t("../utils/browser.js")),v=function(t,e){var n=new h.default.WebVTT.Parser(h.default,h.default.vttjs,h.default.WebVTT.StringDecoder()),o=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){o.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),o.length>0&&o.forEach(function(t){return c.default.error(t)}),n.flush()},y=function(t,e){var n={uri:t},o=p.isCrossOrigin(t);o&&(n.cors=o),f.default(n,a.bind(this,function(t,n,o){var r;return t?c.default.error(t,n):(e.loaded_=!0,void("function"!=typeof h.default.WebVTT?e.tech_&&(r=function(){return v(o,e)},e.tech_.on("vttjsloaded",r),e.tech_.on("vttjserror",function(){c.default.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",r)})):v(o,e)))}))},_=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}
17(this,e),!n.tech)throw Error("A tech was not provided.");var o=m.default(n,{kind:l.TextTrackKind[n.kind]||"subtitles",language:n.language||n.srclang||""}),r=l.TextTrackMode[o.mode]||"disabled",c=o.default;("metadata"===o.kind||"chapters"===o.kind)&&(r="hidden");var u=t.call(this,o);if(u.tech_=o.tech,g.IS_IE8)for(var h in e.prototype)"constructor"!==h&&(u[h]=e.prototype[h]);u.cues_=[],u.activeCues_=[];var d=new s.default(u.cues_),p=new s.default(u.activeCues_),f=!1,v=a.bind(u,function(){this.activeCues,f&&(this.trigger("cuechange"),f=!1)});return"disabled"!==r&&u.tech_.on("timeupdate",v),Object.defineProperty(u,"default",{get:function(){return c},set:function(){}}),Object.defineProperty(u,"mode",{get:function(){return r},set:function(t){l.TextTrackMode[t]&&("showing"===(r=t)&&this.tech_.on("timeupdate",v),this.trigger("modechange"))}}),Object.defineProperty(u,"cues",{get:function(){return this.loaded_?d:null},set:function(){}}),Object.defineProperty(u,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return p;for(var t=this.tech_.currentTime(),e=[],n=0,o=this.cues.length;o>n;n++){var r=this.cues[n];r.startTime<=t&&r.endTime>=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(f=!1,e.length!==this.activeCues_.length)f=!0;else for(var n=0;n<e.length;n++)-1===this.activeCues_.indexOf(e[n])&&(f=!0);return this.activeCues_=e,p.setCues_(this.activeCues_),p},set:function(){}}),o.src?(u.src=o.src,y(o.src,u)):u.loaded_=!0,u}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addCue=function(t){var e=this.tech_.textTracks();if(e)for(var n=0;n<e.length;n++)e[n]!==this&&e[n].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=!1,n=0,o=this.cues_.length;o>n;n++)this.cues_[n]===t&&(this.cues_.splice(n,1),e=!0);e&&this.cues.setCues_(this.cues_)},e}(d.default);_.prototype.allowedEvents_={cuechange:"cuechange"},n.default=_,e.exports=n.default},{"../utils/browser.js":140,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options":149,"../utils/url.js":153,"./text-track-cue-list":129,"./track-enums":135,"./track.js":137,"global/document":1,"global/window":2,xhr:56}],135:[function(t,e,n){"use strict";n.__esModule=!0,n.default={VideoTrackKind:{alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind:{alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind:{subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode:{disabled:"disabled",hidden:"hidden",showing:"showing"}},e.exports=n.default},{}],136:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=r(t("../event-target")),a=(o(t("../utils/fn.js")),t("../utils/browser.js")),l=o(a),c=r(t("global/document")),u=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],o=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),t.call(this),!o&&(o=this,l.IS_IE8))for(var r in o=c.default.createElement("custom"),e.prototype)"constructor"!==r&&(o[r]=e.prototype[r]);o.tracks_=[],Object.defineProperty(o,"length",{get:function(){return this.tracks_.length}});for(var s=0;s<n.length;s++)o.addTrack_(n[s]);return o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack_=function(t){for(var e=void 0,n=0,o=this.length;o>n;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var r=this[n];if(r.id===t){e=r;break}}return e},e}(s.default);for(var h in u.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},u.prototype.allowedEvents_)u.prototype["on"+h]=null;n.default=u,e.exports=n.default},{"../event-target":104,"../utils/browser.js":140,"../utils/fn.js":145,"global/document":1}],137:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var s=r(t("../utils/browser.js")),a=o(t("global/document")),l=r(t("../utils/guid.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this);var o=this;if(s.IS_IE8)for(var r in o=a.default.createElement("custom"),e.prototype)"constructor"!==r&&(o[r]=e.prototype[r]);var c={id:n.id||"vjs_track_"+l.newGUID(),kind:n.kind||"",label:n.label||"",language:n.language||""},u=function(t){Object.defineProperty(o,t,{get:function(){return c[t]},set:function(){}})};for(var h in c)u(h);return o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(o(t("../event-target")).default);n.default=c,e.exports=n.default},{"../event-target":104,"../utils/browser.js":140,"../utils/guid.js":147,"global/document":1}],138:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("./track-list")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),a=o(t("global/document")),l=function(t,e){for(var n=0;n<t.length;n++)e.id!==t[n].id&&(t[n].selected=!1)},c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);for(var o=void 0,c=n.length-1;c>=0;c--)if(n[c].selected){l(n,n[c]);break}if(s.IS_IE8){for(var u in o=a.default.createElement("custom"),r.default.prototype)"constructor"!==u&&(
17o[u]=r.default.prototype[u]);for(var u in e.prototype)"constructor"!==u&&(o[u]=e.prototype[u])}return(o=t.call(this,n,o)).changing_=!1,Object.defineProperty(o,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return -1},set:function(){}}),o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){var n=this;e.selected&&l(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,l(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(r.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],139:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=t("./track-enums"),s=o(t("./track")),a=o(t("../utils/merge-options")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=a.default(n,{kind:r.VideoTrackKind[n.kind]||""}),s=t.call(this,o),c=!1;if(l.IS_IE8)for(var u in e.prototype)"constructor"!==u&&(s[u]=e.prototype[u]);return Object.defineProperty(s,"selected",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("selectedchange"))}}),o.selected&&(s.selected=o.selected),s}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(s.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],140:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r,s,a,l,c=o(t("global/document")),u=o(t("global/window")),h=u.default.navigator.userAgent,d=/AppleWeb
17Kit\/([\d.]+)/i.exec(h),p=d?parseFloat(d.pop()):null,f=/iPad/i.test(h);n.IS_IPAD=f;var m=/iPhone/i.test(h)&&!f;n.IS_IPHONE=m;var g=/iPod/i.test(h);n.IS_IPOD=g,n.IS_IOS=m||f||g;var v=(r=h.match(/OS (\d+)_/i))&&r[1]?r[1]:void 0;n.IOS_VERSION=v;var y=/Android/i.test(h);n.IS_ANDROID=y;var _=(l=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?(s=l[1]&&parseFloat(l[1]),a=l[2]&&parseFloat(l[2]),s&&a?parseFloat(l[1]+"."+l[2]):s||null):null;n.ANDROID_VERSION=_;var b=y&&/webkit/i.test(h)&&2.3>_;n.IS_OLD_ANDROID=b,n.IS_NATIVE_ANDROID=y&&5>_&&537>p;var w=/Firefox/i.test(h);n.IS_FIREFOX=w;var x=/Edge/i.test(h);n.IS_EDGE=x;var T=!x&&/Chrome/i.test(h);n.IS_CHROME=T;var k=/MSIE\s8\.0/.test(h);n.IS_IE8=k;var j=!!("ontouchstart"in u.default||u.default.DocumentTouch&&c.default instanceof u.default.DocumentTouch);n.TOUCH_ENABLED=j;var C="backgroundSize"in c.default.createElement("video").style;n.BACKGROUND_SIZE_SUPPORTED=C},{"global/document":1,"global/window":2}],141:[function(t,e,n){"use strict";n.__esModule=!0,n.bufferedPercent=function(t,e){var n,r,s=0;if(!e)return 0;t&&t.length||(t=o.createTimeRange(0,0));for(var a=0;a<t.length;a++)n=t.start(a),(r=t.end(a))>e&&(r=e),s+=r-n;return s/e};var o=t("./time-ranges.js")},{"./time-ranges.js":151}],142:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("./log.js"))&&o.__esModule?o:{default:o},s={get:function(t,e){return t[e]},set:function(t,e,n){return t[e]=n,!0}};n.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("function"==typeof Proxy){var n,o=(n={},Object.keys(e).forEach(function(t){s.hasOwnProperty(t)&&(n[t]=function(){return r.default.warn(e[t]),s[t].apply(this,arguments)})}),{v:new Proxy(t,n)});if("object"==typeof o)return o.v}return t},e.exports=n.default},{"./log.js":148}],143:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){return"string"==typeof t&&/\S/.test(t)}function s(t){if(/\s/.test(t))throw Error("class has illegal whitespace characters")}function a(t){return function(e,n){return r(e)?(r(n)&&(n=_.default.querySelector(n)),(d(n)?n:_.default)[t](e)):_.default[t](null)}}function l(t,e){return t.classList?t.classList.contains(e):(s(e),RegExp("(^|\\s)"+e+"($|\\s)").test(t.className))}function c(t,e){return t.classList?t.classList.add(e):l(t,e)||(t.className=(t.className+" "+e).trim()),t}function u(t,e){return t.classList?t.classList.remove(e):(s(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function h(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=_.default.documentElement,o=_.default.body,r=n.clientLeft||o.clientLeft||0,s=b.default.pageXOffset||o.scrollLeft,a=e.left+s-r,l=n.clientTop||o.clientTop||0,c=b.default.pageYOffset||o.scrollTop;return{left:Math.round(a),top:Math.round(e.top+c-l)}}function d(t){return!!t&&"object"==typeof t&&1===t.nodeType}function p(t){return!!t&&"object"==typeof t&&3===t.nodeType}function f(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function m(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),d(t)||p(t)?t:"string"==typeof t&&/\S/.test(t)?_.default.createTextNode(t):void 0}).filter(function(t){return t})}function g(t,e){return m(e).forEach(function(e){return t.appendChild(e)}),t}n.__esModule=!0,n.getEl=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),_.default.getElementById(t)},n.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=_.default.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(x.default.warn(T.default(y,t,n)),o.setAttribute(t,n)):o[t]=n}),Object.getOwnPropertyNames(n).forEach(function(t){n[t],o.setAttribute(t,n[t])}),o},n.textContent=function(t,e){void 0===t.textContent?t.innerText=e:t.textContent=e},n.insertElFirst=function(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},n.getElData=function(t){var e=t[j];
17return e||(e=t[j]=w.newGUID()),k[e]||(k[e]={}),k[e]},n.hasElData=function(t){var e=t[j];return!!e&&!!Object.getOwnPropertyNames(k[e]).length},n.removeElData=function(t){var e=t[j];if(e){delete k[e];try{delete t[j]}catch(e){t.removeAttribute?t.removeAttribute(j):t[j]=null}}},n.hasElClass=l,n.addElClass=c,n.removeElClass=u,n.toggleElClass=function(t,e,n){var o=l(t,e);return"function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!o),n!==o?(n?c(t,e):u(t,e),t):void 0},n.setElAttributes=function(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var o=e[n];null==o||!1===o?t.removeAttribute(n):t.setAttribute(n,!0===o?"":o)})},n.getElAttributes=function(t){var e,n,o,r;if(e={},t&&t.attributes&&t.attributes.length>0){n=t.attributes;for(var s=n.length-1;s>=0;s--)o=n[s].name,r=n[s].value,("boolean"==typeof t[o]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+o+","))&&(r=null!==r),e[o]=r}return e},n.blockTextSelection=function(){_.default.body.focus(),_.default.onselectstart=function(){return!1}},n.unblockTextSelection=function(){_.default.onselectstart=function(){return!0}},n.findElPosition=h,n.getPointerPosition=function(t,e){var n={},o=h(t),r=t.offsetWidth,s=t.offsetHeight,a=o.top,l=o.left,c=e.pageY,u=e.pageX;return e.changedTouches&&(u=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-c+s)/s)),n.x=Math.max(0,Math.min(1,(u-l)/r)),n},n.isEl=d,n.isTextNode=p,n.emptyEl=f,n.normalizeContent=m,n.appendContent=g,n.insertContent=function(t,e){return g(f(t),e)};var v,y=((v=["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]).raw=["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],v),_=o(t("global/document")),b=o(t("global/window")),w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./guid.js")),x=o(t("./log.js")),T=o(t("tsml")),k={},j="vdata"+(new Date).getTime(),C=a("querySelector");n.$=C;var S=a("querySelectorAll");n.$$=S},{"./guid.js":147,"./log.js":148,"global/document":1,"global/window":2,tsml:55}],144:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t,e,n){if(Array.isArray(e))return u(s,t,e,n);var o=h.getElData(t);o.handlers||(o.handlers={}),o.handlers[e]||(o.handlers[e]=[]),n.guid||(n.guid=d.newGUID()),o.handlers[e].push(n),o.dispatcher||(o.disabled=!1,o.dispatcher=function(e,n){if(!o.disabled){e=l(e);var r=o.handlers[e.type];if(r)for(var s=r.slice(0),a=0,c=s.length;c>a&&!e.isImmediatePropagationStopped();a++)s[a].call(t,e,n)}}),1===o.handlers[e].length&&(t.addEventListener?t.addEventListener(e,o.dispatcher,!1):t.attachEvent&&t.attachEvent("on"+e,o.dispatcher))}function a(t,e,n){if(h.hasElData(t)){var o=h.getElData(t);if(o.handlers){if(Array.isArray(e))return u(a,t,e,n);var r=function(e){o.handlers[e]=[],c(t,e)};if(e){var s=o.handlers[e];if(s){if(!n)return void r(e);if(n.guid)for(var l=0;l<s.length;l++)s[l].guid===n.guid&&s.splice(l--,1);c(t,e)}}else for(var d in o.handlers)r(d)}}}function l(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var o=t||p.default.event;for(var r in t={},o)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&o.preventDefault||(t[r]=o[r]));if(t.target||(t.target=t.srcElement||f.default),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){o.preventDefault&&o.preventDefault(),t.returnValue=!1,o.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){o.stopPropagation&&o.stopPropagation(),t.cancelBubble=!0,o.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){o.stopImmediatePropagation&&o.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!=t.clientX){var s=f.default.documentElement,a=f.default.body;t.pageX=t.clientX+(s&&s.scrollLeft||a&&a.scrollLeft||0)-(s&&s.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(s&&s.scrollTop||a&&a.scrollTop||0)-(s&&s.clientTop||a&&a.clientTop||0)}t.which=t.charCode||t.keyCode,null!=t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function c(t,e){var n=h.getElData(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&h.removeElData(t)}
17function u(t,e,n,o){n.forEach(function(n){t(e,n,o)})}n.__esModule=!0,n.on=s,n.off=a,n.trigger=function t(e,n,o){var r=h.hasElData(e)?h.getElData(e):{},s=e.parentNode||e.ownerDocument;if("string"==typeof n&&(n={type:n,target:e}),n=l(n),r.dispatcher&&r.dispatcher.call(e,n,o),s&&!n.isPropagationStopped()&&!0===n.bubbles)t.call(null,s,n,o);else if(!s&&!n.defaultPrevented){var a=h.getElData(n.target);n.target[n.type]&&(a.disabled=!0,"function"==typeof n.target[n.type]&&n.target[n.type](),a.disabled=!1)}return!n.defaultPrevented},n.one=function t(e,n,o){if(Array.isArray(n))return u(t,e,n,o);var r=function t(){a(e,n,t),o.apply(this,arguments)};r.guid=o.guid=o.guid||d.newGUID(),s(e,n,r)},n.fixEvent=l;var h=r(t("./dom.js")),d=r(t("./guid.js")),p=o(t("global/window")),f=o(t("global/document"))},{"./dom.js":143,"./guid.js":147,"global/document":1,"global/window":2}],145:[function(t,e,n){"use strict";n.__esModule=!0;var o=t("./guid.js");n.bind=function(t,e,n){e.guid||(e.guid=o.newGUID());var r=function(){return e.apply(t,arguments)};return r.guid=n?n+"_"+e.guid:e.guid,r}},{"./guid.js":147}],146:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){var e,n,o,r=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return e=Math.floor((t=0>t?0:t)%60),n=Math.floor(t/60%60),o=Math.floor(t/3600),(isNaN(t)||t===1/0)&&(o=n=e="-"),n=(((o=o>0||Math.floor(r/3600)>0?o+":":"")||Math.floor(r/60%60)>=10)&&10>n?"0"+n:n)+":",o+n+(e=10>e?"0"+e:e)},e.exports=n.default},{}],147:[function(t,e,n){"use strict";n.__esModule=!0,n.newGUID=function(){return o++};var o=1},{}],148:[function(t,e,n){"use strict";function o(t,e){var n=Array.prototype.slice.call(e),o=function(){},r=s.default.console||{log:o,warn:o,error:o};t?n.unshift(t.toUpperCase()+":"):t="log",a.history.push(n),n.unshift("VIDEOJS:"),r[t].apply?r[t].apply(r,n):r[t](n.join(" "))}n.__esModule=!0;var r,s=(r=t("global/window"))&&r.__esModule?r:{default:r},a=function(){o(null,arguments)};a.history=[],a.error=function(){o("error",arguments)},a.warn=function(){o("warn",arguments)},n.default=a,e.exports=n.default},{"global/window":2}],149:[function(t,e,n){"use strict";function o(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object}function r(){var t=Array.prototype.slice.call(arguments);return t.unshift({}),t.push(l),a.default.apply(null,t),t[0]}n.__esModule=!0,n.default=r;var s,a=(s=t("lodash-compat/object/merge"))&&s.__esModule?s:{default:s},l=function(t,e){return o(e)?o(t)?void 0:r(e):e};e.exports=n.default},{"lodash-compat/object/merge":40}],150:[function(t,e,n){"use strict";n.__esModule=!0;var o,r=(o=t("global/document"))&&o.__esModule?o:{default:o};n.createStyleElement=function(t){var e=r.default.createElement("style");return e.className=t,e},n.setTextContent=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e}},{"global/document":1}],151:[function(t,e,n){"use strict";function o(t,e){return Array.isArray(t)?r(t):void 0===t||void 0===e?r():r([[t,e]])}function r(t){return void 0===t||0===t.length?{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}}:{length:t.length,start:s.bind(null,"start",0,t),end:s.bind(null,"end",1,t)}}function s(t,e,n,o){return void 0===o&&(l.default.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),o=0),function(t,e,n){if(0>e||e>n)throw Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is greater than or equal to the maximum bound ("+n+").")}(t,o,n.length-1),n[o][e]}n.__esModule=!0,n.createTimeRanges=o;var a,l=(a=t("./log.js"))&&a.__esModule?a:{default:a};n.createTimeRange=o},{"./log.js":148}],152:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},e.exports=n.default},{}],153:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=o(t("global/document")),s=o(t("global/window")),a=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=r.default.createElement("a");n.href=t;
17var o=""===n.host&&"file:"!==n.protocol,s=void 0;o&&((s=r.default.createElement("div")).innerHTML='<a href="'+t+'"></a>',n=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),r.default.body.appendChild(s));for(var a={},l=0;l<e.length;l++)a[e[l]]=n[e[l]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),o&&r.default.body.removeChild(s),a};n.parseUrl=a,n.getAbsoluteURL=function(t){if(!t.match(/^https?:\/\//)){var e=r.default.createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t},n.getFileExtension=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},n.isCrossOrigin=function(t){var e=s.default.location,n=a(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host}},{"global/document":1,"global/window":2}],154:[function(e,n,o){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var a=s(e("global/window")),l=s(e("global/document")),c=r(e("./setup")),u=r(e("./utils/stylesheet.js")),h=s(e("./component")),d=s(e("./event-target")),p=r(e("./utils/events.js")),f=s(e("./player")),m=s(e("./plugins.js")),g=s(e("../../src/js/utils/merge-options.js")),v=r(e("./utils/fn.js")),y=s(e("./tracks/text-track.js")),_=s(e("./tracks/audio-track.js")),b=s(e("./tracks/video-track.js")),w=(s(e("object.assign")),e("./utils/time-ranges.js")),x=s(e("./utils/format-time.js")),T=s(e("./utils/log.js")),k=r(e("./utils/dom.js")),j=r(e("./utils/browser.js")),C=r(e("./utils/url.js")),S=s(e("./extend.js")),E=s(e("lodash-compat/object/merge")),P=s(e("./utils/create-deprecation-proxy.js")),O=s(e("xhr")),M=s(e("./tech/tech.js")),I=(s(e("./tech/html5.js")),e("./tech/flash.js"));s(I),"undefined"==typeof HTMLVideoElement&&(l.default.createElement("video"),l.default.createElement("audio"),l.default.createElement("track"));var A=function t(e,n,o){var r=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),t.getPlayers()[e])return n&&T.default.warn('Player "'+e+'" is already initialised. Options will not be applied.'),o&&t.getPlayers()[e].ready(o),t.getPlayers()[e];r=k.getEl(e)}else r=e;if(!r||!r.nodeName)throw TypeError("The element or ID supplied is not valid. (videojs)");return r.player||f.default.players[r.playerId]||new f.default(r,n,o)};if(!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE){var z=k.$(".vjs-styles-defaults");if(!z){z=u.createStyleElement("vjs-styles-defaults");var N=k.$("head");N.insertBefore(z,N.firstChild),u.setTextContent(z,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}c.autoSetupTimeout(1,A),A.VERSION="5.10.2",A.options=f.default.prototype.options_,A.getPlayers=function(){return f.default.players},A.players=P.default(f.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),A.getComponent=h.default.getComponent,A.registerComponent=function(t,e){M.default.isTech(e)&&T.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),h.default.registerComponent.call(h.default,t,e)},A.getTech=M.default.getTech,A.registerTech=M.default.registerTech,A.browser=j,A.TOUCH_ENABLED=j.TOUCH_ENABLED,A.extend=S.default,A.mergeOptions=g.default,A.bind=v.bind,A.plugin=m.default,A.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),E.default(A.options.languages,((n={})[t]=e,n))[t]},A.log=T.default,A.createTimeRange=A.createTimeRanges=w.createTimeRanges,A.formatTime=x.default,A.parseUrl=C.parseUrl,A.isCrossOrigin=C.isCrossOrigin,A.EventTarget=d.default,A.on=p.on,A.one=p.one,A.off=p.off,A.trigger=p.trigger,A.xhr=O.default,A.TextTrack=y.default,A.AudioTrack=_.default,A.VideoTrack=b.default,A.isEl=k.isEl,A.isTextNode=k.isTextNode,A.createEl=k.createEl,A.hasClass=k.hasElClass,A.addClass=k.addElClass,A.removeClass=k.removeElClass,A.toggleClass=k.toggleElClass,A.setAttributes=k.setElAttributes,A.getAttributes=k.getElAttributes,A.emptyEl=k.emptyEl,A.appendContent=k.appendContent,A.insertContent=k.insertContent,"function"==typeof t&&t.amd?t("videojs",[],function(){return A}):"object"==typeof o&&"object"==typeof n&&(n.exports=A),o.default=A,n.exports=o.default},{"../../src/js/utils/merge-options.js":149,"./component":67,"./event-target":104,"./extend.js":105,"./player":113,"./plugins.js":114,"./setup":118,"./tech/flash.js":121,"./tech/html5.js":122,"./tech/tech.js":124,"./tracks/audio-track.js":126,"./tracks/text-track.js":134,"./tracks/video-track.js":139,"./utils/browser.js":140,"./utils/create-deprecation-proxy.js":142,"./utils/dom.js":143,"./utils/events.js":144,"./ut
17ils/fn.js":145,"./utils/format-time.js":146,"./utils/log.js":148,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/url.js":153,"global/document":1,"global/window":2,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[154])(154)}),function(t){var e=t.vttjs={},n=e.VTTCue,o=e.VTTRegion,r=t.VTTCue,s=t.VTTRegion;e.shim=function(){e.VTTCue=n,e.VTTRegion=o},e.restore=function(){e.VTTCue=r,e.VTTRegion=s}}(this),function(t,e){function n(t){return"string"==typeof t&&!!l[t.toLowerCase()]&&t.toLowerCase()}function o(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function r(t,e,r){var l=this,c=/MSIE\s8\.0/.test(navigator.userAgent),u={};c?l=document.createElement("custom"):u.enumerable=!0,l.hasBeenReset=!1;var h="",d=!1,p=t,f=e,m=r,g=null,v="",y=!0,_="auto",b="start",w=50,x="middle",T=50,k="middle";return Object.defineProperty(l,"id",o({},u,{get:function(){return h},set:function(t){h=""+t}})),Object.defineProperty(l,"pauseOnExit",o({},u,{get:function(){return d},set:function(t){d=!!t}})),Object.defineProperty(l,"startTime",o({},u,{get:function(){return p},set:function(t){if("number"!=typeof t)throw TypeError("Start time must be set to a number.");p=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"endTime",o({},u,{get:function(){return f},set:function(t){if("number"!=typeof t)throw TypeError("End time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"text",o({},u,{get:function(){return m},set:function(t){m=""+t,this.hasBeenReset=!0}})),Object.defineProperty(l,"region",o({},u,{get:function(){return g},set:function(t){g=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"vertical",o({},u,{get:function(){return v},set:function(t){var e="string"==typeof t&&!!a[t.toLowerCase()]&&t.toLowerCase();if(!1===e)throw SyntaxError("An invalid or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"snapToLines",o({},u,{get:function(){return y},set:function(t){y=!!t,this.hasBeenReset=!0}})),Object.defineProperty(l,"line",o({},u,{get:function(){return _},set:function(t){if("number"!=typeof t&&t!==s)throw SyntaxError("An invalid number or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"lineAlign",o({},u,{get:function(){return b},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"position",o({},u,{get:function(){return w},set:function(t){if(0>t||t>100)throw Error("Position must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"positionAlign",o({},u,{get:function(){return x},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"size",o({},u,{get:function(){return T},set:function(t){if(0>t||t>100)throw Error("Size must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"align",o({},u,{get:function(){return k},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),l.displayState=void 0,c?l:void 0}var s="auto",a={"":!0,lr:!0,rl:!0},l={start:!0,middle:!0,end:!0,left:!0,right:!0};r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.VTTCue=t.VTTCue||r,e.VTTCue=r}(this,this.vttjs||{}),function(t,e){function n(t){return"number"==typeof t&&t>=0&&100>=t}function o(){var t=100,e=3,o=0,s=100,a=0,l=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw Error("RegionAnchorX must be between 0 and 100.");s=t}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw Error("RegionAnchorY must be between 0 and 100.");o=t}},viewportAnchorY:{enumerable:!0,get:function(){return l},set:function(t){if(!n(t))throw Error("ViewportAnchorY must be between 0 and 100.");l=t}},viewportAnchorX:{enumerable:!0,get:function(){return a}
17,set:function(t){if(!n(t))throw Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return c},set:function(t){var e="string"==typeof t&&!!r[t.toLowerCase()]&&t.toLowerCase();if(!1===e)throw SyntaxError("An invalid or illegal string was specified.");c=e}}})}var r={"":!0,up:!0};t.VTTRegion=t.VTTRegion||o,e.VTTRegion=o}(this,this.vttjs||{}),function(t){function e(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function n(t){function e(t,e,n,o){return 3600*(0|t)+60*(0|e)+(0|n)+(0|o)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function o(){this.values=h(null)}function r(t,e,n,o){var r=o?t.split(o):[t];for(var s in r)if("string"==typeof r[s]){var a=r[s].split(n);2===a.length&&e(a[0],a[1])}}function s(t,e){function o(t){return d[t]}for(var r,s=t.document.createElement("div"),a=s,l=[];null!==(r=function(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]+>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}());)if("<"!==r[0])a.appendChild(t.document.createTextNode(function(t){for(;v=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(v[0],o);return t}(r)));else{if("/"===r[1]){l.length&&l[l.length-1]===r.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var c,u,h,g=n(r.substr(1,r.length-2));if(g){h=t.document.createProcessingInstruction("timestamp",g),a.appendChild(h);continue}var v=r.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v||!(h=function(e,n){var o=p[e];if(!o)return null;var r=t.document.createElement(o);r.localName=o;var s=f[e];return s&&n&&(r[s]=n.trim()),r}(v[1],v[3]))||(c=a,m[(u=h).localName]&&m[u.localName]!==c.localName))continue;v[2]&&(h.className=v[2].substr(1).replace("."," ")),l.push(v[1]),a.appendChild(h),a=h}return s}function a(){}function l(t,e,n){var o=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",l="rgba(0, 0, 0, 0.8)";o&&(r="rgb(255, 255, 255)",l="rgb(0, 0, 0)"),a.call(this),this.cue=e,this.cueDiv=s(t,e.text);var c={color:r,backgroundColor:l,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};o||(c.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",c.unicodeBidi="plaintext"),this.applyStyles(c,this.cueDiv),this.div=t.document.createElement("div"),c={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(c.direction=function(t){function e(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}var n,o=[],r="";if(!t||!t.childNodes)return"ltr";for(e(o,t);r=function t(n){if(!n||!n.length)return null;var o=n.pop(),r=o.textContent||o.innerText;if(r){var s=r.match(/^.*(\n|\r)/);return s?(n.length=0,s[0]):r}return"ruby"===o.tagName?t(n):o.childNodes?(e(n,o),t(n)):void 0}(o);)for(var s=0;s<r.length;s++){n=r.charCodeAt(s);for(var a=0;a<g.length;a++)if(g[a]===n)return"rtl"}return"ltr"}(this.cueDiv),c.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(c),this.div.appendChild(this.cueDiv);var u=0;switch(e.positionAlign){case"start":u=e.position;break;case"middle":u=e.position-e.size/2;break;case"end":u=e.position-e.size}this.applyStyles(""===e.vertical?{left:this.formatStyle(u,"%"),width:this.formatStyle(e.size,"%")}:{top:this.formatStyle(u,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function c(t){var e,n,o,r,s=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){n=t.div.offsetHeight,o=t.div.offsetWidth,r=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||n,this.bottom=t.bottom||r+(t.height||n),this.width=t.width||o,this.lineHeight=void 0!==e?e:t.lineHeight,s&&!this.lineHeight&&(this.lineHeight=13)}function u(){}var h=Object.create||function(){function t(){}return function(e){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();e.prototype=h(Error.prototype),e.prototype.constructor=e,e.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var o=0;o<n.length;++o)if(e===n[o]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>
17=0&&100>=e&&(this.set(t,e),!0)}};var d={"&":"&","<":"<",">":">","‎":"â","‏":"â"," ":"\xa0"},p={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},f={v:"title",lang:"lang"},m={rt:"ruby"},g
vendor: 10,850 bytes, line 17
17=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];
vendor: 2,914 bytes, line 17
17a.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},a.prototype.formatStyle=function(t,e){return 0===t?0:t+e},l.prototype=h(a.prototype),l.prototype.constructor=l,c.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},c.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},c.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},c.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},c.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},c.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},c.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},c.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,o=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||o,height:t.height||e,bottom:t.bottom||o+(t.height||e),width:t.width||n}},u.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},u.convertCueToDOMTree=function(t,e){return t&&e?s(t,e):null},u.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var o=t.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",n.appendChild(o),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],s=c.getSimpleBoxPosition(o),a={font:Math.round(5*s.height)/100+"px sans-serif"};!function(){for(var n,u,h=0;h<e.length;h++)u=e[h],n=new l(t,u,a),o.appendChild(n.div),function(t,e,n,o){var r=new c(e),s=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return -1;for(var e=t.track,n=e.textTrackList,o=0,r=0;r<n.length&&n[r]!==e;r++)"showing"===n[r].mode&&o++;return -1*++o}(s),l=[];
17if(s.snapToLines){switch(s.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width"}var u,h=r.lineHeight,d=h*Math.round(a),p=n[u]+h,f=l[0];Math.abs(d)>p&&(d=(0>d?-1:1)*(Math.ceil(p/h)*h)),0>a&&(d+=""===s.vertical?n.height:n.width,l=l.reverse()),r.move(f,d)}else{var m=r.lineHeight/n.height*100;switch(s.lineAlign){case"middle":a-=m/2;break;case"end":a-=m}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}l=["+y","-x","+x","-y"],r=new c(e)}var g=function(t,e){for(var r,s=new c(t),a=1,l=0;l<e.length;l++){for(;t.overlapsOppositeAxis(n,e[l])||t.within(n)&&t.overlapsAny(o);)t.move(e[l]);if(t.within(n))return t;var u=t.intersectPercentage(n);a>u&&(r=new c(t),a=u),t=new c(s)}return r||s}(r,l);e.move(g.toCSSCompatValues(n))}(0,n,s,r),u.displayState=n.div,r.push(c.getSimpleBoxPosition(n))}()}else for(var u=0;u<e.length;u++)o.appendChild(e[u].displayState)},u.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},u.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof e))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){function s(){for(var t=l.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var n=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,l.buffer=t.substr(e),n}var a,l=this;t&&(l.buffer+=l.decoder.decode(t,{stream:!0}));try{if("INITIAL"===l.state){if(!/\r\n|\n/.test(l.buffer))return this;var c,u=(a=s()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new e(e.Errors.BadSignature);l.state="HEADER"}for(var h=!1;l.buffer&&/\r\n|\n/.test(l.buffer);)switch(h?h=!1:a=s(),l.state){case"HEADER":/:/.test(a)?(c=a,r(c,function(t,e){"Region"===t&&function(t){var e=new o;if(r(t,function(t,n){switch(t){case"id":e.set(t,n);break;case"width":e.percent(t,n);break;case"lines":e.integer(t,n);break;case"regionanchor":case"viewportanchor":var r=n.split(",");if(2!==r.length)break;var s=new o;if(s.percent("x",r[0]),s.percent("y",r[1]),!s.has("x")||!s.has("y"))break;e.set(t+"X",s.get("x")),e.set(t+"Y",s.get("y"));break;case"scroll":e.alt(t,n,["up"])}},/=/,/\s/),e.has("id")){var n=new(l.vttjs.VTTRegion||l.window.VTTRegion);n.width=e.get("width",100),n.lines=e.get("lines",3),n.regionAnchorX=e.get("regionanchorX",0),n.regionAnchorY=e.get("regionanchorY",100),n.viewportAnchorX=e.get("viewportanchorX",0),n.viewportAnchorY=e.get("viewportanchorY",100),n.scroll=e.get("scroll",""),l.onregion&&l.onregion(n),l.regionList.push({id:e.get("id"),region:n})}}(e)},/:/)):a||(l.state="ID");continue;case"NOTE":a||(l.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){l.state="NOTE";break}if(!a)continue;if(l.cue=new(l.vttjs.VTTCue||l.window.VTTCue)(0,0,""),l.state="CUE",-1===a.indexOf("-->")){l.cue.id=a;continue}case"CUE":try{(function(t,s,a){function l(){var o=n(t);if(null===o)throw new e(e.Errors.BadTimeStamp,"Malformed timestamp: "+p);return t=t.replace(/^[^\sa-zA-Z-]+/,""),o}function c(){t=t.replace(/^\s+/,"")}var u,h,d,p=t;if(c(),s.startTime=l(),c(),"-->"!==t.substr(0,3))throw new e(e.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+p);t=t.substr(3),c(),s.endTime=l(),c(),u=t,h=s,d=new o,r(u,function(t,e){switch(t){case"region":for(var n=a.length-1;n>=0;n--)if(a[n].id===e){d.set(t,a[n].region);break}break;case"vertical":d.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),r=o[0];d.integer(t,r),d.percent(t,r)&&d.set("snapToLines",!1),d.alt(t,r,["auto"]),2===o.length&&d.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),d.percent(t,o[0]),2===o.length&&d.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":d.percent(t,e);break;case"align":d.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),h.region=d.get("region",null),h.vertical=d.get("vertical",""),h.line=d.get("line","auto"),h.lineAlign=d.get("lineAlign","start"),h.snapToLines=d.get("snapToLines",!0),h.size=d.get("size",100),h.align=d.get("align","middle"),h.position=d.get("position",{start:0,left:0,middle:50,end:100,right:100},h.align),h.positionAlign=d.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},h.align)})(a,l.cue,l.regionList)}catch(t){l.reportOrThrowError(t),l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":var d=-1!==a.indexOf("-->");if(!a||d&&(h=!0)){l.oncue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}l.cue.text&&(l.cue.text+="\n"),l.cue.text+=a;continue;case"BADCUE":a||(l.state="ID");continue}}catch(t){l.reportOrThrowError(t),"CUETEXT"===l.state&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state="INITIAL"===l.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new e(e.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.WebVTT=u}(this,this.vttjs||{}),function(t,e){"function"==typeof define&&define.amd?define(["video.js"],function(n){return t.Youtube=e(n)}):"object"==typeof module&&module.exports?module.exports=t.Youtube=e(require("video.js")):t.Youtube=e(t.videojs)}(this,function(t){"use strict";var e,n,o,r,s,a=t.getComponent("Tech"),l=t.extend(a,{constructor:function(t,e){a.call(this,t,e),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),setTimeout((function(){this.el_.parentNode.className+=" vjs-youtube",c&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),l.isApiReady?this.initYTPlayer():l.apiReadyQueue.push(this)}).bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile","")},createEl:function(){var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute");var e=document.createElement("div");if(e.appendChild(t),!c&&!this.options_.ytControls){var n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=(function(){this.pause()}).bind(this),e.appendChild(n)}return e},initYTPlayer:function(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};void 0!==this.options_.autohide&&(t.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(t.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(t.disablekb=this.options_.disablekb),void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.color&&(t.color=this.options_.color),t.controls?void 0!==this.options_.fs&&
17(t.fs=this.options_.fs):t.fs=0,void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.hl?t.hl=this.options_.hl:void 0!==this.options_.language&&(t.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?t.list=this.options_.list:this.url&&void 0!==this.url.listId&&(t.list=this.url.listId),void 0!==this.options_.listType&&(t.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(t.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(t.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(t.rel=this.options_.rel),void 0!==this.options_.showinfo&&(t.showinfo=this.options_.showinfo),void 0!==this.options_.start&&(t.start=this.options_.start),void 0!==this.options_.theme&&(t.theme=this.options_.theme),this.activeVideoId=this.url?this.url.videoId:null,this.activeList=t.list,this.ytPlayer=new YT.Player(this.options_.techId,{videoId:this.activeVideoId,playerVars:t,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onPlayerError.bind(this)}})},onPlayerReady:function(){this.playerReady_=!0,this.triggerReady(),this.playOnReady&&this.play()},onPlayerPlaybackQualityChange:function(){},onPlayerStateChange:function(t){var e=t.data;if(e!==this.lastState){switch(e){case -1:this.trigger("loadedmetadata"),this.trigger("durationchange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}this.lastState=e}},onPlayerError:function(t){this.errorNumber=t.data,this.trigger("error"),this.ytPlayer.stopVideo(),this.ytPlayer.destroy(),this.ytPlayer=null},error:function(){switch(this.errorNumber){case 2:case 100:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"YouTube unknown error ("+this.errorNumber+")"}},src:function(t){return t&&(this.setSrc({src:t}),this.play()),this.source},poster:function(){return c?null:this.poster_},setPoster:function(t){this.poster_=t},setSrc:function(t){t&&t.src&&(this.source=t,this.url=l.parseUrl(t.src),!this.options_.poster&&this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.checkHighResPoster()),this.options_.autoplay&&!c&&(this.isReady_?this.play():this.playOnReady=!0))},play:function(){this.url&&this.url.videoId&&(this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.ytPlayer.loadVideoById(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval((function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}).bind(this),250))},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval),this.trigger("seeked"),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause()},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(t){this.ytPlayer&&(this.ytPlayer.setPlaybackRate(t),this.trigger("ratechange"))},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source},ended:function(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(t){this.ytPlayer&&(this.ytPlayer.setVolume(100*t),this.setTimeout(function(){this.trigger("volumechange")},50))},muted:function(){return!!this.ytPlayer&&this.ytPlayer.isMuted()},setMuted:function(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}};var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return{length:1,start:function(){return 0},end:function(){return t}}},supportsFullScreen:function(){return!0},checkHighResPoster:function(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=(function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWi
17dth<=120){"function"==typeof this.onerror&&this.onerror();return}}else if(e.height<=90||e.width<=120){this.onerror();return}this.poster_=t,this.trigger("posterchange")}).bind(this),e.onerror=function(){},e.src=t}catch(t){}}});l.isSupported=function(){return!0},l.canPlaySource=function(t){return"video/youtube"===t.type};var c=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);l.parseUrl=function(t){var e={videoId:null},n=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return n&&11===n[2].length&&(e.videoId=n[2]),(n=t.match(/[?&]list=([^#\&\?]+)/))&&n[1]&&(e.listId=n[1]),e},l.apiReadyQueue=[],window.onYouTubeIframeAPIReady=function(){l.isApiReady=!0;for(var t=0;t<l.apiReadyQueue.length;++t)l.apiReadyQueue[t].initYTPlayer();"function"==typeof onYouTubeIframeAPIReadyFullscreenBackground&&onYouTubeIframeAPIReadyFullscreenBackground()},window.onYouTubeIframeAPIReadyYoutube=function(){l.isApiReady=!0;for(var t=0;t<l.apiReadyQueue.length;++t)l.apiReadyQueue[t].initYTPlayer()},(e=document.createElement("script")).src="https://www.youtube.com/iframe_api",(n=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,n),o=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",r=document.head||document.getElementsByTagName("head")[0],(s=document.createElement("style")).type="text/css",s.styleSheet?s.styleSheet.cssText=o:s.appendChild(document.createTextNode(o)),r.appendChild(s),t.registerTech("Youtube",l)}),function(){"use strict";var t={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},e=videojs.getComponent("Tech"),n=videojs.extend(e,{constructor:function(t,o){e.call(this,t,o),""!=t.poster&&this.setPoster(t.poster),this.setSrc(this.options_.source.src,!0),setTimeout((function(){this.el_.parentNode.className+=" vjs-vimeo",n.isApiReady?this.initPlayer():n.apiReadyQueue.push(this)}).bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-vimeo","")},createEl:function(){this.vimeo={},this.vimeoInfo={},this.baseUrl="https://player.vimeo.com/video/",this.baseApiUrl="https://www.vimeo.com/api/v2/video/",this.videoId=n.parseUrl(this.options_.source.src).videoId,this.iframe=document.createElement("iframe"),this.iframe.setAttribute("id",this.options_.techId),this.iframe.setAttribute("title","Vimeo Video Player"),this.iframe.setAttribute("class","vimeoplayer"),this.iframe.setAttribute("src",this.baseUrl+this.videoId+"?api=1&player_id="+this.options_.techId),this.iframe.setAttribute("frameborder","0"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginWidth","0"),this.iframe.setAttribute("marginHeight","0"),this.iframe.setAttribute("webkitAllowFullScreen","0"),this.iframe.setAttribute("mozallowfullscreen","0"),this.iframe.setAttribute("allowFullScreen","0"),this.options_.autoplay&&this.iframe.setAttribute("autoplay","true");var t,e=document.createElement("div");if(e.setAttribute("style","margin:0 auto;padding-bottom:56.25%;width:100%;height:0;position:relative;overflow:hidden;"),e.setAttribute("class","vimeoFrame"),e.appendChild(this.iframe),!o&&!this.options_.ytControls){var r=document.createElement("div");r.setAttribute("class","vjs-iframe-blocker"),r.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),r.onclick=(function(){this.onPause()}).bind(this),e.appendChild(r)}return""==this.options_.poster&&null!=this.videoId&&$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},(t=this,function(e){t.setPoster(e[0].thumbnail_large)})),e},initPlayer:function(){var e=this;$(e.iframe).load(function(){n.parseUrl(e.options_.source.src).videoId,e.vimeo&&e.vimeo.api&&(e.vimeo.api("unload"),delete e.vimeo),e.vimeo=$f(e.iframe),e.vimeoInfo={state:t.UNSTARTED,volume:1,muted:!1,muteVolume:1,time:0,duration:0,buffered:0,url:e.baseUrl+e.videoId,error:null},e.vimeo.addEvent("ready",function(t){e.onReady(),e.vimeo.addEvent("loadProgress",function(t,n){e.onLoadProgress(t)}),e.vimeo.addEvent("playProgress",function(t,n){e.onPlayProgress(t)}),e.vimeo.addEvent("play",function(t){e.onPlay()}),e.vimeo.addEvent("pause",function(t){e.onPause()}),e.vimeo.addEvent("finish",function(t){e.onFinish()}),e.vimeo.addEvent("seek",function(t,n){e.onSeek(t)})})})},onReady:function(){this.playerReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.startMuted&&(this.setMuted(!0),this.startMuted=!1)},onLoadProgress:function(t){var e=!this.vimeoInfo.duration;this.vimeoInfo.duration=t.duration,this.vimeoInfo.buffered=t.percent,this.trigger("progress"),e&&this.trigger("durationchange")},onPlayProgress:function(t){this.vimeoInfo.time=t.seconds,this.trigger("timeupdate")},onPlay:function(){this.vimeoInfo.state=t.PLAYING,this.trigger("play")},onPause:function(){this.vimeoInfo.state=t.PAUSED,this.trigger("pause")},onFinish:function(){this.vimeoInfo.state=t.ENDED,this.trigger("ended")},onSeek:function(t){this.trigger("seeking"),this.vimeoInfo.time=t.seconds,this.trigger("timeupdate"),this.trigger("seeked")},onError:function(t){this.error=t,this.trigger("error")},error:function(){switch(this.errorNumber){case 2:case 100:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"Vimeo unknown error ("+this.errorNumber+")"}},src:function(){return this.source},poster:function(){return this.poster_},setPoster:function(t){this.poster_=t},setSrc:function(t){if(t&&t.src){if(this.source=t,this.url=n.parseUrl(t.src),!this.options_.poster&&null!=this.url.videoId){var e;$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"}
17,(e=this,function(t){e.poster_=t[0].thumbnail_small})),this.checkHighResPoster()}this.options_.autoplay&&!o&&(this.isReady_?this.play():this.playOnReady=!0)}},supportsFullScreen:function(){return!0},load:function(){},play:function(){this.vimeo.api("play")},pause:function(){this.vimeo.api("pause")},paused:function(){return this.vimeoInfo.state!==t.PLAYING&&this.vimeoInfo.state!==t.BUFFERING},currentTime:function(){return this.vimeoInfo.time||0},setCurrentTime:function(t){this.vimeo.api("seekTo",t),this.player_.trigger("timeupdate")},duration:function(){return this.vimeoInfo.duration||0},buffered:function(){return videojs.createTimeRange(0,this.vimeoInfo.buffered*this.vimeoInfo.duration||0)},volume:function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume},setVolume:function(t){this.vimeo.api("setvolume",t),this.vimeoInfo.volume=t,this.player_.trigger("volumechange")},currentSrc:function(){return this.el_.src},muted:function(){return this.vimeoInfo.muted||!1},setMuted:function(t){t?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume),this.vimeoInfo.muted=t,this.player_.trigger("volumechange")},checkHighResPoster:function(){try{if(null!=this.url.videoId){$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},function(t){t[0].thumbnail_large});var t=new Image;t.onload=(function(){if("naturalHeight"in this){if(this.naturalHeight<=90||this.naturalWidth<=120){this.onerror();return}}else if(this.height<=90||this.width<=120){this.onerror();return}this.poster_="",this.trigger("posterchange")}).bind(this),t.onerror=function(){},t.src=""}}catch(t){}}});n.isSupported=function(){return!0},n.canPlaySource=function(t){return"video/vimeo"===t.type};var o=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);n.parseUrl=function(t){var e={videoId:null},n=t.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/);return n&&(e.videoId=n[5]),e},n.apiReadyQueue=[],function(){n.isApiReady=!0,t=".vjs-vimeo .vjs-iframe-blocker { display: none; }.vjs-vimeo.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-vimeo .vjs-poster { background-size: cover; }.vjs-vimeo { height:100%; }.vimeoplayer { width:100%; height:180%; position:absolute; left:0; top:-40%; }",e=document.head||document.getElementsByTagName("head")[0],(o=document.createElement("style")).type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),e.appendChild(o);for(var t,e,o,r=0;r<n.apiReadyQueue.length;++r)n.apiReadyQueue[r].initPlayer()}(),videojs.registerTech("Vimeo",n),function(){function t(e){return new t.fn.init(e)}var e={},n=!1,o=(Array.prototype.slice,"*");function r(t,e,n){if(null==n.contentWindow||!n.contentWindow.postMessage)return!1;var r=JSON.stringify({method:t,value:e});n.contentWindow.postMessage(r,o)}function s(t){try{a=(s=JSON.parse(t.data)).event||s.method}catch(t){}if("ready"!=a||n||(n=!0),!/^https?:\/\/player.vimeo.com/.test(t.origin))return!1;"*"===o&&(o=t.origin);var r,s,a,l=s.value,c=s.data,u=""===u?null:s.player_id,h=(r=a,u&&e[u]?e[u][r]:e[r]?e[r]:void 0),d=[];return!!h&&(void 0!==l&&d.push(l),c&&d.push(c),u&&d.push(u),d.length>0?h.apply(null,d):h.call())}function a(t,n,o){o?(e[o]||(e[o]={}),e[o][t]=n):e[t]=n}function l(t){return!!(t&&t.constructor&&t.call&&t.apply)}t.fn=t.prototype={element:null,init:function(t){return"string"==typeof t&&(t=document.getElementById(t)),this.element=t,this},api:function(t,e){if(!this.element||!t)return!1;var n=this.element,o=""!==n.id?n.id:null,s=l(e)?null:e,c=l(e)?e:null;return c&&a(t,c,o),r(t,s,n),this},addEvent:function(t,e){if(!this.element)return!1;var o=this.element,s=""!==o.id?o.id:null;return a(t,e,s),"ready"!=t?r("addEventListener",t,o):"ready"==t&&n&&e.call(null,s),this},removeEvent:function(t){if(!this.element)return!1;var n=this.element,o=function(t,n){if(n&&e[n]){if(!e[n][t])return!1;e[n][t]=null}else{if(!e[t])return!1;e[t]=null}return!0}(t,""!==n.id?n.id:null);"ready"!=t&&o&&r("removeEventListener",t,n)}},t.fn.init.prototype=t.fn,window.addEventListener?window.addEventListener("message",s,!1):window.attachEvent("onmessage",s),window.Froogaloop=window.$f=t}()}(),$(document).ready(function(){var t=$(".editable__container");t.length&&t.each(function(){var t=$(this),e=t.find(".contentExpandWrap"),n=t.find("#readMoreLink");n.length&&("SPAN"==n[0].nodeName&&(n.attr("href","#editableAnimateShowLess"),function(t,e){$(t).each(function(){var t=$(e,{html:$
17(this).html()});$.each(this.attributes,function(){t.attr(this.name,this.value)}),$(this).replaceWith(t)})}(n,"<a></a>")),e.add(n).removeClass("expand"),e.hide(),n.text("Show More"),t.on("click","#readMoreLink",function(n){n.preventDefault();var o=$(this),r=$("body .redactor-link-tooltip .redactor-link-tooltip-action:first-child");r.length&&r.parent().css("visibility","hidden"),"Show More"===o.text()?(t.removeAttr("id"),o.text("Show Less")):(t.attr("id","editableAnimateShowLess"),o.text("Show More")),e.add(o).toggleClass("expand")}))})}),(t=>{"use strict";class e{constructor(t){this.$el=t,this.init()}init(){this.bindToOffsetToAnchors()}bindToOffsetToAnchors(){this.$el.on("click",'a[href^="#"]',e=>{let n=e.target;if(!n)return;let o=decodeURI(n.hash).slice(1);if(!o)return;let r=document.getElementById(o);r&&this.animateToAnchor(t(r))})}animateToAnchor(e,n){n??=this.getStickySectionsHeight(),t("html, body").animate({scrollTop:e.offset().top-n},"slow")}getStickySectionsHeight(){return PLEStickyState?.getStickySectionsHeight()??0}static dataAttribute="linkToSection"}t(()=>{for(let n of document.querySelectorAll(".editable__container")){let o=t(n);o.data(e.dataAttribute,new e(o))}})})(window.jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$ul=this.$element,this.$videos=t(".video-js-slider",e),this.$videoOverlays=t(".video-overlay",this.$element),this.players=[],this.clones=[],this.prevDevice=null,this.loaded=0,this.tempArrVidsPause=[],this.vidsPauseClicked=[],this.lastDevice="",this.groupSlidesByDevice(),this.options=this.parseTrueFalseOptions(n),this.auto=this.options.auto,this.muted=!1,this.options.autoplayvideo&&(this.muted=!0),this.startPaused=-1!==location.href.indexOf("slide_show_pause=1")||-1!==location.href.indexOf("screenshot_mode=1"),this.startPaused&&(this.options.auto=!1),this.options.auto&&this.options.firstSlideVideo&&this.options.autoplayvideo&&(this.change=!0,this.options.auto=!1),this.attachEvents(),this.runSlider()};e.prototype.runSlider=function(){var e,n,o=this,r=o.getDevice();if(""!=o.lastDevice){if(r==o.lastDevice)return;if(JSON.stringify(o[r+"Items"])==JSON.stringify(o[o.lastDevice+"Items"])){o.lastDevice=r;return}}o.lastDevice=r,o.destroySlider(),e=r+"Items",o.options.count=o[e].length,0!=o.options.count&&(o[e].forEach(function(t){o.$ul.append(t)}),1==o.options.count&&(o.options.infiniteLoop=!1),n=o.generateBxSliderData(),t.extend(n,o.options),o.$bxSlider=o.$ul.bxSlider(n))},e.prototype.generateBxSliderData=function(){var e=this,n=!1;function o(){setTimeout(function(){t(window).trigger("scroll")},100)}return n=!!t(".lazyLoadImg").length,{onSlideAfter:function(t,r,s){if(e.players.forEach(function(t){t.paused()||(-1==e.tempArrVidsPause.indexOf(t.id_)&&e.tempArrVidsPause.push(t.id_),t.pause())}),t.hasClass("slider__video_type")){var a=t.find("[data-item-id]").data("itemId"),l=e.findPlayerByItemId(a);l||(l=e.returnPlayer(t.find(".video-js"))),e.options.autoplayvideo&&1>l.currentTime()&&(e.$element.stopAuto(),l.muted(!0),l.play()),e.muted&&l.muted(!0)}e.options.stopSlideshowAfterOneLoop&&e.options.count-1==s&&e.$element.stopAuto(),n&&o()},onSliderLoad:function(n){e.$element.css("visibility","visible"),e.$wrapper=e.$element.closest(".bx-wrapper"),""==e.options.easing&&(e.options.easing=null),e.options.controlsHover&&(t(".bx-controls-direction",e.$wrapper).hide(),e.$wrapper.hover(function(){t(".bx-controls-direction",t(this)).fadeIn(300)},function(){t(".bx-controls-direction",t(this)).fadeOut(300)})),e.options.autoHoverModified&&e.$wrapper.hover(function(){e.options.auto&&e.$element.stopAuto()},function(){e.options.auto&&!e.isVideoPlaying()&&(e.$element.stopAuto(),e.$element.startAuto())}),e.change&&(e.options.auto=!0),null!=e.options.easing&&(e.options.useCSS=!1),e.auto&&e.makePauseSlideshowButton(),o=e.options.count>1&&"fade"!=e.options.mode?1:0;var o,r=t("#slider").find(".bx-viewport").find("ul").children().eq(o);if(r.hasClass("slider__video_type")){var s=e.returnPlayer(r.find(".video-js"));e.options.autoplayvideo&&(e.$element.stopAuto(),s.muted(!0),s.play()),e.muted&&s.muted(!0)}e.initializeClones(),e.initializeOverlays(),e.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),e.$element.closest(".bx-wrapper").find(".wrap_on-off, .wrap_pause-play, .bx-pager ").wrapAll("<div class='bx-controls-buttons' />")},onSlideNext:function(){n&&o()},onSlidePrev:function(){n&&o()}}},e.prototype.destroySlider=function(){this.$bxSlider&&this.$bxSlider.destroySlider(),this.$ul.html("")},e.prototype.attachEvents=function(){var e,n,o=this;t("#slider").on("click",".pause-slideshow",function(n,r){t(this).hide(),o.$element.stopAuto(),o.options.auto=!1,t("#slider .play-slideshow").fadeIn("slow",function(){void 0!==r&&t(this).focus()}),(e=o.isVideoPlaying())&&e.pause()}),t("#slider").on("click",".play-slideshow",function(e,n){t(this).hide(),o.$element.startAuto(),o.options.auto=!0,t("#slider .pause-slideshow").fadeIn("slow",function(){void 0!==n&&t(this).focus()})}),t("body").keypress(function(e){13==e.which&&(t("#slider").find(".play-slideshow").is(":focus")&&t("#slider").find(".play-slideshow").trigger("click",{kb:!0}),t("#slider").find(".pause-slideshow").is(":focus")&&t("#slider").find(".pause-slideshow").trigger("click",{kb:!0}),t("#slider").find(".sound-off").is(":focus")&&t("#slider").find(".sound-off").trigger("click",{kb:!0}),t("#slider").find(".sound-on").is(":focus")&&t("#slider").find(".sound-on").trigger("click",{kb:!0}))}),t(window).resize(function(){clearTimeout(n),n=setTimeout(function(){o.runSlider()},250)})},e.prototype.returnPlayer=function(t){var e=this,n=t.data("setupRun");return void 0!=n.techOrder&&"vimeo"==n.techOrder[0]&&(n.controls=!1),void 0!=n.techOrder&&"youtube"==n.techOrder[0]&&(n.youtube={ytControls:2},n.controls=!1),videojs(t.attr("id"),n,function(){var t,n=this;e.players.push(n),n.on("play",function(){e.showCaptionWhilePlay(this.id_,!1),e.options.auto&&e.$element.stopAuto()}),n.on("pause",function(o){e.showCaptionWhilePlay(this.id_,!0),e.options.auto&&(e.$element.stopAuto(),e.$element.startAuto()),(t=e.hasClone(n))&&(t.poster(""),t.bigPlayButton.hide(),t.currentTime(n.currentTime()))}),n.on("ended",function(){e.showCaptionWhilePlay(this.id_,!0),e.options.auto&&(e.$element.stopAuto(),e.$element.startAuto())})})},e.prototype.parseTrueFalseOptions=function(t,n){for(var o in t)t.hasOwnProperty(o)&&-1!=e.BOOLEANS.indexOf(o)&&(t[o]=!!t[o]);return t},e.prototype.isVideoPlaying=function(){var t=!1;
17return this.players.forEach(function(e){e.paused()||(t=e)}),t},e.prototype.initializeOverlays=function(){var e=this;e.$videoOverlays.length&&e.$videoOverlays.on("click",function(){var n=e.findPlayerByItemId(t(this).data("itemId"));n.paused()?n.play():n.pause()})},e.prototype.findPlayerByItemId=function(e){for(var n=0;n<this.players.length;n++){var o=this.players[n];if(t(o.el_).data("itemId")==e)return o}return!1},e.prototype.groupSlidesByDevice=function(){var e,n=this;n.desktopItems=[],n.tabletItems=[],n.mobileItems=[];var o=navigator.userAgent.indexOf("Trident")>-1||navigator.userAgent.indexOf("MSIE")>-1;n.$ul.find("li").each(function(){e=o?t(this).clone(!0,!0):t(this),t(this).data("desktop")&&n.desktopItems.push(e),t(this).data("tablet")&&n.tabletItems.push(e),t(this).data("mobile")&&n.mobileItems.push(e)})},e.prototype.makePauseSlideshowButton=function(){var e="",n="";this.options.auto?e='style="display:none"':n='style="display:none"';var o='<div class="wrap_pause-play"><div class="pause-slideshow" aria-label="icon pause" '+n+' title="Pause slideshow" tabindex="0"><span class="icon icon-pause"></span></div><div class="play-slideshow" aria-label="icon play" '+e+' title="Play slideshow" tabindex="0"><span class="icon icon-play"></span></div></div>';t("#slider").find(".bx-wrapper .bx-controls").prepend(o)},e.prototype.initializeClones=function(){var e,n=this;n.$element.find(".bx-clone").each(function(o){if((e=t(this).find("video")).attr("id",e.attr("id")+"_clone"),e.length){var r=t(e[0]).data("setupRun")?t(e[0]).data("setupRun"):t(e[0]).data("setup");void 0!=r.techOrder&&"vimeo"==r.techOrder[0]&&(r.controls=!1),void 0!=r.techOrder&&"youtube"==r.techOrder[0]&&(r.youtube={ytControls:2},r.controls=!1),videojs(e[0],r,function(){this.muted(!0),n.clones.push(this)})}})},e.prototype.hasClone=function(e){for(var n=0;n<this.clones.length;n++){var o=this.clones[n];if(t(o.el_).attr("id")==t(e.el_).attr("id")+"_clone")return o}return!1},e.prototype.showCaptionWhilePlay=function(e,n){var o=t("#"+e).parents(".slider__item").find("[data-vidplay]"),r=o.data("vidplay");
17n&&(r=1),this.$element.find(o).css({opacity:r})},e.prototype.getDevice=function(){var t=window.innerWidth;return t<768?"mobile":t<1025?"tablet":"desktop"},e.DEFAULTS={video:!0,pager:!0,controls:!0,autoControls:!1,autoHoverModified:!1,autoHover:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1,isEditor:!1},e.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive","autoHoverModified"];var n=t.fn.Slider;t.fn.Slider=function(n){var o;return arguments,this.each(function(){var r=t(this),s=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);if(r.data("bxslider",new e(this,s)),void 0!==o)return!1}),o||this},t.fn.Slider.Constructor=e,t.fn.Slider.noConflict=function(){return t.fn.Slider=n,this},t(function(){t('[data-control="slider"]').Slider()})}(window.jQuery),function(t){"use strict";t(window).load(function(){t(".lazyLoadImg").length&&t(".slider__image.lazy").lazy({effect:"fadeIn",effectTime:2e3,threshold:0})})}(window.jQuery),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.ScrollReveal=e()}(this,function(t,e,n){return(function(){this.ScrollReveal=function(){function o(e){return window==this?new o(e):(t=this,t.tools=new n,t.tools.extend(t.defaults,e||{}),(!t.tools.isMobile()||!!t.defaults.mobile)&&(t.tools.isSupported("transform")&&t.tools.isSupported("transition")?(t.store={elements:{},containers:[]},t.history=[],t.counter=0,t.running=!1,t.initialized=!1,t):console.warn("ScrollReveal is not supported in this browser.")))}return o.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier( 0.6, 0.2, 0.1, 1 )",container:null,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},afterReveal:function(t){},afterReset:function(t){}},o.prototype.reveal=function(e,n,o){var r,s,a,l;if(s=n&&n.container?n.container:t.defaults.container?t.defaults.container:window.document.documentElement,!(r=Array.prototype.slice.call(s.querySelectorAll(e))).length)return console.warn("reveal('"+e+"') failed: no elements found."),t;for(var c=0;c<r.length;c++)a={},(l=r[c].getAttribute("data-sr-id"))?a=t.store.elements[l]:(a={id:++t.counter,domEl:r[c],seen:!1,revealed:!1}).domEl.setAttribute("data-sr-id",a.id),t.configure(a,n||{}),t.style(a),t.updateStore(a),a.revealed||a.domEl.setAttribute("style",a.styles.inline+a.styles.transform.initial);return o||(t.record(e,n),t.initTimeout&&window.clearTimeout(t.initTimeout),t.initTimeout=window.setTimeout(t.init,0)),t},o.prototype.configure=function(e,n){e.config?e.config=t.tools.extendClone(e.config,n):e.config=t.tools.extendClone(t.defaults,n),"top"===e.config.origin||"bottom"===e.config.origin?e.config.axis="Y":e.config.axis="X",("top"===e.config.origin||"left"===e.config.origin)&&(e.config.distance="-"+e.config.distance)},o.prototype.style=function(t){function e(e){parseInt(n.distance)&&(e.initial+=" translate"+n.axis+"("+n.distance+")",e.target+=" translate"+n.axis+"(0)"),n.scale&&(e.initial+=" scale("+n.scale+")",e.target+=" scale(1)"),n.rotate.x&&(e.initial+=" rotateX("+n.rotate.x+"deg)",e.target+=" rotateX(0)"),n.rotate.y&&(e.initial+=" rotateY("+n.rotate.y+"deg)",e.target+=" rotateY(0)"),n.rotate.z&&(e.initial+=" rotateZ("+n.rotate.z+"deg)",e.target+=" rotateZ(0)"),e.initial+="; opacity: "+n.opacity+";",e.target+="; opacity: "+t.styles.computed.opacity+";"}var n=t.config,o=window.getComputedStyle(t.domEl);t.styles||(t.styles={transition:{},transform:{},computed:{}},t.styles.inline=t.domEl.getAttribute("style")||"",t.styles.inline+="; visibility: visible; ",t.styles.computed.opacity=o.opacity,o.transition&&"all 0s ease 0s"!=o.transition?t.styles.computed.transition=o.transition+", ":t.styles.computed.transition=""),t.styles.transition.instant="-webkit-transition: "+t.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" 0s, opacity "+n.duration/1e3+"s "+n.easing+" 0s; transition: "+t.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" 0s, opacity "+n.duration/1e3+"s "+n.easing+" 0s; ",t.styles.transition.delayed="-webkit-transition: "+t.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" "+n.delay/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+n.delay/1e3+"s; transition: "+t.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" "+n.delay/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+n.delay/1e3+"s; ",t.styles.transform.initial=" -webkit-transform:",t.styles.transform.target=" -webkit-transform:",e(t.styles.transform),t.styles.transform.initial+="transform:",t.styles.transform.target+="transform:",e(t.styles.transform)},o.prototype.updateStore=function(e){var n=e.config.container;n&&-1==t.store.containers.indexOf(n)&&t.store.containers.push(e.config.container),t.store.elements[e.id]=e},o.prototype.record=function(e,n){t.history.push({selector:e,config:n})},o.prototype.init=function(){t.animate();for(var e=0;e<t.store.containers.length;e++)t.store.containers[e].addEventListener("scroll",t.handler),t.store.containers[e].addEventListener("resize",t.handler);return t.initialized||(window.addEventListener("scroll",t.handler),window.addEventListener("resize",t.handler),t.initialized=!0),t},o.prototype.handler=function(){t.running||e(function(){t.running=!0,t.animate()})},o.prototype.animate=function(){var e,n;function o(t,e){var n=0,o=0,r="after";switch(t){case"reveal":o=e.config.duration+e.config.delay,r+="Reveal";break;case"reset":o=e.config.duration,r+="Reset"}return e.timer&&(n=Math.abs(e.timer.started-new Date),window.clearTimeout(e.timer.clock)),e.timer={
17started:new Date},e.timer.clock=window.setTimeout(function(){e.config[r](e.domEl),e.timer=null},o-n),"reveal"===t?e.revealed=!0:e.revealed=!1}t.tools.forOwn(t.store.elements,function(r){e=t.store.elements[r],(n=t.isElemVisible(e))&&!e.revealed?("always"!==e.config.useDelay&&("onload"!==e.config.useDelay||t.initialized)&&("once"!==e.config.useDelay||e.seen)?e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.target+e.styles.transition.instant):e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.target+e.styles.transition.delayed),e.seen=!0,o("reveal",e)):!n&&e.config.reset&&e.revealed&&(e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.initial+e.styles.transition.instant),o("reset",e))}),t.running=!1},o.prototype.getContainer=function(t){return t||(t=window.document.documentElement),{width:t.clientWidth,height:t.clientHeight}},o.prototype.getScrolled=function(e){if(e){var n=t.getOffset(e);return{x:e.scrollLeft+n.left,y:e.scrollTop+n.top}}return{x:window.pageXOffset,y:window.pageYOffset}},o.prototype.getOffset=function(t){var e=0,n=0,o=t.offsetHeight,r=t.offsetWidth;do isNaN(t.offsetTop)||(e+=t.offsetTop),isNaN(t.offsetLeft)||(n+=t.offsetLeft);while(t=t.offsetParent);return{top:e,left:n,height:o,width:r}},o.prototype.isElemVisible=function(e){var n,o,r,s,a=t.getOffset(e.domEl),l=t.getContainer(e.config.container),c=t.getScrolled(e.config.container),u=e.config.viewFactor,h=a.height,d=a.width,p=a.top,f=a.left;return n=c.y+e.config.viewOffset.top,o=c.x+e.config.viewOffset.left,r=c.y-e.config.viewOffset.bottom+l.height,s=c.x-e.config.viewOffset.right+l.width,r>p+h*u&&p+h-h*u>n&&f+d*u>o&&s>f+d-d*u||"fixed"===window.getComputedStyle(e.domEl).position},o.prototype.sync=function(){if(t.history.length){for(var e=0;e<t.history.length;e++){var n=t.history[e];t.reveal(n.selector,n.config,!0)}t.init()}else console.warn("sync() failed: no reveals found.");return t},o}();var t,e,n=function(){function t(){}return t.prototype.isObject=function(t){return null!==t&&"object"==typeof t&&t.constructor==Object},t.prototype.forOwn=function(t,e){if(!this.isObject(t))throw TypeError("Expected 'object', but received '"+typeof t+"'.");for(var n in t)t.hasOwnProperty(n)&&e(n)},t.prototype.extend=function(t,e){return this.forOwn(e,(function(n){this.isObject(e[n])?(t[n]&&this.isObject(t[n])||(t[n]={}),this.extend(t[n],e[n])):t[n]=e[n]}).bind(this)),t},t.prototype.extendClone=function(t,e){return this.extend(this.extend({},t),e)},t.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},t.prototype.isSupported=function(t){for(var e=document.createElement("sensor"),n=(t+"Webkit,Moz,O,".split(",").join(t+",")).split(","),o=0;o<n.length;o++)e.style[n[o]];return!0},t}(),e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}).call(this),this.ScrollReveal}),window.sr=new ScrollReveal,function(t){"use strict";var e=function(e,n){var o=!1;function r(){setTimeout(function(){t(window).trigger("scroll")},100)}o=!!t(".lazyLoadImg").length,this.$element=t(e),this.options=this.parseTrueFalseOptions(n);var s=this;s.options.autoplay=s.options.auto,s.options.auto=!1,t.extend(this.options,{onSlideAfter:function(){s.options.auto&&(s.$element.stopAuto(),s.$element.startAuto()),o&&r()},onSliderLoad:function(){if(""==s.options.easing&&(s.options.easing=null),s.options.controlsHover){var e=s.$element.closest(".bx-wrapper");t(".bx-controls-direction",e).hide(),e.hover(function(){t(".bx-controls-direction",t(this)).fadeIn(300)},function(){t(".bx-controls-direction",t(this)).fadeOut(300)})}if(s.options.autoHover){var e=s.$element.closest(".bx-wrapper");e.hover(function(){s.options.auto&&s.$element.stopAuto()},function(){console.log(s.options.auto),s.options.auto&&s.$element.startAuto()})}null!=s.options.easing&&(s.options.useCSS=!1),s.options.autoplay&&(s.makePauseSlideshowButton(),setTimeout(function(){s.$element.startAuto(),s.options.auto=!0},s.options.autoDelay)),s.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),s.$element.closest(".bx-wrapper").find(".wrap_on-off, .wrap_pause-play, .bx-pager ").wrapAll("<div class='bx-controls-buttons' />"),s.attachEvents()},onSlideNext:function(){o&&r()},onSlidePrev:function(){o&&r()}}),this.run()};e.prototype.attachEvents=function(){var e=this,n=e.$element.closest(".bx-wrapper").find(".bx-controls");n.on("click",".pause-slideshow",function(o,r){t(this).hide(),e.$element.stopAuto(),e.o
17ptions.auto=!1,n.find(".play-slideshow").fadeIn("slow",function(){void 0!==r&&t(this).focus()})}),n.on("click",".play-slideshow",function(o,r){t(this).hide(),e.$element.startAuto(),e.options.auto=!0,n.find(".pause-slideshow").fadeIn("slow",function(){void 0!==r&&t(this).focus()})}),t("body").keypress(function(t){13==t.which&&(n.find(".play-slideshow").is(":focus")&&n.find(".play-slideshow").trigger("click",{kb:!0}),n.find(".pause-slideshow").is(":focus")&&n.find(".pause-slideshow").trigger("click",{kb:!0}))})},e.prototype.makePauseSlideshowButton=function(){this.$element.closest(".bx-wrapper").find(".bx-controls").append('<div class="wrap_pause-play"><div class="pause-slideshow" aria-label="icon pause" title="Pause slideshow" tabindex="0"><span class="icon icon-pause"></span></div><div class="play-slideshow" aria-label="icon play" style="display: none" title="Play slideshow" tabindex="0"><span class="icon icon-play"></span></div></div>')},e.prototype.parseTrueFalseOptions=function(t,n){for(var o in t)t.hasOwnProperty(o)&&-1!=e.BOOLEANS.indexOf(o)&&(t[o]=!!t[o]);return t},e.prototype.run=function(){var e=this;t(window).load(function(){e.$bxSlider=e.$element.bxSlider(e.options),e.$bxSlider.redrawSlider()})},e.DEFAULTS={pager:!0,controls:!0,autoControls:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1},e.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive"];var n=t.fn.BXSlider;t.fn.BXSlider=function(n){var o;return arguments,this.each(function(){var r=t(this),s=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);if(r.data("bxslider",new e(this,s)),void 0!==o)return!1}),o||this},t.fn.BXSlider.Constructor=e,t.fn.BXSlider.noConflict=function(){return t.fn.BXSlider=n,this},t(function(){t('[data-control="bx-slider"]').BXSlider()})}(window.jQuery),function(t){"use strict";t(window).load(function(){t(".lazyLoadImg").length&&t(".staff-member__image.lazy").add(".staff-member__img.lazy").lazy({effect:"fadeIn",effectTime:2e3,threshold:0})})}(window.jQuery),function(t){"use strict";t(document).ready(function(){t(".fbF_ShowMoreLess").click(function(){t(this).fadeOut(0).toggleClass("showMore").fadeIn(800),t(this).parent().find(".featuredblock.row").toggleClass("showMore")}),t(".featuredblock__description.nonPle p").addClass("featuredblock__description")}),t(window).load(function(){t(".lazyLoadImg").length&&t(".featuredblock__image.lazy").add(".featuredblock__bgImage.lazy").lazy({effect:"fadeIn",effectTime:2e3,threshold:0})})}(window.jQuery),function(t){"use strict";t(document).ready(function(){t(".js-testimonials-layout-settings").each(function(){"list"===t(this).data("layout-type")&&sr.reveal(".testimonials__item")})})}(window.jQuery),function(t){"use strict";var e=t('<style type="text/css">.mm-menu.mm-offcanvas { display: none; }</style>');t("html > head").append(e),t(document).ready(function(){t("[data-sticky-header]").closest(".js-sticky-nav").sticky({topSpacing:0}),t(".navigation__item.more").click(function(t){t.preventDefault()}),t("nav.mm-menu a.mm-prev").each(function(){var e=t(this).parent().find("a.mm-title").text();t(this).attr("title",e)}),t("nav.mm-menu a.mm-next").each(function(){var e=t("> a[data-title]",t(this).parent()).data("title");t(this).attr("title",e)}),t("nav.mm-menu a.mm-close").length>0&&t("nav.mm-menu a.mm-close").attr("title","Close");var e=t(".more_nav--loading");e.length&&e.removeClass("more_nav--loading")}),t(window).load(function(){t(".navigation-a").length&&t(".navigation-a > .navigation__list > .navigation__item.has-drop-down").on("mouseenter mouseleave",function(e){var n=t(this).find("> .navigation__list--sub"),o=n.find("> .navigation__item.has-drop-down > .navigation__list--sub"),r=o.find("> .navigation__item.has-drop-down > .navigation__list--sub"),s=n.outerWidth(!0),a=t(this).offset().left,l=0,c=0;t(o).each(function(){var e=t(this).outerWidth(!0);e>c&&(c=e)});var u=0;t(r).each(function(){var e=t(this).outerWidth(!0);e>u&&(u=e)}),l=s+c+u-t(this).outerWidth(!0),t(document).width()-(a+t(this).outerWidth(!0)+60)>l?t(this).removeClass("near-edge"):t(this).addClass("near-edge")})})}(window.jQuery),function(t){"use strict";var e=function(){this.confData={},this.selfCount={},this.mapInstance={},this.mapMarkers={},this.activeMap=null,t(".js-mapComponent").length&&this.initialize()};e.prototype.getAddressForPostcode=function(t,e,n){for(var o="",r=this.confData[t].locations,s=0;s<r.length;s++)if(-1!==r[s].address.indexOf(e)){if(null!==n){if(-1!==r[s].address.indexOf(n)){o=r[s].address;break}}else{o=r[s].address;break}}return o},e.prototype.initialize=function(){var e=this;t(".js-mapComponent").each(function(){var n=t(this).closest("[data-component-name]").data("c
17omponentName");e.mapInstance[n]=L.map(this),L.tileLayer("//smbmaps.ibsrv.net/world_tiles/{z}/{x}/{y}.png",{attribution:'Map data provided by <a href="http://www.internetbrands.com/">Internet Brands</a>',maxZoom:18}).addTo(e.mapInstance[n]),e.mapInstance[n].scrollWheelZoom.disable(),e.confData[n]=JSON.parse(t(this).closest("[data-component-name]").find("input[type=hidden]").val()),e.setupMap(e.mapInstance[n],e.confData[n]),e.mapSize(this,e.confData[n],n),e.attachEvents(this,e.confData[n],n);var o=e.confData[n].locations;o.length>1&&!e.confData[n].fitBounds&&(o=o.reverse());for(var r=0;r<o.length;r++)if(null!=o[r].latitude&&null!=o[r].longitude){var s=[{lat:o[r].latitude,lon:o[r].longitude,address:{name:o[r].address}}];e.applyData(s,n,this,r)}else e.geolocateLocation(o[r],n,this);var a=e.confData[n].xaxis,l=e.confData[n].yaxis;t(window).width()>768&&(0!=a||0!=l)&&e.mapInstance[n].panBy([a,l])}),t("body").click(function(n){if(t(n.target).hasClass("js-mapComponent")){var o=t(n.target).closest("[data-component-name]").data("c
17omponentName");null!==e.activeMap&&e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=o,e.confData[o].zoomControl&&e.mapInstance[o].scrollWheelZoom.enable()}else null!==e.activeMap&&(e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=null)})},e.prototype.attachEvents=function(e,n,o){var r,s=this;t(window).resize(function(){s.mapSize(e,n,o),clearTimeout(r),r=setTimeout(function(){if(s.mapMarkers[o].length>1&&s.confData[o].fitBounds){var t=L.featureGroup(s.mapMarkers[o]);s.mapCenter(o,t)}},250)})},e.prototype.setupMap=function(e,n){n.zoomControl||(e.boxZoom.disable(),e.doubleClickZoom.disable(),e.keyboard.disable(),e.scrollWheelZoom.disable(),e.tap&&e.tap.disable(),e.touchZoom.disable(),t(".leaflet-control-zoom").css("visibility","hidden"))},e.prototype.mapCenter=function(t,e){this.mapInstance[t].fitBounds(e.getBounds().pad(.5))},e.prototype.mapSize=function(e,n,o){var r=t(e).parent();if(n.autoFit){this.confData[o].isPle?a=r.find(".map__wrap").outerHeight(!0):s=r.children(".component__title-caption-wrap").outerHeight(!0),r.css("height","100%");var s,a,l=r.height();this.confData[o].isPle||null===s?768>=t(window).width()&&null!==a&&(l-=a):l-=s,t(e).css({width:r.width(),height:l}),t(e).trigger("map.resize")}else t(e).css({width:n.width,height:n.height})},e.prototype.geocodeURL="https://nominatim.openstreetmap.org/search?[QUERY]&format=json&polygon=1&addressdetails=1&limit=1",e.prototype.geolocateLocation=function(e,n,o){var r=this,s=this.geocodeURL;s=s.replace("[QUERY]",e.query),t.ajax({url:s,dataType:"jsonp",jsonp:"json_callback",success:function(t){r.applyData(t,n,o)}})},e.prototype.applyData=function(e,n,o,r){var s=this;if(e.length>0){s.selfCount[n]=s.selfCount[n]||0;var a=e[0],l=a.lat,c=a.lon;s.mapInstance[n].setView([l,c],s.confData[n].zoom,{animation:!0}),s.selfCount[n]++;var u=[];u.alt="Map Marker";var h=s.confData[n].assetsPath;if(s.confData[n].iconUrl){var d=s.confData[n].iconUrl,p=new L.Icon({iconUrl:d,shadowUrl:h+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});u.icon=p}var f=L.marker([l,c],u);if(s.confData[n].alwaysShowInfoWindow||s.confData[n].showAddressOnHover){var m=a.display_name||null,g=null;if("postcode"in a.address){var v="house_number"in a.address?a.address.house_number:null;m=""!=(g=s.getAddressForPostcode(n,a.address.postcode,v))?g:m}else a.address.name&&(m=a.address.name);m&&f.bindPopup(m)}if(s.mapMarkers[n]=s.mapMarkers[n]||[],s.mapMarkers[n].push(f),s.confData[n].hue){var y=s.confData[n].hue.stylers,_=(y[0].gama,y[1].lightness,y[2].hue);"none"!==_&&(t(o).css("background-color",_),t("div.leaflet-tile-pane",o).css("opacity","0.9"))}if(s.selfCount[n]>=s.confData[n].locations.length){var b=L.featureGroup(s.mapMarkers[n]).addTo(s.mapInstance[n]);s.mapMarkers[n].length>1&&s.confData[n].fitBounds&&s.mapCenter(n,b),s.confData[n].alwaysShowInfoWindow&&s.mapMarkers[n][s.mapMarkers[n].length-1].openPopup()}}else console.log("No data found.")},t(document).ready(function(){if(window.webManagerMap=new e,t(".map-a").length>0){var n;n=[{selector:".map-search__location-distance h3 b",property:"title",type:"text"},{selector:".map-search__location-address p",property:"address_format",type:"text"},{selector:".map-search__location-phone",property:"phone",type:"text"},{selector:".map-search__location-phone2",property:"phone2",type:"text"},{selector:".map-search__location-fax",property:"fax",type:"text"},{selector:".map-search__location-directions a",property:["cta","buttonText"],type:"text"},{selector:".map-search__location-directions a",property:["cta","linkPage"],type:"href"},{selector:".map-search__email",property:"email",type:"text"}],t("#gmap-location-list").on("click",".gmap-location a",function(e){e.preventDefault();var o=t(this).closest("[data-component-name]").data("componentName"),r=window.webManagerMap.confData[o].locations,s=t(this).parent().attr("id"),a=r.find(function(t){return t.ID===s});n.forEach(function(e,n){var o={},r=e.property;if("string"==typeof r||r instanceof String)o=a[r];else{var s=a;r.forEach(function(t){s=s[t]}),o=s}if("string"==typeof o||o instanceof String)"text"===e.type?t(e.selector).text(o):"href"===e.type&&t(e.selector).attr("href",o),o.length>0?t(e.selector).show():t(e.selector).hide();else{var l=Object.values(Object.keys(a[r]).map(function(t){return a[r][t]}));t(e.selector).html(l.join("<br>"))}})})}})}(window.jQuery),function(t){"use strict";var e,n,o,r,s,a,l,c=!0,u="",h=0,d="",p=null,f="",m=!1,g={resize:1,click:1},v=!0,y=1,_="bodyOffset",b=_,w=!0,x="",T={},k=32,j=null,C=!1,S="[iFrameSizer]",E=S.length,P="",O={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",I=!0,A=t.parent,z="*",N=0,D=!1,R=null,B=16,F=1,H="scroll",W=H,Z=t,V=function(){tt("MessageCallback function not defined")},U=function(){},q=function(){};function Y(e,n,o){"addEventListener"in t?e.addEventListener(n,o,!1):"attachEvent"in t&&e.attachEvent("on"+n,o)}function G(e,n,o){"removeEventListener"in t?e.removeEventListener(n,o,!1):"detachEvent"in t&&e.detachEvent("on"+n,o)}function Q(t){return t.charAt(0).toUpperCase()+t.slice(1)}var X=Date.now||function(){return new Date().getTime()};function K(t){return S+"["+P+"] "+t}function J(e){C&&"object"==typeof t.console&&console.log(K(e))}function tt(e){"object"==typeof t.console&&console.warn(K(e))}function te(t,e){void 0!==e&&""!==e&&"null"!==e&&(document.body.style[t]=e,J("Body "+t+' set to "'+e+'"'))}function tn(e){function n(){ty(e.eventName,e.eventType)}var o={add:function(e){Y(t,e,n)},remove:function(e){G(t,e,n)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(o[e.method])):o[e.method](e.eventName),J(Q(e.method)+" event listener: "+e.eventType)}function ti(t){tn({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),tn({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),tn({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),tn({method:t,eventType:"Input",eventName:"input"}),tn({method:t,eventType:"Mouse Up",eventName:"mouseup"}),tn({method:t,eventType:"Mouse Down",eventName:"mousedown"}),tn({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),tn({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),tn({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),tn({method:t,eventType:"Touch Start",eventName:"touchstart"}),tn({method:t,eventType:"Touch End",eventName:"touchend"}),tn({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),tn({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),tn({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),tn({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}
17),"child"===M&&tn({method:t,eventType:"IFrame Resized",eventName:"resize"})}function to(t,e,n,o){return e!==t&&(t in n||(tt(t+" is not a valid option for "+o+"CalculationMethod."),t=e),J(o+' calculation method set to "'+t+'"')),t}function tr(){b=to(b,_,tm,"height")}function ts(){W=to(W,H,tg,"width")}function ta(){var e;!0===c?(ti("add"),e=0>k,t.MutationObserver||t.WebKitMutationObserver?e?tc():p=function(){function e(t){function e(t){!1===t.complete&&(J("Attach listeners to "+t.src),t.addEventListener("load",r,!1),t.addEventListener("error",s,!1),l.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function n(t){J("Remove listeners from "+t.src),t.removeEventListener("load",r,!1),t.removeEventListener("error",s,!1),l.splice(l.indexOf(t),1)}function o(t,e,o){n(t.target),ty(e,o+": "+t.target.src,void 0,void 0)}function r(t){o(t,"imageLoad","Image loaded")}function s(t){o(t,"imageLoadFailed","Image load failed")}var a,l=[],c=t.MutationObserver||t.WebKitMutationObserver,u=(a=document.querySelector("body"),u=new c(function(t){ty("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}),J("Create body MutationObserver"),u.observe(a,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),u);return{disconnect:function(){"disconnect"in u&&(J("Disconnect body MutationObserver"),u.disconnect(),l.forEach(n))}}}():(J("MutationObserver not supported in this browser!"),tc())):J("Auto Resize disabled")}function tl(){ti("remove"),null!==p&&p.disconnect(),clearInterval(j)}function tc(){0!==k&&(J("setInterval: "+k+"ms"),j=setInterval(function(){ty("interval","setInterval: "+k)},Math.abs(k)))}function tu(t,e){var n=0;return e=e||document.body,parseInt(n="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(n=document.defaultView.getComputedStyle(e,null))?n[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,10);var n=e.style.left,o=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft,e.style.left=n,e.runtimeStyle.left=o,t}(e.currentStyle[t]),10)}function th(t,e){for(var n,o=e.length,r=0,s=0,a=Q(t),l=X(),c=0;c<o;c++)(r=e[c].getBoundingClientRect()[t]+tu("margin"+a,e[c]))>s&&(s=r);return l=X()-l,J("Parsed "+o+" HTML elements"),J("Element position calculated in "+l+"ms"),(n=l)>B/2&&J("Event throttle increased to "+(B=2*n)+"ms"),s}function td(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function tp(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length?(tt("No tagged elements ("+e+") found on page"),y):th(t,n)}function tf(){return document.querySelectorAll("body *")}var tm={bodyOffset:function(){return document.body.offsetHeight+tu("marginTop")+tu("marginBottom")},offset:function(){return tm.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,td(tm))},min:function(){return Math.min.apply(null,td(tm))},grow:function(){return tm.max()},lowestElement:function(){return Math.max(tm.bodyOffset(),th("bottom",tf()))},taggedElement:function(){return tp("bottom","data-iframe-height")}},tg={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tg.bodyScroll(),tg.documentElementScroll())},max:function(){return Math.max.apply(null,td(tg))},min:function(){return Math.min.apply(null,td(tg))},rightMostElement:function(){return th("right",tf())},taggedElement:function(){return tp("right","data-iframe-width")}},tv=(e=function(t,e,n,o){var r,s;(function(){function t(t,e){return!(Math.abs(t-e)<=N)}return r=void 0!==n?n:tm[b](),s=void 0!==o?o:tg[W](),t(y,r)||m&&t(F,s)}
17)()||"init"===t?(t_(),tx(y=r,F=s,t)):!(t in{init:1,interval:1,size:1})&&(b in O||m&&W in O)?tw(e):t in{interval:1}||J("No change in size detected")},s=null,a=0,l=function(){a=X(),s=null,r=e.apply(n,o),s||(n=o=null)},function(){var t=X();a||(a=t);var c=B-(t-a);return n=this,o=arguments,c<=0||c>B?(s&&(clearTimeout(s),s=null),a=t,r=e.apply(n,o),s||(n=o=null)):s||(s=setTimeout(l,c)),r});function ty(t,e,n,o){D&&t in g?J("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||J("Trigger event: "+e),tv(t,e,n,o))}function t_(){D||(D=!0,J("Trigger event lock on")),clearTimeout(R),R=setTimeout(function(){D=!1,J("Trigger event lock off"),J("--")},128)}function tb(t){y=tm[b](),F=tg[W](),tx(y,F,t)}function tw(t){var e=b;b=_,J("Reset trigger event: "+t),t_(),tb("reset"),b=e}function tx(t,e,n,o,r){if(!0===I){var s;void 0===r?r=z:J("Message targetOrigin: "+r),J("Sending message to host page ("+(s=P+":"+t+":"+e+":"+n+(void 0!==o?":"+o:""))+")"),A.postMessage(S+s,r)}}Y(t,"message",function e(n){var o,r;function s(){return n.data.split("]")[1].split(":")[0]}function a(){return n.data.substr(n.data.indexOf(":")+1)}function l(){return n.data.split(":")[2]in{true:1,false:1}}S===(""+n.data).substr(0,E)&&(!1===v?function(){var e,o,r;switch(s()){case"reset":w?J("Page reset ignored by init"):(J("Page size reset by host page"),tb("resetPage"));break;case"resize":ty("resizeParent","Parent window requested size check");break;case"moveToAnchor":e=a(),T.findTarget(e);break;case"message":J("MessageCallback called from parent: "+(o=a())),V(JSON.parse(o)),J(" --");break;case"pageInfo":J("PageInfoFromParent called from parent: "+(r=a())),q(JSON.parse(r)),J(" --");break;default:"iFrameResize"in t||l()||tt("Unexpected message ("+n.data+")")}}():l()?(x=n.data,A=n.source,function(){function t(t){return"true"===t}var e=x.substr(E).split(":");P=e[0],h=void 0!==e[1]?Number(e[1]):h,m=void 0!==e[2]?t(e[2]):m,C=void 0!==e[3]?t(e[3]):C,k=void 0!==e[4]?Number(e[4]):k,c=void 0!==e[6]?t(e[6]):c,d=e[7],b=void 0!==e[8]?e[8]:b,u=e[9],f=e[10],N=void 0!==e[11]?Number(e[11]):N,T.enable=void 0!==e[12]&&t(e[12]),M=void 0!==e[13]?e[13]:M,W=void 0!==e[14]?e[14]:W}(),J("Initialising iFrame ("+location.href+")"),function(){if("iFrameResizer"in t&&Object===t.iFrameResizer.constructor){var e;J("Reading data from page: "+JSON.stringify(e=t.iFrameResizer)),V="messageCallback"in e?e.messageCallback:V,U="readyCallback"in e?e.readyCallback:U,z="targetOrigin"in e?e.targetOrigin:z,b="heightCalculationMethod"in e?e.heightCalculationMethod:b,W="widthCalculationMethod"in e?e.widthCalculationMethod:W}J("TargetOrigin for parent set to: "+z)}(),void 0===d&&(d=h+"px"),te("margin",(-1!==(o=d).indexOf("-")&&(tt("Negative CSS value ignored for margin"),o=""),o)),te("background",u),te("padding",f),(r=document.createElement("div")).style.clear="both",r.style.display="block",document.body.appendChild(r),tr(),ts(),document.documentElement.style.height="",document.body.style.height="",J('HTML & body height set to "auto"'),J("Enable public methods"),Z.parentIFrame={autoResize:function(t){return!0===t&&!1===c?(c=!0,ta()):!1===t&&!0===c&&(c=!1,tl()),c},close:function(){tx(0,0,"close"),J("Disable outgoing messages"),I=!1,J("Remove event listener: Message"),G(t,"message",e),!0===c&&tl()},getId:function(){return P},getPageInfo:function(t){"function"==typeof t?(q=t,tx(0,0,"pageInfo")):(q=function(){},tx(0,0,"pageInfoStop"))},moveToAnchor:function(t){T.findTarget(t)},reset:function(){tw("parentIFrame.reset")},scrollTo:function(t,e){tx(e,t,"scrollTo")},scrollToOffset:function(t,e){tx(e,t,"scrollToOffset")},sendMessage:function(t,e){tx(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){b=t,tr()},setWidthCalculationMethod:function(t){W=t,ts()},setTargetOrigin:function(t){J("Set targetOrigin: "+t),z=t},size:function(t,e){ty("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},ta(),T=function(){function e(e){var n,o,r,s=e.split("#")[1]||e,a=decodeURIComponent(s),l=document.getElementById(a)||document.getElementsByName(a)[0];void 0!==l?(n=l.getBoundingClientRect(),o={x:void 0!==t.pageXOffset?t.pageXOffset:document.documentElement.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:document.documentElement.scrollTop},J("Moving to in page link (#"+s+") at x: "+(r={x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}).x+" y: "+r.y),tx(r.y,r.x,"scrollToOffset")):(J("In page link (#"+s+") not found in iFrame, so sending to parent"),tx(0,0,"inPageLink","#"+s))}function n(){""!==location.hash&&"#"!==location.hash&&e(location.href)}return T.enable?Array.prototype.forEach&&document.querySelectorAll?(J("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&Y(t,"click",function(t){t.preventDefault(),e(this.getAttribute("href"))})}),Y(t,"hashchange",n),setTimeout(n,128)):tt("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):J("In page linking not enabled"),{findTarget:e}}(),ty("init","Init message from host page"),U(),v=!1,setTimeout(function(){w=!1},128)):J('Ignored message of type "'+s()+'". Received before initialization.'))}),"loading"!==document.readyState&&t.parent.postMessage("[iFrameResizerChild]Ready","*")}(window||{}),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var n=window.Cookies,o=window.Cookies=t();o.noConflict=function(){return window.Cookies=n,o}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function e(n){function o(e,r,s){if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(s=t({path:"/"},o.defaults,s)).expires){var a,l=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*s.expires),s.expires=l}try{a=JSON.stringify(r),/^[\{\[]/.test(a)&&(r=a)}catch(t){}return r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
17URIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",r,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}e||(a={});for(var c=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,h=0;h<c.length;h++){var d=c[h].split("="),p=d.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var f=d[0].replace(u,decodeURIComponent);if(p=n.read?n.read(p,f):n(p,f)||p.replace(u,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(t){}if(e===f){a=p;break}e||(a[f]=p)}catch(t){}}return a}}return o.set=o,o.get=function(t){return o.call(o,t)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(e,n){o(e,"",t(n,{expires:-1}))},o.withConverter=e,o}(function(){})}),$(document).ready(function(){window.menuHolder=$(".navigation").not(".mm-menu"),window.menuHolderMaxWidth=100,window.menu=$(".more_nav").not(".mm-listview"),window.currentMenu=menu,window.currentMenuWidth=window.menuHolder.outerWidth(),window.menuChildrenCount=currentMenu.children().length,window.origMenuContent="",window.moreButton=$('<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>'),window.allMenus=[]}),$(()=>{"use strict";let t=document.querySelectorAll("#shapePnl a"),e=({currentTarget:t})=>{let e=t.classList.item(0),n=t.parentElement.querySelectorAll(":scope > .selected");for(let t of n)t.classList.remove("selected");t.classList.add("selected");let o=document.querySelectorAll("#facePnl");for(let t of o)t.setAttribute("class",e);let r=document.querySelectorAll(`#infoPnl div.${e}`);for(let t of r)for(let e of t.parentElement.children)e.style.display=e===t?"block":"none"};for(let n of t)n.addEventListener("click",e);let n=document.querySelectorAll('#framePnl span[class*="frm"]'),o=({currentTarget:t})=>{let e=t.getAttribute("class"),n=document.querySelectorAll("#framePnl a.selected");for(let t of n)t.classList.remove("selected");t.parentElement.classList.add("selected");let o=document.querySelectorAll("#lrgFrame");for(let t of o)t.setAttribute("class",e)};for(let t of n)t.addEventListener("click",o);let r=1,s=document.querySelectorAll("ul#frameSets li").length,a=document.querySelectorAll("a.prvSet"),l=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(r>1){e.animate({left:"+=720px"},500),r-=1;return}e.animate({left:`-${(s-1)*720}px`},500),r=s};for(let t of a)t.addEventListener("click",l);let c=document.querySelectorAll("a.nxtSet"),u=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(r<s){e.animate({left:"-=720px"},500),r+=1;return}e.animate({left:"0px"},500),r=1};for(let t of c)t.addEventListener("click",u);let h=document.querySelectorAll("a.lnchFrmSlctr"),d=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"815",height:"508"})};for(let t of h)t.addEventListener("click",d);let p=document.querySelectorAll("button.lnch3dspine"),f=t=>{t.stopPropagation(),t.preventDefault(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"902",height:"833"})};for(let t of p)t.addEventListener("click",f);let m=document.querySelectorAll("button.lnchpetselector"),g=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"940",height:"750"})};for(let t of m)t.addEventListener("click",g)}),function(t){"use strict";function e(){var e=this;e.$stickyHeader=t(".stickyHeader"),e.init(),e.attachEvents()}e.prototype.init=function(){this.setupMainMenu(),this.accordionMenu(),this.setupMoreNav(),this.appendElement(),this.equaliseHeights(),this.featuredIconBlock(),this.limitText(),this.$stickyHeader.sticky(),t(".preview_iframe, #desktop_iframe").height(t(window).height()-t("#header").outerHeight()-t("#main .nav-panel").outerHeight()-t("#main .preview-section .preview-panel").outerHeight()-t("#footer").outerHeight()-5)},e.prototype.attachEvents=function(){var e=this;t(window).load(function(){e.featuredIconBlock(),e.equaliseHeights(),e.appendElement(),e.setupMainMenu(),window.dispatchEvent(new Event("resize"))}),t(window).resize(function(){e.$stickyHeader.unstick(),e.$stickyHeader.sticky(),e.equaliseHeights(),e.appendElement()}),t(".form").length&&t("body").on("SMBLeadsFormReady",function(){e.formHeight(),e.equaliseHeights()})},e.prototype.setupMainMenu=function(){window.innerWidth;var e,n,o=t("#navigation_header"),r=(t("#mm-navigation_header"),t("#hamburger"),t(".mm-menu"));o.mmenu({},{clone:!0}),r.find(".navigation__list--sub").each(function(o,s){void 0!==(n=t(s).find(".has-child").find("a").attr("href"))&&(e=n.substring(1)),r.find(".mm-panel").filter(function(n){return t(this).attr("id")==e}).addClass("grandchild").find("ul").removeClass("navigation__list--sub").addClass("navigation__list--sub--sub")})},e.prototype.setupMoreNav=function(){var e=this;1===t(".navigation").not(".mm-menu").data("more-button")&&(window.moreButton=t('
17<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>'));var n=t("#navigation_header"),o=(n.parent(),n.find("ul")),r="sublevel-";function s(){window.currentMenuWidth=window.menuHolder.outerWidth(),addMoreButton(),e.setupMainMenu(),e.accordionMenu(),o=n.find("ul"),navigationSublevelWrap(o,r),t(".navigation:not(.mm-menu) .sublevel-1").each(function(){t(this).scrollArea({heightProp:"maxHeight",setScrollTo:"> .navigation__list--sub"})})}ResponsiveHelper.addRange({"1140..":{on:function(){1===t(".navigation").not(".mm-menu").data("more-button")&&(menuPrepare(),window.currentMenuWidth=window.menuHolder.outerWidth(),addMoreButton(),t(window).on("resize orientationchange",s)),e.setupMainMenu(),e.setupMainMenu(),e.accordionMenu(),o=n.find("ul"),navigationSublevelWrap(o,r),t(".navigation:not(.mm-menu) .sublevel-1").each(function(){t(this).scrollArea({heightProp:"maxHeight",setScrollTo:"> .navigation__list--sub"})})},off:function(){1===t(".navigation").not(".mm-menu").data("more-button")&&t(window).off("resize orientationchange",s),setTimeout(function(){t(".navigation:not(.mm-menu) .sublevel-1").each(function(){void 0!==t(this).data("scrollArea")&&t(this).data("scrollArea").destroy()})},100)}}})},e.prototype.appendElement=function(){var e=t("#navigation_header").parent();t("#hamburger").moveElement({place:e})},e.prototype.equaliseHeights=function(){var e=window.innerWidth,n=t(".slider__item"),o=t(".wrap__slider .bx-viewport"),r=0,s=t(".featuredblock__item"),a=0,l=0,c=0,u=0;t(".wrap__contact .form-input-comments textarea"),t(".contact .form-input-comments textarea"),t(".appointment .form-input-comments textarea"),e>=768?(s.each(function(){l<=(a=t(this).find(".featuredblock__title").height())&&(l=a),u<=(c=t(this).find(".featuredblock__description").height())&&(u=c)}),s.each(function(){t(this).find(".featuredblock__title").height(l),t(this).find(".featuredblock__description").height(u)})):s.each(function(){t(this).find(".featuredblock__title").css("height","auto"),t(this).find(".featuredblock__description").css("height","auto")});var h=t(".map__display"),d=0,p=t(".wrap__map .component__title-caption-wrap"),f=p.outerHeight(!0),m=t(".wrap__hours .component__title-caption-wrap"),g=m.outerHeight(!0),v=0;v=f>g?f:g,t(".hours__wrapper").each(function(){d+=t(this).outerHeight(!0)}),window.innerWidth>1140?(f>0?(h.height(d-2),null===g&&h.height(d-f-2)):h.height(d+g-2),p.add(m).css({height:v+"px"}),null===g&&0===t(".hours__wrapper").length&&h.height(300)):(h.height(500),p.add(m).css({height:"auto"})),setTimeout(function(){e<768?(t(".slider__text").each(function(){var e=t(this).outerHeight(!0);e>r&&(r=e)}),n.add(o).css({height:r+190+"px"})):e<1140?n.add(o).css({height:"275px"}):n.add(o).css({height:"360px"})},1e3)},e.prototype.featuredIconBlock=function(){t(".featuredblock__item").each(function(){var e=t(this),n=1===e.find(".hasicon").length,o=1===e.find(".hasimage").length,r=e.find(".featuredblock__title"),s=e.find(".featuredblock__container"),a=e.find(".featuredblock__description");(!0===n||!0===o)&&(window.innerWidth>1140?(r.css({width:"calc(100% - 100px)"}),s.css({padding:"0 0 20px"}),a.css({padding:"15px 60px"})):(r.css({width:"calc(100% - 80px)"}),s.css({padding:"0 0 20px"}),a.css({padding:"15px 30px"})))})},e.prototype.accordionMenu=function(){var e=t(".navigation__list--sub .navigation__item.has-child > a");e.append("<span></span>"),e.children("span").click(function(e){t(this).toggleClass("expanded"),e.stopPropagation(),e.preventDefault(),t(this).parent().parent().children('[class^="sublevel"]').children("ul").toggle()})},e.prototype.formHeight=function(){t(".form").each(function(){t(this).find(".form__group").not(".form-input-comments").wrapAll("<div class='outerWrap' />")})},e.prototype.limitText=function(){t(".featuredblock__description").each(function(){var e=t(this),n=parseInt(e.css("line-height"));e.css({maxHeight:8*n}).dotdotdot({tolerance:10,watch:!0})}),t(".featuredblock__title").each(function(){var e=t(this),n=parseInt(e.css("line-height"));e.css({maxHeight:4*n}).dotdotdot({tolerance:10,watch:!0})})},t(document).ready(function(){new e})}(window.jQuery),$(document).ready(function(){disableLinks(".wrap__page-content a, .wrap__editable-content a"),$(".form").length&&$("body").on("SMBLeadsFormReady",function(){void 0!==$("body").data("FixedScrollBlock")&&$("body").data("FixedScrollBlock").refresh()}),setTimeout(function(){$("body").removeClass("mm-slideout mm-page")},1e3),$("a.dd-lightbox").fancybox()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.