1/*! For license information please see site.js.LICENSE.txt */ 2(function(){var __webpack_modules__={7495:function(e,t,i){"use strict";var n=i(9840);e.exports=function(e,t){return void 0===t&&(t=!1),function(i,r,s){if(i)e(i);else if(r.statusCode>=400&&r.statusCode<=599){var a=s;if(t)if(n.TextDecoder){var o=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),n=i[0],r=i[1];return"charset"===n.trim()?r.trim():e},"utf-8")}(r.headers&&r.headers["content-type"]);try{a=new TextDecoder(o).decode(s)}catch(e){}}else a=String.fromCharCode.apply(null,new Uint8Array(s));e({cause:a})}else e(null,s)}}},5660:function(e,t,i){var n=i(4796);n(document).on("click","a,button",function(){var e=n(this),t=window.adobeDataLayer||[],i="";e.parents("[data-acdl]").each(function(e,t){var r=n(t);i="/"+r.attr("data-acdl")+i});var r={event:"link clicked",userEvent:{linkId:e.attr("title")||e.text()||e.attr("id")||e.attr("name")||href||"not found",linkPos:i,linkPage:_satellite.getVar("page | page name"),category:"link",action:"click",detail:_satellite.getVar("campaign | scid")}};e.attr("data-acdl-data")&&(r.event="click to download",n.extend(r.userEvent,e.data("acdlData"))),t.push(r)})},738:function(e,t,i){var n=i(4796);n(document).ready(function(){if(window.history.scrollRestoration="auto",window.location.hash){var e,t=window.location.hash.slice(1);document.querySelectorAll(".op-accordion-collapse").forEach(function(i){i.id===t&&(e=i),n(i).collapse("hide")}),e&&(n(e).collapse("show"),window.history.scrollRestoration="manual")}document.querySelectorAll(".op-accordion-item").forEach(function(e){e.addEventListener("click",function(t){window.location.hash=e.childNodes[1].childNodes[1].attributes[4].nodeValue})}),n(".op-accordion-item").on("shown.bs.collapse",function(e){var t=e.target.parentElement.getBoundingClientRect().top+document.documentElement.scrollTop-n(".op-header").height();n(this).find("button").focus(),window.scroll({top:t,left:0,behavior:"smooth"})})})},6718:function(){document.addEventListener("DOMContentLoaded",function(){var e=window.location.hash.slice(1);function t(t,i){if(window.location.hash){var n=new Set;t.forEach(function(r){t.forEach(function(e){n.add(e.id)}),n.has(e)&&(r.id===e?r.classList.add("active"):r.classList.remove("active")),i.forEach(function(t){var i=t.getAttribute("aria-labelledby");n.has(e)&&(i.includes(e)&&i===e?t.classList.add("active"):t.classList.remove("active"))})})}t.forEach(function(n){n.addEventListener("click",function(){window.location.hash=n.id,e=window.location.hash.slice(1),function(t,i){window.location.hash&&t.forEach(function(t){t.id===e?t.classList.add("active"):t.classList.remove("active"),i.forEach(function(t){t.getAttribute("aria-labelledby")===e?t.classList.add("active"):t.classList.remove("active")})})}(t,i)})})}t(document.querySelectorAll(".nav-link-v1"),document.querySelectorAll(".tab-pane-v1")),t(document.querySelectorAll(".nav-link-v2"),document.querySelectorAll(".tab-pane-v2"))})},7946:function(){(new WOW).init()},9120:function(){(new WOW).init()},4776:function(e,t,i){var n=i(4796);n(document).ready(function(){var e=n(".buyback-calculator-fr");if(e.length){var t=function(){var e=n(o).val(),t=parseInt(e.replace(/\$|,| /g,"")),a=n(l).val();n(".salary__error").hide(),e.length<=0?t=i:isNaN(t)&&(t=0,n(".salary__error").show());var c=Math.max(1,parseInt(a)),u=Math.ceil(t/100*r/12*c,1),d=u/(12*s);n(".buyback-cost-fr .monthly-length").text(c),n(".buyback-cost-fr .chart-result").get(0).childNodes[0].nodeValue=h.format(u),n(".buyback-cost-fr .monthly-cost").text(h.format(d))},i=n(e).find("[data-default-salary]").data("default-salary"),r=n(e).find("[data-contribution-rate]").data("contribution-rate"),s=n(e).find("[data-payment-term]").data("payment-term"),a=n(e).find("[data-locale]").data("locale"),o=n(e).find("#salary-input-fr"),l=n(e).find("#leave-length-fr"),c=n(".buyback-cost-fr .title"),u=c.text().split("XXX");if(u.length>1){c.empty(),c.append(document.createTextNode(u[0]));var d=document.createElement("span");d.className="monthly-length",d.textContent="1",c.append(d),c.append(document.createTextNode(u[1]))}console.log(n("#leave-length-fr").attr("aria-valuenow"));var h=new Intl.NumberFormat(a,{style:"currency",currency:"CAD",minimumFractionDigits:0,maximumFractionDigits:0});o.attr("placeholder",h.format(i)),n(o).on("input change",function(){t()}),n(l).on("input change",function(){t()}),t()}})},5207:function(e,t,i){var n=i(4796);n(document).ready(function(){var e=n(".buyback-calculator");if(e.length){var t=function(){var e=n(o).val(),t=parseInt(e.replace(/\$|,| /g,"")),a=n(l).val();n(".salary__error").hide(),e.length<=0?t=i:isNaN(t)&&(t=0,n(".salary__error").show());var c=Math.max(1,parseInt(a)),u=Math.ceil(t/100*r/12*c,1),d=u/(12*s);n(".buyback-cost .monthly-length").text(c),n(".buyback-cost .chart
2-result").get(0).childNodes[0].nodeValue=h.format(u),n(".buyback-cost .monthly-cost").text(h.format(d))},i=n(e).find("[data-default-salary]").data("default-salary"),r=n(e).find("[data-contribution-rate]").data("contribution-rate"),s=n(e).find("[data-payment-term]").data("payment-term"),a=n(e).find("[data-locale]").data("locale"),o=n(e).find("#salary-input"),l=n(e).find("#leave-length"),c=n(".buyback-cost .title"),u=c.text().split("XXX");if(u.length>1){c.empty(),c.append(document.createTextNode(u[0]));var d=document.createElement("span");d.className="monthly-length",d.textContent="1",c.append(d),c.append(document.createTextNode(u[1]))}console.log(n("#leave-length").attr("aria-valuenow"));var h=new Intl.NumberFormat(a,{style:"currency",currency:"CAD",minimumFractionDigits:0,maximumFractionDigits:0});o.attr("placeholder",h.format(i)),n(o).on("input change",function(){t()}),n(l).on("input change",function(){t()}),t(),n(".content-slider__nav__tab").click(function(){var e=n(this).data("tab");n(".content-slider__nav__tab").removeClass("active"),n(".content-slider__nav__content").removeClass("active"),n(this).addClass("active"),n("[data-slide="+e+"]").addClass("active")}),n(".content-slider__nav__tab").keydown(function(e){13==e.which&&n(this).click()})}})},4737:function(e,t,i){var n=i(4796);n(document).ready(function(){n(".op-arrow-link-title").each(function(){var e=n(this),t=e.find(".text-card-arrow"),i=e.find(".text-card-arrow-hover"),r=e.text().trim();e.attr("aria-label",r),e.closest(".op-text-card").find(".card-overlay-link").attr("aria-label",r),t.attr({alt:"","aria-hidden":"true"}),i.attr({alt:"","aria-hidden":"true"});var s=r.split(" ");if(s.length>=1){var a=s.pop();s.length>0?e.text(s.join(" ")+" "):e.text("");var o=n("<span>").addClass("arrow-nowrap").text(a+" ");o.append(t),o.append(i),e.append(o)}})})},834:function(e,t,i){var n=i(4796),r=!1;n(document).on("click",".js-op-cardlist-pagination button",function(e){e.preventDefault();var t=n(this).attr("data-href");r=!1,s(t,n(this).parents("[data-acdl]"),"paginate")}),n(document).on("click",".js-load-more-articles",function(e){e.preventDefault(),r=!0,s(n(this).attr("data-href"),n(this).parents("[data-acdl]"),"button")}),n(document).on("submit","form[name='js-op-card-list-filter']",function(e){e.preventDefault();var t=n(this),i=t.serialize(),a=t.attr("action"),o=a+(-1==a.indexOf("?")?"?":"&")+i;r=!1,s(o,n(this).parents("[data-acdl]"))});var s=function(e,t){var i=a(e);n(".js-op-card-list-dynamic-container .js-load-more-paginate").length;return n.ajax({url:"/bin/dos/loadmore.html"+i,method:"GET"}).then(function(i){var s=n(i);if(r){var a=s.find(".js-load-more-articles").attr("data-href");s.find(".js-load-more-articles").closest("row").remove(),a?n(".js-op-card-list-dynamic-container .js-load-more-articles").attr("data-href",a):n(".js-op-card-list-dynamic-container .js-load-more-articles").closest(".row").addClass("d-none").attr("aria-hidden",!0);var o=s.find("a:first").attr("id");if(s=s.find(".js-op-card-list-dynamic-container .js-card:first").parent().html(),t.find(".js-op-card-list-dynamic-container .js-card:first").parent().append(s),window.history){var l=o?e+"#"+o:e;window.history.replaceState(null,null,l)}}else{o=s.find("a.js-card:first").attr("id");if(s=s.find(".js-op-card-list-dynamic-container").html(),t.find(".js-op-card-list-dynamic-container").html(s),window.history){l=o?e+"#"+o:e;window.history.replaceState(null,null,l)}n("html,body").animate({scrollTop:t.find(".js-op-card-list-dynamic-container").offset().top-150},1e3)}})},a=function(e){return-1==e.indexOf("?")?"":e.substr(e.indexOf("?"))}},9056:function(e,t,i){var n=i(4796),r=i(4796);i(3448).A;n(".op-carousel-banner-cmp__list").each(function(e,t){t.classList.contains("custom-carousel")?n(t).parent().attr("id","carousel-custom"):n(t).parent().attr("id","carousel-main")});var s,a={infinite:!0,slidesToShow:1==n(".bannerSize").val()?1:2.99,slidesToScroll:1,arrows:!0,autoplay:"true"==r("#carousel-main .autoplayEnabled").val(),autoplaySpeed:r("#carousel-main .autoplayDelay").val(),prevArrow:r("#carousel-main .card_arrow_prev"),appendDots:r("#carousel-main .slick-slider-dots"),nextArrow:r("#carousel-main .card_arrow_next"),dots:!0,initialSlide:0,adaptiveHeight:!0,responsive:[{breakpoint:1079,settings:{slidesToShow:1,initialSlide:0}}]},o={infinite:!0,slidesToShow:1,slidesToScroll:1,arrows:!0,autoplay:"true"==r("#carousel-custom .autoplayEnabled").val(),autoplaySpeed:r("#carousel-custom .autoplayDelay").val(),prevArrow:r("#carousel-custom .card_arrow_prev"),appendDots:r("#carousel-custom .slick-slider-dots"),nextArrow:r("#carousel-custom .card_arrow_next"),dots:!0,initialSlide:0,adaptiveHeight:!0,responsive:[{breakpoint:1079,settings:{slidesToShow:1,initialSlide:0}}]},l=!1;r(document).ready(function(){r(".op-carousel-banner-cmp__list").length>0&&(n(".op-carousel-banner-cmp__list").on("init afterChange",function(e){var t=e.currentTarget.parentNode.querySelector(".op-carousel-banner-cmp__media--imgvar video");setTimeout(function(){t&&t.classList.add("video-js")},100)}),r("#carousel-main .op-carousel-banner-cmp__list").slick(a),r("#carousel-custom .op-carousel-banner-cmp__list").slick(o));var e=function(e){var t,i=n(e).find(".slick-slide.slick-active");i.length>0&&(t=i[i.length-1]),screen.width>=1079&&(n(t).find(".op-cta-banner").css({transform:"scale(1)","background-color":"rgba(25, 25, 25, 0.75)",transition:"transform 1s"}),n(t).find(".op-cta-banner .cta-banner_heading").css({opacity:"1"}),n(t).find(".op-cta-banner .cta-banner_subheading").css({opacity:"1"}),n(t).find(".op-cta-banner .op-rte").css({opacity:"1"}))},t=function(e){var t,i="#"+n(e).attr("id"),r=n(i).find(".slick-slide.slick-active");r.length>0&&(t=r[r.length-1]),t&&screen.width>=1079&&("carousel-main"===n(e).attr("id")?(n("#carousel-main").find(t).find(".op-cta-banner").css({transform:"scale(1)","background-color":"rgba(25, 25, 25, 0.75)",transition:"transform 1s"}),n("#carousel-main").find(t).find(".op-cta-banner .cta-banner_heading").css({opacity:"1"}),n("#carousel-main").find(t).find(".op-cta-banner .cta-banner_subheading").css({opacity:"1"}),n("#carousel-main").find(t).find(".op-cta-banner .op-rte").css({opacity:"1"})):"carousel-custom"===n(e).attr("id")&&(n("#carousel-custom").find(t).find(".op-cta-banner").css({transform:"scale(1.1)","background-color":"rgba(50, 50, 50, 0.85)",transition:"transform 0.8s"}),n("#carousel-custom").find(t).find(".op-cta-banner .cta-banner_heading").css({opacity:"0.9"}),n("#carousel-custom").find(t).find(".op-cta-banner .cta-banner_subheading").css({opacity:"0.9"}),n("#carousel-custom").find(t).find(".op-cta-banner .op-rte").css({opacity:"0.9"})))},i=function(e){var t,i=n(e).parent().attr("id"),r=n(e).find(".slick-slide.slick-active");r.length>0&&(t=r[r.length-1]);var s=n(t).find(".op-carousel-banner-cmp__media--img").html();screen.width>=1079?(n("#".concat(i)).find(".op-carousel-banner__bgimage").hide(),n("#".concat(i)).find(".op-carousel-banner__bgimage").html(s).fadeIn(1e3)):n("#".concat(i)).find(".op-carousel-banner__bgimage").html(s).fadeIn(1e3)},c=function(e){var t,i=n(e).parent().attr("id"),r=n(e).find(".slick-slide.slick-active");r.length>0&&(t=r[r.length-1]);var s=n(t).find(".op-carousel-banner-cmp__media--img").html();screen.width>=1079?(n("#".concat(i)).find(".op-carousel-banner__bgimage").hide(),n("#".concat(i)).find(".op-carousel-banner__bgimage").html(s).fadeIn(1e3)):n("#".concat(i)).find(".op-carousel-banner__bgimage").html(s).fadeIn(1e3)};function u(){var e=document.querySelector(".carousel-height"),t=document.querySelectorAll(".op-carousel-banner__bgimage"),i=0,n=window.matchMedia("(max-width: 767px)").matches?200:350;t.forEach(function(e,t){var r=e.querySelector(".op-carousel-content");
2if(r){var s=r.offsetHeight+n;i=Math.max(i,s)}}),e&&i>0&&e.style.setProperty("min-height","".concat(i,"px"),"important")}"true"==r(".op-carousel-banner-cmp").find(".autoplayEnabled").val()&&r(".op-carousel-banner-cmp").find(".slick-slider-pause-btn").show(),r(".op-carousel-banner-cmp").find(".slick-slider-pause-btn").on("click",function(){r(".op-carousel-banner-cmp__list").slick("slickPause"),n(this).hide(),r(".op-carousel-banner-cmp").find(".slick-slider-play-btn").show()}),r(".op-carousel-banner-cmp").find(".slick-slider-play-btn").on("click",function(){r(".op-carousel-banner-cmp__list").slick("slickPlay"),n(this).hide(),r(".op-carousel-banner-cmp").find(".slick-slider-pause-btn").show()}),r(".op-carousel-banner-cmp__list").each(function(){var t=n(this);if(2!=n("#carousel-main .bannerSize").val()||t.hasClass("custom-carousel")||(n(this).slick("slickAdd","<div></div>",0,!0),n(this).parent().find(".prev-btn-wrapper").addClass("disable-btn"),n(this).parent().find(".prev-btn-wrapper.custom-carousel-button").removeClass("disable-btn")),n(".slick-current .cta-banner_heading").on("keydown",function(e){9==e.which&&!0===e.shiftKey&&n(".bannerSize").val()>=2&&(n("#carouselBannerCmpPrevArrow").focus(),e.preventDefault())}),n(".op-header__search").on("keydown",function(e){9==e.which&&!1===e.shiftKey&&2==n(".bannerSize").val()&&(n(".slick-active").next(".slick-slide").find("p")[0].focus(),e.preventDefault())}),n("#carouselBannerCmpPrevArrow").on("keydown",function(e){9==e.which&&!1===e.shiftKey&&n(".bannerSize").val()>2&&(n(".slick-current").find("p")[0].focus(),e.preventDefault())}),n(".next-btn-wrapper").on("keydown",function(e){9==e.which&&!0===e.shiftKey&&n(".bannerSize").val()>=2&&(n(n(".slick-active").next(".slick-slide")[1]).find("p a").focus(),e.preventDefault())}),2==n(".bannerSize").val()&&screen.width>=1079&&n(n(".slick-active").next(".slick-slide").find("p")[0]).on("keydown",function(e){9==e.which&&!0===e.shiftKey&&(n(".op-header__search").focus(),e.preventDefault())}),n(".bannerSize").val()>=2&&screen.width>=1079&&n(n(n(".slick-active").next(".slick-slide")[1]).find("p")[2]).on("keydown",function(e){9==e.which&&!1===e.shiftKey&&(n("#carouselBannerCmpNextArrow").focus(),e.preventDefault())}),"carousel-main"==n(this).parent().attr("id")&&screen.width<1079&&n("#carousel-main .bannerSize").val()>2&&!l){n("#carousel-main .op-carousel-banner-cmp__list").slick("unslick");var i=n(this).parent().find(".card_slide:first-child").remove();n("#carousel-main .op-carousel-banner-cmp__list").append(i),n("#carousel-main .op-carousel-banner-cmp__list").slick(a),l=!0}e(this),c(this),n(this).on("afterChange",function(e,t,i){s=i,screen.width>=1079&&1==i&&n(this).slick("slickSetOption","autoplay",!1)}),n(this).on("setPosition",function(e,i){t=n(this),screen.width>=1079&&2==n(".bannerSize").val()&&"true"==n(".autoplayEnabled").val()&&1==s&&(s=0,setTimeout(function(){return t.slick("slickGoTo",3)},n(".autoplayDelay").val()),n(this).slick("slickSetOption","autoplay",!0)),n(".slick-slide").each(function(e,t){"false"==n(t).attr("aria-hidden")?(n(t).attr("tabindex","0"),n(t).find(".op-cta-banner .cta-banner_heading").attr("tabindex","0"),n(t).find(".op-cta-banner .cta-banner_subheading").attr("tabindex","0"),n(t).find(".op-cta-banner .op-rte .op-text--red").attr("tabindex","0"),n(t).find(".op-cta-banner .op-rte .op-text--red .op-button").attr("tabindex","0")):(n(t).attr("tabindex","-1"),n(t).find(".op-cta-banner .cta-banner_heading").attr("tabindex","-1"),n(t).find(".op-cta-banner .cta-banner_subheading").attr("tabindex","-1"),n(t).find(".op-cta-banner .op-rte .op-text--red").attr("tabindex","-1"),n(t).find(".op-cta-banner .op-rte .op-text--red .op-button").attr("tabindex","-1"))})}),n(window).on("resize",function(){if(!document.querySelector(".custom-carousel")&&screen.width<1079&&n(".bannerSize").val()>2&&!l){t.slick("unslick");var e=n(".card_slide:first-child").remove();t.append(e),t.slick(a),l=!0}})}),n("#carousel-custom .prev-btn-wrapper").on("click",function(e){n("#carousel-custom .op-carousel-banner-cmp__list").slick("slickPrev"),e.preventDefault()}),n("#carousel-custom .next-btn-wrapper").on("click",function(e){n("#carousel-custom .op-carousel-banner-cmp__list").slick("slickNext"),e.preventDefault()}),n("#carousel-main .prev-btn-wrapper").on("click",function(e){n("#carousel-main .op-carousel-banner-cmp__list").slick("slickPrev"),e.preventDefault()}),n("#carousel-main .next-btn-wrapper").on("click",function(e){n("#carousel-main .op-carousel-banner-cmp__list").slick("slickNext"),e.preventDefault()}),n("#carousel-main .op-carousel-banner-cmp__list").on("afterChange",function(e,r,s){n("#carousel-main .slick-initialized .slick-slide").find(".op-cta-banner").css({transform:"scale(0.75)","background-color":"rgba(25, 25, 25, 0.5)",transition:"transform 1s"}),n("#carousel-main .slick-initialized .slick-slide").find(".op-cta-banner .cta-banner_heading").css({opacity:"0.5"}),n("#carousel-main .slick-initialized .slick-slide").find(".op-cta-banner .cta-banner_subheading").css({opacity:"0.5"}),n("#carousel-main .slick-initialized .slick-slide").find(".op-cta-banner .op-rte").css({opacity:"0.5"}),t(document.getElementById("carousel-main")),i(this),screen.width>=1079&&2==n("#carousel-main .bannerSize").val()&&(0==s?(n(this).parent().find(".prev-btn-wrapper").addClass("disable-btn"),n(this).parent().find(".next-btn-wrapper").removeClass("disable-btn"),n(this).parent().find(".prev-btn-wrapper.custom-carousel-button").removeClass("disable-btn")):1==s&&(n(this).parent().find(".next-btn-wrapper").addClass("disable-btn"),n(this).parent().find(".prev-btn-wrapper").removeClass("disable-btn"),n(this).parent().find(".next-btn-wrapper.custom-carousel-button").removeClass("disable-btn")))}),n("#carousel-custom .op-carousel-banner-cmp__list").on("afterChange",function(e,r,s){n("#carousel-custom .slick-initialized .slick-slide").find(".op-cta-banner").css({transform:"scale(0.75)","background-color":"rgba(25, 25, 25, 0.5)",transition:"transform 1s"}),n("#carousel-custom .slick-initialized .slick-slide").find(".op-cta-banner .cta-banner_heading").css({opacity:"0.5"}),n("#carousel-custom .slick-initialized .slick-slide").find(".op-cta-banner .cta-banner_subheading").css({opacity:"0.5"}),n("#carousel-custom .slick-initialized .slick-slide").find(".op-cta-banner .op-rte").css({opacity:"0.5"}),t(document.getElementById("carousel-custom")),i(this),screen.width>=1079&&2==n(".bannerSize").val()&&(0==s?(n(this).parent().find(".prev-btn-wrapper").addClass("disable-btn"),n(this).parent().find(".next-btn-wrapper").removeClass("disable-btn"),n(this).parent().find(".prev-btn-wrapper.custom-carousel-button").removeClass("disable-btn")):1==s&&(n(this).parent().find(".next-btn-wrapper").addClass("disable-btn"),n(this).parent().find(".prev-btn-wrapper").removeClass("disable-btn"),n(this).parent().find(".next-btn-wrapper.custom-carousel-button").removeClass("disable-btn")))}),n(window).on("resize",function(){if(screen.width>=1079&&n(".op-carousel-banner-cmp__list").length>0&&2==n(".op-carousel-banner-cmp__list").slick("getSlick").$slides.length&&(n(".op-carousel-banner-cmp__list").each(function(){2!=n(".bannerSize").val()||$this.hasClass("custom-carousel")||(n(this).slick("slickAdd","<div></div>",0,!0),n(this).slick("slickAdd","<div></div>",0,!0))}),e(this),c(this)),screen.width>=1079&&n(".bannerSize").val()>2&&l){n(".op-carousel-banner-cmp__list").slick("unslick");var t=n(".card_slide:last-child").remove();n(".op-carousel-banner-cmp__list").prepend(t),n(".op-carousel-banner-cmp__list").slick(a),l=!1}(screen.width>=1079&&2==n(".bannerSize").val()||screen.width<1079&&2==n(".bannerSize").val())&&n(".op-carousel-banner-cmp__list").slick("slickGoTo",0)}),document.querySelectorAll(".container.op-section-container").forEach(function(e){e.querySelector(".carousel-height")&&e.classList.add("no-pad-mobile")}),window.addEventListener("load",function(){u()}),window.addEventListener("resize",function(){u()}),n(".op-carousel-banner-cmp__list").on("afterChange",function(){u()}),setInterval(function(){u()},2e3),u()})},6086:function(e,t,i){var n=i(4796),r=i(4796);function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}n(document).ready(function(){var e=i(4783);function t(){var t=[],i=[],a=[],o=document.querySelector("html").getAttribute("lang"),l=r(".BarChartGraph").length;if(l>0)for(var c,u,d,h,p,f=function(i){var a=document.querySelectorAll(".barChartAxis")[i-1].value.split(","),l=document.querySelectorAll(".maxSize")[i-1].value,f=document.querySelectorAll(".dataSetLabelOne")[i-1].value,m=document.querySelectorAll(".dataSetValuesFirstArr")[i-1].value,g=m.length>0?m.split(","):[],v=document.querySelectorAll(".dataSetLabelTwo")[i-1].value,y=document.querySelectorAll(".dataSetValuesSecondArr")[i-1].value,b=y.length>0?y.split(","):[],_=document.querySelectorAll(".colorLabelOne")[i-1].value,T=document.querySelectorAll(".colorLabelTwo")[i-1].value,x=document.querySelectorAll(".barChartXLabel")[i-1].value,w=document.querySelectorAll(".barChartYLabel")[i-1].value;c=n(window).width()<768;var S=[],k=[],E=[],C=[];function A(){e.chart("barChart".concat(i),{chart:{type:"column",height:500,spacingTop:1==h.length?15:75,width:p,spacingLeft:0,marginLeft:50},yAxis:parseInt(l)>0?{max:parseInt(l)}:{},xAxis:{categories:a,min:0,max:a.length-1,tickInterval:1==h.length?a.length-1:0,labels:{style:{whiteSpace:"nowrap",textOverflow:"none"}},title:{text:x,align:"middle",rotation:0,x:-20,y:15}},accessibility:{enabled:!1},legend:{align:"top",verticalAlign:"top",symbolRadius:0,squareSymbol:!1,symbolWi
2dth:50,symbolHeight:25,itemMarginRight:20,enabled:1!=h.length,y:1==h.length?-45:0},responsive:{rules:[{condition:{maxWidth:1024,minWidth:431.98},chartOptions:{chart:{height:350,marginLeft:40},legend:{itemMarginBottom:20,y:0},title:{x:0}}},{condition:{maxWidth:430.98,minWidth:280},chartOptions:{chart:{spacingTop:1==h.length?25:75,height:350,marginLeft:40},legend:{symbolWidth:40,symbolHeight:25,itemMarginBottom:20,y:0,layout:"vertical"},title:{x:0}}}]},subtitle:{text:w,align:"left",x:0,fontSize:18,y:0},title:{display:!1,text:"",position:"bottom"},tooltip:{backgroundColor:"rgba(68,68,68,0.8)",bodyFontColor:"#fff",bodyFontFamily:"Montserrat-Medium",bodyLineHeight:28,yAlign:"bottom",borderWidth:0,titleFontSize:15,xPadding:15,yPadding:7,style:{color:"#fff",bodyFontFamily:"Montserrat-Medium"},formatter:function(){var e=this.point.index,t=this.point&&void 0!==this.point.category?this.point.category:this.x,i='<span style="color:'+this.color+'">â</span> ';if("fr"==o)var n=JSON.stringify(this.y).replace(".",",");if("en"==o)n=this.y;if(h.length>1){if(0==this.series.index)return"fr"==o?n+E[e]+"<br/>"+i+"en "+t:E[e]+n+"<br/>"+i+"in "+t;if(1==this.series.index)return"fr"==o?n+S[e]+"<br/>"+i+"en "+t:S[e]+n+"<br/>"+i+"in "+t}else if(1==h.length)return"fr"==o?n+S[e]+"<br/>"+i+"en "+t:S[e]+n+"<br/>"+i+"in "+t}},series:s(h)},function(){if(1==h.length){var e=this.series[0].points[0],t=this.series[0].points[this.series[0].points.length-1],r={x:e.plotX+this.plotLeft,y:e.plotY+this.plotTop},s={x:t.plotX+this.plotLeft,y:t.plotY+this.plotTop},a=s.x,l=r.x,c=r.y,u=s.y;if("fr"==o)var d=JSON.stringify(t.y).replace(".",",")+" $";else d="$"+t.y;if("fr"==o)var p=JSON.stringify(e.y).replace(".",",")+" $";else p="$"+e.y;var f=t.y.toString().length>3?11*t.y.toString().length-19:20,m=(n("barChart".concat(i)).highcharts(),n("barChart".concat(i)).width(),n(window).width());this.renderer.label(d,s.x-f,s.y-45,s.x,s.y).attr({fill:"#F00037",padding:1,r:3,zIndex:6}).css({color:"white"}).add(),this.renderer.path(["M",a-5,u,"L",a-5,u,"L",a-3,u-14,"M",a-5,u,"L",a-7,u-14,"M",a-3,u,"L",a-7,u]).attr({"stroke-width":1,stroke:"#F00037",zIndex:7,id:"labelPointer1-en"}).add(),this.renderer.label(p,r.x-20,r.y-45,r.x,r.y).attr({fill:"#F00037",padding:1,r:3,zIndex:7}).css({color:"white",position:"relative"}).add(),this.renderer.path(["M",l-5,c,"L",l-5,c,"L",l-3,c-14,"M",l-5,c,"L",l-7,c-14,"M",l-3,c,"L",l-7,c]).attr({"stroke-width":1,stroke:"#F00037",zIndex:7,id:"labelPointer2-en"}).add();m<480&&(n("#labelPointer1-en").remove(),n("#labelPointer2-en").remove(),this.renderer.path(["M",l-5,c,"L",l-5,c,"L",l-3,c-14,"M",l-5,c,"L",l-7,c-14,"M",l-3,c,"L",l-7,c]).attr({"stroke-width":1,stroke:"#F00037",zIndex:7,id:"labelPointer2-en"}).add(),this.renderer.path(["M",a-5,u,"L",a-5,u,"L",a-3,u-14,"M",a-5,u,"L",a-7,u-14,"M",a-3,u,"L",a-7,u]).attr({"stroke-width":1,stroke:"#F00037",zIndex:7,id:"labelPointer1-en"}).add())}})}g.map(function(e){var t=e.match(/[^0-9\.]+/),i=e.match(/[0-9\.]+/);S.push(t?t[0]:""),k.push(i?parseFloat(i[0]):"")}),b.map(function(e){var t=e.match(/[^0-9\.]+/),i=e.match(/[0-9\.]+/);E.push(t?t[0]:""),C.push(i?parseFloat(i[0]):"")}),u=k,h=[],(d=C).length>0&&h.push({name:v,data:d,color:T}),u.length>0&&h.push({name:f,data:u,color:_}),p=document.getElementById("barChart".concat(i)).clientWidth,A(),window.addEventListener("scroll",function(){var e=r(window).height(),n=r(window).scrollTop(),s=n+e/1.5,a=r("#barChart".concat(i)),o=a.outerHeight(),l=a.offset().top,c=l+o/1.5;c>=n&&l<=s==0&&(t[i-1]=0),c>=n&&l<=s&&0==t[i-1]&&(A(),t[i-1]=t[i-1]+1)})},m=1;m<=l;m++)f(m);t=0;var g=r(".data-pie-chart").length;if(g>0)for(var v=function(t){var n=document.querySelectorAll(".pieChartValuesFirstArr")[t-1].value,s=document.querySelectorAll(".pieChartValuesSecondArr")[t-1].value,a=document.querySelectorAll(".pieChartColorsArr")[t-1].value,l=n.split(","),c=s.split(","),u=a.split(","),d=c.map(function(e,t){return{name:e,color:u[t],y:parseFloat(l[t])}});
2function h(){e.chart("pieChart".concat(t),{chart:{plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1,type:"pie",spacingLeft:0,height:520,size:"100%"},tooltip:{backgroundColor:"rgba(68,68,68,0.8)",bodyFontColor:"#fff",bodyFontFamily:"Montserrat-Medium",bodyLineHeight:28,yAlign:"bottom",borderWidth:0,titleFontSize:15,xPadding:15,yPadding:7,formatter:function(){if("fr"==o)var e=JSON.stringify(this.y).replace(".",",").concat(" ");if("en"==o)e=this.y;return'<span style="font-size: 20px; padding: 10px;">'+('<span style="color:'+this.color+'" class="pieCircle">â</span>')+this.key+": "+e+"%</span>"},style:{fontSize:"18px",padding:"10px",color:"#fff",fontFamily:"Montserrat-Medium",display:"flex",alignItem:"center",justifyContent:"center"}},accessibility:{enabled:!1,point:{valueSuffix:"%"}},legend:{symbolWidth:50,symbolHeight:25,symbolRadius:0,squareSymbol:!1,align:"right",verticalAlign:"middle",itemMarginTop:30,layout:"vertical",width:"55%",itemStyle:{whiteSpace:"normal",display:"flex",alignItem:"center",textOverflow:"clip"}},responsive:{rules:[{condition:{maxWidth:1023},chartOptions:{legend:{width:"45%"}}},{condition:{maxWidth:480},chartOptions:{chart:{height:d.length>3?520+100*(d.length-3)-30*d.length:520},legend:{align:"center",verticalAlign:"bottom",width:"100%"},plotOptions:{pie:{size:"100%"}}}}]},plotOptions:{series:{point:{events:{legendItemClick:function(){var e=this,t=e.series;return e.selected?e.select(!1):e.select(),t.chart.tooltip.refresh(e),!1}}}},pie:{allowPointSelect:!0,cursor:"pointer",height:"100%",size:"100%",dataLabels:{enabled:!1},showInLegend:!0}},series:[{colorByPoint:!1,name:"",data:d}]})}h(),window.addEventListener("scroll",function(e){var n=r(window).height(),s=r(window).scrollTop(),a=s+n/1.5,o=r("#pieChart".concat(t)),l=o.outerHeight(),c=o.offset().top,u=c+l/1.5;u>=s&&c<=a==0&&(i[t-1]=0),u>=s&&c<=a&&0==i[t-1]&&(h(),i[t-1]=i[t-1]+1,u>=s&&c<=a==0&&(i[t-1]=0))})},y=1;y<=g;y++)v(y);var b=r(".lineChartGraph").length;if(b>0)for(var _,T,x,w,S=function(t){_=document.querySelectorAll(".lineChartGraph")[t-1].clientWidth;var i=document.querySelectorAll(".lineChartAxis")[t-1].value.split(","),n=document.querySelectorAll(".lineChartL
2abelOne")[t-1].value,l=document.querySelectorAll(".dataSetLineFirst")[t-1].value,u=l.length>0?l.split(","):[],d=document.querySelectorAll(".lineChartLabelTwo")[t-1].value,h=document.querySelectorAll(".dataSetLineSecond")[t-1].value,p=h.length>0?h.split(","):[],f=document.querySelectorAll(".lineChartColorOne")[t-1].value,m=document.querySelectorAll(".lineChartColorTwo")[t-1].value,g=document.querySelectorAll(".lineChartXLabel")[t-1].value,v=document.querySelectorAll(".lineChartYLabel")[t-1].value,y=document.querySelectorAll(".maxSizeLineChart")[t-1].value,b=[],S=[],k=[],E=[];function C(){e.chart("lineChart".concat(t),{chart:{type:"spline",height:500,spacingTop:100,width:_,spacingLeft:0,marginLeft:45},yAxis:parseInt(y)>0?{max:parseInt(y)}:{},xAxis:{categories:i,labels:{style:{whiteSpace:"nowrap",textOverflow:"none"}},title:{text:g,align:"middle",rotation:0,x:0,y:0}},accessibility:{enabled:!1},legend:{align:"top",verticalAlign:"top",symbolWidth:50,symbolHeight:25,symbolRadius:0,squareSymbol:!1,y:0,enabled:1!=w.length},subtitle:{text:v,align:"left",x:0,fontSize:18,y:0},tooltip:{backgroundColor:"rgba(68,68,68,0.8)",bodyFontColor:"#fff",bodyFontFamily:"Montserrat-Medium",bodyFontSize:c?"14":"18",bodyLineHeight:28,yAlign:"bottom",borderWidth:0,titleFontSize:15,xPadding:15,yPadding:7,formatter:function(){var e='<span style="color:'+this.color+'">â</span> ',t=this.point.index,i=this.point&&void 0!==this.point.category?this.point.category:this.x;if("fr"==o)var n=JSON.stringify(this.y).replace(".",",");if("en"==o)n=this.y;if(w.length>1){if(0==this.series.index)return"fr"==o?n+k[t]+"<br/>"+e+"en "+i:k[t]+n+"<br/>"+e+"in "+i;if(1==this.series.index)return"fr"==o?n+b[t]+"<br/>"+e+"en "+i:b[t]+n+"<br/>"+e+"in "+i}else if(1==w.length)return"fr"==o?n+b[t]+"<br/>"+e+"en "+i:b[t]+n+"<br/>"+e+"in "+i},style:{color:"#fff",bodyFontFamily:"Montserrat-Medium"}},plotOptions:{spline:{lineWidth:3,states:{hover:{lineWidth:4}},marker:{enabled:!1}}},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{chart:{height:300,spacingTop:80,marginLeft:40},legend:{symbolWidth:40,symbolHeight:25,itemMarginBottom:20,y:0},subtitle:{y:0}}},{condition:{maxWidth:1024,minWidth:500},chartOptions:{chart:{height:300},chartOptions:{subtitle:{y:0}}}},{condition:{maxWidth:430.98,minWidth:280},chartOptions:{legend:{itemMarginBottom:20,layout:"vertical",y:0},subtitle:{y:0}}}]},series:s(w)})}u.map(function(e){var t=e.match(/[^0-9\.]+/),i=e.match(/[0-9\.]+/);b.push(t?t[0]:""),S.push(i?parseFloat(i[0]):"")}),p.map(function(e){var t=e.match(/[^0-9\.]+/),i=e.match(/[0-9\.]+/);k.push(t?t[0]:""),E.push(i?parseFloat(i[0]):"")}),T=S,w=[],(x=E).length>0&&w.push({name:d,data:x,color:m}),T.length>0&&w.push({name:n,data:T,color:f}),C(),window.addEventListener("scroll",function(e){var i,n,s,o,l,c,u;i=r(window).height(),n=r(window).scrollTop(),s=n+i/1.5,o=r("#lineChart".concat(t)),l=o.outerHeight(),c=o.offset().top,(u=c+l/1.5)>=n&&c<=s==0&&(a[t-1]=0),u>=n&&c<=s&&0==a[t-1]&&(C(),a[t-1]=a[t-1]+1)})},k=1;k<=b;k++)S(k)}t(),window.addEventListener("resize",t)})},8423:function(e,t,i){var n=i(4796);n(document).ready(function(){n(".cardslider").length>0&&n(".cardslider").slick({infinite:!1,speed:300,slidesToShow:3,slidesToScroll:1,arrows:!0,prevArrow:n(".card_arrow_prev"),appendDots:n(".slick-slider-dots"),nextArrow:n(".card_arrow_next"),dots:!0,touchMove:!0,responsive:[{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]})})},2068:function(){document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector("body").classList.contains("op-edit-mode"),t=document.querySelector(".op-external-redirect");if(t){var i=t.querySelector("input");"true"===t.getAttribute("data-externalRedirect")&&!1===e?setTimeout(function(){try{var e=new URL(i.value,window.location.origin);"https:"!==e.protocol&&"http:"!==e.protocol||(window.location.href=e.href)}catch(e){}},1e3*i.getAttribute("data-timevalue")||5e3):t.classList.add("d-none")}})},8950:function(e,t,i){var n=i(4796),r=i(2733),s="mbr.auth";setUsername=function(){var e=document.querySelectorAll(".js-op-username");if(!(e.length<=0))if(void 0!==r.get(s)&&null!=r.get(s)&&e.length>0){for(var t=r.get(s).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),i=0;i<e.length;i++)e[i].innerHTML=t;n(".not-logged-in").addClass("d-none").removeClass("d-block"),n(".logged-in").addClass("d-block").removeClass("d-none"),n(".op-header__login").addClass("op-loggedin-user")}else n(".logged-in").addClass("d-none").removeClass("d-block"),n(".not-logged-in").addClass("d-block").removeClass("d-none"),n(".op-header__login").removeClass("op-loggedin-user")},n(document).ready(setUsername),window.addEventListener("MbrAuthCookieSet",setUsername),window.addEventListener("DOMContentLoaded",setUsername)}
2,3205:function(e,t,i){var n=i(4796),r=i(4796);function s(){var e=r(".op-header__top-left-wrapper").css("padding-top");r(".op-header__top").height();r(".op-header__bottom .op-header__menu-button").css("top",e),r(".op-header__bottom .op-header__search").css("top",e)}n(".header_wrapper_img").each(function(){if(n(window).width()>767&&n(this).find(".header_desk_img").length>0){var e=n(this).find(".header_desk_img").attr("src");n(this).css("background-image",'url("'+e+'")')}}),n("#op-header__search-results").on("shown.bs.collapse",function(){n("#op-header__search--input").focus()}),r(document).ready(function(){setTimeout(s(),1e3);var e=r(".op-header__top").height(),t=r(".op-header__top").width();setInterval(function(){var i=r(".op-header__top").height(),n=r(".op-header__top").width();e==i&&t==n||s()},500);var i=r(".op-header.op-header--otpp"),n="nav0-hover-active",a="hover-active",o=i.find(".op-header__level-one.nav-level-one--active"),l=i.find(".op-header__level-0");i.find("a, svg, button");function c(){o.hasClass(a)?o.show():o.hide()}function u(e){var t=e.clientX,n=e.clientY,s=r(".op-header__user-menu")[0].getBoundingClientRect(),a=r(".op-header__menu")[0].getBoundingClientRect();t>=s.left&&t<=s.right&&n>=s.top&&n<=s.bottom||t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom||(i.find(".op-header__level-one").removeClass("hover-active"),i.find(".op-header__level-0").removeClass("nav0-hover-active"),o.show())}function d(){var e=document.querySelectorAll(".menubar .op-nav"),t=document.querySelector(".menubar"),i=document.querySelector(".menubar .op-nav-ul");if(t){var n=!1;e.forEach(function(e){var t=e.children[0];t&&"A"===t.tagName&&"none"===t.style.display?e.style.borderWidth="0":e.style.borderWidth=""}),e.forEach(function(e){"none"===e.style.display&&(n=!0)}),n?(t.style.borderWidth="0",i&&(i.style.borderWidth="0")):(t.style.borderWidth="",i&&(i.style.borderWidth=""))}}i.find(".op-header__level-0").each(function(e){var t=i.find(".op-header__level-one"),s=i.find('[data-childid="'+r(this).data("navid")+'"]'),o=r(this);o.mouseenter(function(){t.removeClass(a),l.removeClass(n),o.addClass(n),s.addClass(a),c()}),o.find(".op-header-nav0--menu-link").each(function(){var n=r(this);r(this).on("focus",function(){t.removeClass(a),s.addClass(a),c(),r(this).on("keydown",function(t){if(13===t.which||32===t.which){var a=s.find("a");a[0].focus(),r(a[a.length-1]).on("focus",function(t){r(t.target).on("keydown",function(t){9==t.which&&!1===t.shiftKey&&(!function(e,t){t+1===l.length?i.find(".op-header__top-right").find("button").focus():r(l[t+1]).find("a").focus()}(0,e),t.preventDefault())})}),r(a[0]).on("focus",function(e){r(e.target).on("keydown",function(e){9==e.which&&!0===e.shiftKey&&(n.focus(),e.preventDefault())})}),t.preventDefault()}})})}),o.mouseleave(u)}),i.find(".op-header__level-one").each(function(){r(this).mouseleave(u)}),i.find(".op-header__search").on("focus",function(e){r(e.target).on("keydown",function(e){9==e.which&&!0===e.shiftKey&&(i.find(".op-header__register").hasClass("d-none")?i.find(".op-header__login .logged-in").focus():i.find(".op-header__register").focus(),e.preventDefault())})}),i.find(".op-header__login .logged-in").on("focus",function(e){r(e.target).on("keydown",function(e){9==e.which&&!1===e.shiftKey&&(i.find(".op-header__search").focus(),e.preventDefault())})}),i.find(".op-header__register").on("focus",function(e){r(e.target).on("keydown",function(e){9==e.which&&!1===e.shiftKey&&(i.find(".op-header__search").focus(),e.preventDefault())})}),d();var h=document.querySelector(".menubar");h&&new MutationObserver(d).observe(h,{attributes:!0,childList:!0,subtree:!0});r("#menuBtn").click(function(){r("#navMobile").toggle()}),r("button.subnavBtn").each(function(){var e=r(this);0===e.closest(".op-nav").find(".op-nav").length&&(e.prop("disabled",!0),e.addClass("disabled-subnavBtn"),e.css("background","#240B14"),e.find("svg").css("visibility","hidden"))}),r("button.subnavBtn").click(function(){var e=r(this).siblings(".dropdown");e.length>0?(e.show(),r(this).hide(),r(this).parent().children("a").hide(),r(this).parent().siblings("li").hide(),r(this).parents("ul").siblings(".backBtn").hide(),r(this).parents("ul").siblings("h5").hide(),r(this).parents("ul").siblings(".op-header__language").hide()):(r(this).prop("disabled",!0),r(this).addClass("disabled-subnavBtn"),$this.css("background","#240B14"))}),r(".backBtn").click(function(){var e=r(this).closest(".dropdown");
2if(e.data("previousDropdown")){e.hide();var t=e.data("previousDropdown");t.show(),t.siblings("button").show(),t.parent().siblings("li").show(),t.parent().siblings("a").show(),e.data("previousDropdown",null)}else e.hide(),r(this).parent(".dropdown").siblings("button").show(),r(this).parent(".dropdown").parent("li").siblings("li").show(),r(this).parent(".dropdown").parent("li").siblings("button").show(),r(this).parent(".dropdown").parent("li").parent("ul").siblings("button").show(),r(this).parent(".dropdown").parent("li").parent("ul").siblings("h5").show(),r(this).parent(".dropdown").parent("li").parent("ul").siblings(".op-header__language").show(),r(this).parent(".dropdown").siblings("a").show()})})},8290:function(e,t,i){var n=i(4796),r=i(4796);n(".op-hero-banner-v1").each(function(){var e=n(this);n(this).find(".op-icon--circle").each(function(){var t=n(this);n(document).on("scroll",function(){n(this).scrollTop()>0&&screen.width>=576?t.hide():t.css("display","flex")}),n(this).on("click",function(){r("html, body").animate({scrollTop:e[0].offsetHeight},1e3)})})})},354:function(e,t,i){var n=i(4796);n(document).ready(function(){for(var e=document.querySelectorAll(".highcharts-root"),t=0;t<e.length;t++)e[t].setAttribute("title","Barchart")}),n.fn.isOnScreen=function(){var e=n(window),t={top:e.scrollTop(),left:e.scrollLeft()};t.right=t.left+e.width(),t.bottom=t.top+e.height();var i=this.offset();return!!i&&(i.right=i.left+this.outerWidth(),i.bottom=i.top+this.outerHeight(),!(t.right<i.left||t.left>i.right||t.bottom<i.top||t.top>i.bottom))},n(document).ready(function(){n(window).scroll(function(){if(n(".highcharts-root").isOnScreen())for(var e=document.querySelectorAll(".highcharts-root"),t=0;t<e.length;t++)e[t].setAttribute("title","Barchart")})})},8262:function(e,t,i){var n=i(4796),r=i(4783);if(n("#currency-exp").length){var s=n(window).width(),a=n("table#highcharts-currency-table-mobile"),o=!0;r.chart("currency-exp",{chart:{width:"454",spacingTop:0,spacingRight:5,spacingBottom:0,spacingLeft:0,type:"bar",style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},title:{text:"Currency Exposures²"},subtitle:{text:"As at December 31, 2020"},accessibility:{enabled:!1},navigation:{menuItemStyle:{color:"#00AAAD",textDecoration:"none",background:"none",stroke:"none",outline:"none"},menuItemHoverStyle:{color:"#DDF1F0",textDecoration:"underline",background:"none"}},exporting:{buttons:{contextButton:{menuItems:[{text:"Show table",onclick:function(){1==o?(n("#currency-exp .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Hide table",a.show(),o=!1):(n("#currency-exp .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Show table",o=!0,a.hide())}}]}}},xAxis:{categories:["Canadian Dollar","U.S. Dollar","Euro","Chinese Renminbi","British Pound Sterling","Japanese Yen","Chilean Peso","Mexican Peso","Australian Dollar","Danish Krone","Brazilian Real","Other"],title:{text:""}},yAxis:{min:-5,title:{text:"(Canadian $ billions)",align:"high"},labels:{overflow:"justify"}},tooltip:{enabled:!1},plotOptions:{series:{dataLabels:{enabled:!0,formatter:function(){return"$"+r.numberFormat(this.y,1)+" Bn"}}},bar:{crop:!1,overflow:"none"}},legend:{enabled:!1},credits:{enabled:!1},series:[{data:[{y:139.6,dataLabels:{inside:!0,align:"right"}},35.4,8.8,7,4.6,4,3.7,2.2,1.9,1.8,1.7,7.7],color:"#00AAAD",showInLegend:!1,dataLabels:{y:-1,align:"left"}}]}),s<767&&(n("#currency-exp").hide(),n("table#highcharts-currency-table-mobile").show())}},2121:function(e,t,i){var n=i(4796),r=i(4783);if(n("#currency-exp-fr").length){var s=n(window).width(),a=n("table#highcharts-currency-table-mobile-fr"),o=!0;r.chart("currency-exp-fr",{chart:{width:"454",spacingTop:0,spacingRight:5,spacingBottom:0,spacingLeft:0,type:"bar",style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},title:{text:"Risque de Change²"},accessibility:{enabled:!1},subtitle:{text:"Au 31 décembre 2019"},navigation:{menuItemStyle:{color:"#00AAAD",textDecoration:"none",background:"none",stroke:"none",outline:"none"},menuItemHoverStyle:{color:"#DDF1F0",textDecoration:"underline",background:"none"}},exporting:{buttons:{contextButton:{menuItems:[{text:"Voir le tableau",onclick:function(){1==o?(n("#currency-exp-fr .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Cacher le tableau",a.show(),o=!1):(n("#currency-exp-fr .highcharts-contextmenu")[0].children[0].children[0].innerHTML="V
2oir le tableau",o=!0,a.hide())}}]}}},xAxis:{categories:["Dollar canadien","Dollar américain","Euro","Renminbi chinois","Livre sterling","Yen japonais","Peso chilien","Peso mexicain","Dollar australien","Couronne danoise","Real brésilien","Autres"],title:{text:""}},yAxis:{min:-5,title:{text:"(Milliards de dollars canadiens)",align:"high"},labels:{overflow:"justify"}},tooltip:{enabled:!1},plotOptions:{series:{dataLabels:{enabled:!0,formatter:function(){return r.numberFormat(this.y,"1",",")+" G$"}}}},legend:{enabled:!1},credits:{enabled:!1},series:[{data:[139.6,35.4,8.8,7,4.6,4,3.7,2.2,1.9,1.8,1.7,7.7],color:"#00AAAD",showInLegend:!1,dataLabels:{y:-1,align:"left"}}]}),s<767&&(n("#currency-exp-fr").hide(),n("table#highcharts-currency-table-mobile-fr").show())}},455:function(e,t,i){var n=i(4796),r=(i(4783),n("#geo-exposure"));r.length&&n(function(){var e=n("table#highcharts-geo-table-mobile"),t=!0;n(r).highcharts("Map",{chart:{map:"custom/world",height:"360",margin:[60,0,0,0],spacingTop:0,spacingRight:0,spacingBottom:0,spacingLeft:0,style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},title:{text:"Geographic Exposure¹"},subtitle:{text:"As at December 31, 2020"},accessibility:{enabled:!1},legend:{enabled:!1},credits:{enabled:!1},series:[{name:"Map",nullColor:"#CCC",dataLabels:{enabled:!1}}],navigation:{menuItemStyle:{color:"#04809a",textDecoration:"none",background:"none",stroke:"none",outline:"none"},menuItemHoverStyle:{color:"#004786",textDecoration:"underline",background:"none"}},exporting:{buttons:{contextButton:{menuItems:[{text:"Show table",onclick:function(){1==t?(n("#geo-exposure .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Hide table",e.show(),t=!1):(n("#geo-exposure .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Show table",t=!0,e.hide())}}]}}}},function(e){n(window).width()>767?(e.renderer.label("U.S.",65,63).attr({zIndex:10}).css({color:"#333",fontSize:"10px"}).add(),e.renderer.label("21%",55,168,null,null,null,!0,null,"us").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20,className:"test"}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",76,80,"L",76,168]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}).add(),e.renderer.label("Canada",93,63).attr({zIndex:10}).css({color:"#333",fontSize:"10px"}).add(),e.renderer.label("49%",93,120,null,null,null,!0,null,"canada").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20,className:"test"}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",112,80,"L",112,120]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}).add(),e.renderer.label("Latin<br>America",140,63).attr({zIndex:10}).css({color:"#333",fontSize:"10px"}).add(),e.renderer.label("5%",130,230,null,null,null,!0,null,"latin-america").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20,className:"test"}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",150,92,"L",150,230]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}).add(),e.renderer.label("Europe (including U.K.)",214,63).attr({zIndex:10}).css({color:"#333",fontSize:"10px"}).add(),e.renderer.label("14%",213,150,null,null,null,!0,null,"europe").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20,textAlign:"center"}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",232,80,"L",232,150]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}).add(),e.renderer.label("Asia-Pacific","330",63).attr({zIndex:10}).css({fontSize:"10px"}).add(),e.renderer.label("11%",340,180,null,null,null,!0,null,"asia-pacific").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",358,80,"L",358,180]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}).add()):(n("#geo-exposure").hide(),n("table#highcharts-geo-table-mobile").show())})})},3616:function(e,t,i){var n=i(4796);i(4783);n("#geo-exposure-fr").length&&n(function(){var e=n("table#highcharts-geo-table-mobile-fr"),t=!0;n("#geo-exposure-fr").highcharts("Map",{chart:{map:"custom/world",height:"360",margin:[60,0,0,0],spacingTop:0,spacingRight:0,spacingBottom:0,spacingLeft:0,style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},title:{text:"Exposition Géographique¹"},subtitle:{text:"Au 31 décembre 2020"},accessibility:{enabled:!1},legend:{enabled:!1},credits:{enabled:!1}
2,series:[{name:"Map",nullColor:"#CCC",dataLabels:{enabled:!1}}],navigation:{menuItemStyle:{color:"#04809a",textDecoration:"none",background:"none",stroke:"none",outline:"none"},menuItemHoverStyle:{color:"#004786",textDecoration:"underline",background:"none"}},exporting:{buttons:{contextButton:{menuItems:[{text:"Voir le tableau",onclick:function(){1==t?(n("#geo-exposure-fr .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Cacher le tableau",e.show(),t=!1):(n("#geo-exposure-fr .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Voir le tableau",t=!0,e.hide())}}]}}}},function(e){n(window).width()>767?(e.renderer.label("Ãtats-Unis",34,63).attr({zIndex:10}).css({color:"#333",fontSize:"10px"}).add(),e.renderer.label("21 %",55,168,null,null,null,!0,null,"us").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20,className:"test"}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",76,80,"L",76,168]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}).add(),e.renderer.label("Canada",93,63).attr({zIndex:10}).css({color:"#333",fontSize:"10px"}).add(),e.renderer.label("49 %",92,120,null,null,null,!0,null,"canada").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20,className:"test"}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",112,80,"L",112,120]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}
2).add(),e.renderer.label("Amérique<br>latine",140,63).attr({zIndex:10}).css({color:"#333",fontSize:"10px"}).add(),e.renderer.label("5 %",130,230,null,null,null,!0,null,"latin-america").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20,className:"test"}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",150,92,"L",150,230]).attr({"stroke-width":1,stroke:"#04809A",zIndex:10}).add(),e.renderer.label("Europe (y compris U.K.)",214,63).attr({zIndex:10}).css({color:"#333",fontSize:"10px"}).add(),e.renderer.label("14 %",213,150,null,null,null,!0,null,"europe").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20,textAlign:"center"}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",232,80,"L",232,150]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}).add(),e.renderer.label("Asie-Pacifique",325,63).attr({zIndex:10}).css({fontSize:"10px"}).add(),e.renderer.label("11 %",340,180,null,null,null,!0,null,"asia-pacific").attr({fill:"#FFFFFF",padding:10,r:50,"stroke-width":1,stroke:"#00AAAD",zIndex:10,width:20,height:20}).css({color:"#00AAAD",fontSize:"10px"}).add(),e.renderer.path(["M",358,80,"L",358,180]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:10}).add()):(n("#geo-exposure-fr").hide(),n("table#highcharts-geo-table-mobile-fr").show())})})},3936:function(e,t,i){var n=i(4796),r=i(4783);n("#active-management").length&&(r.setOptions({colors:["#e81132","#240b14","#ffcd65"]}),r.chart("active-management",{chart:{height:320,spacingTop:0,spacingBottom:22,spacingLeft:0,spacingRight:0,style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},title:{text:"Active Management Adds to the Plan's Assets",margin:40},subtitle:{text:"As at December 31, 2021"},accessibility:{enabled:!1},credits:{enabled:!1},exporting:{enabled:!1},tooltip:{formatter:function(){return this.point.name+": "+r.numberFormat(this.percentage,1)+"%"}},legend:{enabled:!0,useHTML:!0,layout:"vertical",align:"right",floating:!0,verticalAlign:"middle",y:0,x:-30,itemMarginTop:5,itemMarginBottom:5,labelFormatter:function(){return this.name}},plotOptions:{pie:{size:"100%",center:["30%","60%"],allowPointSelect:!0,cursor:"pointer",dataLabels:{color:"#333",connectorColor:"#333",format:"{point.percentage:.1f}%"},showInLegend:!0,point:{events:{legendItemClick:function(){return!1}}}}},series:[{type:"pie",name:"",data:[["Member Contributions",9.6],["Government/Designated Employer<br/>Contributions*",10.5],["Net Investment Income",79.9]],startAngle:0}]},function(){if(n(window).width()<480){var e=n("#active-management").highcharts(),t=n("#active-management").width();e.setSize(t,400,!1),this.series[0].update({center:["45%","33%"],size:"55%"}),e.legend.options.x=-t/4,e.legend.options.y=165,e.legend.render()}}))},95:function(e,t,i){var n=i(4796),r=i(4783);n("#active-management-fr").length&&(r.setOptions({colors:["#e81132","#240b14","#ffcd65"]}),r.chart("active-management-fr",{chart:{height:320,spacingTop:0,spacingBottom:22,spacingLeft:0,spacingRight:0,style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},title:{text:"La gestion active ajoute de la valeur à l'actif du Régime",margin:40},subtitle:{text:"Au 31 décembre 2021"},accessibility:{enabled:!1},credits:{enabled:!1},exporting:{enabled:!1},tooltip:{formatter:function(){return this.point.name+": "+r.numberFormat(this.percentage,1)+" %"}},legend:{enabled:!0,useHTML:!0,layout:"vertical",align:"right",floating:!0,verticalAlign:"middle",y:0,x:-30,itemMarginTop:5,itemMarginBottom:5,labelFormatter:function(){return this.name}},plotOptions:{pie:{size:"100%",center:["30%","60%"],allowPointSelect:!0,cursor:"pointer",dataLabels:{color:"#333",connectorColor:"#333",format:"{point.percentage:.1f} %"},showInLegend:!0,point:{events:{legendItemClick:function(){return!1}}}}},series:[{type:"pie",name:"",data:[["Cotisations des participants",9.6],["Cotisations du gouvernement<br>et des employeurs désignés*",10.5],["Revenu de placement net",79.9]],startAngle:0}]},function(){if(n(window).width()<480){var e=n("#active-management-fr").highcharts(),t=n("#active-management-fr").width();e.setSize(t,400,!1),this.series[0].update({center:["45%","33%"],size:"55%"}),e.legend.options.x=-t/4,e.legend.options.y=165,e.legend.render()}}))},1779:function(e,t,i){var n=i(4796),r=i(4783);
2if(n("#diversified-assets-horizontal").length){var s=n(window).width(),a=n("table#highcharts-asset-mix-table-mobile-en"),o=!0;r.chart("diversified-assets-horizontal",{chart:{type:"column",spacingBottom:145,style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},credits:{enabled:!1},title:{text:"Diversified Assets Reflect Our Asset Mix Strategy",margin:40},subtitle:{text:"As at December 31, 2021"},accessibility:{enabled:!1},navigation:{menuItemStyle:{color:"#04809a",textDecoration:"none",background:"none",stroke:"none",outline:"none"},menuItemHoverStyle:{color:"#004786",textDecoration:"underline",background:"none"}},exporting:{buttons:{contextButton:{menuItems:[{text:"Show table",onclick:function(){1==o?(n("#diversified-assets-horizontal .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Hide table",a.show(),o=!1):(n("#diversified-assets-horizontal .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Show table",o=!0,a.hide())}}]}}},xAxis:{tickLength:0,gridLineWidth:0,labels:{enabled:!1},lineWidth:0},yAxis:{title:{text:"Canadian $ billions"}},legend:{verticalAlign:"bottom",y:150,shadow:!1,layout:"horizontal",itemMarginTop:5,itemMarginBottom:5},tooltip:{enabled:!1,useHTML:!0},plotOptions:{series:{pointWidth:60,minPointLength:1},column:{groupPadding:0,dataLabels:{enabled:!0,color:"#333",crop:!1,overflow:"none",style:{fontWeight:"normal",color:"#333"},useHTML:!0,formatter:function(){return"$"+r.numberFormat(this.y,1)+" Bn"}},events:{legendItemClick:function(){return!1}}},allowPointSelect:!1},responsive:{rules:[{condition:{maxWidth:480},chartOptions:{chart:{height:400},exporting:{enabled:!1},legend:{verticalAlign:"bottom",layout:"horizontal"},credits:{enabled:!1}}}]},series:[{name:"34% Equity",data:[82.3],color:"#F00037",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:1},{name:"19% Fixed Income",data:[45.2],color:"#240B15",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:2},{name:"20% Inflation Sensitive",data:[48],color:"#FFCD67",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:3},{name:"22% Real Assets",data:[52.4],color:"#72BF44",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:4},{name:"3% Innovation",data:[7.1],color:"#00AAAD",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:5},{name:"10% Credit",data:[24.3],color:"#DDF1F0",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:6,height:10},{name:"6% Absolute Return Strategies",data:[14.9],color:"#6E2B62",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:7},{name:"0% Overlay",data:[-.5],color:"#84BD00",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:8,dataLabels:{formatter:function(){return"($"+Math.abs(this.y)+" Bn)"}}},{name:"(14)% Funding for Investments",data:[-34.7],color:"#727575",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:9,height:1,dataLabels:{formatter:function(){return"($"+Math.abs(this.y)+" Bn)"}}}]},function(){var e=this.renderer.text("Total $239.0 Bn",306,276).attr({align:"center"}).css({fontWeight:"bold",color:"#333"}).add();if(n(window).width()<480){n("#diversified-assets-horizontal").width();e.translate(-130,10)}}),s<767&&(n("#diversified-assets-horizontal").hide(),n("table#highcharts-asset-mix-table-mobile-en").show())}},7780:function(e,t,i){var n=i(4796),r=i(4783);if(n("#diversified-assets-horizontal-fr").length){var s=n(window).width(),a=n("table#highcharts-asset-mix-table-mobile-fr"),o=!0;r.chart("diversified-assets-horizontal-fr",{chart:{type:"column",spacingBottom:145,style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},credits:{enabled:!1},title:{text:"Un portefeuille diversifié d'actifs reflète notre stratégie de composition de l'actif",margin:40},subtitle:{text:"Au 31 décembre 2021"},accessibility:{enabled:!1},navigation:{menuItemStyle:{color:"#04809a",textDecoration:"none",background:"none",stroke:"none",outline:"none"},menuItemHoverStyle:{color:"#004786",textDecoration:"underline",background:"none"}},exporting:{buttons:{contextButton:{menuItems:[{text:"Voir le tableau",onclick:function(){1==o?(n("#diversified-assets-horizontal-fr .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Cacher le tableau",a.show(),o=!1):(n("#diversified-assets-h
2orizontal-fr .highcharts-contextmenu")[0].children[0].children[0].innerHTML="Voir le tableau",o=!0,a.hide())}}]}}},xAxis:{tickLength:0,gridLineWidth:0,labels:{enabled:!1},lineWidth:0},yAxis:{title:{text:"Milliards de dollars canadiens"}},legend:{verticalAlign:"bottom",y:150,shadow:!1,layout:"horizontal",itemMarginTop:5,itemMarginBottom:5},tooltip:{enabled:!1,useHTML:!0},plotOptions:{series:{pointWidth:60,minPointLength:1},column:{groupPadding:0,dataLabels:{enabled:!0,color:"#333",crop:!1,overflow:"none",style:{fontWeight:"normal",color:"#333"},useHTML:!0,formatter:function(){return r.numberFormat(this.y,"1",",")+" G$"}},events:{legendItemClick:function(){return!1}}},allowPointSelect:!1},responsive:{rules:[{condition:{maxWidth:480},chartOptions:{chart:{height:400},exporting:{enabled:!1},legend:{verticalAlign:"bottom",layout:"horizontal"},credits:{enabled:!1}}}]},series:[{name:"34 % Actions",data:[82.3],color:"#F00037",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:1},{name:"19 % Titres à revenu fixe",data:[45.2],color:"#240B15",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:2},{name:"20 % Placements sensibles à l'inflation",data:[48],color:"#FFCD67",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:3},{name:"22 % Actifs réels",data:[52.4],color:"#72BF44",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:4},{name:"3 % Innovation",data:[7.1],color:"#00AAAD",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:5},{name:"10 % Titres de créance",data:[24.3],color:"#DDF1F0",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:6,height:10},{name:"6 % Stratégies de rendement absolu",data:[14.9],color:"#6E2B62",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:7},{name:"0 % Superposition",data:[-.5],color:"#84BD00",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:8,dataLabels:{formatter:function(){return"("+Math.abs(this.y)+" G$)"}}},{name:"(14) % Capitalisation des placements",data:[-34.7],color:"#727575",lineColor:"",pointPadding:0,borderWidth:0,legendIndex:9,dataLabels:{formatter:function(){return"("+Math.abs(this.y)+" G$)"}}}]},function(){var e=this.renderer.text("Total 239,0 G$",306,276).attr({align:"center"}).css({fontWeight:"bold",color:"#333"}).add();if(n(window).width()<480){n("#diversified-assets-horizontal-fr").width();e.translate(-130,10)}}),s<767&&(n("#diversified-assets-horizontal-fr").hide(),n("table#highcharts-asset-mix-table-mobile-fr").show())}},1296:function(e,t,i){var n=i(4796),r=i(4783);n("#net-asset-growth-en").length&&(r.setOptions({colors:["#F00037","#240B15","#FFCD67","#72BF44"]}),r.chart("net-asset-growth-en",{chart:{type:"column",height:400,spacingTop:0,spacingBottom:0,spacingLeft:0,spacingRight:0,style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},title:{text:"Strong Net Asset Growth Since Inception",margin:40},subtitle:{text:"As at December 31, 2021"},accessibility:{enabled:!1},yAxis:{min:0,max:250,title:{text:"Canadian $ billions"}},xAxis:{min:0,max:31,tickInterval:31,title:{text:"Year"},categories:["1990","1991","1992","1993","1994","1995","1996","1997","1998","1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016","2017","2018","2019","2020","2021"]},credits:{enabled:!1},legend:{enabled:!1},exporting:{enabled:!1},tooltip:{formatter:function(){var e=this.point&&void 0!==this.point.category?this.point.category:this.x;return"<b>$"+this.y+"</b><br/>in "+e}},plotOptions:{column:{pointPadding:.2,borderWidth:0,color:"#00AAAD",events:{legendItemClick:function(){return!1}}}},series:[{name:"Net Asset Growth",data:[20.12,24.7,27.77,33.71,34.49,40.14,47.43,54.48,59.17,68.3,73.12,69.46,66.21,75.68,84.33,96.13,106.01,108.55,87.43,96.4,107.54,117.1,129.53,140.8,154.5,171.4,175.6,189.5,191.1,207.4,221.2,241.6]}],responsive:{rules:[{condition:{maxWidth:480},chartOptions:{chart:{height:300,marginTop:110},exporting:{enabled:!1}}}]}},function(){n("#net-asset-growth-en").highcharts();var e=n("#net-asset-growth-en").width(),t=n(window).width(),i=this.renderer.label("$241.6",e-42,50).attr({fill:"#F00037",padding:2,r:3,zIndex:7}).css({color:"white"}).add(),r=(this.renderer.path(["M",e-9,82,"L",e-9,82,"L",e-7,68,"M",e-9,82,"L",e-11,68,"M",e-7,68,"L",e-11,68]).attr({"stroke-width":1,stroke:"#F00037",zIndex:7,id:"labelPointer-en"}).add(),this.renderer.label("$20.1",55,300).attr({fill:"#F00037",padding:2,r:3,zIndex:7}).css({color:"white"}).add());this.renderer.path(["M",64,332,"L",64,332,"L",62,318,"M",64,332,"L",66,318,"M",62,318,"L",66,318]).attr({"stroke-width":1,stroke:"#F00037",zIndex:7,id:"labelPointer2-en"}).add();t<480&&(i.translate(e-40,85),r.translate(50,310),n("#labelPointer-en").remove(),n("#labelPointer2-en").remove(),labelPointerMobile=this.renderer.path(["M",e-5,115,"L",e-5,115,"L",e-3,105,"M",e-5,115,"L",e-7,105,"M",e-3,105,"L",e-7,105]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:7}).add(),labelPointerMobile2=this.renderer.path(["M",60,342,"L",60,342,"L",58,328,"M",60,342,"L",62,328,"M",58,328,"L",62,328]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:7}).add())}))},79:function(e,t,i){var n=i(4796),r=i(4783);n("#net-asset-growth-fr").length&&(r.setOptions({colors:["#F00037","#240B15","#F
2FCD67","#72BF44"],lang:{months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],weekdays:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],shortMonths:["Jan","Fev","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],printChart:"Imprimer le graphique",downloadPNG:"Télécharger en image PNG",downloadJPEG:"Télécharger en image JPEG",downloadPDF:"Télécharger en document PDF",downloadSVG:"Télécharger en document Vectoriel",exportButtonTitle:"Export du graphique",loading:"Chargement en cours...",printButtonTitle:"Imprimer le graphique",resetZoom:"Réinitialiser le zoom",resetZoomTitle:"Réinitialiser le zoom au niveau 1:1",thousandsSep:" ",decimalPoint:","}}),r.chart("net-asset-growth-fr",{chart:{type:"column",height:400,spacingTop:0,spacingBottom:0,spacingLeft:0,spacingRight:5,style:{fontFamily:"SignikaLight,Arial,Helvetica,sans-serif"}},title:{text:"Croissance forte de l'actif net depuis inception",margin:40},subtitle:{text:"Au 31 décembre 2021"},accessibility:{enabled:!1},yAxis:{min:0,max:250,title:{text:"En milliards de dollars canadiens"}},xAxis:{min:0,max:31,tickInterval:31,title:{text:"année"},categories:["1990","1991","1992","1993","1994","1995","1996","1997","1998","1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016","2017","2018","2019","2020","2021"]},credits:{enabled:!1},legend:{enabled:!1},exporting:{enabled:!1},tooltip:{formatter:function(){var e=this.y;return"<b>"+(e=(e=e.toString()).replace(".",","))+" $</b><br/>en "+(this.point&&void 0!==this.point.category?this.point.category:this.x)}},plotOptions:{column:{pointPadding:.2,borderWidth:0,color:"#00AAAD",events:{legendItemClick:function(){return!1}}}},series:[{name:"Croissance de l'actif net",data:[20.12,24.7,27.77,33.71,34.49,40.14,47.43,54.48,59.17,68.3,73.12,69.46,66.21,75.68,84.33,96.13,106.01,108.55,87.43,96.4,107.54,117.1,129.53,140.8,154.5,171.4,175.6,189.5,191.1,207.4,221.2,241.6]}],responsive:{rules:[{condition:{maxWidth:480},chartOptions:{chart:{height:280,marginTop:110},exporting:{enabled:!1}}}]}},function(){n("#net-asset-growth-fr").highcharts();var e=n("#net-asset-growth-fr").width(),t=n(window).width(),i=this.renderer.label("241,6 $",e-44,50).attr({fill:"#F00037",padding:2,r:3,zIndex:7}).css({color:"white"}).add(),r=(this.renderer.path(["M",e-9,82,"L",e-9,82,"L",e-7,68,"M",e-9,82,"L",e-11,68,"M",e-7,68,"L",e-11,68]).attr({"stroke-width":1,stroke:"#F00037",zIndex:7,id:"labelPointer-fr"}).add(),this.renderer.label("20,1 $",55,300).attr({fill:"#F00037",padding:2,r:3,zIndex:7}).css({color:"white"}).add());this.renderer.path(["M",64,332,"L",64,332,"L",62,318,"M",64,332,"L",66,318,"M",62,318,"L",66,318]).attr({"stroke-width":1,stroke:"#F00037",zIndex:7,id:"labelPointer2-fr"}).add();t<480&&(i.translate(e-40,85),r.translate(50,310),n("#labelPointer-fr").remove(),n("#labelPointer2-fr").remove(),labelPointerMobile=this.renderer.path(["M",e-5,115,"L",e-5,115,"L",e-3,105,"M",e-5,115,"L",e-7,105,"M",e-3,105,"L",e-7,105]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:7}).add(),labelPointerMobile2=this.renderer.path(["M",60,342,"L",60,342,"L",58,328,"M",60,342,"L",62,328,"M",58,328,"L",62,328]).attr({"stroke-width":1,stroke:"#00AAAD",zIndex:7}).add())}))},724:function(){document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".op-header--menu-link"),t=document.querySelectorAll(".op-header--back"),i=document.querySelector(".op-header__menu-button");e.forEach(function(e,t){e.addEventListener("click",function(){var e=this.closest("li");e.classList.contains("op-selected")?e.classList.remove("op-selected"):(document.querySelectorAll(".op-selected").forEach(function(t){e.classList.contains("op-header__menu-item-level-two")||e.classList.contains("op-header__menu-item-level-three")||t.classList.remove("op-selected")}),e.classList.add("op-selected"))})}),t.forEach(function(e,t){e.addEventListener("click",function(){this.closest("li").classList.remove("op-selected")})}),i.addEventListener("click",function(){Array.from(document.querySelectorAll(".op-header__menu-item")).forEac
2h(function(e){e.classList.remove("op-selected")})})})},5979:function(e,t,i){var n=i(4796),r={};n("a[data-remote]").length<3&&n("a[data-remote]").each(function(e,t){var i=n(t);r[i.attr("data-remote")]||n.ajax({url:i.attr("data-remote")}).then(function(e){r[i.attr("data-remote")]=e})});var s=function(e){if(r[e])return n.Deferred().resolve(r[e]);var t=n.Deferred();return n.ajax({url:e}).then(function(i){r[e]=i,t.resolve(i)}).fail(function(){t.reject("")}),t};n(document).on("click","a[data-remote]",function(e){e.preventDefault();var t=n(this),i=n("#otpp-modal-container .modal-dialog");(i.removeClass("modal-sm,modal-lg"),t.data("modalSize")&&i.addClass(t.data("modalSize")),n("#otpp-modal-container").data("href")!=t.data("remote"))&&s(t.data("remote")).then(function(e){var i;n("#otpp-modal-container").data("href",t.data("remote"));var r=(new DOMParser).parseFromString(e,"text/html");(null===(i=r.getElementsByClassName("modal-container"))||void 0===i?void 0:i.length)>0&&n("#otpp-modal-container .modal-body").html(r.getElementsByClassName("modal-container")[0])})})},2678:function(e,t,i){var n=i(4796);n(function(){n("#op-global-header").on("focus",function(e){n(e.target)}),n("#op-global-header").on("keydown",function(e){var t=n(e.target);t.is("a, input, button")||(t=t.closest("a, input, button"));var i=e.which;if(t.length){var r="true"==t.attr("aria-expanded");39==i?(!function(e){var t=e.closest(".op-header__wrapper"),i=t.find("a:visible,button:visible,input:visible"),r=i.index(e);i.length>r+1?n(i[r+1]).focus():n(i[0]).focus()}(t),e.preventDefault()):37==i&&(!function(e){var t=e.closest(".op-header__wrapper"),i=t.find("a:visible,button:visible,input:visible"),r=i.index(e);r>0?n(i[r-1]).focus():n(i[i.length-1]).focus()}(t),e.preventDefault()),!r&&!t.closest(".op-header__level-one").length||t.is("[type=text]")||(40==i?(!function(e){if(e.closest(".js-op-header--nav").length){var t=e.closest(".js-op-header--nav").find("a:visible,button:visible,input:visible").not("[role='button']"),i=t.index(e);t.length>i+1?n(t[i+1]).focus():n(t[0]).focus()}else n("#"+e.attr("aria-controls")).find("a:visible,button:visible,input:visible").not("[role='button']").first().focus()}(t),e.preventDefault()):38==i&&(!function(e){if(e.closest(".js-op-header--nav").length){var t=e.closest(".js-op-header--nav").find("a:visible,button:visible,input:visible").not("[role='button']"),i=t.index(e);i>0?n(t[i-1]).focus():n(t[t.length-1]).focus()}else n("#"+e.attr("aria-controls")).find("a:visible,button:visible,input:visible").not("[role='button']").last().focus()}(t),e.preventDefault()))}}),n("#op-global-header").on("keyup",function(e){if(38==e.which||40==e.which||39==e.which||37==e.which)return e.preventDefault(),!1}),n(".op-header.op-header--otpp .op-header-nav0--menu-link").on("focus",function(e){var t=n(e.target);t.closest("li").siblings().removeClass("nav0-hover-active"),t.is("svg")&&(t=t.closest("li").addClass("nav0-hover-active"))}),n(".op-header--menu-link").on("focus",function(e){var t=n(e.target),i=t.closest("li");if(i.siblings().removeClass("op-header--show"),t.is("svg")&&(t=i.addClass("op-header--show")).parents(".op-header.op-header--otpp").length>0&&(i.find(".op-header__sub-menu").css("top",n(".op-header").height()),i.hasClass("op-header__menu-item-level-two"))){var r=i.find(".op-header__level-three").height()+20,s=i.closest(".op-header__level-two").height()+20;i.closest(".op-header__sub-menu").css("height",(r>s?r:s)+"px")}}),n(".menu-item-level-three-link, .menu-item-level-two-link, .menu-item-level-one-link").on("focus",function(e){n(e.target).closest("li").siblings().removeClass("op-header--show")})})},4926:function(e,t,i){var n=i(4796),r=window.localStorage;if(r){var s=JSON.parse(r.getItem("notifications")||"{}");n(".op-emergency-banner").each(function(e,t){var i=n(t);s[i.data("dismissTime")||"0"]||(i.attr("aria-hidden",!1).addClass("show"),i.find("#"+i.attr("id")+"-button").attr("aria-expanded",!0))}),n(".op-emergency-banner button[data-toggle]").on("click",function(e){e.preventDefault();var t=n(this).closest(".op-emergency-banner"),i=JSON.parse(r.getItem("notifications")||"{}");
2i[t.data("dismissTime")||"0"]=!0,r.setItem("notifications",JSON.stringify(i))})}},3387:function(){document.addEventListener("DOMContentLoaded",function(){document.querySelector(".op-header").addEventListener("keyup",function(e){e.code})})},6960:function(){document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".op-overlap__item").forEach(function(e){var t=function(){return e.getBoundingClientRect().height/2},i=t(),n=e.closest(".op-overlap");if(n&&(n.style.paddingBottom=i+"px",window.addEventListener("resize",function(){var e=t();n.style.paddingBottom=e+"px"}),n.classList.contains("op-overlap--herobanner-featured"))){var r=e.closest(".op-overlap__container");if(!r)return;r.style.paddingBottom=i+"px",window.addEventListener("resize",function(){var e=t();r.style.paddingBottom=e+"px"})}})})},4325:function(e,t,i){var n=i(4796);n(".convertedImage").length>0&&n(".convertedImage").each(function(){if(n(window).width()>767&&n(this).find(".desktop-image").length>0){var e=n(this).find(".desktop-image").attr("src");n(this).css("background-image",'url("'+e+'")')}}),n(document).ready(function(e){"use strict";e.Scrollax()});var r=document.querySelectorAll(".infoPanel");window.addEventListener("scroll",function(){for(var e=0;e<r.length;e++){var t;parseFloat(null===(t=r[e])||void 0===t||null===(t=t.style)||void 0===t||null===(t=t.transform)||void 0===t||null===(t=t.split("translateY")[1])||void 0===t?void 0:t.split(/[()]/)[1])>0?r[e].classList.add("infoPanelactive"):r[e].classList.remove("infoPanelactive")}})},9059:function(){(new WOW).init()},7944:function(e,t,i){var n=i(4796);n(document).ready(function(){n(".op-protec_container").hasClass("op-edit-mode")||(window.main=n(".op-protec_container #main"),n(".op-protec_container #main").remove())}),n(".op-protec_container").on("click",".op-protec-form-container .submit-btn",function(){var e=n(".op-protec-form-container #password")[0].value,t=n(".op-protec-form-container #resourcePath")[0].value;n.post("/bin/otpp/authenticate",{pwd:e,pagePath:t}).done(function(e){n(".op-protec_container .error-msg").hide(),n(".op-protec_container .op-protec_modal").hide(),n(".op-protec_container").append(main)}).fail(function(e,t,i){n(".op-protec_container .error-msg")[0].innerText="Unauthorized"===i?"Incorrect Password. Try again":"Error",n(".op-protec_container .error-msg").show()})}),n(".op-protec-form").on("submit",function(e){e.preventDefault()})},3432:function(e,t,i){var n=i(4796),r=!0,s=!0,a=function(e){(window.adobeDataLayer||[]).push(e)};n(window).bind("scroll",function(){window.scrollPercent=n(window).scrollTop()/(n(document).height()-n(window).height())*100,window.scrollPercent>=50&&r&&(a({event:"scroll50"}),r=!1),window.scrollPercent>=90&&s&&(a({event:"scroll90"}),s=!1)})},4362:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,e;function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}e=function(e){function W(e){if(!console||!console.warn)throw"Scrollax: "+e;console.warn("Scrollax: "+e)}function ka(e){var t=!!("pageYOffset"in e);return{width:t?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:e.offsetWidth,height:t?window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight:e.offsetHeight,left:e[t?"pageXOffset":"scrollLeft"],top:e[t?"pageYOffset":"scrollTop"]}}function X(a){return(a=a.data("scrollax"))&&eval("({"+a+"})")||{}}function Y(e){var t,i;return!!(e&&"object"===_typeof(e)&&"object"===_typeof(e.window)&&e.window==e&&e.setTimeout&&e.alert&&(t=e.document)&&"object"===_typeof(t)&&(i=t.defaultView||t.parentWindow)&&"object"===_typeof(i)&&i==e)}var v=Array.prototype,C=v.push,Z=v.splice,aa=Object.prototype.hasOwnProperty,la=/[-+]?\d+(\.\d+)?/g,ma="translateX translateY rotate rotateX rotateY rotateZ skewX skewY scaleX scaleY".split(" "),ba=e(window),ca=e(document.body),da,ea,_L,M,N,_q=function(t,i,n){function r(){return H=$?ca.find(q):d.find(q),j.length=0,T=!!U.horizontal,H.each(K),a(),U.performanceTrick&&(v=$?ca:d),l("load"),u}function s(){f&&(f=clearTimeout(f)),f=setTimeout(function(){u.reload()})}function a(){var e=j.length;if(U.performanceTrick&&v&&(clearTimeout(y),b||(v.addClass("scrollax-performance"),b=!0),y=setTimeout(function(){v.removeClass("scrollax-performance"),b=!1},100)),e){_=ka(t);for(var i=0;i<e;i++)S=j[i],0>(w=_L(S.element,t))[T?"right":"bottom"]||w[T?"left":"top"]>_[T?"width":"height"]||(k=S.options,x=k.offset||U.offset||0,A=w[T?"right":"bottom"],L=w[T?"width":"height"],0>(E=(L-A+x)/L)&&(A=w[T?"left":"top"],L=_[T?"width":"height"],E=(L-A+x)/L-1),1<E||-1>E||o(S,E));l("scroll",_)}
2}function o(t,i){var n=(I=t.parallaxElements).length;if(n)for(var r=0;r<n;r++){var s=(P=I[r]).element,a=i;for(D in O=P.properties||(T?{translateX:"100%"}:{translateY:"100%"}),B="",O){if("number"==typeof(R=O[D]))R*=a;else if("string"==typeof R)for(F=R.match(la),m=0,g=F.length;m<g;m++)R=R.replace(F[m],parseFloat(F[m]*a));if(-1!==e.inArray(D,ma))B+=D+"("+R+")";else{var o,l=s.style;o="opacity"===D?0>(o=0>a?1+R:1-R)?0:1<o?1:o:R,l[D]=o}}B&&(s.style[da]=ea+B)}}function l(e,t){if(V[e]){for(g=V[e].length,m=G.length=0;m<g;m++)C.call(G,V[e][m]);for(m=0;m<g;m++)G[m].call(u,e,t)}}function c(e,t){for(var i=0,n=V[e].length;i<n;i++)if(V[e][i]===t)return i;return-1}var u=this,d=t&&e(t).eq(0)||ba,h=_q.instances,p=null;if(t=d[0],e.each(h,function(e,i){e&&e.frame===t&&(p=!0)}),!t||p)W(p?"Scrollax: Scrollax has been initialized for this frame!":"Scrollax: Frame is not available!");else{var f,m,g,v,y,b,_,T,x,w,S,k,E,A,L,I,P,O,D,R,B,F,U=e.extend({},_q.defaults,i),j=[],H=null,q=U.parentSelector||"[data-scrollax-parent]",z=U.elementsSelector||"[data-scrollax]",V={},G=[],$=Y(t);u.frame=t,u.options=U,u.parents=j,u.initialized=!1,u.reload=r;var K=function(t,i){var n=e(i),r=X(e(i)),s={};s.element=i,s.options=r,s.parallaxElements=[],n.find(z).each(function(t,i){var n=X(e(i));n.element=i,C.call(s.parallaxElements,n)}),C.call(j,s)};u.scroll=a,u.getIndex=function(e){return void 0!==e?"number"!=typeof e&&"string"!=typeof e||""===e||isNaN(e)?H.index(e):0<=e&&e<j.length?e:-1:-1},u.one=function(e,t){return u.on(e,function i(){t.apply(u,arguments),u.off(e,i)}),u},u.on=function(e,t){if("object"===_typeof(e))for(var i in e)aa.call(e,i)&&u.on(i,e[i]);else if("function"==typeof t)for(var n=0,r=(i=e.split(" ")).length;n<r;n++)V[i[n]]=V[i[n]]||[],-1===c(i[n],t)&&C.call(V[i[n]],t);else if("array"==typeof t)for(i=0,n=t.length;i<n;i++)u.on(e,t[i]);return u},u.off=function(e,t){if(t instanceof Array)for(var i=0,n=t.length;i<n;i++)u.off(e,t[i]);else{n=0;for(var r=(i=e.split(" ")).length;n<r;n++)if(V[i[n]]=V[i[n]]||[],void 0===t)V[i[n]].length=0;else{var s=c(i[n],t);-1!==s&&Z.call(V[i[n]],s,1)}}return u},u.set=function(t,i){return e.isPlainObject(t)?e.extend(U,t):aa.call(U,t)&&(U[t]=i),r(),u},u.destroy=function(){return N(window,"resize",s),N(t,"scroll",a),e.each(h,function(e,i){e&&e.frame===t&&Z.call(_q.instances,i,1)}),j.length=0,u.initialized=!1,l("destroy"),u},u.init=function(){if(!u.initialized)return u.on(n),r(),M(window,"resize",s),M(t,"scroll",a),C.call(_q.instances,u),u.initialized=!0,l("initialized"),u}}};_q.instances=[],function(){var e,t,i,n,r,s,a,o;_L=function(l,c){if(t=l.ownerDocument||l,i=t.documentElement,n=Y(c)?c:t.defaultView||window,c=c&&c!==t?c:i,r=(n.pageYOffset||i.scrollTop)-i.clientTop,s=(n.pageXOffset||i.scrollLeft)-i.clientLeft,a={top:0,left:0},!l||!l.getBoundingClientRect)return null;var u={},d=l.getBoundingClientRect();for(e in d)u[e]=d[e];return(a=u).width=a.right-a.left,a.height=a.bottom-a.top,c===n||(a.top+=r,a.left+=s,a.right+=s,a.bottom+=r,c===i||(o=_L(c),a.left-=o.left,a.right-=o.left,a.top-=o.top,a.bottom-=o.top)),a}}(),function(){function e(){this.returnValue=!1}function t(){this.cancelBubble=!0}M=window.addEventListener?function(e,t,i,n){return e.addEventListener(t,i,n||!1),i}:function(i,n,r){var s=n+r;return i[s]=i[s]||function(){var n=window.event;n.target=n.srcElement,n.preventDefault=e,n.stopPropagation=t,r.call(i,n)},i.attachEvent("on"+n,i[s]),r},N=window.removeEventListener?function(e,t,i,n){return e.removeEventListener(t,i,n||!1),i}:function(e,t,i){var n=t+i;e.detachEvent("on"+t,e[n]);try{delete e[n]}catch(t){e[n]=void 0}return i}}(),function(){function e(e){for(var n=0,r=t.length;n<r;n++){var s=t[n]?t[n]+e.charAt(0).toUpperCase()+e.slice(1):e;if(null!=i.style[s])return s}}var t=["","webkit","moz","ms","o"],i=document.createElement("div");da=e("transform"),ea=e("perspective")?"translateZ(0) ":""}(),_q.defaults={horizontal:!1,offset:0,parentSelector:null,elementsSelector:null,performanceTrick:!1},window.Scrollax=_q,e.fn.Scrollax=function(t,i){var n,r;return e.isPlainObject(t)||("string"!=typeof t&&!1!==t||(n=!1===t?"destroy":t,r=slice.call(arguments,1
2)),t={}),this.each(function(s,a){var o=e.data(a,"scrollax");o||n?o&&n&&o[n]&&o[n].apply(o,r):e.data(a,"scrollax",new _q(a,t,i).init())})},e.Scrollax=function(e,t){ba.Scrollax(e,t)};var v=document.head||document.getElementsByTagName("head")[0],w=document.createElement("style");return w.type="text/css",w.styleSheet?w.styleSheet.cssText=".scrollax-performance, .scrollax-performance *, .scrollax-performance *:before, .scrollax-performance *:after { pointer-events: none !important; -webkit-animation-play-state: paused !important; animation-play-state: paused !important; };":w.appendChild(document.createTextNode(".scrollax-performance, .scrollax-performance *, .scrollax-performance *:before, .scrollax-performance *:after { pointer-events: none !important; -webkit-animation-play-state: paused !important; animation-play-state: paused !important; };")),v.appendChild(w),_q},__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(4796)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=e)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},108:function(e,t,i){var n=i(4796);n(document).on("click",".op-search-results__tab-menu-toggle",function(e){e.preventDefault();var t=n(this),i=t.closest(".op-search-results__tab-overflow"),r=i.hasClass("is-open");n(".op-search-results__tab-overflow").removeClass("is-open").find(".op-search-results__tab-menu-toggle").attr("aria-expanded","false"),r||(i.addClass("is-open"),t.attr("aria-expanded","true"))}),n(document).on("click",function(e){n(e.target).closest(".op-search-results__tab-overflow").length||n(".op-search-results__tab-overflow").removeClass("is-open").find(".op-search-results__tab-menu-toggle").attr("aria-expanded","false")}),n(document).on("keydown",function(e){"Escape"===e.key&&n(".op-search-results__tab-overflow").removeClass("is-open").find(".op-search-results__tab-menu-toggle").attr("aria-expanded","false")})},6908:function(e,t,i){!function(e){"use strict";var t="/bin/otpp/search/suggest",i='<svg class="op-search-typeahead__modal-icon-svg" width="15" height="12" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M2 16C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H18C18.55 0 19.0208 0.195833 19.4125 0.5875C19.8042 0.979167 20 1.45 20 2V14C20 14.55 19.8042 15.0208 19.4125 15.4125C19.0208 15.8042 18.55 16 18 16H2ZM2 14H18V4H2V14Z" fill="currentColor"/></svg>';function n(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(e){return String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function s(e,t){var i=null==e?"":String(e),s=function(e){if(!e)return[];var t=e.trim().split(/\s+/).filter(function(e){return e.length>0});return t.sort(function(e,t){return t.length-e.length}),t}(t);if(0===s.length)return n(i);for(var a,o=s.map(r).join("|"),l=new RegExp("("+o+")","ig"),c="",u=0;null!==(a=l.exec(i));)c+=n(i.slice(u,a.index)),c+='<span class="op-search-highlight">'+n(a[0])+"</span>",u=a.index+a[0].length,a.index===l.lastIndex&&l.lastIndex++;return c+=n(i.slice(u))}function a(n){var r=n.closest("form"),a=n.closest(".op-header__search--results-wrapper").length>0,o=n.closest(".op-search-results__form, .op-header__search--results-wrapper");o.length||(o=r);var l=e('<ul class="op-search-typeahead" role="listbox" aria-label="Search suggestions"></ul>'),c=-1,u=[],d=null;function h(){(l.find(".op-search-typeahead__item").removeClass("op-search-typeahead__item--active").attr("aria-selected","false"),c>=0)&&(l.find('[data-index="'+c+'"]').addClass("op-search-typeahead__item--active").attr("aria-selected","true"),n.val(u[c].title))}function p(e){f(),window.location.href=e.path}function f(){l.hide().empty(),c=-1,u=[],n.attr("aria-expanded","false")}a?(r.css("position","relative"),l.addClass("op-search-typeahead--header"),r.append(l)):(o.css("position","relative"),o.append(l)),n.attr("role","combobox"),n.attr("aria-autocomplete","list"),n.attr("aria-expanded","fal
2se"),n.attr("aria-controls","op-search-typeahead-list"),l.attr("id","op-search-typeahead-list"),n.on("input",function(){clearTimeout(d);var r=n.val().trim();r.length<3?f():d=setTimeout(function(){!function(r){var o="/content/otpp",d=function(){var e=window.location.pathname.split("/").filter(Boolean)[0]||"";if(/^[a-z]{2}(?:-[a-z]{2})?$/i.test(e))return e.toLowerCase();return""}();e.ajax({url:t,data:{q:r,path:o,locale:d},method:"GET",dataType:"json"}).done(function(t){(u=t||[]).length>0?function(t){if(l.empty(),c=-1,e.each(u,function(n,r){var a=e('<li role="option" class="op-search-typeahead__item"></li>'),o=e('<a class="op-search-typeahead__link"></a>');o.attr("href",r.path),o.html(s(r.title||"",t)),r.isModalPage&&(o.append('<span class="op-search-typeahead__modal-icon" aria-hidden="true">'+i+"</span>"),o.attr("aria-label",(r.title||"")+" (opens in a modal window)")),a.append(o),a.attr("data-index",n),a.on("mousedown",function(e){e.preventDefault(),p(r)}),l.append(a)}),a){var r=n.position();l.css({left:r.left,top:r.top+n.outerHeight(),width:n.outerWidth()})}l.show(),n.attr("aria-expanded","true")}(r):f()}).fail(function(){f()})}(r)},300)}),n.on("keydown",function(e){if(l.is(":visible"))switch(e.keyCode){case 40:e.preventDefault(),c=Math.min(c+1,u.length-1),h();break;case 38:e.preventDefault(),c=Math.max(c-1,-1),h();break;case 13:c>=0&&c<u.length&&(e.preventDefault(),p(u[c]));break;case 27:f()}}),n.on("blur",function(){setTimeout(function(){f()},200)})}e(document).ready(function(){if(function(){var t=e("#op-search-results__input");if(t.length){var i=(t.val()||"").trim();i&&e(".op-search-results__title-link h3, .op-search-results__description").each(function(){var t=e(this),n=t.find(".op-search-results__modal-icon").detach();t.attr("data-highlight-source")||t.attr("data-highlight-source",t.text());var r=t.attr("data-highlight-source")||"";t.html(s(r,i)),n.length&&t.append(n)})}}(),0!==(t=(window.location.pathname||"").toLowerCase()).indexOf("/prc/")&&0!==t.indexOf("/content/prc/")&&0!==t.indexOf("/newsbureau/")&&0!==t.indexOf("/content/newsbureau/")){var t,i=e("#op-search-results__input");i.length&&a(i);var n=e("#op-header__search--input");n.length&&a(n)}})}(i(4796))},5409:function(e,t,i){var n=i(4796);n(document).ready(function(){n(".op-section-wrapper").each(function(){var e=n(this),t=e.find(".section-bgimage-container img");function i(){var i=t[0].currentSrc;if(i&&""!==n.trim(i)){var r=e.css("background-image").split(/, (?![^(]*\))/).map(function(e){return(e=n.trim(e)).startsWith("url(")?'url("'+i+'")':e}).join(", ");e.css("background-image",r)}}0!==t.length&&(i(),t.on("load",i))})})},1134:function(e,t,i){var n,r,s;function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}!function(){"use strict";r=[i(4796)],n=function(e){var t=window.Slick||{};(t=function(){var t=0;function i(i,n){var r,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(i),appendDots:e(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return e('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 9,331 bytes, line 2
2sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=e(i),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,r=e(i).data("slick")||{},s.options=e.extend({},s.defaults,n,r),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=e.proxy(s.autoPlay,s),s.autoPlayClear=e.proxy(s.autoPlayClear,s),s.autoPlayIterator=e.proxy(s.autoPlayIterator,s),s.changeSlide=e.proxy(s.changeSlide,s),s.clickHandler=e.proxy(s.clickHandler,s),s.selectHandler=e.proxy(s.selectHandler,s),s.setPosition=e.proxy(s.setPosition,s),s.swipeHandler=e.proxy(s.swipeHandler,s),s.dragHandler=e.proxy(s.dragHandler,s),s.keyHandler=e.proxy(s.keyHandler,s),s.instanceUid=t++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}return i}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,i,n){var r=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=r.slideCount)return!1;r.unload(),"number"==typeof i?0===i&&0===r.$slides.length?e(t).appendTo(r.$slideTrack):n?e(t).insertBefore(r.$slides.eq(i)):e(t).insertAfter(r.$slides.eq(i)):!0===n?e(t).prependTo(r.$slideTrack):e(t).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each(function(t,i){e(i).attr("data-slick-index",t)}),r.$slidesCache=r.$slides,r.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,i){var n={},r=this;r.animateHeight(),!0===r.options.rtl&&!1===r.options.vertical&&(t=-t),!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),e({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(e){e=Math.ceil(e),!1===r.options.vertical?(n[r.animType]="translate("+e+"px, 0px)",r.$slideTrack.css(n)):(n[r.animType]="translate(0px,"+e+"px)",r.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),!1===r.options.vertical?n[r.animType]="translate3d("+t+"px, 0px, 0px)":n[r.animType]="translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(n),i&&setTimeout(function(){r.disableTransition(),i.call()},r.options.speed))},t.prototype.getNavTarget=function(){var t=this,i=t.options.asNavFor;return i&&null!==i&&(i=e(i).not(t.$slider)),i},t.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"===a(i)&&i.each(function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,i,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=e("<ul />").addClass(n.options.dotsClass),t=0;t<=n.getDotCount();t+=1)i.append(e("<li />").append(n.options.customPaging.call(this,n,t)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,i){e(i).attr("data-slick-index",t).data("originalStyling",e(i).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,i,n,r,s,a,o=this;if(n=document.createDocumentFragment(),s=o.$slider.children(),o.options.rows>0){for(a=o.options.slidesPerRow*o.options.rows,r=Math.ceil(s.length/a),e=0;e<r;e++){var l=document.createElement("div");for(t=0;t<o.options.rows;t++){var c=document.createElement("div");for(i=0;i<o.options.slidesPerRow;i++){var u=e*a+(t*o.options.slidesPerRow+i);s.get(u)&&c.appendChild(s.get(u))}l.appendChild(c)}n.appendChild(l)}o.$slider.empty().append(n),o.$slider.children().children().children().css({width:100/o.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,i){var n,r,s,a=this,o=!1,l=a.$slider.width(),c=window.innerWidth||e(window).width();if("window"===a.respondTo?s=c:"slider"===a.respondTo?s=l:"min"===a.respondTo&&(s=Math.min(c,l)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){for(n in r=null,a.breakpoints)a.breakpoints.hasOwnProperty(n)&&(!1===a.originalSettings.mobileFirst?s<a.breakpoints[n]&&(r=a.breakpoints[n]):s>a.breakpoints[n]&&(r=a.breakpoints[n]));null!==r?null!==a.activeBreakpoint?(r!==a.activeBreakpoint||i)&&(a.activeBreakpoint=r,"unslick"===a.breakpointSettings[r]?a.unslick(r):(a.options=e.extend({},a.originalSettings,a.breakpointSettings[r]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),o=r):(a.activeBreakpoint=r,"unslick"===a.breakpointSettings[r]?a.unslick(r):(a.options=e.extend({},a.originalSettings,a.breakpointSettings[r]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),o=r):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t),o=r),t||!1===o||a.$slider.trigger("breakpoint",[a,o])}},t.prototype.changeSlide=function(t,i){var n,r,s=this,a=e(t.currentTarget);switch(a.is("a")&&t.preventDefault(),a.is("li")||(a=a.closest("li")),n=s.slideCount%s.options.slidesToScroll!==0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":r=0===n?s.options.slidesToScroll:s.options.slidesToShow-n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-r,!1,i);break;case"next":r=0===n?s.options.slidesToScroll:n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+r,!1,i);break;case"index":var o=0===t.data.index?0:t.data.index||a.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(o),!1,i),a.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.
2interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,t||i.$slider.trigger("destroy",[i])},t.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(e),t.call()},i.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var n=e(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=n.is(":focus"),t.autoPlay())}
2,0)})},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,i=0,n=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++n;else for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)n=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else n=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return n-1},t.prototype.getLeft=function(e){var t,i,n,r,s=this,a=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,r=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?r=-1.5:1===s.options.slidesToShow&&(r=-2)),a=i*s.options.slidesToShow*r),s.slideCount%s.options.slidesToScroll!==0&&e+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(e>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(e-s.slideCount))*s.slideWidth*-1,a=(s.options.slidesToShow-(e-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,a=s.slideCount%s.options.slidesToScroll*i*-1))):e+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(e+s.options.slidesToShow-s.slideCount)*s.slideWidth,a=(e+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,a=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),t=!1===s.options.vertical?e*s.slideWidth*-1+s.slideOffset:e*i*-1+a,!0===s.options.variableWidth&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow),t=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===s.options.centerMode&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow+1),t=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,t+=(s.$list.width()-n.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,i=0,n=0,r=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,n=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)r.push(i),i=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return r},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(r,s){if(s.offsetLeft-i+e(s).outerWidth()/2>-1*n.swipeLeft)return t=s,!1}),Math.abs(e(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),t&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},t.prototype.initADA=function(){var t=this,i=Math.ceil(t.slideCount/t.options.slidesToShow),n=t.getNavigableIndexes().filter(function(e){return e>=0&&e<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){var r=n.indexOf(i);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1}),-1!==r){var s="slick-slide-control"+t.instanceUid+r;e("#"+s).length&&e(this).attr({"aria-describedby":s})}}),t.$dots.attr("role","tablist").find("li").each(function(r){var s=n[r];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+r,"aria-controls":"slick-slide"+t.instanceUid+s,"aria-label":r+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var r=t.currentSlide,s=r+t.options.slidesToShow;r<s;r++)t.options.focusOnChange?t.$slides.eq(r).attr({tabindex:"0"}):t.$slides.eq(r).removeAttr("tabindex");t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.
2interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){var t,i,n,r=this;function s(t){e("img[data-lazy]",t).each(function(){var t=e(this),i=e(this).attr("data-lazy"),n=e(this).attr("data-srcset"),s=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),a=document.createElement("img"),o=sanitizeImageSource(i);if(!o)return t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),void r.$slider.trigger("lazyLoadError",[r,t,i]);a.onload=function(){t.animate({opacity:0}
vendor: 7,232 bytes, line 2
2,100,function(){n&&(t.attr("srcset",n),s&&t.attr("sizes",s)),t.attr("src",o).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,t,o])})},a.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,o])},a.src=o})}if(!0===r.options.centerMode?!0===r.options.infinite?n=(i=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(i=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),n=r.options.slidesToShow/2+1+2+r.currentSlide):(i=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(i+r.options.slidesToShow),!0===r.options.fade&&(i>0&&i--,n<=r.slideCount&&n++)),t=r.$slider.find(".slick-slide").slice(i,n),"anticipated"===r.options.lazyLoad)for(var a=i-1,o=n,l=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)a<0&&(a=r.slideCount-1),t=(t=t.add(l.eq(a))).add(l.eq(o)),a--,o++;s(t),r.slideCount<=r.options.slidesToShow?s(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?s(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&s(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&e(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var i,n,r,s,a,o=this,l=e("img[data-lazy]",o.$slider);if(l.length){i=l.first(),n=i.attr("data-lazy"),r=i.attr("data-srcset"),s=i.attr("data-sizes")||o.$slider.attr("data-sizes"),a=document.createElement("img");var c=sanitizeImageSource(n);if(!c)return i.removeAttr("data-lazy").addClass("slick-lazyload-error"),void o.progressiveLazyLoad();a.onload=function(){r&&(i.attr("srcset",r),s&&i.attr("sizes",s)),i.attr("src",c).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,i,n]),o.progressiveLazyLoad()},a.onerror=function(){t<3?setTimeout(function(){o.progressiveLazyLoad(t+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,i,c]),o.progressiveLazyLoad())},a.src=c}else o.$slider.trigger("allImagesLoaded",[o])},t.prototype.refresh=function(t){var i,n,r=this;n=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>n&&(r.currentSlide=n),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),i=r.currentSlide,r.destroy(!0),e.extend(r,r.initials,{currentSlide:i}),r.init(),t||r.changeSlide({data:{message:"index",index:i}},!1)},t.prototype.registerBreakpoints=function(){var t,i,n,r=this,s=r.options.responsive||null;if("array"===e.type(s)&&s.length){for(t in r.respondTo=r.options.respondTo||"window",s)if(n=r.breakpoints.length-1,s.hasOwnProperty(t)){for(i=s[t].breakpoint;n>=0;)r.breakpoints[n]&&r.breakpoints[n]===i&&r.breakpoints.splice(n,1),n--;r.breakpoints.push(i),r.breakpointSettings[i]=s[t].settings}r.breakpoints.sort(function(e,t){return r.options.mobileFirst?e-t:t-e})}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,i){var n=this;if(e="boolean"==typeof e?!0===(t=e)?0:n.slideCount-1:!0===t?--e:e,n.slideCount<1||e<0||e>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(e).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},t.prototype.setCSS=function(e){var t,i,n=this,r={};!0===n.options.rtl&&(e=-e),t="left"==n.positionProp?Math.ceil(e)+"px":"0px",i="top"==n.positionProp?Math.ceil(e)+"px":"0px",r[n.positionProp]=e,!1===n.transformsEnabled?n.$slideTrack.css(r):(r={},!1===n.cssTransitions?(r[n.animType]="translate("+t+", "+i+")",n.$slideTrack.css(r)):(r[n.animType]="translate3d("+t+", "+i+", 0px)",n.$slideTrack.css(r)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,i=this;i.$slides.each(function(n,r){t=i.slideWidth*n*-1,!0===i.options.rtl?e(r).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}
2):e(r).css({position:"relative",left:t,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,i,n,r,s,a=this,o=!1;if("object"===e.type(arguments[0])?(n=arguments[0],o=arguments[1],s="multiple"):"string"===e.type(arguments[0])&&(n=arguments[0],r=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)a.options[n]=r;else if("multiple"===s)e.each(n,function(e,t){a.options[e]=t});else if("responsive"===s)for(i in r)if("array"!==e.type(a.options.responsive))a.options.responsive=[r[i]];else{for(t=a.options.responsive.length-1;t>=0;)a.options.responsive[t].breakpoint===r[i].breakpoint&&a.options.responsive.splice(t,1),t--;a.options.responsive.push(r[i])}o&&(a.unload(),a.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,i,n,r,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(e).addClass("slick-current"),!0===s.options.centerMode){var a=s.options.slidesToShow%2==0?1:0;t=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(e>=t&&e<=s.slideCount-1-t?s.$slides.slice(e-t+a,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(n=s.options.slidesToShow+e,i.slice(n-t+1+a,n+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):e===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=s.slideCount-s.options.slidesToShow?s.$slides.slice(e,e+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(r=s.slideCount%s.options.slidesToShow,n=!0===s.options.infinite?s.options.slidesToShow+e:e,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-e<s.options.slidesToShow?i.slice(n-(s.options.slidesToShow-r),n+r).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},t.prototype.setupInfinite=function(){var t,i,n,r=this;if(!0===r.options.fade&&(r.options.centerMode=!1),!0===r.options.infinite&&!1===r.options.fade&&(i=null,r.slideCount>r.options.slidesToShow)){for(n=!0===r.options.centerMode?r.options.slidesToShow+1:r.options.slidesToShow,t=r.slideCount;t>r.slideCount-n;t-=1)i=t-1,e(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(t=0;t<n+r.slideCount;t+=1)i=t,e(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},t.prototype.selectHandler=function(t){var i=this,n=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),r=parseInt(n.attr("data-slick-index"));r||(r=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(r,!1,!0):i.slideHandler(r)},t.prototype.slideHandler=function(e,t,i){var n,r,s,a,o,l=null,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),n=e,l=c.getLeft(n),a=c.getLeft(c.
vendor: 5,792 bytes, line 2
2currentSlide),c.currentLeft=null===c.swipeLeft?a:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,function(){c.postSlide(n)}):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,function(){c.postSlide(n)}):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),r=n<0?c.slideCount%c.options.slidesToScroll!==0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!==0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,r]),s=c.currentSlide,c.currentSlide=r,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(o=(o=c.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(s),c.fadeSlide(r,function(){c.postSlide(r)})):c.postSlide(r),void c.animateHeight();!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,function(){c.postSlide(r)}):c.postSlide(r)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,i,n,r=this;return e=r.touchObject.startX-r.touchObject.curX,t=r.touchObject.startY-r.touchObject.curY,i=Math.atan2(t,e),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?!1===r.options.rtl?"left":"right":n>=135&&n<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(e){var t,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,i,n,r,s,a,o=this;return s=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!o.dragging||o.scrolling||s&&1!==s.length)&&(t=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,o.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),a=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2))),!o.options.verticalSwiping&&!o.swiping&&a>4?(o.scrolling=!0,!1):(!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=a),i=o.swipeDirection(),void 0!==e.originalEvent&&o.touchObject.swipeLength>4&&(o.swiping=!0,e.preventDefault()),r=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(r=o.touchObject.curY>o.touchObject.startY?1:-1),n=o.touchObject.swipeLength,o.touchObject.edgeHit=!1,!1===o.options.infinite&&(0===o.currentSlide&&"right"===i||o.currentSlide>=o.getDotCount()&&"left"===i)&&(n=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=t+n*r:o.swipeLeft=t+n*(o.$list.height()/o.listWidth)*r,!0===o.options.verticalSwiping&&(o.swipeLeft=t+n*r),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))))},t.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
2,t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,i,n=this,r=arguments[0],s=Array.prototype.slice.call(arguments,1),o=n.length;for(e=0;e<o;e++)if("object"==a(r)||void 0===r?n[e].slick=new t(n[e],r):i=n[e].slick[r].apply(n[e].slick,s),void 0!==i)return i;return n}},void 0===(s="function"==typeof n?n.apply(t,r):n)||(e.exports=s)}()},4121:function(e,t,i){var n=i(4796);n(document).ready(function(){var e,t,i=n(".op-sticky-nav"),r=n(".sticky-nav .back-to-top"),s=n(".sticky-nav .menu-toggle"),a=n(".op-header--otpp").height();if(n(".op-sticky-nav").length&&(e=n(".op-sticky-nav").offset().top,t=n(".op-sticky-nav").outerHeight()),n(window).scroll(function(){n(window).scrollTop()>=e-a?i.addClass("fixed"):i.removeClass("fixed")}),r.click(function(){window.scrollTo({top:e,behavior:"smooth"})}),s.click(function(){i.toggleClass("expanded")}),n('.op-sticky-nav a[href^="#"]').on("click",function(e){e.preventDefault();var i=n(this).attr("href"),r=(n(".op-sticky-nav").hasClass("fixed")?n(i).offset().top:n(i).offset().top-t)-(a+t);n("html, body").animate({scrollTop:r},600),window.location.hash=i}),window.location.hash&&n(".op-sticky-nav").length){var o=window.location.hash,l=(n(".op-sticky-nav").hasClass("fixed")?n(o).offset().top:n(o).offset().top-t)-(a+t);n("html, body").scrollTop(l)}n(window).on("scroll",function(){if(n(".op-sticky-nav").length&&0===n(".op-sticky-nav").offset().top&&window.location.hash){var e=window.location.hash,i=(n(".op-sticky-nav").hasClass("fixed")?n(e).offset().top:n(e).offset().top-t)-(a+t);n("html, body").scrollTop(i)}})})},2641:function(){function e(e,i){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,i){if(e){if("string"==typeof e)return t(e,i);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,i):void 0}}(e))||i&&e&&"number"==typeof e.length){n&&(e=n);var r=0,s=function(){};return{s:s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}SV=window.SV||{},SV.HoverIntent=function(t,i){var n,r,s,a,o,l,c,u={exitDelay:400,interval:100,sensitivity:7},d={},h=function(e){n=e.pageX,r=e.pageY},p=function(t){var i=s-n,u=a-r;if(Math.sqrt(i*i+u*u)<d.sensitivity){clearTimeout(c);var h,f=e(o);try{for(f.s();!(h=f.n()).done;){var m=h.value;m.isActive&&(d.onExit(m),m.isActive=!1)}}catch(e){f.e(e)}finally{f.f()}d.onEnter(t),t.isActive=!0}else s=n,a=r,l=setTimeout(function(){p(t)},d.interval)};!function(t,i){if(!i||!i.onEnter||!i.onExit)throw"onEnter and onExit callbacks must be provided";d=function(e,t){for(var i in t)e[i]=t[i];return e}(u,i);var n,r=e(o=t);try{var f=function(){var e=n.value;e.isActive=!1,e.addEventListener("mousemove",h),e.addEventListener("mouseenter",function(t){s=t.pageX,a=t.pageY,e.isActive?clearTimeout(c):l=setTimeout(function(){p(e)},d.interval)}),e.addEventListener("mouseleave",function(t){clearTimeout(l),e.isActive&&(c=setTimeout(function(){d.onExit(e),e.isActive=!1},d.exitDelay))})};for(r.s();!(n=r.n()).done;)f()}catch(e){r.e(e)}finally{r.f()}}(t,i)}},6273:function(e,t,i){var n=i(4796);n(document).ready(function(){n("p,h1,h2,h3,h4,h5,h6,td,th,.screenReader").attr("tabindex","0"),n(".falseScreenReader").attr("tabindex","-1"),n(".op-accordion h3").removeAttr("tabindex")}),document.querySelectorAll(".fullWidthComponent").forEach(function(e){e.closest(".container.op-section-container")&&e.closest(".container.op-section-container").classList.add("fullWidthContainer")})},2926:function(e,t,i){var n=i(4796);n(window).on("load resize",function(){tableHeading=n(".table_wrapper .custom_table thead th"),tableRow=n(".table_wrapper .custom_table tbody tr");var e=[];tableHeading.each(function(){e.push(n(this).text())}),768>n(window).width()&&tableRow.each(function(){n(this).find("td").each(function(t){n(this).attr("data-label",e[t++])})})})},1318:function(e,t,i){var n=i(4796);document.addEventListener("DOMContentLoaded",function(){n(".tooltip-text").attr("tabindex",0),n(".tooltip-text").on("mouseover focusin",function(){var e,t;if(!n(this).find(".tooltip-content").length){var i=n(this),r=n('<div class="tooltip-content">
2'+n(this).data("content").description+"</div>");i.append(r),r.css({visibility:"visible",opacity:1});var s=null===(e=r[0])||void 0===e?void 0:e.getBoundingClientRect();s.left<0?r.addClass("tooltip-right"):s.right>document.documentElement.clientWidth&&r.addClass("tooltip-left"),(s.y<20||screen.width<=768)&&r.addClass("tooltip-bottom"),(s=null===(t=r[0])||void 0===t?void 0:t.getBoundingClientRect()).left+s.width>screen.width&&(s.width<screen.width?r.css({left:-(s.left+s.width-screen.width)+"px"}):r.css({width:screen.width-s.left+"px"})),s.right-s.width<0&&(s.width<screen.width?r.css({right:s.right-s.width+"px"}):r.css({right:0,width:s.right+"px"}))}}),n(".tooltip-text").on("mouseout focusout",function(){var e=n(this).find(".tooltip-content");e.css({visibility:"hidden",opacity:0}),setTimeout(function(){e.remove()},300)})})},7244:function(e,t,i){var n=i(4796),r=function(e){return e.parent().data("videoname")},s=function(e){var t=e.target.currentTime,i=r(n(this)),s=n(this).parent().find(".vjs-chapters-button .vjs-menu-item.vjs-selected"),a=s.length>0?s.children(".vjs-menu-item-text")[0].innerText:"";t>=2&&!videoAnalytics[i].videoViewed&&(videoAnalytics[i].videoViewed=!0,u({event:"video view",video:{name:i,timestamp:Math.floor(t),chapterName:a}}));var o=t/e.target.duration;o>=.9&&!videoAnalytics[i].event90?(videoAnalytics[i].event90=!0,u({event:"video90",video:{name:i,timestamp:Math.floor(t),chapterName:a}})):o>=.75&&!videoAnalytics[i].event75?(videoAnalytics[i].event75=!0,u({event:"video75",video:{name:i,timestamp:Math.floor(t),chapterName:a}})):o>=.5&&!videoAnalytics[i].event50?(videoAnalytics[i].event50=!0,u({event:"video50",video:{name:i,timestamp:Math.floor(t),chapterName:a}})):o>=.25&&!videoAnalytics[i].event25?(videoAnalytics[i].event25=!0,u({event:"video25",video:{name:i,timestamp:Math.floor(t),chapterName:a}})):o>=.1&&!videoAnalytics[i].event10&&(videoAnalytics[i].event10=!0,u({event:"video10",video:{name:i,timestamp:Math.floor(t),chapterName:a}}))},a=function(e){var t=r(n(this));e.target.currentTime/e.target.duration<.999&&(videoAnalytics[t].status="paused",u({event:"video pause",video:{name:t,timestamp:Math.floor(e.target.currentTime)}}))},o=function(e){var t=r(n(this));videoAnalytics[t].videoViewed=!1,u({event:"video replay",video:{name:t,timestamp:Math.floor(e.target.currentTime)}}),n(this).unbind(e.type,o)},l=function(e){var t=r(n(this));videoAnalytics[t].status="completed",u({event:"video complete",video:{name:t,timestamp:Math.floor(e.target.currentTime)}}),n(this).on("play",o)},c=function(e){var t=r(n(this)),i=videoAnalytics[t].muted;i||!e.target.muted&&0!==e.target.volume?i&&!e.target.muted&&0!==e.target.volume&&(videoAnalytics[t].muted=!1,u({event:"video unmuted",video:{name:t,timestamp:Math.floor(e.target.currentTime)}})):(videoAnalytics[t].muted=!0,u({event:"video muted",video:{name:t,timestamp:Math.floor(e.target.currentTime)}}))},u=function(e){(window.adobeDataLayer||[]).push(e)},d=function(e){var t=document.fullscreenElement;if(t&&t.classList.contains("video-js")){var i=n(t).children("video"),s=r(i);u({event:"video fullscreen",video:{name:s,timestamp:Math.floor(i[0].currentTime)}})}},h=function(e){var t=r(n(this));videoAnalytics[t].status="playing"};n(document).ready(function(){window.videoAnalytics={},n(".video-js").each(function(){var e=n(this);n(this).children(".vjs-tech").each(function(){var t=n(this),i=r(t);if(i){videoAnalytics[i]={videoViewed:!1,muted:!1,status:null,event10:!1,event25:!1,event50:!1,event75:!1,event90:!1,player:t},t.on("play",h),t.on("timeupdate",s),t.on("ended",l),t.on("pause",a),t.on("volumechange",c);var o=t[0];e.parent().find(".op-video__link").each(function(){this.addEventListener("click",function(e){!function(e,t){e.preventDefault();var i=e.currentTarget.getAttribute("href"),s=r(n(t));u({event:"video link clicked",video:{name:s,timestamp:Math.floor(t.currentTime||0)}}),setTimeout(function(){window.location.href=i},200)}(e,o)})})}})}),document.addEventListener("fullscreenchange",d),document.addEventListener("webkitfullscreenchange",d),document.addEventListener("mozfullscreenchange",d)})},7274:function(e,t,i){var n=i(4796);n(document).ready(function(){n(document).on("click",".playButton",function(e){e.preventDefault();var t,i=n(this),r=i.attr("data-video"),s=i.attr("data-target");try{var a=new URL(r,window.location.href);if("https:"!==a.protocol&&"http:"!==a.protocol)return;t=a.href}catch(e){return}var o=s.replace(/[^a-zA-Z0-9_-]/g,"");o&&(i.next().addClass("blockPanel"),n("."+o).attr("src",t))})})},1097:function(e,t,i){var n=i(4796),r=i(3448).A;
2function s(e){var t=e.querySelector('source[type="application/dash+xml"]'),i=e.querySelector('source[type="application/x-mpegURL"]');if(t&&i){var n,r=(n="undefined"!=typeof navigator&&navigator.userAgent||"",console.log("ua",n),!!/safari/i.test(n)&&!/chromium|edg|opr|chrome|crios|fxios|silk|duckduckgo/i.test(n));t.remove(),i.remove(),r?(e.appendChild(i),e.appendChild(t)):(e.appendChild(t),e.appendChild(i))}}r.addLanguage("fr",n.extend(i(6175),{Quality:"Qualité"})),i(7804),i(0),n(".video-js").each(function(e,t){s(t);var i=r(t,{playbackRates:[1,1.25,1.5,2]}),n=i.qualityLevels(),a=[];n.on("addqualitylevel",function(e){var t=e.qualityLevel;console.log(t),a.push(t),3==a.length&&(a.sort(function(e,t){return e.bitrate-t.bitrate}),a[0].label="SD",a[0].height=360,a[0].width=640,a[0].enabled=!0,a[1].label="720P",a[1].height=720,a[1].width=1280,a[1].enabled=!0,a[2].label="HD",a[2].height=1080,a[2].width=1920,a[2].enabled=!0)}),i.hlsQualitySelector()}),n(document).ready(function(){n(".op-video, .videoIframePanel").each(function(){var e=n(this),t=e.find(".op-video__chapters");if(t){chapterEl=t.children(".chapters-track");var i=chapterEl.data("chapters");if(i){i=(i=i.replace(/\{|}/gm,"")).split(", ");var r=[];i.forEach(function(e){chapter=e.split("="),r.push({time:chapter[0],text:chapter[1]})});var s=e.find(".vjs-tech");s.each(function(){var e=n(this);n(this).on("loadedmetadata",function(t){for(var i=t.target.duration,a=!1,o=n(this).parent().find(".vjs-progress-holder"),l=0;l<r.length;l++){var c=r[l].time.split(":"),u=c[c.length-1].split(".");parseFloat(c[0])>0&&(a=!0);var d=60*parseFloat(c[0])*60+60*parseFloat(c[1])+parseFloat(u[0]);u.length>1&&(d+=parseFloat(u[1])/1e3);var h=n('<div class="vjs-marker" style="left:'+(d/i*100+"%")+'" data-time="'+d+'"><span>'+r[l].text+"</span></div>");h.click(function(){s[0].currentTime=n(this).data("time")}),o.append(h)}n(this).parent().find(".vjs-chapters-button.vjs-control").find(".vjs-menu-item").each(function(e){var t,i=r[e].time.split(":");t=a?i[0]+":"+i[1]+":"+i[2].split(".")[0]:i[1]+":"+i[2].split(".")[0],n(this).html('<span class="vjs-menu-item-timestamp">'+t+" </span>"+n(this).html())}),n(this).parent().find(".vjs-progress-control .vjs-progress-holder .vjs-marker").each(function(){n(this).on("click",function(){(window.adobeDataLayer||[]).push({event:"video chapter",video:{name:e.parent().data("videoname"),timestamp:t.target.currentTime,chapterName:n(this).children("span")[0].innerText}})})}),n(this).parent().find(".vjs-chapters-button .vjs-menu-item").each(function(){n(this).on("click",function(){(window.adobeDataLayer||[]).push({event:"video chapter",video:{name:e.parent().data("videoname"),timestamp:t.target.currentTime,chapterName:n(this).children(".vjs-menu-item-text")[0].innerText}})})})})})}}}),n(".op-video, .videoImagePanel.customVideoPanel").each(function(){var e=n(this),t=e.find(".op-video__link");if(t.length){var i=e.find(".video-js");t.appendTo(i),e.find(".vjs-tech").on("timeupdate",function(){var e=this.currentTime;t.each(function(){var t=n(this),i=parseFloat(t.data("start")),r=parseFloat(t.data("end"));!isNaN(i)&&!isNaN(r)&&e>=i&&e<=r?t.fadeIn(300):t.fadeOut(300)})})}}),n(".vjs-tech").each(function(){n(this).on("play",function(e){var t=n(e.target).parent().parent();t.hasClass("video-started")||t.addClass("video-started")})}),document.addEventListener("fullscreenchange",a),document.addEventListener("webkitfullscreenchange",a),document.addEventListener("mozfullscreenchange",a)});var a=function(e){var t=document.fullscreenElement;if(t&&t.classList.contains("video-js")){var i=n(e.target).parent();i.addClass("video_fullscreen"),i.removeClass("video-default")}else{n(".video-js").each(function(){var e=n(this).parent();e.removeClass("video_fullscreen"),e.hasClass("video-default")||e.addClass("video-default")})}}},2754:function(e,t,i){!function(e,t,i){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),s=n(i);function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},l.apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var d="transitionend",h=1e6,p=1e3;function f(e){return null==e?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function m(){return{bindType:d,delegateType:d,handle:function(e){if(r.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function g(e){var t=this,i=!1;return r.default(this).one(y.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||y.triggerTransitionEnd(t)},e),this}function v(){r.default.fn.emulateTransitionEnd=g,r.default.event.special[y.TRANSITION_END]=m()}var y={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(Math.random()*h)}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var i=e.getAttribute("href");t=i&&"#"!==i?i.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=r.default(e).css("transition-duration"),i=r.default(e).css("transition-delay"),n=parseFloat(t),s=parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],(parseFloat(t)+parseFloat(i))*p):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){r.default(e).trigger(d)},supportsTransitionEnd:function(){return Boolean(d)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var r=i[n],s=t[n],a=s&&y.isElement(s)?"element":f(s);if(!new RegExp(r).test(a))throw new Error(e.toUpperCase()+': Option "'+n+'" provided type "'+a+'" but expected type "'+r+'".')}},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?y.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=r.default.fn.jquery.split(" ")[0].split("."),t=1,i=2,n=9,s=1,a=4;if(e[0]<i&&e[1]<n||e[0]===t&&e[1]===n&&e[2]<s||e[0]>=a)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};y.jQueryDetection(),v();var b="alert",_="4.6.2",T="bs.alert",x="."+T,w=".data-api",S=r.default.fn[b],k="alert",E="fade",C="show",A="
2close"+x,L="closed"+x,I="click"+x+w,P='[data-dismiss="alert"]',O=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){r.default.removeData(this._element,T),this._element=null},t._getRootElement=function(e){var t=y.getSelectorFromElement(e),i=!1;return t&&(i=document.querySelector(t)),i||(i=r.default(e).closest("."+k)[0]),i},t._triggerCloseEvent=function(e){var t=r.default.Event(A);return r.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(r.default(e).removeClass(C),r.default(e).hasClass(E)){var i=y.getTransitionDurationFromElement(e);r.default(e).one(y.TRANSITION_END,function(i){return t._destroyElement(e,i)}).emulateTransitionEnd(i)}else this._destroyElement(e)},t._destroyElement=function(e){r.default(e).detach().trigger(L).remove()},e._jQueryInterface=function(t){return this.each(function(){var i=r.default(this),n=i.data(T);n||(n=new e(this),i.data(T,n)),"close"===t&&n[t](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},o(e,null,[{key:"VERSION",get:function(){return _}}]),e}();r.default(document).on(I,P,O._handleDismiss(new O)),r.default.fn[b]=O._jQueryInterface,r.default.fn[b].Constructor=O,r.default.fn[b].noConflict=function(){return r.default.fn[b]=S,O._jQueryInterface};var D="button",M="4.6.2",N="bs.button",R="."+N,B=".data-api",F=r.default.fn[D],U="active",j="btn",H="focus",q="click"+R+B,z="focus"+R+B+" blur"+R+B,W="load"+R+B,V='[data-toggle^="button"]',X='[data-toggle="buttons"]',G='[data-toggle="button"]',$='[data-toggle="buttons"] .btn',Y='input:not([type="hidden"])',K=".active",Q=".btn",Z=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,i=r.default(this._element).closest(X)[0];if(i){var n=this._element.querySelector(Y);if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains(U))e=!1;else{var s=i.querySelector(K);s&&r.default(s).removeClass(U)}e&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains(U)),this.shouldAvoidTriggerChange||r.default(n).trigger("change")),n.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(U)),e&&r.default(this._element).toggleClass(U))},t.dispose=function(){r.default.removeData(this._element,N),this._element=null},e._jQueryInterface=function(t,i){return this.each(function(){var n=r.default(this),s=n.data(N);s||(s=new e(this),n.data(N,s)),s.shouldAvoidTriggerChange=i,"toggle"===t&&s[t]()})},o(e,null,[{key:"VERSION",get:function(){return M}}]),e}();r.default(document).on(q,V,function(e){var t=e.target,i=t;if(r.default(t).hasClass(j)||(t=r.default(t).closest(Q)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var n=t.querySelector(Y);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==i.tagName&&"LABEL"===t.tagName||Z._jQueryInterface.call(r.default(t),"toggle","INPUT"===i.tagName)}}).on(z,V,function(e){var t=r.default(e.target).closest(Q)[0];r.default(t).toggleClass(H,/^focus(in)?$/.test(e.type))}),r.default(window).on(W,function(){for(var e=[].slice.call(document.querySelectorAll($)),t=0,i=e.length;t<i;t++){var n=e[t],r=n.querySelector(Y);r.checked||r.hasAttribute("checked")?n.classList.add(U):n.classList.remove(U)}for(var s=0,a=(e=[].slice.call(document.querySelectorAll(G))).length;s<a;s++){var o=e[s];"true"===o.getAttribute("aria-pressed")?o.classList.add(U):o.classList.remove(U)}}),r.default.fn[D]=Z._jQueryInterface,r.default.fn[D].Constructor=Z,r.default.fn[D].noConflict=function(){return r.default.fn[D]=F,Z._jQueryInterface};var J="carousel",ee="4.6.2",te="bs.carousel",ie="."+te,ne=".data-api",re=r.default.fn[J],se=37,ae=39,oe=500,le=40,ce="carousel",ue="active",de="slide",he="carousel-item-right",pe="carousel-item-left",fe="carousel-item-next",me="carousel-item-prev",ge="pointer-event",ve="next",ye="prev",be="left",_e="right",Te="slide"+ie,xe="slid"+ie,we="keydown"+ie,Se="mouseenter"+ie,ke="mouseleave"+ie,Ee="touchstart"+ie,Ce="touchmove"+ie,Ae="touchend"+ie,Le="pointerdown"+ie,Ie="pointerup"+ie,Pe="dragstart"+ie,Oe="load"+ie+ne,De="click"+ie+ne,Me=".active",Ne=".active.carousel-item",Re=".carousel-item",Be=".carousel-item img",Fe=".carousel-item-next, .carousel-item-prev",Ue=".carousel-indicators",je="[data-sli
2de], [data-slide-to]",He='[data-ride="carousel"]',qe={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ze={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},We={TOUCH:"touch",PEN:"pen"},Ve=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(Ue),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(ve)},t.nextWhenVisible=function(){var e=r.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(ye)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Fe)&&(y.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(Ne);var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)r.default(this._element).one(xe,function(){return t.to(e)});else{if(i===e)return this.pause(),void this.cycle();var n=e>i?ve:ye;this._slide(n,this._items[e])}},t.dispose=function(){r.default(this._element).off(ie),r.default.removeData(this._element,te),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=l({},qe,e),y.typeCheckConfig(J,e,ze),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=le)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&r.default(this._element).on(we,function(t){return e._keydown(t)}),"hover"===this._config.pause&&r.default(this._element).on(Se,function(t){return e.pause(t)}).on(ke,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){e.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-e.touchStartX},n=function(t){e._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},oe+e._config.interval))};r.default(this._element.querySelectorAll(Be)).on(Pe,function(e){return e.preventDefault()}),this._pointerEvent?(r.default(this._element).on(Le,function(e){return t(e)}),r.default(this._element).on(Ie,function(e){return n(e)}),this._element.classList.add(ge)):(r.default(this._element).on(Ee,function(e){return t(e)}),r.default(this._element).on(Ce,function(e){return i(e)}),r.default(this._element).on(Ae,function(e){return n(e)}))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case se:e.preventDefault(),this.prev();break;case ae:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Re)):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var i=e===ve,n=e===ye,r=this._getItemIndex(t),s=this._items.length-1;if((n&&0===r||i&&r===s)&&!this._config.wrap)return t;var a=(r+(e===ye?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},t._triggerSlideEvent=function(e,t){var i=this._getItemIndex(e),n=this._getItemIndex(this._element.querySelector(Ne)),s=r.default.Event(Te,{relatedTarget:e,direction:t,from:n,to:i});return r.default(this._element).trigger(s),s},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(Me));r.default(t).removeClass(ue);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&r.default(i).addClass(ue)}},t._updateInterval=function(){var e=this._activeElement||this._element.querySelector(Ne);if(e){var t=parseInt(e.getAttribute("data-interval"),10);
2t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}},t._slide=function(e,t){var i,n,s,a=this,o=this._element.querySelector(Ne),l=this._getItemIndex(o),c=t||o&&this._getItemByDirection(e,o),u=this._getItemIndex(c),d=Boolean(this._interval);if(e===ve?(i=pe,n=fe,s=be):(i=he,n=me,s=_e),c&&r.default(c).hasClass(ue))this._isSliding=!1;else if(!this._triggerSlideEvent(c,s).isDefaultPrevented()&&o&&c){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var h=r.default.Event(xe,{relatedTarget:c,direction:s,from:l,to:u});if(r.default(this._element).hasClass(de)){r.default(c).addClass(n),y.reflow(c),r.default(o).addClass(i),r.default(c).addClass(i);var p=y.getTransitionDurationFromElement(o);r.default(o).one(y.TRANSITION_END,function(){r.default(c).removeClass(i+" "+n).addClass(ue),r.default(o).removeClass(ue+" "+n+" "+i),a._isSliding=!1,setTimeout(function(){return r.default(a._element).trigger(h)},0)}).emulateTransitionEnd(p)}else r.default(o).removeClass(ue),r.default(c).addClass(ue),this._isSliding=!1,r.default(this._element).trigger(h);d&&this.cycle()}},e._jQueryInterface=function(t){return this.each(function(){var i=r.default(this).data(te),n=l({},qe,r.default(this).data());"object"==typeof t&&(n=l({},n,t));var s="string"==typeof t?t:n.slide;if(i||(i=new e(this,n),r.default(this).data(te,i)),"number"==typeof t)i.to(t);else if("string"==typeof s){if(void 0===i[s])throw new TypeError('No method named "'+s+'"');i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())})},e._dataApiClickHandler=function(t){var i=y.getSelectorFromElement(this);if(i){var n=r.default(i)[0];if(n&&r.default(n).hasClass(ce)){var s=l({},r.default(n).data(),r.default(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),e._jQueryInterface.call(r.default(n),s),a&&r.default(n).data(te).to(a),t.preventDefault()}}},o(e,null,[{key:"VERSION",get:function(){return ee}},{key:"Default",get:function(){return qe}}]),e}();r.default(document).on(De,je,Ve._dataApiClickHandler),r.default(window).on(Oe,function(){for(var e=[].slice.call(document.querySelectorAll(He)),t=0,i=e.length;t<i;t++){var n=r.default(e[t]);Ve._jQueryInterface.call(n,n.data())}}),r.default.fn[J]=Ve._jQueryInterface,r.default.fn[J].Constructor=Ve,r.default.fn[J].noConflict=function(){return r.default.fn[J]=re,Ve._jQueryInterface};var Xe="collapse",Ge="4.6.2",$e="bs.collapse",Ye="."+$e,Ke=".data-api",Qe=r.default.fn[Xe],Ze="show",Je="collapse",et="collapsing",tt="collapsed",it="width",nt="height",rt="show"+Ye,st="shown"+Ye,at="hide"+Ye,ot="hidden"+Ye,lt="click"+Ye+Ke,ct=".show, .collapsing",ut='[data-toggle="collapse"]',dt={toggle:!0,parent:""},ht={toggle:"boolean",parent:"(string|element)"},pt=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(ut)),n=0,r=i.length;n<r;n++){var s=i[n],a=y.getSelectorFromElement(s),o=[].slice.call(document.querySelectorAll(a)).filter(function(t){return t===e});null!==a&&o.length>0&&(this._selector=a,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){r.default(this._element).hasClass(Ze)?this.hide():this.show()},t.show=function(){var t,i,n=this;if(!(this._isTransitioning||r.default(this._element).hasClass(Ze)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(ct)).filter(function(e){return"string"==typeof n._config.parent?e.getAttribute("data-parent")===n._config.parent:e.classList.contains(Je)})).length&&(t=null),t&&(i=r.default(t).not(this._selector).data($e))&&i._isTransitioning))){var s=r.default.Event(rt);if(r.default(this._element).trigger(s),!s.isDefaultPrevented()){t&&(e._jQueryInterface.call(r.default(t).not(this._selector),"hide"),i||r.default(t).data($e,null));var a=this._getDimension();r.default(this._element).removeClass(Je).addClass(et),this._element.style[a]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass(tt).attr("aria-expanded",!0),this.setTransitioning(!0);var o=function(){r.default(n._element).removeClass(et).addClass(Je+" "+Ze),n._element.style[a]="",n.setTransitioning(!1),r.default(n._element).trigger(st)},l="scroll"+(a[0].toUpperCase()+a.slice(1)),c=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,o).emulateTransitionEnd(c),this._element.style[a]=this._element[l]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&r.default(this._element).hasClass(Ze)){var t=r.default.Event(at);if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",y.reflow(this._element),r.default(this._element).addClass(et).removeClass(Je+" "+Ze);var n=this._triggerArray.length;if(n>0)for(var s=0;s<n;s++){var a=this._triggerArray[s],o=y.getSelectorFromElement(a);
2null!==o&&(r.default([].slice.call(document.querySelectorAll(o))).hasClass(Ze)||r.default(a).addClass(tt).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){e.setTransitioning(!1),r.default(e._element).removeClass(et).addClass(Je).trigger(ot)};this._element.style[i]="";var c=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,l).emulateTransitionEnd(c)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){r.default.removeData(this._element,$e),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=l({},dt,e)).toggle=Boolean(e.toggle),y.typeCheckConfig(Xe,e,ht),e},t._getDimension=function(){return r.default(this._element).hasClass(it)?it:nt},t._getParent=function(){var t,i=this;y.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(t.querySelectorAll(n));return r.default(s).each(function(t,n){i._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])}),t},t._addAriaAndCollapsedClass=function(e,t){var i=r.default(e).hasClass(Ze);t.length&&r.default(t).toggleClass(tt,!i).attr("aria-expanded",i)},e._getTargetFromElement=function(e){var t=y.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each(function(){var i=r.default(this),n=i.data($e),s=l({},dt,i.data(),"object"==typeof t&&t?t:{});if(!n&&s.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(s.toggle=!1),n||(n=new e(this,s),i.data($e,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},o(e,null,[{key:"VERSION",get:function(){return Ge}},{key:"Default",get:function(){return dt}}]),e}();r.default(document).on(lt,ut,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=r.default(this),i=y.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(i));r.default(n).each(function(){var e=r.default(this),i=e.data($e)?"toggle":t.data();pt._jQueryInterface.call(e,i)})}),r.default.fn[Xe]=pt._jQueryInterface,r.default.fn[Xe].Constructor=pt,r.default.fn[Xe].noConflict=function(){return r.default.fn[Xe]=Qe,pt._jQueryInterface};var ft="dropdown",mt="4.6.2",gt="bs.dropdown",vt="."+gt,yt=".data-api",bt=r.default.fn[ft],_t=27,Tt=32,xt=9,wt=38,St=40,kt=3,Et=new RegExp(wt+"|"+St+"|"+_t),Ct="disabled",At="show",Lt="dropup",It="dropright",Pt="dropleft",Ot="dropdown-menu-right",Dt="position-static",Mt="hide"+vt,Nt="hidden"+vt,Rt="show"+vt,Bt="shown"+vt,Ft="click"+vt,Ut="click"+vt+yt,jt="keydown"+vt+yt,Ht="keyup"+vt+yt,qt='[data-toggle="dropdown"]',zt=".dropdown form",Wt=".dropdown-menu",Vt=".navbar-nav",Xt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Gt="top-start",$t="top-end",Yt="bottom-start",Kt="bottom-end",Qt="right-start",Zt="left-start",Jt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},ei={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},ti=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(Ct)){var t=r.default(this._menu).hasClass(At);e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||r.default(this._element).hasClass(Ct)||r.default(this._menu).hasClass(At))){var i={relatedTarget:this._element},n=r.default.Event(Rt,i),a=e._getParentFromElement(this._element);if(r.default(a).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===s.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var o=this._element;"parent"===this._config.reference?o=a:y.isElement(this._config.reference)&&(o=this._config.reference,void 0!==this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boun
2dary&&r.default(a).addClass(Dt),this._popper=new s.default(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(a).closest(Vt).length&&r.default(document.body).children().on("mouseover",null,r.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r.default(this._menu).toggleClass(At),r.default(a).toggleClass(At).trigger(r.default.Event(Bt,i))}}},t.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(Ct)&&r.default(this._menu).hasClass(At)){var t={relatedTarget:this._element},i=r.default.Event(Mt,t),n=e._getParentFromElement(this._element);r.default(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass(At),r.default(n).toggleClass(At).trigger(r.default.Event(Nt,t)))}},t.dispose=function(){r.default.removeData(this._element,gt),r.default(this._element).off(vt),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;r.default(this._element).on(Ft,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(e){return e=l({},this.constructor.Default,r.default(this._element).data(),e),y.typeCheckConfig(ft,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Wt))}return this._menu},t._getPlacement=function(){var e=r.default(this._element.parentNode),t=Yt;return e.hasClass(Lt)?t=r.default(this._menu).hasClass(Ot)?$t:Gt:e.hasClass(It)?t=Qt:e.hasClass(Pt)?t=Zt:r.default(this._menu).hasClass(Ot)&&(t=Kt),t},t._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each(function(){var i=r.default(this).data(gt);if(i||(i=new e(this,"object"==typeof t?t:null),r.default(this).data(gt,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},e._clearMenus=function(t){if(!t||t.which!==kt&&("keyup"!==t.type||t.which===xt))for(var i=[].slice.call(document.querySelectorAll(qt)),n=0,s=i.length;n<s;n++){var a=e._getParentFromElement(i[n]),o=r.default(i[n]).data(gt),l={relatedTarget:i[n]};if(t&&"click"===t.type&&(l.clickEvent=t),o){var c=o._menu;if(r.default(a).hasClass(At)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&t.which===xt)&&r.default.contains(a,t.target))){var u=r.default.Event(Mt,l);r.default(a).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),i[n].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),r.default(c).removeClass(At),r.default(a).removeClass(At).trigger(r.default.Event(Nt,l)))}}}},e._getParentFromElement=function(e){var t,i=y.getSelectorFromElement(e);return i&&(t=document.querySelector(i)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if(!(/input|textarea/i.test(t.target.tagName)?t.which===Tt||t.which!==_t&&(t.which!==St&&t.which!==wt||r.default(t.target).closest(Wt).length):!Et.test(t.which))&&!this.disabled&&!r.default(this).hasClass(Ct)){var i=e._getParentFromElement(this),n=r.default(i).hasClass(At);if(n||t.which!==_t){if(t.preventDefault(),t.stopPropagation(),!n||t.which===_t||t.which===Tt)return t.which===_t&&r.default(i.querySelector(qt)).trigger("focus"),void r.default(this).trigger("click");var s=[].slice.call(i.querySelectorAll(Xt)).filter(function(e){return r.default(e).is(":visible")});if(0!==s.length){var a=s.indexOf(t.target);t.which===wt&&a>0&&a--,t.which===St&&a<s.length-1&&a++,a<0&&(a=0),s[a].focus()}}}},o(e,null,[{key:"VERSION",get:function(){return mt}},{key:"Default",get:function(){return Jt}},{key:"DefaultType",get:function(){return ei}}]),e}();r.default(document).on(jt,qt,ti._dataApiKeydownHandler).on(jt,Wt,ti._dataApiKeydownHandler).on(Ut+" "+Ht,ti._clearMenus).on(Ut,qt,function(e){e.preventDefault(),e.stopPropagation(),ti._jQueryInterface.call(r.default(this),"toggle")}).on(Ut,zt,function(e){e.stopPropagation()}),r.default.fn[ft]=ti._jQueryInterface,r.default.fn[ft].Constructor=ti,r.default.fn[ft].noConflict=function(){return r.default.fn[ft]=bt,ti._jQueryInterface};var ii="modal",ni="4.6.2",ri="bs.modal",si="."+ri,ai=".data-api",oi=r.default.fn[ii],li=27,ci="modal-dialog-scrollable",ui="modal-scrollbar-measure",di="modal-backdrop",hi="modal-open",pi="fade",fi="show",mi="modal-static",gi="hide"+si,vi="hidePrevented"+si,yi="hidden"+si,bi="show"+si,_i="shown"+si,Ti="focusin"+si,xi="resize"+si,wi="click.dismiss"+si,Si="keydown.dismiss"+si,ki="mouseup.dismiss"+si,Ei="mousedown.dismiss"+si,Ci="click"+si+ai,Ai=".modal
2-dialog",Li=".modal-body",Ii='[data-toggle="modal"]',Pi='[data-dismiss="modal"]',Oi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Di=".sticky-top",Mi={backdrop:!0,keyboard:!0,focus:!0,show:!0},Ni={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Ri=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(Ai),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){var i=r.default.Event(bi,{relatedTarget:e});r.default(this._element).trigger(i),i.isDefaultPrevented()||(this._isShown=!0,r.default(this._element).hasClass(pi)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on(wi,Pi,function(e){return t.hide(e)}),r.default(this._dialog).on(Ei,function(){r.default(t._element).one(ki,function(e){r.default(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var i=r.default.Event(gi);if(r.default(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=r.default(this._element).hasClass(pi);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off(Ti),r.default(this._element).removeClass(fi),r.default(this._element).off(wi),r.default(this._dialog).off(Ei),n){var s=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(s)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return r.default(e).off(si)}),r.default(document).off(Ti),r.default.removeData(this._element,ri),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=l({},Mi,e),y.typeCheckConfig(ii,e,Ni),e},t._triggerBackdropTransition=function(){var e=this,t=r.default.Event(vi);if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){var i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add(mi);var n=y.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(y.TRANSITION_END),r.default(this._element).one(y.TRANSITION_END,function(){e._element.classList.remove(mi),i||r.default(e._element).one(y.TRANSITION_END,function(){e._element.style.overflowY=""}).emulateTransitionEnd(e._element,n)}).emulateTransitionEnd(n),this._element.focus()}},t._showElement=function(e){var t=this,i=r.default(this._element).hasClass(pi),n=this._dialog?this._dialog.querySelector(Li):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass(ci)&&n?n.scrollTop=0:this._element.scrollTop=0,i&&y.reflow(this._element),r.default(this._element).addClass(fi),this._config.focus&&this._enforceFocus();var s=r.default.Event(_i,{relatedTarget:e}),a=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,r.default(t._element).trigger(s)};if(i){var o=y.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(y.TRANSITION_END,a).emulateTransitionEnd(o)}else a()},t._enforceFocus=function(){var e=this;r.default(document).off(Ti).on(Ti,function(t){document!==t.target&&e._element!==t.target&&0===r.default(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown?r.default(this._element).on(Si,function(t){e._config.keyboard&&t.which===li?(t.preventDefault(),e.hide()):e._config.keyboard||t.which!==li||e._triggerBackdropTransition()}):this._isShown||r.default(this._element).off(Si)},t._setResizeEvent=function(){var e=this;this._isShown?r.default(window).on(xi,function(t){return e.handleUpdate(t)}):r.default(window).off(xi)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){r.default(document.body).removeClass(hi),e._resetAdjustments(),e._resetScrollbar(),r.default(e._element).trigger(yi)})},t._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,i=r.default(this._element).hasClass(pi)?pi:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=di,i&&this._backdrop.classList.add(i),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on(wi,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())}),i&&y.reflow(this._backdrop),r.default(this._backdrop).addClass(fi),!e)return;if(!i)return void e();var n=y.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(y.TRANSITION_END,e).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass(fi);var s=function(){t._removeBackdrop(),e&&e()};if(r.default(this._element).hasClass(pi)){var a=y.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(y.TRANSITION_END,s).emulateTransitionEnd(a)}else s()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(Oi)),i=[].slice.call(document.querySelectorAll(Di));r.default(t).each(function(t,i){var n=i.style.paddingRight,s=r.default(i).css("padding-right");r.default(i).data("padding-right",n).css("padding-right",parseFloat(s)+e._scrollbarWidth+"px")}),r.default(i).each(function(t,i){var n=i.style.marginRight,s=r.default(i).css("margin-right");r.default(i).data("margin-right",n).css("margin-right",parseFloat(s)-e._scrollbarWidth+"px")});var n=document.body.style.paddingRight,s=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",n).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}r.default(document.body).addClass(hi)},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(Oi));r.default(e).each(function(e,t){var i=r.default(t).data("padding-right");r.default(t).removeData("padding-right"),t.style.paddingRight=i||""});var t=[].slice.call(document.querySelectorAll(""+Di));r.default(t).each(function(e,t){var i=r.default(t).data("margin-right");void 0!==i&&r.default(t).css("margin-right",i).removeData("margin-right")});var i=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className=ui,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,i){return this.each(function(){var n=r.default(this).data(ri),s=l({},Mi,r.default(this).data(),"object"==typeof t&&t?t:{});if(n||(n=new e(this,s),r.default(this).data(ri,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method n
2amed "'+t+'"');n[t](i)}else s.show&&n.show(i)})},o(e,null,[{key:"VERSION",get:function(){return ni}},{key:"Default",get:function(){return Mi}}]),e}();r.default(document).on(Ci,Ii,function(e){var t,i=this,n=y.getSelectorFromElement(this);n&&(t=document.querySelector(n));var s=r.default(t).data(ri)?"toggle":l({},r.default(t).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=r.default(t).one(bi,function(e){e.isDefaultPrevented()||a.one(yi,function(){r.default(i).is(":visible")&&i.focus()})});Ri._jQueryInterface.call(r.default(t),s,this)}),r.default.fn[ii]=Ri._jQueryInterface,r.default.fn[ii].Constructor=Ri,r.default.fn[ii].noConflict=function(){return r.default.fn[ii]=oi,Ri._jQueryInterface};var Bi=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Fi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ui=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ji=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Hi(e,t){var i=e.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===Bi.indexOf(i)||Boolean(Ui.test(e.nodeValue)||ji.test(e.nodeValue));for(var n=t.filter(function(e){return e instanceof RegExp}),r=0,s=n.length;r<s;r++)if(n[r].test(i))return!0;return!1}function qi(e,t,i){if(0===e.length)return e;if(i&&"function"==typeof i)return i(e);for(var n=(new window.DOMParser).parseFromString(e,"text/html"),r=Object.keys(t),s=[].slice.call(n.body.querySelectorAll("*")),a=function(e,i){var n=s[e],a=n.nodeName.toLowerCase();if(-1===r.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var o=[].slice.call(n.attributes),l=[].concat(t["*"]||[],t[a]||[]);o.forEach(function(e){Hi(e,l)||n.removeAttribute(e.nodeName)})},o=0,l=s.length;o<l;o++)a(o);return n.body.innerHTML}var zi="tooltip",Wi="4.6.2",Vi="bs.tooltip",Xi="."+Vi,Gi=r.default.fn[zi],$i="bs-tooltip",Yi=new RegExp("(^|\\s)"+$i+"\\S+","g"),Ki=["sanitize","whiteList","sanitizeFn"],Qi="fade",Zi="show",Ji="show",en="out",tn=".tooltip-inner",nn=".arrow",rn="hover",sn="focus",an="click",on="manual",ln={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},cn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Fi,popperConfig:null},un={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},dn={HIDE:"hide"+Xi,HIDDEN:"hidden"+Xi,SHOW:"show"+Xi,SHOWN:"shown"+Xi,INSERTED:"inserted"+Xi,CLICK:"click"+Xi,FOCUSIN:"focusin"+Xi,FOCUSOUT:"focusout"+Xi,MOUSEENTER:"mouseenter"+Xi,MOUSELEAVE:"mouseleave"+Xi},hn=function(){function e(e,t){if(void 0===s.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,i=r.default(e.currentTarget).data(t);
vendor: 4,367 bytes, line 2
2i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(t,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(r.default(this.getTipElement()).hasClass(Zi))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(t);var i=y.findShadowRoot(this.element),n=r.default.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var a=this.getTipElement(),o=y.getUID(this.constructor.NAME);a.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&r.default(a).addClass(Qi);var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var u=this._getContainer();r.default(a).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(a).appendTo(u),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new s.default(this.element,a,this._getPopperConfig(c)),r.default(a).addClass(Zi),r.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,r.default(e.element).trigger(e.constructor.Event.SHOWN),t===en&&e._leave(null,e)};if(r.default(this.tip).hasClass(Qi)){var h=y.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(y.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},t.hide=function(e){var t=this,i=this.getTipElement(),n=r.default.Event(this.constructor.Event.HIDE),s=function(){t._hoverState!==Ji&&i.parentNode&&i.parentNode.removeChild(i),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),r.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(r.default(this.element).trigger(n),!n.isDefaultPrevented()){if(r.default(i).removeClass(Zi),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger[an]=!1,this._activeTrigger[sn]=!1,this._activeTrigger[rn]=!1,r.default(this.tip).hasClass(Qi)){var a=y.getTransitionDurationFromElement(i);r.default(i).one(y.TRANSITION_END,s).emulateTransitionEnd(a)}else s();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass($i+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(r.default(e.querySelectorAll(tn)),this.getTitle()),r.default(e).removeClass(Qi+" "+Zi)},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=qi(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?r.default(t).parent().is(e)||e.empty().append(t):e.text(r.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:nn}
2,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:y.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},t._getAttachment=function(e){return ln[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)r.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(t!==on){var i=t===rn?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,n=t===rn?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;r.default(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(n,e.config.selector,function(t){return e._leave(t)})}}),this._hideModalHandler=function(){e.element&&e.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var i=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusin"===e.type?sn:rn]=!0),r.default(t.getTipElement()).hasClass(Zi)||t._hoverState===Ji?t._hoverState=Ji:(clearTimeout(t._timeout),t._hoverState=Ji,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Ji&&t.show()},t.config.delay.show):t.show())},t._leave=function(e,t){var i=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusout"===e.type?sn:rn]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=en,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===en&&t.hide()},t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=r.default(this.element).data();return Object.keys(t).forEach(function(e){-1!==Ki.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),y.typeCheckConfig(zi,e,this.constructor.DefaultType),e.sanitize&&(e.template=qi(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(Yi);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(r.default(e).removeClass(Qi),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each(function(){var i=r.default(this),n=i.data(Vi),s="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,s),i.data(Vi,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method n
2amed "'+t+'"');n[t]()}})},o(e,null,[{key:"VERSION",get:function(){return Wi}},{key:"Default",get:function(){return cn}},{key:"NAME",get:function(){return zi}},{key:"DATA_KEY",get:function(){return Vi}},{key:"Event",get:function(){return dn}},{key:"EVENT_KEY",get:function(){return Xi}},{key:"DefaultType",get:function(){return un}}]),e}();r.default.fn[zi]=hn._jQueryInterface,r.default.fn[zi].Constructor=hn,r.default.fn[zi].noConflict=function(){return r.default.fn[zi]=Gi,hn._jQueryInterface};var pn="popover",fn="4.6.2",mn="bs.popover",gn="."+mn,vn=r.default.fn[pn],yn="bs-popover",bn=new RegExp("(^|\\s)"+yn+"\\S+","g"),_n="fade",Tn="show",xn=".popover-header",wn=".popover-body",Sn=l({},hn.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),kn=l({},hn.DefaultType,{content:"(string|element|function)"}),En={HIDE:"hide"+gn,HIDDEN:"hidden"+gn,SHOW:"show"+gn,SHOWN:"shown"+gn,INSERTED:"inserted"+gn,CLICK:"click"+gn,FOCUSIN:"focusin"+gn,FOCUSOUT:"focusout"+gn,MOUSEENTER:"mouseenter"+gn,MOUSELEAVE:"mouseleave"+gn},Cn=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var i=t.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass(yn+"-"+e)},i.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},i.setContent=function(){var e=r.default(this.getTipElement());this.setElementContent(e.find(xn),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(wn),t),e.removeClass(_n+" "+Tn)},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(bn);null!==t&&t.length>0&&e.removeClass(t.join(""))},t._jQueryInterface=function(e){return this.each(function(){var i=r.default(this).data(mn),n="object"==typeof e?e:null;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,n),r.default(this).data(mn,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},o(t,null,[{key:"VERSION",get:function(){return fn}},{key:"Default",get:function(){return Sn}},{key:"NAME",get:function(){return pn}},{key:"DATA_KEY",get:function(){return mn}},{key:"Event",get:function(){return En}},{key:"EVENT_KEY",get:function(){return gn}},{key:"DefaultType",get:function(){return kn}}]),t}(hn);r.default.fn[pn]=Cn._jQueryInterface,r.default.fn[pn].Constructor=Cn,r.default.fn[pn].noConflict=function(){return r.default.fn[pn]=vn,Cn._jQueryInterface};var An="scrollspy",Ln="4.6.2",In="bs.scrollspy",Pn="."+In,On=".data-api",Dn=r.default.fn[An],Mn="dropdown-item",Nn="active",Rn="activate"+Pn,Bn="scroll"+Pn,Fn="load"+Pn+On,Un="offset",jn="position",Hn='[data-spy="scroll"]',qn=".nav, .list-group",zn=".nav-link",Wn=".nav-item",Vn=".list-group-item",Xn=".dropdown",Gn=".dropdown-item",$n=".dropdown-toggle",Yn={offset:10,method:"auto",target:""},Kn={offset:"number",method:"string",target:"(string|element)"},Qn=function(){function e(e,t){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+zn+","+this._config.target+" "+Vn+","+this._config.target+" "+Gn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r.default(this._scrollElement).on(Bn,function(e){return i._process(e)}),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?Un:jn,i="auto"===this._config.method?t:this._config.method,n=i===jn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,s=y.getSelectorFromElement(e);if(s&&(t=document.querySelector(s)),t){var a=t.getBoundingClientRect();if(a.width||a.height)return[r.default(t)[i]().top+n,s]}return null}
2).filter(Boolean).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){r.default.removeData(this._element,In),r.default(this._scrollElement).off(Pn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=l({},Yn,"object"==typeof e&&e?e:{})).target&&y.isElement(e.target)){var t=r.default(e.target).attr("id");t||(t=y.getUID(An),r.default(e.target).attr("id",t)),e.target="#"+t}return y.typeCheckConfig(An,e,Kn),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),i=r.default([].slice.call(document.querySelectorAll(t.join(","))));i.hasClass(Mn)?(i.closest(Xn).find($n).addClass(Nn),i.addClass(Nn)):(i.addClass(Nn),i.parents(qn).prev(zn+", "+Vn).addClass(Nn),i.parents(qn).prev(Wn).children(zn).addClass(Nn)),r.default(this._scrollElement).trigger(Rn,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(Nn)}).forEach(function(e){return e.classList.remove(Nn)})},e._jQueryInterface=function(t){return this.each(function(){var i=r.default(this).data(In);if(i||(i=new e(this,"object"==typeof t&&t),r.default(this).data(In,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},o(e,null,[{key:"VERSION",get:function(){return Ln}},{key:"Default",get:function(){return Yn}}]),e}();r.default(window).on(Fn,function(){for(var e=[].slice.call(document.querySelectorAll(Hn)),t=e.length;t--;){var i=r.default(e[t]);Qn._jQueryInterface.call(i,i.data())}}),r.default.fn[An]=Qn._jQueryInterface,r.default.fn[An].Constructor=Qn,r.default.fn[An].noConflict=function(){return r.default.fn[An]=Dn,Qn._jQueryInterface};var Zn="tab",Jn="4.6.2",er="bs.tab",tr="."+er,ir=".data-api",nr=r.default.fn[Zn],rr="dropdown-menu",sr="active",ar="disabled",or="fade",lr="show",cr="hide"+tr,ur="hidden"+tr,dr="show"+tr,hr="shown"+tr,pr="click"+tr+ir,fr=".dropdown",mr=".nav, .list-group",gr=".active",vr="> li > .active",yr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',br=".dropdown-toggle",_r="> .dropdown-menu .active",Tr=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass(sr)||r.default(this._element).hasClass(ar)||this._element.hasAttribute("disabled"))){var t,i,n=r.default(this._element).closest(mr)[0],s=y.getSelectorFromElement(this._element);if(n){var a="UL"===n.nodeName||"OL"===n.nodeName?vr:gr;i=(i=r.default.makeArray(r.default(n).find(a)))[i.length-1]}var o=r.default.Event(cr,{relatedTarget:this._element}),l=r.default.Event(dr,{relatedTarget:i});if(i&&r.default(i).trigger(o),r.default(this._element).trigger(l),!l.isDefaultPrevented()&&!o.isDefaultPrevented()){s&&(t=document.querySelector(s)),this._activate(this._element,n);var c=function(){var t=r.default.Event(ur,{relatedTarget:e._element}),n=r.default.Event(hr,{relatedTarget:i});r.default(i).trigger(t),r.default(e._element).trigger(n)};t?this._activate(t,t.parentNode,c):c()}}},t.dispose=function(){r.default.removeData(this._element,er),this._element=null},t._activate=function(e,t,i){var n=this,s=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?r.default(t).children(gr):r.default(t).find(vr))[0],a=i&&s&&r.default(s).hasClass(or),o=function(){return n._transitionComplete(e,s,i)};if(s&&a){var l=y.getTransitionDurationFromElement(s);r.default(s).removeClass(lr).one(y.TRANSITION_END,o).emulateTransitionEnd(l)}else o()},t._transitionComplete=function(e,t,i){if(t){r.default(t).removeClass(sr);var n=r.default(t.parentNode).find(_r)[0];n&&r.default(n).removeClass(sr),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}r.default(e).addClass(sr),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),y.reflow(e),e.classList.contains(or)&&e.classList.add(lr);var s=e.parentNode;if(s&&"LI"===s.nodeName&&(s=s.parentNode),s&&r.default(s).hasClass(rr)){var a=r.default(e).closest(fr)[0];if(a){var o=[].slice.call(a.querySelectorAll(br));r.default(o).addClass(sr)}e.setAttribute("aria-expanded",!0)}i&&i()},e._jQueryInterface=function(t){return this.each(function(){var i=r.default(this),n=i.data(er);
2if(n||(n=new e(this),i.data(er,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},o(e,null,[{key:"VERSION",get:function(){return Jn}}]),e}();r.default(document).on(pr,yr,function(e){e.preventDefault(),Tr._jQueryInterface.call(r.default(this),"show")}),r.default.fn[Zn]=Tr._jQueryInterface,r.default.fn[Zn].Constructor=Tr,r.default.fn[Zn].noConflict=function(){return r.default.fn[Zn]=nr,Tr._jQueryInterface};var xr="toast",wr="4.6.2",Sr="bs.toast",kr="."+Sr,Er=r.default.fn[xr],Cr="fade",Ar="hide",Lr="show",Ir="showing",Pr="click.dismiss"+kr,Or="hide"+kr,Dr="hidden"+kr,Mr="show"+kr,Nr="shown"+kr,Rr='[data-dismiss="toast"]',Br={animation:!0,autohide:!0,delay:500},Fr={animation:"boolean",autohide:"boolean",delay:"number"},Ur=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=r.default.Event(Mr);if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Cr);var i=function(){e._element.classList.remove(Ir),e._element.classList.add(Lr),r.default(e._element).trigger(Nr),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove(Ar),y.reflow(this._element),this._element.classList.add(Ir),this._config.animation){var n=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,i).emulateTransitionEnd(n)}else i()}},t.hide=function(){if(this._element.classList.contains(Lr)){var e=r.default.Event(Or);r.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(Lr)&&this._element.classList.remove(Lr),r.default(this._element).off(Pr),r.default.removeData(this._element,Sr),this._element=null,this._config=null},t._getConfig=function(e){return e=l({},Br,r.default(this._element).data(),"object"==typeof e&&e?e:{}),y.typeCheckConfig(xr,e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;r.default(this._element).on(Pr,Rr,function(){return e.hide()})},t._close=function(){var e=this,t=function(){e._element.classList.add(Ar),r.default(e._element).trigger(Dr)};if(this._element.classList.remove(Lr),this._config.animation){var i=y.getTransitionDurationFromElement(this._element);r.default(this._element).one(y.TRANSITION_END,t).emulateTransitionEnd(i)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each(function(){var i=r.default(this),n=i.data(Sr);if(n||(n=new e(this,"object"==typeof t&&t),i.data(Sr,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t](this)}})},o(e,null,[{key:"VERSION",get:function(){return wr}},{key:"DefaultType",get:function(){return Fr}},{key:"Default",get:function(){return Br}}]),e}();r.default.fn[xr]=Ur._jQueryInterface,r.default.fn[xr].Constructor=Ur,r.default.fn[xr].noConflict=function(){return r.default.fn[xr]=Er,Ur._jQueryInterface},e.Alert=O,e.Button=Z,e.Carousel=Ve,e.Collapse=pt,e.Dropdown=ti,e.Modal=Ri,e.Popover=Cn,e.Scrollspy=Qn,e.Tab=Tr,e.Toast=Ur,e.Tooltip=hn,e.Util=y,Object.defineProperty(e,"__esModule",{value:!0})}(t,i(4796),i(8851))},7334:function(e){function t(e,t,i){var n,r,s,a,o;function l(){var c=Date.now()-a;c<t&&c>=0?n=setTimeout(l,t-c):(n=null,i||(o=e.apply(s,r),s=r=null))}null==t&&(t=100);var c=function(){s=this,r=arguments,a=Date.now();var c=i&&!n;return n||(n=setTimeout(l,t)),c&&(o=e.apply(s,r),s=r=null),o};return c.clear=function(){n&&(clearTimeout(n),n=null)},c.flush=function(){n&&(o=e.apply(s,r),s=r=null,clearTimeout(n),n=null)},c}t.debounce=t,e.exports=t},4796:function(e,t,i){var n=i(4692),r=i(4160);void 0===r.$&&(r.$=n),void 0===r.jQuery&&(r.jQuery=n),e.exports=n},4160:function(e,t,i){"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==i.g)return i.g}return e}()},9697:function(e,t,i){var n,r=void 0!==i.g?i.g:"undefined"!=typeof window?window:{},s=i(542);"undefined"!=typeof document?n=document:(n=r["__GLOBAL_DOCUMENT_CACHE@4"])||(n=r["__GLOBAL_DOCUMENT_CACHE@4"]=s),e.exports=n},9840:function(e,t,i){var n;n="undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},e.exports=n},4783:function(e){var t,i;t="u"<typeof window?this:window,i=()=>(()=>{"use strict";let e,t,i,n,r,s;var a,o,l,c,u,d,h,p,f,m,g,v,y,b,_,T,x,w,S,k,E,C,A,L,I,P,O={d:(e,t)=>{for(var i in t)O.o(t,i)&&!O.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},D={};O.d(D,{default:()=>Xr}),(a=m||(m={})).SVG_NS="http://www.w3.org/2000/svg",a.product="Highcharts",a.version="12.6.0",a.win="u">typeof window?window:{},a.doc=a.win.document,a.svg=!!a.doc?.createElementNS?.(a.SVG_NS,"svg")?.createSVGRect,a.pageLang=a.doc?.documentElement?.closest("[lang]")?.lang,a.userAgent=a.win.navigator?.userAgent||"",a.isChrome=a.win.chrome,a.isFirefox=-1!==a.userAgent.indexOf("Firefox"),a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera,a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari"),a.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a.userAgent),a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit"),a.deg2rad=2*Math.PI/360,a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],a.noop=function(){},a.supportsPassiveEvents=function(){let e=!1;if(!a.isMS){let t=Object.defineProperty({},"passive",{get:function(){e=!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,t),a.win.removeEventListener("testPassive",a.noop,t))}return e}(),a.charts=[],a.composed=[],a.dateFormats={},a.seriesTypes={},a.symbolSizes={},a.chartCount=0;let M=m,{doc:N,win:R}=M;function B(e,t,i,n={}){let r="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});let s=r.hcEvents;M.Point&&e instanceof M.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,t,i,!!M.supportsPassiveEvents&&{passive:void 0===n.passive?-1!==t.indexOf("touch"):n.passive,capture:!1}),s[t]||(s[t]=[]);let o={fn:i,order:"number"==typeof n.order?n.order:1/0};return s[t].push(o),s[t].sort((e,t)=>
vendor: 4,811 bytes, line 2
2e.order-t.order),function(){Se(e,t,i)}}function F(e){let t=e.length,i=e[0];for(;t--;)e[t]<i&&(i=e[t]);return i}function U(e){let t=e.length,i=e[0];for(;t--;)e[t]>i&&(i=e[t]);return i}function j(e,t,i){let n,r=ue(t)&&!X(i),s=(t,i)=>{X(t)?e.setAttribute(i,t):r?(n=e.getAttribute(i))||"class"!==i||(n=e.getAttribute(i+"Name")):e.removeAttribute(i)};return ue(t)?s(i,t):ge(t,s),n}function H(e,t,i){return e>t?e<i?e:i:t}function q(e,t){return e>1e14?e:parseFloat(e.toPrecision(t||14))}function z(e,t,i,n,r){let s=N.createElement(e);return t&&Q(s,t),r&&V(s,{padding:"0",border:"none",margin:"0"}),i&&V(s,i),n&&n.appendChild(s),s}function W(e,t=0,i){let n=t%2/2,r=i?-1:1;return(Math.round(e*r-n)+n)*r}function V(e,t){Q(e.style,t)}function X(e){return null!=e}function G(e,t,i){ge(e,function(n,r){n!==t&&n?.destroy&&n.destroy(),(n?.destroy||!i)&&delete e[r]})}function $(e){e?.parentElement?.removeChild(e)}function Y(e,t,i,n){let r={};return function e(t,r,s,a){let o=i?r:t;ge(t,function(i,l){if(!a&&n&&n.indexOf(l)>-1&&r[l]){i=ke(i),s[l]=[];for(let t=0;t<Math.max(i.length,r[l].length);t++)r[l][t]&&(void 0===i[t]?s[l][t]=r[l][t]:(s[l][t]={},e(i[t],r[l][t],s[l][t],a+1)))}else pe(i,!0)&&!i.nodeType?(s[l]=de(i)?[]:{},e(i,r[l]||{},s[l],a+1),0===Object.keys(s[l]).length&&("colorAxis"!==l||0!==a)&&delete s[l]):(t[l]!==r[l]||l in t&&!(l in r))&&"__proto__"!==l&&"constructor"!==l&&(s[l]=o[l])})}(e,t,r,0),r}function K(e,t){let i=e.length;for(;i--;)if(e[i]===t){e.splice(i,1);break}}function Q(e,t){let i;for(i in e||(e={}),t)e[i]=t[i];return e}function Z(e,t){let i=function(){};return Q(i.prototype=new e,t),i}function J(e,t,i,n){if(i=i||{},N?.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==M)){let n=N.createEvent("Events");n.initEvent(t,!0,!0),i=Q(n,i),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(t,i)}else if(e.hcEvents){i.target||Q(i,{preventDefault:function(){i.defaultPrevented=!0},target:e,type:t});let n=[],r=e,s=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[t]&&(n.length&&(s=!0),n.unshift.apply(n,r.hcEvents[t])),r=Object.getPrototypeOf(r);s&&n.sort((e,t)=>e.order-t.order),n.forEach(t=>{!1===t.fn.call(e,i,e)&&i.preventDefault()})}n&&!i.defaultPrevented&&n.call(e,i)}let ee=(e="")=>({center:.5,right:1,middle:.5,bottom:1}[e]||0);function te(e,t){let i,n,r,s,a=!t;return e.forEach(e=>{if(e.length>1)for(s=n=e.length-1;s>0;s--)(r=e[s]-e[s-1])<0&&!a?(t?.(),t=void 0):r&&(void 0===i||r<i)&&(i=r)}),i}function ie(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function ne(e,t){let i=e.split(".");for(;i.length&&X(t);){let e=i.shift();if(void 0===e||"__proto__"===e)return;if("this"===e){let e;return pe(t)&&(e=t["@this"]),e??t}let n=t[e.replace(/[\\'"]/g,"")];if(!X(n)||"function"==typeof n||"number"==typeof n.nodeType||n===R)return;t=n}return t}function re(e,t,i){let n;if("width"===t){let t=Math.min(e.offsetWidth,e.scrollWidth),i=e.getBoundingClientRect?.().width;return i<t&&i>=t-1&&(t=Math.floor(i)),Math.max(0,t-(re(e,"padding-left",!0)||0)-(re(e,"padding-right",!0)||0))}if("height"===t)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(re(e,"padding-top",!0)||0)-(re(e,"padding-bottom",!0)||0));let r=R.getComputedStyle(e,void 0);return r&&(n=r.getPropertyValue(t),be(i,"opacity"!==t)&&(n=_e(n))),n}let se=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let i,n=e.length;for(i=0;i<n;i++)if(t(e[i],i))return e[i]};function ae(e){X(e)&&clearTimeout(e)}function oe(e){return pe(e)&&"number"==typeof e.nodeType}function le(e){let t=e?.constructor;return!(!pe(e,!0)||oe(e)||!t?.name||"Object"===t.name)}function ce(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function ue(e){return"string"==typeof e}function de(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function he(e){return"function"==typeof e}function pe(e,t){return!(!e||"object"!=typeof e||t&&de(e))}function fe(e,...t){let i,n=[e,...t],r={},s=function(e,t){return"object"!=typeof e&&(e={}),ge(t,function(i,n){"__proto__"!==n&&"constructor"!==n&&(!pe(i,!0)||le(i)||oe(i)?e[n]=t[n]:e[n]=s(e[n]||{},i))}),e};!0===e&&(r=n[1],n=Array.prototype.slice.call(n,2));let a=n.length;for(i=0;i<a;i++)r=s(r,n[i]);return r}function me(e,t,i,n,r){let s,a=e,o=e/(i=be(i,ie(e)));for(!t&&(t=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===i?t=t.filter(function(e){return e%1==0}):i<=.1&&(t=[1/i]))),s=0;s<t.length&&(a=t[s],(!r||!(a*i>=e))&&(r||!(o<=(t[s]+(t[s+1]||t[s]))/2)));s++);return q(a*i,-Math.round(Math.log(.001)/Math.LN10))}function ge(e,t,i){for(let n in e)Object.hasOwnProperty.call(e,n)&&t.call(i||e[n],e[n],n,e)}function ve(e){let t=N.documentElement,i=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(R.pageYOffset||t.scrollTop)-(t.clientTop||0),left
vendor: 4,326 bytes, line 2
2:i.left+(R.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:i.width,height:i.height}}function ye(e,t,i){return Array((t||2)+1-String(e).replace("-","").length).join(i||"0")+e}function be(){let e=arguments,t=e.length;for(let i=0;i<t;i++){let t=e[i];if(null!=t)return t}}function _e(e,t){return parseInt(e,t||10)}function Te(e,t){return 0>e.indexOf(t)&&!!e.push(t)}function xe(e,t,i){return/%$/.test(e)?t*parseFloat(e)/100+(i||0):parseFloat(e)}function we(e,...t){let i,n;do{for(n of(i=e,t))e=e.replace(n[0],n[1])}while(e!==i);return e}function Se(e,t,i){function n(t,i){let n=e.removeEventListener;n&&n.call(e,t,i,!1)}function r(i){let r,s;e.nodeName&&(t?(r={})[t]=!0:r=i,ge(r,function(e,t){if(i[t])for(s=i[t].length;s--;)n(t,i[t][s].fn)}))}let s="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(s,"hcEvents")){let e=s.hcEvents;if(t){let s=e[t]||[];i?(e[t]=s.filter(function(e){return i!==e.fn}),n(t,i)):(r(e),e[t]=[])}else r(e),delete s.hcEvents}}function ke(e){return de(e)?e:[e]}function Ee(e,t){let i,n,r=e.length;for(n=0;n<r;n++)e[n].safeI=n;for(e.sort(function(e,n){return 0===(i=t(e,n))?e.safeI-n.safeI:i}),n=0;n<r;n++)delete e[n].safeI}function Ce(e,t,i){return t>0?setTimeout(e,t,i):(e.call(0,i),-1)}function Ae(e){return ue(e)?e.substring(0,1).toUpperCase()+e.substring(1):String(e)}let{charts:Le,win:Ie}=M;function Pe(e,t,i,n){let r=t?"Highcharts error":"Highcharts warning";32===e&&(e=`${r}: Deprecated member`);let s=ce(e),a=s?`${r} #${e}: www.highcharts.com/errors/${e}/`:e.toString();if(void 0!==n){let e="";s&&(a+="?"),ge(n,function(t,i){e+=`\n - ${i}: ${t}`,s&&(a+=encodeURI(i)+"="+encodeURI(t))}),a+=e}J(M,"displayError",{chart:i,code:e,message:a,params:n},function(){if(t)throw Error(a);Ie.console&&-1===Pe.messages.indexOf(a)&&console.warn(a)}),Pe.messages.push(a)}function Oe(e,t){let i,n=e.options.index,r=t.length;for(i=e.options.isInternal?r:0;i<r+1;i++)if(!t[i]||ce(n)&&n<be(t[i].options.index,t[i]._i)||t[i].options.isInternal){t.splice(i,0,e);break}return i}(Pe||(Pe={})).messages=[];let De={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};let Me=(i=Math.random().toString(36).substring(2,9)+"-",n=0,function(){return"highcharts-"+(e?"":i)+n++});Ie.jQuery&&(Ie.jQuery.fn.highcharts=function(){let e=[].slice.call(arguments);if(this[0])return e[0]?(new(M[ue(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):Le[j(this[0],"data-highcharts-chart")]});let{pageLang:Ne,win:Re}=M,Be=M.isSafari&&Re.Intl&&!Re.Intl.DateTimeFormat.prototype.formatRange,Fe=class{constructor(e,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Re.Date,this.update(e),this.lang=t}update(e={}){this.dTLCache={},this.options=e=fe(!0,this.options,e);let{timezoneOffset:t,useUTC:i,locale:n}=e;this.Date=e.Date||Re.Date||Date;let r=e.timezone;X(i)&&(r=i?"UTC":void 0),t&&t%60==0&&(r="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone="UTC"!==r&&0!==r?.indexOf("Etc/GMT"),this.timezone=r,this.lang&&n&&(this.lang.locale=n),["months","shortMonths","weekdays","shortWeekdays"].forEach(e=>{let t=/months/i.test(e),i=/short/.test(e),n={timeZone:"UTC"};n[t?"month":"weekday"]=i?"short":"long",this[e]=(t?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(e=>this.dateFormat(n,24*(t?31:1)*36e5*e))})}toParts(e){let[t,i,n,r,s,a,o]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},e,"es").split(/(?:, | |\/|:)/g);return[r,n-1,i,s,a,o,Math.floor(Number(e)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(e,t,i=this.options.locale||Ne){let n=JSON.stringify(e)+i;ue(e)&&(e=this.str2dtf(e));let r=this.dTLCache[n];if(!r){e.timeZone??(e.timeZone=this.timezone);try{r=new Intl.DateTimeFormat(i,e)}catch(t){/Invalid time zone/i.test(t.message)?(Pe(34),e.timeZone="UTC",r=new Intl.DateTimeFormat(i,e)):Pe(t.message,!1)}}return this.dTLCache[n]=r,r?.format(t)||""}str2dtf(e,t={}){let i={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};
2return Object.keys(i).forEach(n=>{-1!==e.indexOf(n)&&Q(t,i[n])}),t}makeTime(e,t,i=1,n=0,r,s,a){let o=this.Date.UTC(e,t,i,n,r||0,s||0,a||0);if("UTC"!==this.timezone){let e=this.getTimezoneOffset(o);if(o+=e,-1!==[2,3,8,9,10,11].indexOf(t)&&(n<5||n>20)){let t=this.getTimezoneOffset(o);e!==t?o+=t-e:e-36e5!==this.getTimezoneOffset(o-36e5)||Be||(o-=36e5)}}return o}parse(e){if(!ue(e))return e??void 0;let t=(e=e.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(e),i=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(e);t||i||(e+="Z");let n=Date.parse(e);return ce(n)?n+(!t||i?this.getTimezoneOffset(n):0):void 0}getTimezoneOffset(e){if("UTC"!==this.timezone){let[t,i,n,r,s=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},e,"en").split(/(GMT|:)/).map(Number),a=-60*(n+s/60)*6e4;if(ce(a))return a}return 0}dateFormat(e,t,i){let n=this.lang;if(!X(t)||isNaN(t))return n?.invalidDate||"";if(ue(e=e??"%Y-%m-%d %H:%M:%S")){let i,r=/%\[([a-zA-Z]+)\]/g;for(;i=r.exec(e);)e=e.replace(i[0],this.dateTimeFormat(i[1],t,n?.locale))}if(ue(e)&&-1!==e.indexOf("%")){let i=this,[r,s,a,o,l,c,u,d]=this.toParts(t),h=n?.weekdays||this.weekdays,p=n?.shortWeekdays||this.shortWeekdays,f=n?.months||this.months,m=n?.shortMonths||this.shortMonths;ge(Q({a:p?p[d]:h[d].substr(0,3),A:h[d],d:ye(a),e:ye(a,2," "),w:d,v:n?.weekFrom??"",b:m[s],B:f[s],m:ye(s+1),o:s+1,y:r.toString().substr(2,2),Y:r,H:ye(o),k:o,I:ye(o%12||12),l:o%12||12,M:ye(l),p:o<12?"AM":"PM",P:o<12?"am":"pm",S:ye(c),L:ye(u,3)},M.dateFormats),function(n,r){if(ue(e))for(;-1!==e.indexOf("%"+r);)e=e.replace("%"+r,"function"==typeof n?n.call(i,t,i):n)})}else if(pe(e)){let i=(this.getTimezoneOffset(t)||0)/36e5,n=this.timezone||"Etc/GMT"+(i>=0?"+":"")+i,{prefix:r="",suffix:s=""}=e;e=r+this.dateTimeFormat(Q({timeZone:n},e),t)+s}return i?Ae(e):e}resolveDTLFormat(e){return pe(e,!0)?pe(e,!0)&&void 0===e.main?{main:e}:e:{main:(e=ke(e))[0],from:e[1],to:e[2]}}getDateFormat(e,t,i,n){let r=this.dateFormat("%m-%d %H:%M:%S.%L",t),s="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},o="millisecond",l=o;for(o in De){if(e&&e===De.week&&+this.dateFormat("%w",t)===i&&r.substr(6)===s.substr(6)){o="week";break}if(e&&De[o]>e){o=l;break}if(a[o]&&r.substr(a[o])!==s.substr(a[o]))break;"week"!==o&&(l=o)}return this.resolveDTLFormat(n[o]).main}},Ue=class extends Fe{getTimeTicks(e,t,i,n){let r,s=this,a=[],o={},{count:l=1,unitRange:c}=e,[u,d,h,p,f,m]=s.toParts(t),g=(t||0)%1e3;if(n??(n=1),X(t)){if(g=c>=De.second?0:l*Math.floor(g/l),c>=De.second&&(m=c>=De.minute?0:l*Math.floor(m/l)),c>=De.minute&&(f=c>=De.hour?0:l*Math.floor(f/l)),c>=De.hour&&(p=c>=De.day?0:l*Math.floor(p/l)),c>=De.day&&(h=c>=De.month?1:Math.max(1,l*Math.floor(h/l))),c>=De.month&&(d=c>=De.year?0:l*Math.floor(d/l)),c>=De.year&&(u-=u%l),c===De.week){l&&(t=s.makeTime(u,d,h,p,f,m,g));let e=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),i="DLMXJVS".indexOf(e);h+=-i+n+(i<n?-7:0)}t=s.makeTime(u,d,h,p,f,m,g),s.variableTimezone&&X(i)&&(r=i-t>4*De.month||s.getTimezoneOffset(t)!==s.getTimezoneOffset(i));let e=t,v=1;for(;e<i;)a.push(e),c===De.year?e=s.makeTime(u+v*l,0):c===De.month?e=s.makeTime(u,d+v*l):!r||c!==De.day&&c!==De.week?r&&c===De.hour&&l>1?e=s.makeTime(u,d,h,p+v*l):e+=c*l:e=s.makeTime(u,d,h+v*l*(c===De.day?1:7)),v++;a.push(e),c<=De.hour&&a.length<1e4&&a.forEach(e=>{e%18e5==0&&"000000000"===s.dateFormat("%H%M%S%L",e)&&(o[e]="day")})}return a.info=Q(e,{higherRanks:o,totalRange:c*l}),a}},{isTouchDevice:je}=M,He={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"}
vendor: 8,662 bytes, line 2
2,states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:e=>Math.sqrt(1-Math.pow(e-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:je?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">â</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},qe=new Ue(He.time,He.lang),ze={defaultOptions:He,defaultTime:qe,getOptions:function(){return He},setOptions:function(e){return J(M,"setOptions",{options:e}),fe(!0,He,e),e.time&&qe.update(He.time),e.lang&&"locale"in e.lang&&qe.update({locale:e.lang.locale}),e.lang?.chartTitle&&(He.title={...He.title,text:e.lang.chartTitle}),He}},{win:We}=M,Ve=(e,t,i)=>`color-mix(in srgb,${e},${t} ${100*i}%)`,Xe=e=>ue(e)&&!!e&&"none"!==e;class Ge{static parse(e){return e?new Ge(e):Ge.None}constructor(e){let t,i,n,r;this.rgba=[NaN,NaN,NaN,NaN],this.input=e;const s=M.Color;if(s&&s!==Ge)return new s(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map(e=>new Ge(e[1]));else if("string"==typeof e)for(this.input=e=Ge.names[e.toLowerCase()]||e,n=Ge.parsers.length;n--&&!i;)(t=(r=Ge.parsers[n]).regex.exec(e))&&(i=r.parse(t));i&&(this.rgba=i)}get(e){let t=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof t&&void 0!==this.stops){let i=fe(t);return i.stops=[].slice.call(i.stops),this.stops.forEach((t,n)=>{i.stops[n]=[i.stops[n][0],t.get(e)]}),i}return i&&ce(i[0])?"rgb"===e||!e&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===e?`${i[3]}`:"rgba("+i.join(",")+")":t}brighten(e){let t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(ce(e)&&0!==e)if(ce(t[0]))for(let i=0;i<3;i++)t[i]+=_e(255*e),t[i]<0&&(t[i]=0),t[i]>255&&(t[i]=255);else Ge.useColorMix&&Xe(this.input)&&(this.output=Ve(this.input,e>0?"white":"black",Math.abs(e)));return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,t){let i=this.rgba,n=e.rgba;if(!ce(i[0])||!ce(n[0]))return Ge.useColorMix&&Xe(this.input)&&Xe(e.input)&&t<.99?Ve(this.input,e.input,t):e.input||"none";let r=1!==n[3]||1!==i[3],s=(e,n)=>e+(i[n]-e)*(1-t),a=n.slice(0,3).map(s).map(Math.round);return r&&a.push(s(n[3],3)),(r?"rgba(":"rgb(")+a.join(",")+")"}}Ge.names={white:"#ffffff",black:"#000000"},Ge.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(e){return[_e(e[1]),_e(e[2]),_e(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(e){return[_e(e[1]),_e(e[2]),_e(e[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(e){return[_e(e[1]+e[1],16),_e(e[2]+e[2],16),_e(e[3]+e[3],16),X(e[4])?_e(e[4]+e[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(e){return[_e(e[1],16),_e(e[2],16),_e(e[3],16),X(e[4])?_e(e[4],16)/255:1]}}],Ge.useColorMix=We.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),Ge.None=new Ge("");let{parse:$e}=Ge,{win:Ye}=M;class Ke{constructor(e,t,i){this.pos=NaN,this.options=t,this.elem=e,this.prop=i}dSetter(){let e=this.paths,t=e?.[0],i=e?.[1],n=this.now||0,r=[];if(1!==n&&t&&i)if(t.length===i.length&&n<1)for(let e=0;e<i.length;e++){let s=t[e],a=i[e],o=[];for(let e=0;e<a.length;e++){let t=s[e],i=a[e];ce(t)&&ce(i)&&("A"!==a[0]||4!==e&&5!==e)?o[e]=t+n*(i-t):o[e]=i}r.push(o)}else r=i;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)}update(){let e=this.elem,t=this.prop,i=this.now,n=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,i,null,!0):e.style[t]=i+this.unit,n&&n.call(e,i,this)}run(e,t,i){let n=this,r=n.options,s=function(e){return!s.stopped&&n.step(e)},a=Ye.requestAnimationFrame||function(e){setTimeout(e,13)},o=function(){for(let e=0;e<Ke.timers.length;e++)Ke.timers[e]()||Ke.timers.splice(e--,1);Ke.timers.length&&a(o)};e!==t||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=t,this.unit=i,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===Ke.timers.push(s)&&a(o)):(delete r.curAnim[this.prop],r.complete&&0===Object.keys(r.curAnim).length&&r.complete.call(this.elem))}step(e){let t,i,n=+new Date,r=this.options,s=this.elem,a=r.complete,o=r.duration,l=r.curAnim;return s.attr&&!s.element?t=!1:e||n>=o+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=!0,i=!0,ge(l,function(e){!0!==e&&(i=!1)}),i&&a&&a.call(s),t=!1):(this.pos=r.easing((n-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t}initPath(e,t,i){let n,r,s,a,o=e.startX,l=e.endX,c=i.slice(),u=e.isArea,d=u?2:1,h=t&&i.length>t.length&&i.hasStackedCliffs,p=t?.slice();if(!p||h)return[c,c];function f(e,t){for(;e.length<r;){let i=e[0],n=t[r-e.length];if(n&&"M"===i[0]&&("C"===n[0]?e[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:e[0]=["L",i[1],i[2]]),e.unshift(i),u){let t=e.pop();e.push(e[e.length-1],t)}}}function m(e){for(;e.length<r;){let t=e[Math.floor(e.length/d)-1].slice();if("C"===t[0]&&(t[1]=t[5],t[2]=t[6]),u){let i=e[Math.floor(e.length/d)].slice();e.splice(e.length/2,0,t,i)}else e.push(t)}}if(o&&l&&l.length){for(s=0;s<o.length;s++){if(o[s]===l[0]){n=s;break}if(o[0]===l[l.length-o.length+s]){n=s,a=!0;break}if(o[o.length-1]===l[l.length-o.length+s]){n=o.length-s;break}}void 0===n&&(p=[])}return p.length&&ce(n)&&(r=c.length+n*d,a?(f(p,c),m(c)):(f(c,p),m(p))),[p,c]}fillSetter(){Ke.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,$e(this.start).tweenTo($e(this.end),this.pos),void 0,!0)}}function Qe(e){return pe(e)?fe({duration:500,defer:0},e):{duration:500*!!e,defer:0}}function Ze(e,t){let i=Ke.timers.length;for(;i--;)Ke.timers[i].elem!==e||t&&t!==Ke.timers[i].prop||(Ke.timers[i].stopped=!0)}Ke.timers=[];let Je={animate:function(e,t,i){let n,r,s,a,o="";pe(i)||(a=arguments,i={duration:a[2],easing:a[3],complete:a[4]}),ce(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=fe(t),ge(t,function(a,l){Ze(e,l),s=new Ke(e,i,l),r=void 0,"d"===l&&de(t.d)?(s.paths=s.initPath(e,e.pathArray,t.d),s.toD=t.d,n=0,r=1):e.attr?n=e.attr(l):(n=parseFloat(re(e,l))||0,"opacity"!==l&&(o="px")),r||(r=a),"string"==typeof r&&r.match("px")&&(r=r.replace(/px/g,"")),s.run(n,r,o)})},animObject:Qe,getDeferredAnimation:function(e,t,i){let n=Qe(t),r=i?[i]:e.series,s=0,a=0;
vendor: 4,227 bytes, line 2
2return r.forEach(e=>{let i=Qe(e.options.animation);s=pe(t)&&X(t.defer)?n.defer:Math.max(s,i.duration+i.defer),a=Math.min(n.duration,i.duration)}),e.renderer.forExport&&(s=0),{defer:Math.max(0,s-a),duration:Math.min(s,a)}},setAnimation:function(e,t){t.renderer.globalAnimation=be(e,t.options.chart.animation,!0)},stop:Ze},{SVG_NS:et,win:tt}=M,{trustedTypes:it}=tt,nt=it&&he(it.createPolicy)&&it.createPolicy("highcharts",{createHTML:e=>e}),rt=nt?nt.createHTML(""):"";class st{static filterUserAttributes(e){return ge(e,(t,i)=>{let n=!0;-1===st.allowedAttributes.indexOf(i)&&(n=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(n=ue(t)&&st.allowedReferences.some(e=>0===t.indexOf(e))),n||(Pe(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete e[i]),ue(t)&&e[i]&&(e[i]=t.replace(/</g,"<"))}),e}static parseStyle(e){return e.split(";").reduce((e,t)=>{let i=t.split(":").map(e=>e.trim()),n=i.shift();return n&&i.length&&(e[n.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=i.join(":")),e},{})}static setElementHTML(e,t){e.innerHTML=st.emptyHTML,t&&new st(t).addToDOM(e)}constructor(e){this.nodes="string"==typeof e?this.parseMarkup(e):e}addToDOM(e){return function e(t,i){let n;return ke(t).forEach(function(t){let r,s=t.tagName,a=t.textContent?M.doc.createTextNode(t.textContent):void 0,o=st.bypassHTMLFiltering;if(s)if("#text"===s)r=a;else if(-1!==st.allowedTags.indexOf(s)||o){let n="svg"===s?et:i.namespaceURI||et,l=M.doc.createElementNS(n,s),c=t.attributes||{};ge(t,function(e,t){"tagName"!==t&&"attributes"!==t&&"children"!==t&&"style"!==t&&"textContent"!==t&&(c[t]=e)}),j(l,o?c:st.filterUserAttributes(c)),t.style&&V(l,t.style),a&&l.appendChild(a),e(t.children||[],l),r=l}else Pe(33,!1,void 0,{"Invalid tagName in config":s});r&&i.appendChild(r),n=r}),n}(this.nodes,e)}parseMarkup(e){let t,i=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{t=(new DOMParser).parseFromString(nt?nt.createHTML(e):e,"text/html")}catch{}if(!t){let i=z("div");i.innerHTML=e,t={body:i}}let n=(e,t)=>{let i=e.nodeName.toLowerCase(),r={tagName:i};"#text"===i&&(r.textContent=e.textContent||"");let s=e.attributes;if(s){let e={};[].forEach.call(s,t=>{"data-style"===t.name?r.style=st.parseStyle(t.value):e[t.name]=t.value}),r.attributes=e}if(e.childNodes.length){let t=[];[].forEach.call(e.childNodes,e=>{n(e,t)}),t.length&&(r.children=t)}t.push(r)};return[].forEach.call(t.body.childNodes,e=>n(e,i)),i}}st.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],st.allowedReferences=["https://","http://","mailto:","/","../","./","#"],st.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],st.emptyHTML=rt,st.bypassHTMLFiltering=!1;let{defaultOptions:at,defaultTime:ot}=ze,{pageLang:lt}=M,ct={add:(e,t)=>e+t,divide:(e,t)=>0!==t?e/t:"",eq:(e,t)=>e==t,each:function(e){let t=arguments[arguments.length-1];return!!de(e)&&e.map((i,n)=>dt(t.body,Q(pe(i)?i:{"@this":i},{"@index":n,"@first":0===n,"@last":n===e.length-1}))).join("")},ge:(e,t)=>
vendor: 8,714 bytes, line 2
2e>=t,gt:(e,t)=>e>t,if:e=>!!e,le:(e,t)=>e<=t,lt:(e,t)=>e<t,multiply:(e,t)=>e*t,ne:(e,t)=>e!=t,subtract:(e,t)=>e-t,ucfirst:Ae,unless:e=>!e},ut={};function dt(e="",t,i){let n,r,s,a=RegExp("\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'â= #\\(\\)]+)\\}","gu"),o=RegExp("\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'= ]+)\\)","gu"),l=[],c=/f$/,u=/\.(\d)/,d=i?.options?.lang||at.lang,h=i?.time||ot,p=i?.numberFormatter||ht.bind(i),f=(e="")=>{let i;return"true"===e||"false"!==e&&((i=Number(e)).toString()===e?i:/^["'].+["']$/.test(e)?e.slice(1,-1):ne(e,t))},m=0;for(;null!==(n=a.exec(e));){let i=n,a=o.exec(n[1]);a&&(n=a,s=!0),r?.isBlock||(r={ctx:t,expression:n[1],find:n[0],isBlock:"#"===n[1].charAt(0),start:n.index,startInner:n.index+n[0].length,length:n[0].length});let c=(r.isBlock?i:n)[1].split(" ")[0].replace("#","");ct[c]&&(r.isBlock&&c===r.fn&&m++,r.fn||(r.fn=c));let u="else"===n[1];if(r.isBlock&&r.fn&&(n[1]===`/${r.fn}`||u))if(m)!u&&m--;else{let t=r.startInner,i=e.substr(t,n.index-t);void 0===r.body?(r.body=i,r.startInner=n.index+n[0].length):r.elseBody=i,r.find+=i+n[0],u||(l.push(r),r=void 0)}else r.isBlock||l.push(r);if(a&&!r?.isBlock)break}return l.forEach(n=>{let r,s,{body:a,elseBody:l,expression:m,fn:g}=n;if(g){let e,o=[n],c=[],u=m.length,d=0;for(s=0;s<=u;s++){let t=m.charAt(s);e||'"'!==t&&"'"!==t?e===t&&(e=""):e=t,e||" "!==t&&s!==u||(c.push(m.substr(d,s-d)),d=s+1)}for(s=ct[g].length;s--;)o.unshift(f(c[s+1]));r=ct[g].apply(t,o),n.isBlock&&"boolean"==typeof r&&(r=dt(r?a:l,t,i))}else{let e=/^["'].+["']$/.test(m)?[m]:m.split(":");if(r=f(e.shift()||""),e.length&&"number"==typeof r){let t=e.join(":");if(c.test(t)){let e=parseInt((t.match(u)||["","-1"])[1],10);null!==r&&(r=p(r,e,d.decimalPoint,t.indexOf(",")>-1?d.thousandsSep:""))}else r=h.dateFormat(t,r)}o.lastIndex=0,o.test(n.find)&&ue(r)&&(r=`"${r}"`)}e=e.replace(n.find,be(r,""))}),s?dt(e,t,i):e}function ht(e,t,i,n){t*=1;let r,s,[a,o]=(e=+e||0).toString().split("e").map(Number),l=this?.options?.lang||at.lang,c=(e.toString().split(".")[1]||"").split("e")[0].length,u=t,d={};i??(i=l.decimalPoint),n??(n=l.thousandsSep),-1===t?t=Math.min(c,20):ce(t)?t&&o<0&&((s=t+o)>=0?(a=+a.toExponential(s).split("e")[0],t=s):(a=Math.floor(a),e=t<20?+(a*Math.pow(10,o)).toFixed(t):0,o=0)):t=2,o&&(t??(t=2),e=a),ce(t)&&t>=0&&(d.minimumFractionDigits=t,d.maximumFractionDigits=t),""===n&&(d.useGrouping=!1);let h=n||i,p=h?"en":this?.locale||l.locale||lt,f=JSON.stringify(d)+p;return r=(ut[f]??(ut[f]=new Intl.NumberFormat(p,d))).format(e),h&&(r=r.replace(/([,\.])/g,"_$1").replace(/_\,/g,n??",").replace("_.",i??".")),(t||0!=+r)&&(!(o<0)||u)||(r="0"),o&&0!=+r&&(r+="e"+(o<0?"":"+")+o),r}let pt={dateFormat:function(e,t,i){return ot.dateFormat(e,t,i)},format:dt,helpers:ct,numberFormat:ht};(o=g||(g={})).rendererTypes={},o.getRendererType=function(e=r){return o.rendererTypes[e]||o.rendererTypes[r]},o.registerRendererType=function(e,t,i){o.rendererTypes[e]=t,(!r||i)&&(r=e,M.Renderer=t)};let ft=g;(v||(v={})).distribute=function e(t,i,n){let r,s,a,o=t,l=o.reducedLen||i,c=(e,t)=>e.target-t.target,u=[],d=t.length,h=[],p=u.push,f=!0,m=0;for(r=d;r--;)m+=t[r].size;if(m>l){if(Ee(t,(e,t)=>(t.rank||0)-(e.rank||0)),t[0].rank===t[t.length-1].rank){let e=[[0,d-1]];for(;e.length&&m>l;){let i=e.shift();if(!i)break;s=t[r=Math.floor((i[0]+i[1])/2)],Te(h,r)&&(m-=s.size),i[0]<r&&e.push([i[0],r-1]),r<i[1]&&e.push([r+1,i[1]])}}else for(r=d-1;m>l&&r>=0;)s=t[r],Te(h,r)&&(m-=s.size),r--;h.sort((e,t)=>t-e).forEach(e=>p.apply(u,t.splice(e,1)))}for(Ee(t,c),t=t.map(e=>({size:e.size,targets:[e.target],align:be(e.align,.5)}));f;){for(r=t.length;r--;)s=t[r],a=(Math.min.apply(0,s.targets)+Math.max.apply(0,s.targets))/2,s.pos=H(a-s.size*s.align,0,i-s.size);for(r=t.length,f=!1;r--;)r>0&&t[r-1].pos+t[r-1].size>t[r].pos&&(t[r-1].size+=t[r].size,t[r-1].targets=t[r-1].targets.concat(t[r].targets),t[r-1].align=.5,t[r-1].pos+t[r-1].size>i&&(t[r-1].pos=i-t[r-1].size),t.splice(r,1),f=!0)}return p.apply(o,u),r=0,t.some(t=>{let s=0;return(t.targets||[]).some(()=>(o[r].pos=t.pos+s,void 0!==n&&Math.abs(o[r].pos-o[r].target)>n?(o.slice(0,r+1).forEach(e=>delete e.pos),o.reducedLen=(o.reducedLen||i)-.1*i,o.reducedLen>.1*i&&e(o,i,n),!0):(s+=o[r].size,r++,!1)))}),Ee(o,c),o};let mt=v,{animate:gt,animObject:vt,stop:yt}=Je,{deg2rad:bt,doc:_t,svg:Tt,SVG_NS:xt,win:wt,isFirefox:St}=M;class kt{_defaultGetter(e){let t=be(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(t)&&(t=parseFloat(t)),t}_defaultSetter(e,t,i){i.setAttribute(t,e)}add(e){let t,i=this.renderer,n=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:i.box).appendChild(n),this.onAdd&&this.onAdd(),this}addClass(e,t){let i=t?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce(function(e,t){return-1===i.indexOf(t)&&e.push(t),e},i?[i]:[]).join(" "))!==i&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,t,i,n=!0){let r=this.renderer,s=r.alignedObjects,a=!!e;e?(this.alignOptions=e,this.alignByTranslate=t,this.alignTo=i):(e=this.alignOptions||{},t=this.alignByTranslate,i=this.alignTo);let o=!i||ue(i)?i||"renderer":void 0;o&&(a&&Te(s,this),i=void 0);let l=be(i,r[o],r),c=(l.x||0)+(e.x||0)+((l.width||0)-(e.width||0))*ee(e.align),u=(l.y||0)+(e.y||0)+((l.height||0)-(e.height||0))*ee(e.verticalAlign),d={};return e.align&&(d["text-align"]=e.align),d[t?"translateX":"x"]=Math.round(c),d[t?"translateY":"y"]=Math.round(u),n&&(this[this.placed?"animate":"attr"](d),this.placed=!0),this.alignAttr=d,this}alignSetter(e){let t={left:"start",center:"middle",right:"end"};t[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",t[e]))}animate(e,t,i){let n=vt(be(t,this.renderer.globalAnimation,!0)),r=n.defer;return _t.hidden&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),Ce(()=>{this.element&>(this,e,n)},r)):(this.attr(e,void 0,i||n.complete),ge(e,function(e,t){n.step&&n.step.call(this,e,{prop:t,pos:1,elem:this})},this)),this}applyTextOutline(e){let t=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));let i=e.indexOf(" "),n=e.substring(i+1),r=e.substring(0,i);if(r&&"none"!==r&&M.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,i){return 2*Number(t)+i}),this.removeTextOutline();let e=_t.createElementNS(xt,"tspan");j(e,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":r,"stroke-linejoin":"round"});let i=t.querySelector("textPath")||t;[].forEach.call(i.childNodes,t=>{let i=t.cloneNode(!0);i.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(e=>i.removeAttribute(e)),e.appendChild(i)});let s=0;[].forEach.call(i.querySelectorAll("text tspan"),e=>{s+=Number(e.getAttribute("dy"))});let a=_t.createElementNS(xt,"tspan");a.textContent="â",j(a,{x:Number(t.getAttribute("x")),dy:-s}),e.appendChild(a),i.insertBefore(e,i.firstChild)}}attr(e,t,i,n){let r,s,a,{element:o}=this,l=kt.symbolCustomAttribs,c=this;return"string"==typeof e&&void 0!==t&&(r=e,(e={})[r]=t),"string"==typeof e?c=(this[e+"Getter"]||this._defaultGetter).call(this,e,o):(ge(e,function(t,i){a=!1,n||yt(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(e),s=!0),a=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),a||(this[i+"Setter"]||this._defaultSetter).call(this,t,i,o)},this),this.afterSetters()),i&&i.call(this),c}clip(e){if(e&&!e.clipPath){let t=Me()+"-",i=this.renderer.createElement("clipPath").attr({id:t}).add(this.renderer.defs);Q(e,{clipPath:i,id:t,count:0}),e.add(i)}return this.attr("clip-path",e?`url(${this.renderer.url}#${e.id})`:"none")}crisp(e,t){t=Math.round(t||e.strokeWidth||0);let i=e.x||this.x||0,n=e.y||this.y||0,r=(e.width||this.width||0)+i,s=(e.height||this.height||0)+n,a=W(i,t),o=W(n,t);return Q(e,{x:a,y:o,width:W(r,t)-a,height:W(s,t)-o}),X(e.strokeWidth)&&(e.strokeWidth=t),e}complexColor(e,t,i){let n,r,s,a,o,l,c,u,d,h,p,f=this.renderer,m=[];J(this.renderer,"complexColor",{args:arguments},function(){if(e.radialGradient?r="radialGradient":e.linearGradient&&(r="linearGradient"),r){if(s=e[r],o=f.gradients,l=e.stops,d=i.radialReference,de(s)&&(e[r]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&d&&!X(s.gradientUnits)&&(a=s,s=fe(s,f.getRadialAttr(d,a),{gradientUnits:"userSpaceOnUse"})),ge(s,function(e,t){"id"!==t&&m.push(t,e)}),ge(l,function(e){m.push(e)}),o[m=m.join(",")])h=o[m].attr("id");else{s.id=h=Me();let e=o[m]=f.createElement(r).attr(s).add(f.defs);e.radAttr=a,e.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(c=(n=Ge.parse(t[1])
vendor: 4,139 bytes, line 2
2).get("rgb"),u=n.get("a")):(c=t[1],u=1);let i=f.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":u}).add(e);e.stops.push(i)})}p="url("+f.url+"#"+h+")",i.setAttribute(t,p),i.gradient=m,e.toString=function(){return p}}})}css(e){let t,i=this.styles,n={},r=this.element,s=!i;if(i&&ge(e,function(e,t){i&&i[t]!==e&&(n[t]=e,s=!0)}),s){i&&(e=Q(i,n)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&e.width&&(t=this.textWidth=_e(e.width)),Q(this.styles,e),t&&!Tt&&this.renderer.forExport&&delete e.width;let s=St&&e.fontSize||null;s&&(ce(s)||/^\d+$/.test(s))&&(e.fontSize+="px");let a=fe(e);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(e=>a&&delete a[e]),a.color&&(a.fill=a.color,delete a.color)),V(r,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let t,i=this["stroke-width"];if("inherit"===i&&(i=1),e){let n=(e=e.toLowerCase()).replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=n.length;t--;)n[t]=""+_e(n[t])*be(i,NaN);e=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){let e,t=this,{element:i={},renderer:n,stops:r}=t,s=i.ownerSVGElement,a="SPAN"===i.nodeName&&t.parentGroup||void 0;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null,yt(t),t.clipPath&&s){let e=t.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(e.element.id)>-1&&t.removeAttribute("clip-path")}),t.clipPath=e.destroy()}if(r){for(let e of r)e.destroy();r.length=0}for(t.safeRemoveChild(i);a?.div&&0===a.div.childNodes.length;)e=a.parentGroup,t.safeRemoveChild(a.div),delete a.div,a=e;t.alignOptions&&K(n.alignedObjects,t),ge(t,(e,i)=>{(t[i]?.parentGroup===t||-1!==["connector","foreignObject"].indexOf(i))&&t[i]?.destroy?.(),delete t[i]})}dSetter(e,t,i){de(e)&&("string"==typeof e[0]&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((e,t,i)=>t?.join?(i?e+" ":"")+t.join(" "):(t||"").toString(),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(i.setAttribute(t,e),this[t]=e)}fillSetter(e,t,i){"string"==typeof e?i.setAttribute(t,e):e&&this.complexColor(e,t,i)}hrefSetter(e,t,i){i.setAttributeNS("http://www.w3.org/1999/xlink",t,e)}getBBox(e,t){let i,n,r,{element:s,renderer:a,styles:o,textStr:l}=this,{cache:c,cacheKeys:u}=a,d=s.namespaceURI===this.SVG_NS,h=be(t,this.rotation,0),p=a.styledMode?s&&kt.prototype.getStyle.call(s,"font-size"):o.fontSize,f=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,o.fontWeight,o.lineClamp,o.textOverflow,p,h]);if(f&&!e&&(i=c[f]),!i||i.polygon){if(d||a.forExport){try{r=this.fakeTS&&function(e){let t=s.querySelector(".highcharts-text-outline");t&&V(t,{display:e})},he(r)&&r("none"),i=s.getBBox?Q({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight,x:0,y:0},he(r)&&r("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();n=i.height,d&&(i.height=n={"11px,17":14,"13px,20":16}[`${p||""},${Math.round(n)}`]||n),h&&(i=this.getRotatedBox(i,h));let e={bBox:i};J(this,"afterGetBBox",e),i=e.bBox}if(f&&(""===l||i.height>0)){for(;u.length>250;)delete c[u.shift()];c[f]||u.push(f),c[f]=i}return i}getBBoxCacheKey(e){if(X(this.textStr)){let t=""+this.textStr;return-1===t.indexOf("<")&&(t=t.replace(/\d/g,"0")),[t,...e].join(",")}}getRotatedBox(e,t){let{x:i,y:n,width:r,height:s}=e,{alignValue:a,translateY:o,rotationOriginX:l=0,rotationOriginY:c=0}=this,u=ee(a),d=Number(this.element.getAttribute("y")||0)-(o?0:n),h=t*bt,p=(t-90)*bt,f=Math.cos(h),m=Math.sin(h),g=r*f,v=r*m,y=Math.cos(p),b=Math.sin(p),[[_,T],[x,w]]=[l,c].map(e=>[e-e*f,e*m]),S=i+u*(r-g)+_+w+d*y,k=S+g,E=k-s*y,C=E-g,A=n+d-u*v-T+x+d*b,L=A+v,I=L-s*b,P=I-v,O=Math.min(S,k,E,C),D=Math.min(A,L,I,P);return{x:O,y:D,width:Math.max(S,k,E,C)-O,height:Math.max(A,L,I,P)-D,pol
vendor: 4,495 bytes, line 2
2ygon:[[S,A],[k,L],[E,I],[C,P]]}}getStyle(e){return wt.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return-1!==(""+this.attr("class")).split(" ").indexOf(e)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,t){this.onEvents={},this.opacity=1,this.SVG_NS=xt,this.element="span"===t||"body"===t?z(t):_t.createElementNS(this.SVG_NS,t),this.renderer=e,this.styles={},J(this,"afterInit")}on(e,t){let{onEvents:i}=this;return i[e]&&i[e](),i[e]=B(this.element,e,t),this}opacitySetter(e,t,i){let n=Number(Number(e).toFixed(3));this.opacity=n,i.setAttribute(t,n)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(ue(e)?RegExp(`(^| )${e}( |$)`):e," ").replace(/ +/g," ").trim())}removeTextOutline(){let e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){let t=e.parentNode;t&&t.removeChild(e)}setRadialReference(e){let t=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=e,t?.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}shadow(e){let{renderer:t}=this,i=fe(90===this.parentGroup?.rotation?{offsetX:-1,offsetY:-1}:{},pe(e)?e:{}),n=t.shadowDefinition(i);return this.attr({filter:e?`url(${t.url}#${n})`:"none"})}show(e=!0){return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,t,i){this[t]=e,i.setAttribute(t,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let e,t=this.getStyle("stroke-width"),i=0;return/px$/.test(t)?i=_e(t):""!==t&&(j(e=_t.createElementNS(xt,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),i=e.getBBox().width,e.parentNode.removeChild(e)),i}symbolAttr(e){let t=this;kt.symbolCustomAttribs.forEach(function(i){t[i]=be(e[i],t[i])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let t=this.element,i=t.getElementsByTagName("title")[0]||_t.createElementNS(this.SVG_NS,"title");t.insertBefore?t.insertBefore(i,t.firstChild):t.appendChild(i),i.textContent=we(be(e,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,t){return this.attr({translateX:e,translateY:t})}updateTransform(e="transform"){let{element:t,foreignObject:i,matrix:n,padding:r,rotation:s=0,rotationOriginX:a,rotationOriginY:o,scaleX:l,scaleY:c,text:u,translateX:d=0,translateY:h=0}=this,p=[`translate(${d},${h})`];X(n)&&p.push("matrix("+n.join(",")+")"),s&&(p.push("rotate("+s+" "+(a??t.getAttribute("x")??this.x??0)+" "+(o??t.getAttribute("y")??this.y??0)+")"),"SPAN"!==u?.element.tagName||u?.foreignObject||u.attr({rotation:s,rotationOriginX:(a||0)-r,rotationOriginY:(o||0)-r})),(X(l)||X(c))&&p.push(`scale(${l??1} ${c??1})`),p.length&&!(u||this).textPath&&(i?.element||t).setAttribute(e,p.join(" "))}visibilitySetter(e,t,i){"inherit"===e?i.removeAttribute(t):this[t]!==e&&i.setAttribute(t,e),this[t]=e}xGetter(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,t){let i,n,r,s,a,o=this.renderer,l=this.parentGroup,c=(l||o).element||o.box,u=this.element,d=c===o.box,h=!1,p=this.added;if(X(e)?(u.setAttribute("data-z-index",e),e*=1,this[t]===e&&(p=!1)):X(this[t])&&u.removeAttribute("data-z-index"),this[t]=e,p){for((e=this.zIndex)&&l&&(l.handleZ=!0),a=(i=c.childNodes).length-1;a>=0&&!h;a--)s=!X(r=(n=i[a]).getAttribute("data-z-index")),n!==u&&(e<0&&s&&!d&&!a?(c.insertBefore(u,i[a]),h=!0):(_e(r)<=e||s&&(!X(e)||e>=0))&&(c.insertBefore(u,i[a+1]),h=!0));h||(c.insertBefore(u,i[3*!!d]),h=!0)}return h}}kt.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],kt.prototype.strokeSetter=kt.prototype.fillSetter,kt.prototype.yGetter=kt.prototype.xGetter,kt.prototype.matrixSetter=kt.prototype.rotationOriginXSetter=kt.prototype.rotationOriginYSetter=kt.prototype.rotationSetter=kt.prototype.scaleXSetter=kt.prototype.scaleYSetter=kt.prototype.translateXSetter=kt.prototype.translateYSetter=kt.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0};let Et=kt;
vendor: 4,698 bytes, line 2
2class Ct extends Et{constructor(e,t,i,n,r,s,a,o,l,c){let u;super(e,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=t,this.x=i,this.y=n,this.anchorX=s,this.anchorY=a,this.baseline=l,this.className=c,this.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&this.addClass("highcharts-"+c),this.text=e.text(void 0,0,0,o).attr({zIndex:1}),"string"==typeof r&&((u=/^url\((.*?)\)$/.test(r))||this.renderer.symbols[r])&&(this.symbolKey=r),this.bBox=Ct.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||u,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let t=ee(e);this.textAlign=e,t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&ce(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}boxAttr(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}css(e){if(e){let t={};e=fe(e),Ct.textProps.forEach(i=>{void 0!==e[i]&&(t[i]=e[i],delete e[i])}),this.text.css(t),"fontSize"in t||"fontWeight"in t||"width"in t?this.updateTextPadding():"textOverflow"in t&&this.updateBoxSize()}return Et.prototype.css.call(this,e)}destroy(){Se(this.element,"mouseenter"),Se(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Et.prototype.destroy.call(this)}fillSetter(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}getBBox(e,t){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();let{padding:i,height:n=0,translateX:r=0,translateY:s=0,width:a=0}=this,o=be(this.paddingLeft,i),l=t??(this.rotation||0),c={width:a,height:n,x:r+this.bBox.x-o,y:s+this.bBox.y-i+this.baselineOffset};return l&&(c=this.getRotatedBox(c,l)),c}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:be(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&X(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,t){ce(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}rSetter(e,t){this.boxAttr(t,e)}strokeSetter(e,t){this.stroke=e,this.boxAttr(t,e)}"stroke-widthSetter"(e,t){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(t,e)}"text-alignSetter"(e){this.textAlign=this["text-align"]=e,this.updateTextPadding()}textSetter(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let e,t=this.text,i={},n=this.padding,r=this.bBox=ce(this.widthSetting)&&ce(this.heightSetting)&&!this.textAlign||!X(t.textStr)?Ct.emptyBBox:t.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||r.height||0)+2*n;let s=this.renderer.fontMetrics(t);if(this.baselineOffset=n+Math.min((this.text.firstLineMetrics||s).b,r.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!t.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)}i.x=e=this.getCrispAdjust(),i.y=(this.baseline?-this.baselineOffset:0)+e,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(Q(i,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text,t=e.styles.textAlign||this.textAlign;if(!e.textPath){this.updateBoxSize();let i=this.baseline?0:this.baselineOffset,n=(this.paddingLeft??this.padding)+ee(t)*(this.widthSetting??this.bBox.width);(n!==e.x||i!==e.y)&&(e.attr({align:t,x:n}),void 0!==i&&e.attr("y",i)),e.x=n,e.y=i}}widthSetter(e){this.widthSetting=ce(e)?e:void 0,this.doUpdate=!0}getPaddedWidth(){let e=this.padding,t=be(this.paddingLeft,e),i=be(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+i}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}function At(e,t,i,n,r){let s=[];if(r){let a=r.start||0,o=r.end||0,l=be(r.r,i),c=be(r.r,n||i),u=1e-4>Math.abs(o-a-2*Math.PI);
vendor: 15,202 bytes, line 2
2u&&(a=Math.PI/2,o=2.5*Math.PI-1e-4);let d=r.innerR,h=be(r.open,u),p=u?0:Math.cos(a),f=u?1:Math.sin(a),m=u?0:Math.cos(o),g=u?1:Math.sin(o),v=be(r.longArc,o-a-Math.PI<1e-4?0:1),y=["A",l,c,0,v,be(r.clockwise,1),e+(u?.001:l*m),t+c*g];y.params={start:a,end:o,cx:e,cy:t},s.push(["M",e+l*p,t+c*f],y),X(d)&&((y=["A",d,d,0,v,X(r.clockwise)?1-r.clockwise:0,e+(u?-.001:d*p),t+d*f]).params={start:o,end:a,cx:e,cy:t},s.push(h?["M",e+d*m,t+d*g]:["L",e+d*m,t+d*g],y)),h||s.push(["Z"])}return s}function Lt(e,t,i,n,r){return r?.r?It(e,t,i,n,r):[["M",e,t],["L",e+i,t],["L",e+i,t+n],["L",e,t+n],["Z"]]}function It(e,t,i,n,r){let s=r?.r||0;return[["M",e+s,t],["L",e+i-s,t],["A",s,s,0,0,1,e+i,t+s],["L",e+i,t+n-s],["A",s,s,0,0,1,e+i-s,t+n],["L",e+s,t+n],["A",s,s,0,0,1,e,t+n-s],["L",e,t+s],["A",s,s,0,0,1,e+s,t],["Z"]]}Ct.emptyBBox={width:0,height:0,x:0,y:0},Ct.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let Pt={arc:At,callout:function(e,t,i,n,r){let s=Math.min(r?.r||0,i,n),a=s+6,o=r?.anchorX,l=r?.anchorY||0,c=It(e,t,i,n,{r:s});if(!ce(o)||o<i&&o>0&&l<n&&l>0)return c;if(e+o>i-a)if(l>t+a&&l<t+n-a)c.splice(3,1,["L",e+i,l-6],["L",e+i+6,l],["L",e+i,l+6],["L",e+i,t+n-s]);else if(o<i){let r=l<t+a,u=r?t:t+n;c.splice(r?2:5,0,["L",o,l],["L",e+i-s,u])}else c.splice(3,1,["L",e+i,n/2],["L",o,l],["L",e+i,n/2],["L",e+i,t+n-s]);else if(e+o<a)if(l>t+a&&l<t+n-a)c.splice(7,1,["L",e,l+6],["L",e-6,l],["L",e,l-6],["L",e,t+s]);else if(o>0){let i=l<t+a,r=i?t:t+n;c.splice(i?1:6,0,["L",o,l],["L",e+s,r])}else c.splice(7,1,["L",e,n/2],["L",o,l],["L",e,n/2],["L",e,t+s]);else l>n&&o<i-a?c.splice(5,1,["L",o+6,t+n],["L",o,t+n+6],["L",o-6,t+n],["L",e+s,t+n]):l<0&&o>a&&c.splice(1,1,["L",o-6,t],["L",o,t-6],["L",o+6,t],["L",i-s,t]);return c},circle:function(e,t,i,n){return At(e+i/2,t+n/2,i/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,i,n){return[["M",e+i/2,t],["L",e+i,t+n/2],["L",e+i/2,t+n],["L",e,t+n/2],["Z"]]},rect:Lt,roundedRect:It,square:Lt,triangle:function(e,t,i,n){return[["M",e+i/2,t],["L",e+i,t+n],["L",e,t+n],["Z"]]},"triangle-down":function(e,t,i,n){return[["M",e,t],["L",e+i,t],["L",e+i/2,t+n],["Z"]]}},{doc:Ot,SVG_NS:Dt,win:Mt}=M,Nt=(e,t)=>e.substring(0,t)+"â¦",Rt=class{constructor(e){const t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=t?.lineHeight,this.textOutline=t?.textOutline,this.ellipsis="ellipsis"===t?.textOverflow,this.lineClamp=t?.lineClamp,this.noWrap="nowrap"===t?.whiteSpace}buildSVG(){let e=this.svgElement,t=e.element,i=e.renderer,n=be(e.textStr,"").toString(),r=-1!==n.indexOf("<"),s=t.childNodes,a=!e.added&&i.box,o=[n,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle("font-size"),e.styles.lineClamp,this.width].join(",");if(o!==e.textCache){e.textCache=o,delete e.actualWidth;for(let e=s.length;e--;)t.removeChild(s[e]);if(r||this.ellipsis||this.width||e.textPath||-1!==n.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(n))){if(""!==n){a&&a.appendChild(t);let i=new st(n);this.modifyTree(i.nodes),i.addToDOM(t),this.modifyDOM(),this.ellipsis&&-1!==(t.textContent||"").indexOf("â¦")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),a&&a.removeChild(t)}}else t.appendChild(Ot.createTextNode(this.unescapeEntities(n)));ue(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){let e,t=this.svgElement,i=j(t.element,"x");for(t.firstLineMetrics=void 0;(e=t.element.firstChild)&&/^[\s\u200B]*$/.test(e.textContent||" ");)t.element.removeChild(e);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),(e,n)=>{e.nextSibling&&e.previousSibling&&(0===n&&1===e.previousSibling.nodeType&&(t.firstLineMetrics=t.renderer.fontMetrics(e.previousSibling)),j(e,{dy:this.getLineHeight(e.nextSibling),x:i}))});let n=this.width||0;if(!n)return;let r=(e,r)=>{let s=e.textContent||"",a=s.replace(/([^\^])-/g,"$1- ").split(" "),o=!this.noWrap&&(a.length>1||t.element.childNodes.length>1),l=this.getLineHeight(r),c=Math.max(0,n-.8*l),u=0,d=t.actualWidth;if(o){let s=[],o=[];for(;r.firstChild&&r.firstChild!==e;)o.push(r.firstChild),r.removeChild(r.firstChild);for(;a.length;)if(a.length&&!this.noWrap&&u>0&&(s.push(e.textContent||""),e.textContent=a.join(" ").replace(/- /g,"-")),this.truncate(e,void 0,a,0===u&&d||0,n,c,(e,t)=>a.slice(0,t).join(" ").replace(/- /g,"-")),d=t.actualWidth,u++,this.lineClamp&&u>=this.lineClamp){a.length&&(this.truncate(e,e.textContent||"",void 0,0,n,c,Nt),e.textContent=e.textContent?.replace("â¦","")+"â¦");break}o.forEach(t=>{r.insertBefore(t,e)}),s.forEach(t=>{r.insertBefore(Ot.createTextNode(t),e);let n=Ot.createElementNS(Dt,"tspan");n.textContent="â",j(n,{dy:l,x:i}),r.insertBefore(n,e)})}else this.ellipsis&&s&&this.truncate(e,s,void 0,0,n,c,Nt)},s=e=>{[].slice.call(e.childNodes).forEach(i=>{i.nodeType===Mt.Node.TEXT_NODE?r(i,e):(-1!==i.className.baseVal.indexOf("highcharts-br")&&(t.actualWidth=0),s(i))})};s(t.element)}getLineHeight(e){let t=e.nodeType===Mt.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(e){let t=(i,n)=>{let{attributes:r={},children:s,style:a={},tagName:o}=i,l=this.renderer.styledMode;if("b"===o||"strong"===o?l?r.class="highcharts-strong":a.fontWeight="bold":("i"===o||"em"===o)&&(l?r.class="highcharts-emphasized":a.fontStyle="italic"),a?.color&&(a.fill=a.color),"br"===o){r.class="highcharts-br",i.textContent="â";let t=e[n+1];t?.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else"a"===o&&s&&s.some(e=>"#text"===e.tagName)&&(i.children=[{children:s,tagName:"tspan"}]);"#text"!==o&&"a"!==o&&(i.tagName="tspan"),Q(i,{attributes:r,style:a}),s&&s.filter(e=>"#text"!==e.tagName).forEach(t)};e.forEach(t),J(this.svgElement,"afterModifyTree",{nodes:e})}truncate(e,t,i,n,r,s,a){let o,l,c=this.svgElement,{rotation:u}=c,d=[],h=i&&!n?1:0,p=(t||i||"").length,f=p;i||(r=s);let m=function(t,r){let s=r||t,a=e.parentNode;if(a&&void 0===d[s]&&a.getSubStringLength)try{d[s]=n+a.getSubStringLength(0,i?s+1:s)}catch{}return d[s]};if(c.rotation=0,n+(l=m(e.textContent.length))>r){for(;h<=p;)f=Math.ceil((h+p)/2),i&&(o=a(i,f)),l=m(f,o&&o.length-1),h===p?h=p+1:l>r?p=f-1:h=f;0===p?e.textContent="":t&&p===t.length-1||(e.textContent=o||a(t||i,f)),this.ellipsis&&l>r&&this.truncate(e,e.textContent||"",void 0,0,r,s,Nt)}i&&i.splice(0,f),c.actualWidth=l,c.rotation=u}unescapeEntities(e,t){return ge(this.renderer.escapes,function(i,n){t&&-1!==t.indexOf(i)||(e=e.toString().replace(RegExp(i,"g"),n))}),e}},{defaultOptions:Bt}=ze,{charts:Ft,deg2rad:Ut,doc:jt,isFirefox:Ht,isMS:qt,isWebKit:zt,noop:Wt,SVG_NS:Vt,symbolSizes:Xt,win:Gt}=M;class $t{constructor(e,t,i,n,r,s,a){let o,l;this.x=0,this.y=0;const c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=c.element;a||c.css(this.getStyle(n||{})),e.appendChild(u),j(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&j(u,"xmlns",this.SVG_NS),this.box=u,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(jt.createTextNode("Created with Highcharts 12.6.0")),this.defs=this.createElement("defs").add(),this.allowHTML=s,this.forExport=r,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(t,i,!1),Ht&&e.getBoundingClientRect&&((o=function(){V(e,{left:0,top:0}),l=e.getBoundingClientRect(),V(e,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=B(Gt,"resize",o))}definition(e){return new st([e]).addToDOM(this.defs.element)}getReferenceURL(){if((Ht||zt)&&jt.getElementsByTagName("base").length){if(!X(t)){let e=Me(),i=new st([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${e})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(jt.body);V(i,{position:"fixed",top:0,left:0,zIndex:9e5});let n=jt.elementFromPoint(6,6);t="hitme"===n?.id,jt.body.removeChild(i)}if(t)return we(Gt.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(e){return this.style=Q({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),G(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}shadowDefinition(e){let t=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(t=>`${t}-${e[t]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=fe({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${t}`)||this.definition({tagName:"filter",attributes:{id:t,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),t}getShadowFilterContent(e){return[{tagName:"feDropShadow",attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(5*e.opacity,1),stdDeviation:e.width/2}}]}buildText(e){new Rt(e).buildSVG()}getContrast(e){if("transparent"===e)return"#000000";let t=Ge.parse(e).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(ce(t[0])||!Ge.useColorMix){let e=t.map(e=>{let t=e/255;return t<=.04?t/12.92:Math.pow((t+.055)/1.055,2.4)}),i=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(i+.05)>(i+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+e+" srgb"+i+i+i+")"}button(e,t,i,n,r={},s,a,o,l,c){let u=this.label(e,t,i,l,void 0,void 0,c,void 0,"button"),d=this.styledMode,h=arguments,p=0;r=fe(Bt.global.buttonTheme,r),d&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);let f=r.states||{},m=r.style||{};delete r.states,delete r.style;let g=[st.filterUserAttributes(r)],v=[m];return d||["hover","select","disabled"].forEach((e,t)=>{g.push(fe(g[0],st.filterUserAttributes(h[t+5]||f[e]||{}))),v.push(g[t+1].style),delete g[t+1].style}),B(u.element,qt?"mouseover":"mouseenter",function(){3!==p&&u.setState(1)}),B(u.element,qt?"mouseout":"mouseleave",function(){3!==p&&u.setState(p)}),u.setState=(e=0)=>{if(1!==e&&(u.state=p=e),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e]),!d){u.attr(g[e]);let t=v[e];pe(t)&&u.css(t)}},u.attr(g[0]),!d&&(u.css(Q({cursor:"default"},m)),c&&u.text.css({pointerEvents:"none"})),u.on("touchstart",e=>e.stopPropagation()).on("click",function(e){3!==p&&n?.call(u,e)})}crispLine(e,t){let[i,n]=e;return X(i[1])&&i[1]===n[1]&&(i[1]=n[1]=W(i[1],t)),X(i[2])&&i[2]===n[2]&&(i[2]=n[2]=W(i[2],t)),e}path(e){let t=this.styledMode?{}:{fill:"none"};return de(e)?t.d=e:pe(e)&&Q(t,e),this.createElement("path").attr(t)}circle(e,t,i){let n=pe(e)?e:void 0===e?{}:{x:e,y:t,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(e,t,i){i.setAttribute("c"+t,e)},r.attr(n)}arc(e,t,i,n,r,s){let a;pe(e)?(t=(a=e).y,i=a.r,n=a.innerR,r=a.start,s=a.end,e=a.x):a={innerR:n,start:r,end:s};let o=this.symbol("arc",e,t,i,i,a);return o.r=i,o}rect(e,t,i,n,r,s){let a=pe(e)?e:void 0===e?{}:{x:e,y:t,r:r,width:Math.max(i||0,0),height:Math.max(n||0,0)},o=this.createElement("rect");return this.styledMode||(void 0!==s&&(a["stroke-width"]=s,Q(a,o.crisp(a))),a.fill="none"),o.rSetter=function(e,t,i){o.r=e,j(i,{rx:e,ry:e})},o.rGetter=function(){return o.r||0},o.attr(a)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,t,i){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:be(i,!0)?void 0:0}),this.alignElements()}g(e){let t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t}image(e,t,i,n,r,s){let a={preserveAspectRatio:"none"};ce(t)&&(a.x=t),ce(i)&&(a.y=i),ce(n)&&(a.width=n),ce(r)&&(a.height=r);let o=this.createElement("image").attr(a),l=function(t){o.attr({href:e}),s.call(o,t)};if(s){o.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let t=new Gt.Image;B(t,"load",l),t.src=e,t.complete&&l({})}else o.attr({href:e});return o}symbol(e,t,i,n,r,s){let a,o,l,c,u=this,d=/^url\((.*?)\)$/,h=d.test(e),p=!h&&(this.symbols[e]?e:"circle"),f=p&&this.symbols[p];if(f)"number"==typeof t&&(o=f.call(this.symbols,t||0,i||0,n||0,r||0,s)),a=this.path(o),u.styledMode||a.attr("fill","none"),Q(a,{symbolName:p||void 0,x:t,y:i,width:n,height:r}),s&&Q(a,s);else if(h){l=e.match(d)[1];let n=a=this.image(l);n.imgwidth=be(s?.width,Xt[l]?.width),n.imgheight=be(s?.height,Xt[l]?.height),c=e=>e.attr({width:e.width,height:e.height}),["width","height"].forEach(e=>{n[`${e}Setter`]=function(e,t){this[t]=e;let{alignByTranslate:i,element:n,width:r,height:a,imgwidth:o,imgheight:l}=this,c="width"===t?o:l,u=1;s&&"within"===s.backgroundSize&&r&&a&&o&&l?(u=Math.min(r/o,a/l),j(n,{width:Math.round(o*u),height:Math.round(l*u)})):n&&c&&n.setAttribute(t,c),!i&&o&&l&&this.translate(((r||0)-o*u)/2,((a||0)-l*u)/2)}}),X(t)&&n.attr({x:t,y:i}),n.isImg=!0,X(n.imgwidth)&&X(n.imgheight)?c(n):(n.attr({width:0,height:0}),z("img",{onload:function(){let e=Ft[u.chartIndex];0===this.width&&(V(this,{position:"absolute",top:"-999em"}),jt.body.appendChild(this)),Xt[l]={width:this.width,height:this.height},n.imgwidth=this.width,n.imgheight=this.height,n.element&&c(n),this.parentNode&&this.parentNode.removeChild(this),u.asyncCounter--,u.asyncCounter||!e||e.hasLoaded||e.onload()},src:l}),this.asyncCounter++)}return a}clipRect(e,t,i,n){return this.rect(e,t,i,n,0)}text(e,t,i,n){let r={};if(n&&(this.allowHTML||!this.forExport))return this.html(e,t,i);r.x=Math.round(t||0),i&&(r.y=Math.round(i)),X(e)&&(r.text=e);let s=this.createElement("text").attr(r);return n&&(!this.forExport||this.allowHTML)||(s.xSetter=function(e,t,i){let n=i.getElementsByTagName("tspan"),r=i.getAttribute(t);for(let i,s=0;s<n.length;s++)(i=n[s]).getAttribute(t)===r&&i.setAttribute(t,e);i.setAttribute(t,e)}),s}fontMetrics(e){let t=ce(e)?e:_e(Et.prototype.getStyle.call(e,"font-size")||0),i=t<24?t+3:Math.round(1.2*t);return{h:i,b:Math.round(.8*i),f:t}}rotCorr(e,t,i){let n=e;return t&&i&&(n=Math.max(n*Math.cos(t*Ut),4)),{x:-e/3*Math.sin(t*Ut),y:n}}pathToSegments(e){let t=[],i=[],n={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let r=0;r<e.length;r++)ue(i[0])&&ce(e[r])&&i.length===n[i[0].toUpperCase()]&&e.splice(r,0,i[0].replace("M","L").replace("m","l")),"string"==typeof e[r]&&(i.length&&t.push(i.slice(0)),i.length=0),i.push(e[r]);return t.push(i.slice(0)),t}label(e,t,i,n,r,s,a,o,l){return new Ct(this,e,t,i,n,r,s,a,o,l)}
2alignElements(){this.alignedObjects.forEach(e=>e.align())}}Q($t.prototype,{Element:Et,SVG_NS:Vt,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Pt,draw:Wt}),ft.registerRendererType("svg",$t,!0);let{composed:Yt,isFirefox:Kt}=M;function Qt(e,t,i){let n=this.div?.style;Et.prototype[`${t}Setter`].call(this,e,t,i),n&&(i.style[t]=n[t]=e)}let Zt=(e,t)=>{if(!e.div){let i=j(e.element,"class"),n=e.css,r=z("div",i?{className:i}:void 0,{position:"absolute",left:`${e.translateX||0}px`,top:`${e.translateY||0}px`,...e.styles,display:e.display,opacity:e.opacity,visibility:e.visibility},e.parentGroup?.div||t);e.classSetter=(e,t,i)=>{i.setAttribute("class",e),r.className=e},e.translateXSetter=e.translateYSetter=(t,i)=>{e[i]=t,r.style["translateX"===i?"left":"top"]=`${t}px`,e.doTransform=!0},e.scaleXSetter=e.scaleYSetter=(t,i)=>{e[i]=t,e.doTransform=!0},e.opacitySetter=e.visibilitySetter=Qt,e.css=t=>(n.call(e,t),t.cursor&&(r.style.cursor=t.cursor),t.pointerEvents&&(r.style.pointerEvents=t.pointerEvents),e),e.on=function(){return Et.prototype.on.apply({element:r,onEvents:e.onEvents},arguments),e},e.div=r}return e.div};class Jt extends Et{static compose(e){Te(Yt,this.compose)&&(e.prototype.html=function(e,t,i){return new Jt(this,"span").attr({text:e,x:Math.round(t),y:Math.round(i)})})}constructor(e,t){super(e,t),Jt.useForeignObject?this.foreignObject=e.createElement("foreignObject").attr({zIndex:2}):this.css({position:"absolute",...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(e,t,i){this.xCorr=-e*i,this.yCorr=-t}css(e){let t,{element:i}=this,n="SPAN"===i.tagName&&e&&"width"in e,r=n&&e.width;return n&&(delete e.width,this.textWidth=_e(r)||void 0,t=!0),"ellipsis"===e?.textOverflow&&(e.overflow="hidden",e.whiteSpace="nowrap"),e?.lineClamp&&(e.display="-webkit-box",e.WebkitLineClamp=e.lineClamp,e.WebkitBoxOrient="vertical",e.overflow="hidden"),ce(Number(e?.fontSize))&&(e.fontSize+="px"),Q(this.styles,e),V(i,e),t&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){if(!this.added)return void(this.alignOnAdd=!0);let{element:e,foreignObject:t,oldTextWidth:i,renderer:n,rotation:r,rotationOriginX:s,rotationOriginY:a,scaleX:o,scaleY:l,styles:{display:c="inline-block",whiteSpace:u},textAlign:d="left",textWidth:h,translateX:p=0,translateY:f=0,x:m=0,y:g=0}=this,v=()=>this.textPxLength?this.textPxLength:(V(e,{width:"",whiteSpace:u||"nowrap"}),e.offsetWidth);if(t||V(e,{marginLeft:`${p}px`,marginTop:`${f}px`}),"SPAN"===e.tagName){let p,f=[r,d,e.innerHTML,h,this.textAlign].join(","),y=-1*this.parentGroup?.padding||0;if(h!==i){let t=v(),s=h||0,a=!n.styledMode&&""===e.style.textOverflow&&e.style.webkitLineClamp;(s>i||t>s||a)&&(/[\-\s\u00AD]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(V(e,{width:(r||o||t>s)&&ce(h)?h+"px":a?Math.min(t+1,s)+"px":"auto",display:c,whiteSpace:u||"normal"}),this.oldTextWidth=h)}t&&(V(e,{display:"inline-block",verticalAlign:"top"}),t.attr({width:n.width,height:n.height})),f!==this.cTT&&(p=n.fontMetrics(e).b,X(r)&&!t&&(r!==(this.oldRotation||0)||d!==this.oldAlign)&&V(e,{transform:`rotate(${r}deg)`,transformOrigin:`${y}% ${y}px`}
2),this.getSpanCorrection(!X(r)&&!this.textWidth&&this.textPxLength||e.offsetWidth,p,ee(d)));let{xCorr:b=0,yCorr:_=0}=this,T={left:`${m+b}px`,top:`${g+_}px`,textAlign:d,transformOrigin:`${(s??m)-b-m-y}px ${(a??g)-_-g-y}px`};(o||l)&&(T.transform=`scale(${o??1},${l??1})`),t?(super.updateTransform(),ce(m)&&ce(g)?(t.attr({x:m+b,y:g+_,width:e.offsetWidth+3,height:e.offsetHeight,"transform-origin":e.getAttribute("transform-origin")||"0 0"}),V(e,{display:c,textAlign:d})):Kt&&t.attr({width:0,height:0})):V(e,T),this.cTT=f,this.oldRotation=r,this.oldAlign=d}}add(e){let{foreignObject:t,renderer:i}=this,n=i.box.parentNode,r=[];if(t)t.add(e),super.add(i.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(t));else{let t;if(this.parentGroup=e,e&&!(t=e.div)){let i=e;for(;i;)r.push(i),i=i.parentGroup;for(let e of r.reverse())t=Zt(e,n)}(t||n).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,st.setElementHTML(this.element,e??""),this.textStr=e,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,t){this[t]=e,this.doTransform=!0}}let ei=Jt.prototype;ei.visibilitySetter=ei.opacitySetter=Qt,ei.ySetter=ei.rotationSetter=ei.rotationOriginXSetter=ei.rotationOriginYSetter=ei.xSetter,(l=y||(y={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},l.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};let ti=y;(b||(b={})).registerEventOptions=function(e,t){e.eventOptions=e.eventOptions||{},ge(t.events,function(t,i){e.eventOptions[i]!==t&&(e.eventOptions[i]&&(Se(e,i,e.eventOptions[i]),delete e.eventOptions[i]),he(t)&&(e.eventOptions[i]=t,B(e,i,t,{order:0})))})};let ii=b,{deg2rad:ni}=M,ri=class{constructor(e,t,i,n,r){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=t,this.type=i||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,J(this,"init"),i||n||this.addLabel()}addLabel(){let e,t,i,n=this,r=n.axis,s=r.options,a=r.chart,o=r.categories,l=r.logarithmic,c=r.names,u=n.pos,d=be(n.options?.labels,s.labels),h=r.tickPositions,p=u===h[0],f=u===h[h.length-1],m=(!d.step||1===d.step)&&1===r.tickInterval,g=h.info,v=n.label,y=this.parameters.category||(o?be(o[u],c[u],u):u);l&&ce(y)&&(y=q(l.lin2log(y))),r.dateTime&&(g?e=(t=a.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid?.enabled&&g.higherRanks[u]||g.unitName])).main:ce(y)&&(e=r.dateTime.getXDateFormat(y,s.dateTimeLabelFormats||{}))),n.isFirst=p,n.isLast=f;let b={axis:r,chart:a,dateTimeLabelFormat:e,isFirst:p,isLast:f,pos:u,tick:n,tickPositionInfo:g,value:y};J(this,"labelFormat",b);let _=e=>d.formatter?d.formatter.call(e,e):d.format?(e.text=r.defaultLabelFormatter.call(e),pt.format(d.format,e,a)):r.defaultLabelFormatter.call(e),T=_.call(b,b),x=t?.list;n.shortenLabel=x?function(){for(i=0;i<x.length;i++)if(Q(b,{dateTimeLabelFormat:x[i]}),v.attr({text:_.call(b,b)}),v.getBBox().width<r.getSlotWidth(n)-2*(d.padding||0))return;v.attr({text:""})}:void 0,m&&r._addedPlotLB&&n.moveLabel(T,d),X(v)||n.movedLabel?v&&v.textStr!==T&&!m&&(!v.textWidth||d.style.width||v.styles.width||v.css({width:null}),v.attr({text:T}),v.textPxLength=v.getBBox().width):(n.label=v=n.createLabel(T,d),n.rotation=0)}createLabel(e,t,i){let n=this.axis,{renderer:r,styledMode:s}=n.chart,a=t.style.whiteSpace,o=X(e)&&t.enabled?r.text(e,i?.x,i?.y,t.useHTML).add(n.labelGroup):void 0;return o&&(s||o.css(fe(t.style)),o.textPxLength=o.getBBox().width,!s&&a&&o.css({whiteSpace:a})),o}destroy(){G(this,this.axis)}
2getPosition(e,t,i,n){let r=this.axis,s=r.chart,a=n&&s.oldChartHeight||s.chartHeight,o={x:e?q(r.translate(t+i,void 0,void 0,n)+r.transB):r.left+r.offset+(r.opposite?(n&&s.oldChartWidth||s.chartWidth)-r.right-r.left:0),y:e?a-r.bottom+r.offset-(r.opposite?r.height:0):q(a-r.translate(t+i,void 0,void 0,n)-r.transB)};return o.y=H(o.y,-1e9,1e9),J(this,"afterGetPosition",{pos:o}),o}getLabelPosition(e,t,i,n,r,s,a,o){let l,c,u=this.axis,d=u.transA,h=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,p=u.staggerLines,f=u.tickRotCorr||{x:0,y:0},m=n||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),g=r.distance,v={};return l=0===u.side?i.rotation?-g:-i.getBBox().height:2===u.side?f.y+g:Math.cos(i.rotation*ni)*(f.y-i.getBBox(!1,0).height/2),X(r.y)&&(l=0===u.side&&u.horiz?r.y+l:r.y),e=e+be(r.x,[0,1,0,-1][u.side]*g)+m+f.x-(s&&n?s*d*(h?-1:1):0),t=t+l-(s&&!n?s*d*(h?1:-1):0),p&&(c=a/(o||1)%p,u.opposite&&(c=p-c-1),t+=c*(u.labelOffset/p)),v.x=e,v.y=Math.round(t),J(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:s,index:a}),v}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(e,t,i,n,r=!1,s){return s.crispLine([["M",e,t],["L",e+(r?0:-i),t+(r?i:0)]],n)}handleOverflow(e){let t,i=this.axis,n=i.options.labels,r=e.x,s=i.chart.chartWidth,a=i.chart.spacing,o=be(i.labelLeft,Math.min(i.pos,a[3])),l=be(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,s-a[1])),c=this.label,u=this.rotation,d=ee(i.labelAlign||c.attr("align")),h=c.getBBox().width,p=i.getSlotWidth(this),f=p,m=1;u||"justify"!==n.overflow?u<0&&r-d*h<o?t=Math.round(r/Math.cos(u*ni)-o):u>0&&r+d*h>l&&(t=Math.round((s-r)/Math.cos(u*ni))):(r-d*h<o?f=e.x+f*(1-d)-o:r+(1-d)*h>l&&(f=l-e.x+f*d,m=-1),(f=Math.min(p,f))<p&&"center"===i.labelAlign&&(e.x+=m*(p-f-d*(p-Math.min(h,f)))),(h>f||i.autoRotation&&c?.styles?.width)&&(t=f)),t&&c&&(this.shortenLabel?this.shortenLabel():c.css(Q({},{width:Math.floor(t)+"px",lineClamp:+!i.isRadial})))}moveLabel(e,t){let i,n=this,r=n.label,s=n.axis,a=!1;r&&r.textStr===e?(n.movedLabel=r,a=!0,delete n.label):ge(s.ticks,function(t){a||t.isNew||t===n||!t.label||t.label.textStr!==e||(n.movedLabel=t.label,a=!0,t.labelPos=n.movedLabel.xy,delete t.label)}),!a&&(n.labelPos||r)&&(i=n.labelPos||r.xy,n.movedLabel=n.createLabel(e,t,i),n.movedLabel&&n.movedLabel.attr({opacity:0}))}render(e,t,i){let n=this.axis,r=n.horiz,s=this.pos,a=be(this.tickmarkOffset,n.tickmarkOffset),o=this.getPosition(r,s,a,t),l=o.x,c=o.y,u=n.pos,d=u+n.len,h=r?l:c,p=be(i,this.label?.newOpacity,1);!n.chart.polar&&(q(h)<u||h>d)&&(i=0),i??(i=1),this.isActive=!0,this.renderGridLine(t,i),this.renderMark(o,i),this.renderLabel(o,t,p,e),this.isNew=!1,J(this,"afterRender")}renderGridLine(e,t){let i,n=this.axis,r=n.options,s={},a=this.pos,o=this.type,l=be(this.tickmarkOffset,n.tickmarkOffset),c=n.chart.renderer,u=this.gridLine,d=r.gridLineWidth,h=r.gridLineColor,p=r.gridLineDashStyle;"minor"===this.type&&(d=r.minorGridLineWidth,h=r.minorGridLineColor,p=r.minorGridLineDashStyle),u||(n.chart.styledMode||(s.stroke=h,s["stroke-width"]=d||0,s.dashstyle=p),o||(s.zIndex=1),e&&(t=0),this.gridLine=u=c.path().attr(s).addClass("highcharts-"+(o?o+"-":"")+"grid-line").add(n.gridGroup)),u&&(i=n.getPlotLinePath({value:a+l,lineWidth:u.strokeWidth(),force:"pass",old:e,acrossPanes:!1}))&&u[e||this.isNew?"attr":"animate"]({d:i,opacity:t})}renderMark(e,t){let i=this.axis,n=i.options,r=i.chart.renderer,s=this.type,a=i.tickSize(s?s+"Tick":"tick"),o=e.x,l=e.y,c=be(n["minor"!==s?"tickWidth":"minorTickWidth"],!s&&i.isXAxis?1:0),u=n["minor"!==s?"tickColor":"minorTickColor"],d=this.mark,h=!d;a&&(i.opposite&&(a[0]=-a[0]),!d&&(this.mark=d=r.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||d.attr({stroke:u,"stroke-width":c})),d[h?"attr":"animate"]({d:this.getMarkPath(o,l,a[0],d.strokeWidth(),i.horiz,r),opacity:t}))}renderLabel(e,t,i,n){let r=this.axis,s=r.horiz,a=r.options,o=this.label,l=a.labels,c=l.step,u=be(this.tickmarkOffset,r.tickmarkOffset),d=e.x,h=e.y,p=!0;o&&ce(d)&&(o.xy=e=this.getLabelPosition(d,h,o,s,l,u,n,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?p=!1:s&&!t&&0!==i&&this.handleOverflow(e),c&&n%c&&(p=!1),p&&ce(e.y)?(e.opacity=i,o[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(o.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let e=this.label,t=this.axis;e&&!this.isNew&&(e.animate({opacity:0}
2,void 0,e.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:si}=Je,{xAxis:ai,yAxis:oi}=ti,{defaultOptions:li}=ze,{registerEventOptions:ci}=ii,{deg2rad:ui}=M,di=(e,t)=>me(t,void 0,void 0,be(e.options.allowDecimals,t<.5||void 0!==e.tickAmount),!!e.tickAmount);Q(li,{xAxis:ai,yAxis:fe(ai,oi)});class hi{constructor(e,t,i){this.init(e,t,i)}init(e,t,i=this.coll){let n="xAxis"===i,r=this.isZAxis||(e.inverted?!n:n);this.chart=e,this.horiz=r,this.isXAxis=n,this.coll=i,J(this,"init",{userOptions:t}),this.opposite=be(t.opposite,this.opposite),this.side=be(t.side,this.side,r?2*!this.opposite:this.opposite?1:3),this.setOptions(t);let s=this.options,a=s.labels;this.type??(this.type=s.type||"linear"),this.uniqueNames??(this.uniqueNames=s.uniqueNames??!0),J(this,"afterSetType"),this.userOptions=t,this.minPixelPadding=0,this.reversed=be(s.reversed,this.reversed),this.visible=s.visible,this.zoomEnabled=s.zoomEnabled,this.hasNames="category"===this.type||!0===s.categories,this.categories=de(s.categories)&&s.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=X(s.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=s.minRange||s.maxZoom,this.range=s.range,this.offset=s.offset||0,this.max=void 0,this.min=void 0;let o=be(s.crosshair,ke(e.options.tooltip.crosshairs)[+!n]);this.crosshair=!0===o?{}:o,-1===e.axes.indexOf(this)&&(n?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),Oe(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&n&&!X(this.reversed)&&(this.reversed=!0),this.labelRotation=ce(a.rotation)?a.rotation:void 0,ci(this,s),J(this,"afterInit")}setOptions(e){let t=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=fe(t,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},li[this.coll],e),J(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(){let e,t,i=this.axis,n=this.chart,{numberFormatter:r}=n,s=ce(this.value)?this.value:NaN,a=i.chart.time,o=i.categories,l=this.dateTimeLabelFormat,c=li.lang,u=c.numericSymbols,d=c.numericSymbolMagnitude||1e3,h=i.logarithmic?Math.abs(s):i.tickInterval,p=u?.length;if(o)t=`${this.value}`;else if(l)t=a.dateFormat(l,s,!0);else if(p&&u&&h>=1e3)for(;p--&&void 0===t;)h>=(e=Math.pow(d,p+1))&&10*s%e==0&&null!==u[p]&&0!==s&&(t=r(s/e,-1,void 0,void 0,n)+u[p]);return t??(t=r(s,-1,void 0,1e4>Math.abs(s)?"":void 0,n)),t}getSeriesExtremes(){let e,t=this;J(this,"getSeriesExtremes",null,function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=void 0,t.softThreshold=!t.isXAxis,t.series.forEach(i=>{if(i.reserveSpace()){let n,r,s,a=i.options,o=a.threshold;if(t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=(o||0)&&(o=void 0),t.isXAxis)(n=i.getColumn("x")).length&&(n=t.logarithmic?n.filter(e=>e>0):n,r=(e=i.getXExtremes(n)).min,s=e.max,ce(r)||r instanceof Date||(n=n.filter(ce),r=(e=i.getXExtremes(n)).min,s=e.max),n.length&&(t.dataMin=Math.min(be(t.dataMin,r),r),t.dataMax=Math.max(be(t.dataMax,s),s)));else{let e=i.applyExtremes();ce(e.dataMin)&&(r=e.dataMin,t.dataMin=Math.min(be(t.dataMin,r),r)),ce(e.dataMax)&&(s=e.dataMax,t.dataMax=Math.max(be(t.dataMax,s),s)),X(o)&&(t.threshold=o),(!a.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1)}}})}),J(this,"afterGetSeriesExtremes")}translate(e,t,i,n,r,s){let a=this.linkedParent||this,o=n&&a.old?a.old.min:a.min;if(!ce(o))return NaN;let l=a.minPixelPadding,c=(a.isOrdinal||a.brokenAxis?.hasBreaks||a.logarithmic&&r)&&!!a.lin2val,u=1,d=0,h=n&&a.old?a.old.transA:a.transA,p=0;return h||(h=a.transA),i&&(u*=-1,d=a.len),a.reversed&&(u*=-1,d-=u*(a.sector||a.len)),t?(p=(e=e*u+d-l)/h+o,c&&(p=a.lin2val(p))):(c&&(e=a.val2lin(e)),p=u*(e-o)*h+d+u*l+(ce(s)?h*s:0),a.isRadial||(p=q(p))),p}toPixels(e,t){return this.translate(this.chart?.time.parse(e)??NaN,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}toValue(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let t,i,n,r,s,a=this,o=a.chart,l=a.left,c=a.top,u=e.old,d=e.value,h=e.lineWidth,p=u&&o.oldChartHeight||o.chartHe
2ight,f=u&&o.oldChartWidth||o.chartWidth,m=a.transB,g=e.translatedValue,v=e.force;function y(e,t,i){return"pass"!==v&&(e<t||e>i)&&(v?e=H(e,t,i):s=!0),e}let b={value:d,lineWidth:h,old:u,force:v,acrossPanes:e.acrossPanes,translatedValue:g};return J(this,"getPlotLinePath",b,function(e){t=n=(g=H(g=be(g,a.translate(d,void 0,void 0,u)),-1e9,1e9))+m,i=r=p-g-m,ce(g)?a.horiz?(i=c,r=p-a.bottom+(a.options.isInternal?0:o.scrollablePixelsY||0),t=n=y(t,l,l+a.width)):(t=l,n=f-a.right+(o.scrollablePixelsX||0),i=r=y(i,c,c+a.height)):(s=!0,v=!1),e.path=s&&!v?void 0:o.renderer.crispLine([["M",t,i],["L",n,r]],h||1)}),b.path}getLinearTickPositions(e,t,i){let n,r,s,a=q(Math.floor(t/e)*e),o=q(Math.ceil(i/e)*e),l=[];if(q(a+e)===a&&(s=20),this.single)return[t];for(n=a;n<=o&&(l.push(n),(n=q(n+e,s))!==r);)r=n;return l}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:t}=this.options;return!0===e?be(t,"auto"):!1!==e?t:void 0}getMinorTickPositions(){let e,t=this.options,i=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,s=(this.min||0)-r,a=(this.max||0)+r,o=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:a-s,l=[];if(o&&o/n<this.len/3){let r=this.logarithmic;if(r)this.paddedTicks.forEach(function(e,t,i){t&&l.push.apply(l,r.getLogTickPositions(n,i[t-1],i[t],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),s,a,t.startOfWeek));else for(e=s+(i[0]-s)%n;e<=a&&e!==l[0];e+=n)l.push(e)}return 0!==l.length&&this.trimTicks(l),l}adjustForMinRange(){let e,t,i,n,r=this.options,s=this.logarithmic,a=this.chart.time,{max:o,min:l,minRange:c}=this;this.isXAxis&&void 0===c&&!s&&(c=X(r.min)||X(r.max)||X(r.floor)||X(r.ceiling)?null:Math.min(5*(te(this.series.map(e=>{let t=e.getColumn("x");return e.xIncrement?t.slice(0,2):t}))||0),this.dataMax-this.dataMin)),ce(o)&&ce(l)&&ce(c)&&o-l<c&&(t=this.dataMax-this.dataMin>=c,e=(c-o+l)/2,i=[l-e,a.parse(r.min)??l-e],t&&(i[2]=s?s.log2lin(this.dataMin):this.dataMin),n=[(l=U(i))+c,a.parse(r.max)??l+c],t&&(n[2]=s?s.log2lin(this.dataMax):this.dataMax),(o=F(n))-l<c&&(i[0]=o-c,i[1]=a.parse(r.min)??o-c,l=U(i))),this.minRange=c,this.min=l,this.max=o}getClosest(){let e,t;if(this.categories)t=1;else{let i=[];this.series.forEach(function(e){let n=e.closestPointRange,r=e.getColumn("x");1===r.length?i.push(r[0]):e.sorted&&X(n)&&e.reserveSpace()&&(t=X(t)?Math.min(t,n):n)}),i.length&&(i.sort((e,t)=>e-t),e=te([i]))}return e&&t?Math.min(e,t):e||t}nameToX(e){let t,i=de(this.options.categories),n=i?this.categories:this.names,r=e.options.x;return e.series.requireSorting=!1,X(r)||(r=this.uniqueNames&&n?i?n.indexOf(e.name):be(n.keys[e.name],-1):e.series.autoIncrement()),-1===r?!i&&n&&(t=n.length):ce(r)&&(t=r),void 0!==t?(this.names[t]=e.name,this.names.keys[e.name]=t):e.x&&(t=e.x),t}updateNames(){let e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(t=>{t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max||0,t.dataTable.rowCount-1),t.processData(),t.generatePoints());let i=t.getColumn("x").slice();t.data.forEach((t,n)=>{let r=i[n];t?.options&&void 0!==t.name&&void 0!==(r=e.nameToX(t))&&r!==t.x&&(i[n]=t.x=r)}),t.dataTable.setColumn("x",i)}))}setAxisTranslation(){let e,t,i=this,n=i.max-i.min,r=i.linkedParent,s=!!i.categories,a=i.isXAxis,o=i.axisPointRange||0,l=0,c=0,u=i.transA;(a||s||o)&&(e=i.getClosest(),r?(l=r.minPointOffset,c=r.pointRangePadding):i.series.forEach(function(t){let n=s?1:a?be(t.options.pointRange,e,0):i.axisPointRange||0,r=t.options.pointPlacement;if(o=Math.max(o,n),!i.single||s){let e=t.is("xrange")?!a:a;l=Math.max(l,e&&ue(r)?0:n/2),c=Math.max(c,e&&"on"===r?0:n)}}),t=i.ordinal?.slope&&e?i.ordinal.slope/e:1,i.minPointOffset=l*=t,i.pointRangePadding=c*=t,i.pointRange=Math.min(o,i.single&&s?1:n),a&&(i.closestPointRange=e)),i.translationSlope=i.transA=u=i.staticScale||i.len/(n+c||1),i.transB=i.horiz?i.left
2:i.bottom,i.minPixelPadding=u*l,J(this,"afterSetAxisTranslation")}minFromRange(){let{max:e,min:t}=this;return ce(e)&&ce(t)&&e-t||void 0}setTickInterval(e){let t,i,n,r,s,{categories:a,chart:o,dataMax:l,dataMin:c,dateTime:u,isXAxis:d,logarithmic:h,options:p,softThreshold:f}=this,m=o.time,g=ce(this.threshold)?this.threshold:void 0,v=this.minRange||0,{ceiling:y,floor:b,linkedTo:_,softMax:T,softMin:x}=p,w=ce(_)&&o[this.coll]?.[_],S=p.tickPixelInterval,k=p.maxPadding,E=p.minPadding,C=0,A=ce(p.tickInterval)&&p.tickInterval>=0?p.tickInterval:void 0;if(u||a||w||this.getTickAmount(),r=be(this.userMin,m.parse(p.min)),s=be(this.userMax,m.parse(p.max)),w?(this.linkedParent=w,t=w.getExtremes(),this.min=be(t.min,t.dataMin),this.max=be(t.max,t.dataMax),this.type!==w.type&&Pe(11,!0,o)):(f&&X(g)&&ce(l)&&ce(c)&&(c>=g?(i=g,E=0):l<=g&&(n=g,k=0)),this.min=be(r,i,c),this.max=be(s,n,l)),ce(this.max)&&ce(this.min)&&(h&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,be(c,this.min))&&Pe(10,!0,o),this.min=q(h.log2lin(this.min),16),this.max=q(h.log2lin(this.max),16)),this.range&&ce(c)&&(this.userMin=this.min=r=Math.max(c,this.minFromRange()||0),this.userMax=s=this.max,this.range=void 0)),J(this,"foundExtremes"),this.adjustForMinRange(),ce(this.min)&&ce(this.max)){if(!ce(this.userMin)&&ce(x)&&x<this.min&&(this.min=r=x),!ce(this.userMax)&&ce(T)&&T>this.max&&(this.max=s=T),a||this.axisPointRange||this.stacking?.usePercentage||w||(C=this.max-this.min)&&(!X(r)&&E&&(this.min-=C*E),!X(s)&&k&&(this.max+=C*k)),!ce(this.userMin)&&ce(b)&&(this.min=Math.max(this.min,b)),!ce(this.userMax)&&ce(y)&&(this.max=Math.min(this.max,y)),f&&ce(c)&&ce(l)){let e=g||0;!X(r)&&this.min<e&&c>=e?this.min=p.minRange?Math.min(e,this.max-v):e:!X(s)&&this.max>e&&l<=e&&(this.max=p.minRange?Math.max(e,this.min+v):e)}!o.polar&&this.min>this.max&&(X(p.min)?this.max=this.min:X(p.max)&&(this.min=this.max)),C=this.max-this.min}if(this.min!==this.max&&ce(this.min)&&ce(this.max)?w&&!A&&S===w.options.tickPixelInterval?this.tickInterval=A=w.tickInterval:this.tickInterval=be(A,this.tickAmount?C/Math.max(this.tickAmount-1,1):void 0,a?1:C*S/Math.max(this.len,S)):this.tickInterval=1,d&&!e){let e=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(t){t.forceCrop=t.forceCropping?.(),t.processData(e)}),J(this,"postProcessData",{hasExtremesChanged:e})}this.setAxisTranslation(),J(this,"initialAxisTranslation"),this.pointRange&&!A&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let L=be(p.minTickInterval,u&&!this.series.some(e=>!e.sorted)?this.closestPointRange:0);!A&&L&&this.tickInterval<L&&(this.tickInterval=L),u||h||A||(this.tickInterval=di(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let e,t=this.options,i=t.tickPositions,n=t.tickPositioner,r=this.getMinorTickInterval(),s=!this.isPanning,a=s&&t.startOnTick,o=s&&t.endOnTick,l=[];
vendor: 4,343 bytes, line 2
2if(this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&X(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==t.allowDecimals),i)l=i.slice();else if(ce(this.min)&&ce(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))l=[this.min,this.max],Pe(19,!1,this.chart);else if(this.dateTime)l=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)l=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,t=e;for(;t<=2*e&&(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&l.length>this.tickAmount);)this.tickInterval=di(this,t*=1.1)}l.length>this.len&&(l=[l[0],l[l.length-1]])[0]===l[1]&&(l.length=1),n&&(this.tickPositions=l,(e=n.apply(this,[this.min,this.max,this]))&&(l=e))}this.isDirty||l.length===this.tickPositions?.length||(this.isDirty=!0),this.tickPositions=l,this.minorTickInterval="auto"===r&&this.tickInterval?this.tickInterval/t.minorTicksPerMajor:r,this.paddedTicks=l.slice(0),this.trimTicks(l,a,o),!this.isLinked&&ce(this.min)&&ce(this.max)&&(this.single&&l.length<2&&!this.categories&&!this.series.some(e=>e.is("heatmap")&&"between"===e.options.pointPlacement)&&(this.min-=.5,this.max+=.5),i||e||this.adjustTickAmount()),J(this,"afterSetTickPositions")}trimTicks(e,t,i){let n=e[0],r=e[e.length-1],s=!this.isOrdinal&&this.minPointOffset||0;if(J(this,"trimTicks"),!this.isLinked||!this.grid){if(t&&n!==-1/0)this.min=n;else for(;this.min-s>e[0];)e.shift();if(i)this.max=r;else for(;this.max+s<e[e.length-1];)e.pop();0===e.length&&X(n)&&!this.options.tickPositions&&e.push((r+n)/2)}}alignToOthers(){let e,t=this,i=t.chart,n=[this],r=t.options,s=i.options.chart,a="yAxis"===this.coll&&s.alignThresholds,o=[];if(t.thresholdAlignment=void 0,(!1!==s.alignTicks&&r.alignTicks||a)&&!1!==r.startOnTick&&!1!==r.endOnTick&&!t.logarithmic){let r=e=>{let{horiz:t,options:i}=e;return[t?i.left:i.top,i.width,i.height,i.pane].join(",")},s=r(this);i[this.coll].forEach(function(i){let{series:a}=i;a.length&&a.some(e=>e.visible)&&i!==t&&r(i)===s&&(e=!0,n.push(i))})}if(e&&a){n.forEach(e=>{let i=e.getThresholdAlignment(t);ce(i)&&o.push(i)});let e=o.length>1?o.reduce((e,t)=>e+t,0)/o.length:void 0;n.forEach(t=>{t.thresholdAlignment=e})}return e}getThresholdAlignment(e){if((!ce(this.dataMin)||this!==e&&this.series.some(e=>e.isDirty||e.isDirtyData||e.xAxis?.isDirty))&&this.getSeriesExtremes(),ce(this.threshold)){let e=H((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this.options,t=e.tickPixelInterval,i=e.tickAmount;X(e.tickInterval)||i||!(this.len<t)||this.isRadial||this.logarithmic||!e.startOnTick||!e.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/t)+1),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i}adjustTickAmount(){let e,t,i,n=this,{finalTickAmt:r,max:s,min:a,options:o,tickPositions:l,tickAmount:c,thresholdAlignment:u}=n,d=l?.length,h=be(n.threshold,n.softThreshold?0:null),p=n.tickInterval,f=()=>l.push(q(l[l.length-1]+p)),m=()=>l.unshift(q(l[0]-p));if(ce(u)&&(i=0===u?0:1===u?c-1:Math.round(H(u*(c-1),1,c-2)),o.reversed&&(i=c-1-i)),n.hasData()&&ce(a)&&ce(s)){let u=()=>{n.transA*=(d-1)/(c-1),n.min=o.startOnTick?l[0]:Math.min(a,l[0]),n.max=o.endOnTick?l[l.length-1]:Math.max(s,l[l.length-1])};if(ce(i)&&ce(n.threshold)){for(;l[i]!==h||l.length!==c||l[0]>a||l[l.length-1]<s;){for(l.length=0,l.push(n.threshold);l.length<c;)void 0===l[i]||l[i]>n.threshold?m():f();if(p>8*n.tickInterval)break;p*=2}u()}else if(d<c){for(;l.length<c;)l.length%2||a===h?f():m();u()}if(X(r)){for(t=e=l.length;t--;)(3===r&&t%2==1||r<=2&&t>0&&t<e-1)&&l.splice(t,1);n.finalTickAmt=void 0}}}setScale(){let{coll:e,stacking:t}=this,i=!1,n=!1;this.series.forEach(e=>{i=i||e.isDirtyData||e.isDirty,n=n||e.xAxis?.isDirty||!1}),this.setAxisSize();let r=this.len!==this.old?.len;r||i||n||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(t&&"yAxis"===e&&t.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.get
2SeriesExtremes(),this.setTickInterval(),t&&"xAxis"===e&&t.buildStacks(),this.isDirty||(this.isDirty=r||this.min!==this.old?.min||this.max!==this.old?.max)):t&&t.cleanStacks(),i&&delete this.allExtremes,J(this,"afterSetScale")}setExtremes(e,t,i=!0,n,r){let s=this.chart;this.series.forEach(e=>{delete e.kdTree}),J(this,"setExtremes",r=Q(r,{min:e=s.time.parse(e),max:t=s.time.parse(t)}),e=>{this.userMin=e.min,this.userMax=e.max,this.eventArgs=e,i&&s.redraw(n)})}setAxisSize(){let e=this.chart,t=this.options,i=t.offsets||[0,0,0,0],n=this.horiz,r=this.width=Math.round(xe(be(t.width,e.plotWidth-i[3]+i[1]),e.plotWidth)),s=this.height=Math.round(xe(be(t.height,e.plotHeight-i[0]+i[2]),e.plotHeight)),a=this.top=Math.round(xe(be(t.top,e.plotTop+i[0]),e.plotHeight,e.plotTop)),o=this.left=Math.round(xe(be(t.left,e.plotLeft+i[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-s-a,this.right=e.chartWidth-r-o,this.len=Math.max(n?r:s,0),this.pos=n?o:a}getExtremes(){let e=this.logarithmic;return{min:e?q(e.lin2log(this.min)):this.min,max:e?q(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let t=this.logarithmic,i=t?t.lin2log(this.min):this.min,n=t?t.lin2log(this.max):this.max;return null===e||e===-1/0?e=i:e===1/0?e=n:i>e?e=i:n<e&&(e=n),this.translate(e,0,1,0,1)}autoLabelAlign(e){let t=((e-90*this.side)%360+360)%360,i={align:"center"};return J(this,"autoLabelAlign",i,function(e){t>15&&t<165?e.align="right":t>195&&t<345&&(e.align="left")}),i.align}tickSize(e){let t,i=this.options,n=be(i["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),r=i["tick"===e?"tickLength":"minorTickLength"];n&&r&&("inside"===i[e+"Position"]&&(r=-r),t=[r,n]);let s={tickSize:t};return J(this,"afterTickSize",s),s.tickSize}labelMetrics(){let e=this.chart.renderer,t=this.ticks,i=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||e.box)}unsquish(){let e,t,i=this.options.labels,n=i.padding||0,r=this.horiz,s=this.tickInterval,a=this.len/((+!!this.categories+this.max-this.min)/s),o=i.rotation,l=q(.8*this.labelMetrics().h),c=Math.max(this.max-this.min,0),u=function(e){let t=(e+2*n)/(a||1);return(t=t>1?Math.ceil(t):1)*s>c&&e!==1/0&&a!==1/0&&c&&(t=Math.ceil(c/s)),q(t*s)},d=s,h=Number.MAX_VALUE;if(r){if(!i.staggerLines&&(ce(o)?t=[o]:a<i.autoRotationLimit&&(t=i.autoRotation)),t){let i,n;for(let r of t)(r===o||r&&r>=-90&&r<=90)&&(n=(i=u(Math.abs(l/Math.sin(ui*r))))+Math.abs(r/360))<h&&(h=n,e=r,d=i)}}else d=u(.75*l);return this.autoRotation=t,this.labelRotation=be(e,ce(o)?o:0),i.step?s:d}getSlotWidth(e){let t=this.chart,i=this.horiz,n=this.options.labels,r=Math.max(this.tickPositions.length-!this.categories,1),s=t.margin[3];if(e&&ce(e.slotWidth))return e.slotWidth;if(i&&n.step<2&&!this.isRadial)return n.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){let e=n.style.width;if(void 0!==e)return parseInt(String(e),10);if(!this.opposite&&s)return s-t.spacing[3]}return.33*t.chartWidth}renderUnsquish(){let e,t=this.chart,i=t.renderer,n=this.tickPositions,r=this.ticks,s=this.options.labels,a=s.style,o=this.horiz,l=this.getSlotWidth(),c=Math.max(1,Math.round(l-(o?2*(s.padding||0):s.distance||0))),u={},d=this.labelMetrics(),h=a.lineClamp,p=h??(Math.floor(this.len/(n.length*d.h))||1),f=0;ue(s.rotation)||(u.rotation=s.rotation||0),n.forEach(function(e){let t=r[e];t.movedLabel&&t.replaceMovedLabel();let i=t.label?.textPxLength||0;i>f&&(f=i)}),this.maxLabelLength=f,this.autoRotation?f>c&&f>d.h?u.rotation=this.labelRotation:this.labelRotation=0:l&&(e=c),u.rotation&&(e=f>.5*t.chartHeight?.33*t.chartHeight:f,h||(p=1)),this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(u.align=this.labelAlign),n.forEach(function(t){let i=r[t],n=i?.label,s=a.width,o={};n&&(n.attr(u),i.shortenLabel?i.shortenLabel():e&&!s&&"nowrap"!==a.whiteSpace&&(e<(n.textPxLength||0)||"SPAN"===n.element.tagName)?n.css(Q(o,{width:`${e}px`,lineClamp:p})):!n.styles.width||o.width||s||n.css({width:"auto"}),i.rotation=u.rotation)},this),this.tickRotCorr=i.rotCorr(d.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&X(this.min)&&X(this.max)}addTitle(e){let t,i=this.chart.renderer,n=this.horiz,r=this.opposite,s=this.options.title,a=this.chart.styledMode;
2this.axisTitle||((t=s.textAlign)||(t=(n?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[s.align]),this.axisTitle=i.text(s.text||"",0,0,s.useHTML).attr({zIndex:7,rotation:s.rotation||0,align:t}).addClass("highcharts-axis-title"),a||this.axisTitle.css(fe(s.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||s.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)}generateTick(e){let t=this.ticks;t[e]?t[e].addLabel():t[e]=new ri(this,e)}createGroups(){let{axisParent:e,chart:t,coll:i,options:n}=this,r=t.renderer,s=(t,s,a)=>r.g(t).attr({zIndex:a}).addClass(`highcharts-${i.toLowerCase()}${s} `+(this.isRadial?`highcharts-radial-axis${s} `:"")+(n.className||"")).add(e);this.axisGroup||(this.gridGroup=s("grid","-grid",n.gridZIndex),this.axisGroup=s("axis","",n.zIndex),this.labelGroup=s("axis-labels","-labels",n.labels.zIndex))}getOffset(){let e,t,i,n,r=this,{chart:s,horiz:a,options:o,side:l,ticks:c,tickPositions:u,coll:d}=r,h=s.inverted&&!r.isZAxis?[1,0,3,2][l]:l,p=r.hasData(),f=o.title,m=o.labels,g=ce(o.crossing),v=s.axisOffset,y=s.clipOffset,b=[-1,1,1,-1][l],_=0,T=0,x=0;if(r.showAxis=e=p||o.showEmpty,r.staggerLines=r.horiz&&m.staggerLines||void 0,r.createGroups(),p||r.isLinked?(u.forEach(function(e){r.generateTick(e)}),r.renderUnsquish(),r.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===r.labelAlign,be(m.reserveSpace,!g&&null,"center"===r.labelAlign||null,r.reserveSpaceDefault)&&u.forEach(function(e){x=Math.max(c[e].getLabelSize(),x)}),r.staggerLines&&(x*=r.staggerLines),r.labelOffset=x*(r.opposite?-1:1)):ge(c,function(e,t){e.destroy(),delete c[t]}),f?.text&&!1!==f.enabled&&(r.addTitle(e),e&&!g&&!1!==f.reserveSpace&&(r.titleOffset=_=r.axisTitle.getBBox()[a?"height":"width"],T=X(t=f.offset)?0:be(f.margin,a?5:10))),r.renderLine(),r.offset=b*be(o.offset,v[l]?v[l]+(o.margin||0):0),r.tickRotCorr=r.tickRotCorr||{x:0,y:0},n=0===l?-r.labelMetrics().h:2===l?r.tickRotCorr.y:0,i=Math.abs(x)+T,x&&(i-=n,i+=b*(a?be(m.y,r.tickRotCorr.y+b*m.distance):be(m.x,b*m.distance))),r.axisTitleMargin=be(t,i),r.getMaxLabelDimensions&&(r.maxLabelDimensions=r.getMaxLabelDimensions(c,u)),"colorAxis"!==d&&y){let e=this.tickSize("tick");v[l]=Math.max(v[l],(r.axisTitleMargin||0)+_+b*r.offset,i,u?.length&&e?e[0]+b*r.offset:0);let t=!r.axisLine||o.offset?0:r.axisLine.strokeWidth()/2;y[h]=Math.max(y[h],t)}J(this,"afterGetOffset")}getLinePath(e){let t=this.chart,i=this.opposite,n=this.offset,r=this.horiz,s=this.left+(i?this.width:0)+n,a=t.chartHeight-this.bottom-(i?this.height:0)+n;return i&&(e*=-1),t.renderer.crispLine([["M",r?this.left:s,r?a:this.top],["L",r?t.chartWidth-this.right:s,r?a:t.chartHeight-this.bottom]],e)}renderLine(){!this.axisLine&&(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let t=this.horiz,i=this.left,n=this.top,r=this.len,s=this.options.title,a=t?i:n,o=this.opposite,l=this.offset,c=s.x,u=s.y,d=this.chart.renderer.fontMetrics(e),h=e?Math.max(e.getBBox(!1,0).height-d.h-1,0):0,p={low:a+(t?0:r),middle:a+r/2,high:a+(t?r:0)}[s.align],f=(t?n+this.height:i)+(t?1:-1)*(o?-1:1)*(this.axisTitleMargin||0)+[-h,h,d.f,-h][this.side],m={x:t?p+c:f+(o?this.width:0)+l+c,y:t?f+u-(o?this.height:0)+l:p+u};return J(this,"afterGetTitlePosition",{titlePosition:m}),m}renderMinorTick(e,t){let i=this.minorTicks;i[e]||(i[e]=new ri(this,e,"minor")),t&&i[e].isNew&&i[e].render(null,!0),i[e].render(null,!1,1)}renderTick(e,t,i){let n=this.isLinked,r=this.ticks;(!n||e>=this.min&&e<=this.max||this.grid?.isColumn)&&(r[e]||(r[e]=new ri(this,e)),i&&r[e].isNew&&r[e].render(t,!0,-1),r[e].render(t))}render(){let e,t,i=this,n=i.chart,r=i.logarithmic,s=n.renderer,a=i.options,o=i.isLinked,l=i.tickPositions,c=i.axisTitle,u=i.ticks,d=i.minorTicks,h=i.alternateBands,p=a.stackLabels,f=a.alternateGridColor,m=a.crossing,g=i.tickmarkOffset,v=i.axisLine,y=i.showAxis,b=si(s.globalAnimation);
2if(i.labelEdge.length=0,i.overlap=!1,[u,d,h].forEach(function(e){ge(e,function(e){e.isActive=!1})}),ce(m)){let e=this.isXAxis?n.yAxis[0]:n.xAxis[0],t=[1,-1,-1,1][this.side];if(e){let n=e.toPixels(m,!0);i.horiz&&(n=e.len-n),i.offset=t*n}}if(i.hasData()||o){let s=i.chart.hasRendered&&i.old&&ce(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(e){i.renderMinorTick(e,s)}),l.length&&(l.forEach(function(e,t){i.renderTick(e,t,s)}),g&&(0===i.min||i.single)&&(u[-1]||(u[-1]=new ri(i,-1,null,!0)),u[-1].render(-1))),f&&l.forEach(function(s,a){t=void 0!==l[a+1]?l[a+1]+g:i.max-g,a%2==0&&s<i.max&&t<=i.max+(n.polar?-g:g)&&(h[s]||(h[s]=new M.PlotLineOrBand(i,{})),e=s+g,h[s].options={from:r?r.lin2log(e):e,to:r?r.lin2log(t):t,color:f,className:"highcharts-alternate-grid"},h[s].render(),h[s].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(e){i.addPlotBandOrLine(e)}))}[u,d,h].forEach(function(e){let t=[],i=b.duration;ge(e,function(e,i){e.isActive||(e.render(i,!1,0),e.isActive=!1,t.push(i))}),Ce(function(){let i=t.length;for(;i--;)e[t[i]]&&!e[t[i]].isActive&&(e[t[i]].destroy(),delete e[t[i]])},e!==h&&n.hasRendered&&i?i:0)}),v&&(v[v.isPlaced?"animate":"attr"]({d:this.getLinePath(v.strokeWidth())}),v.isPlaced=!0,v[y?"show":"hide"](y)),c&&y&&(c[c.isNew?"attr":"animate"](i.getTitlePosition(c)),c.isNew=!1),p?.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,J(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})}getKeepProps(){return this.keepProps||hi.keepProps}destroy(e){let t=this,i=t.plotLinesAndBands,n=this.eventOptions;if(J(this,"destroy",{keepEvents:e}),e||Se(t),[t.ticks,t.minorTicks,t.alternateBands].forEach(function(e){G(e)}),i){let e=i.length;for(;e--;)i[e].destroy()}for(let e in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[e]=t.plotLinesAndBandsGroups[e].destroy();ge(t,function(e,i){-1===t.getKeepProps().indexOf(i)&&delete t[i]}),this.eventOptions=n}drawCrosshair(e,t){let i,n,r,s,a=this.crosshair,o=a?.snap??!0,l=this.chart,c=this.cross;if(J(this,"drawCrosshair",{e:e,point:t}),e||(e=this.cross?.e),a&&!1!==(X(t)||!o)){if(clearTimeout(this.crossShowTimer),o?X(t)&&(n=be("colorAxis"!==this.coll?t.crosshairPos:null,this.isXAxis?t.plotX:this.len-t.plotY)):n=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),X(n)&&(s={value:t&&(this.isXAxis?t.x:be(t.stackY,t.y)),translatedValue:n},l.polar&&Q(s,{isCrosshair:!0,chartX:e?.chartX,chartY:e?.chartY,point:t}),i=this.getPlotLinePath(s)||null),!X(i))return void this.hideCrosshair();r=this.categories&&!this.isRadial,this.crossShowTimer=Ce(()=>{let t=this.cross;t||(this.cross=t=l.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(a.className||"")).attr({zIndex:be(a.zIndex,2)}).add(),!l.styledMode&&(t.attr({stroke:a.color||(r?Ge.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":be(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&t.attr({dashstyle:a.dashStyle}))),t.show().animate({d:i},si(a?.animation)),r&&!a.width&&t.attr({"stroke-width":this.transA}),this.cross&&(this.cross.e=e)},(!c||"hidden"===c.attr("visibility"))&&a.showDelay||0)}else this.hideCrosshair();J(this,"afterDrawCrosshair",{e:e,point:t})}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),J(this,"afterHideCrosshair")}update(e,t){let i=this.chart;e=fe(this.userOptions,e),this.destroy(!0),this.init(i,e),i.isDirtyBox=!0,be(t,!0)&&i.redraw()}remove(e){let t=this.chart,i=this.coll,n=this.series,r=n.length;for(;r--;)n[r]&&n[r].remove(!1);K(t.axes,this),K(t[i]||[],this),t.orderItems(i),this.destroy(),t.isDirtyBox=!0,be(e,!0)&&t.redraw()}setTitle(e,t){this.update({title:e},t)}setCategories(e,t){this.update({categories:e},t)}}hi.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],function(e){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){"datetime"===this.type?this.dateTime||(this.dateTime=new n(this)):this.dateTime=void 0}e.compose=function(e){return e.keepProps.includes("dateTime")||(e.keepProps.push("dateTime"),e.prototype.getTimeTicks=t,B(e,"afterSetType",i)),e};class n{constructor(e){this.axis=e}normalizeTimeTickInterval(e,t){let i,n,r=t||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],s=r[r.length-1],a=De[s[0]],o=s[1];for(i=0;i<r.length;
2i++)if(a=De[(s=r[i])[0]],o=s[1],r[i+1]){let t=(a*o[o.length-1]+De[r[i+1][0]])/2;if(e<=t){n=t/e;break}}return a===De.year&&e<5*a&&(o=[1,2,5]),{unitRange:a,count:me(e/a,o,"year"===s[0]?Math.max(ie(e/a),1):1),unitName:s[0],match:n}}getXDateFormat(e,t){let{axis:i}=this,n=i.chart.time;return i.closestPointRange?n.getDateFormat(i.closestPointRange,e,i.options.startOfWeek,t)||n.resolveDTLFormat(t.year).main:n.resolveDTLFormat(t.day).main}}e.Additions=n}(_||(_={}));let pi=_;!function(e){function t(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new n(this))}function i(){let e=this.logarithmic;e&&(this.lin2val=function(t){return e.lin2log(t)},this.val2lin=function(t){return e.log2lin(t)})}e.compose=function(e){return e.keepProps.includes("logarithmic")||(e.keepProps.push("logarithmic"),B(e,"afterSetType",t),B(e,"afterInit",i)),e};class n{constructor(e){this.axis=e}getLogTickPositions(e,t,i,n){let r=this.axis,s=r.len,a=r.options,o=[];if(n||(this.minorAutoInterval=void 0),e>=.5)e=Math.round(e),o=r.getLinearTickPositions(e,t,i);else if(e>=.08){let r,s,a,l,c,u,d;for(r=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],s=Math.floor(t);s<i+1&&!d;s++)for(a=0,l=r.length;a<l&&!d;a++)(c=this.log2lin(this.lin2log(s)*r[a]))>t&&(!n||u<=i)&&void 0!==u&&o.push(u),u>i&&(d=!0),u=c}else{let l=this.lin2log(t),c=this.lin2log(i),u=n?r.getMinorTickInterval():a.tickInterval,d=a.tickPixelInterval/(n?5:1),h=n?s/r.tickPositions.length:s;e=me(e=be("auto"===u?null:u,this.minorAutoInterval,(c-l)*d/(h||1))),o=r.getLinearTickPositions(e,l,c).map(this.log2lin),n||(this.minorAutoInterval=e/5)}return n||(r.tickInterval=e),o}lin2log(e){return Math.pow(10,e)}log2lin(e){return Math.log(e)/Math.LN10}}e.Additions=n}(T||(T={}));let fi=T;!function(e){let t;function i(e){return this.addPlotBandOrLine(e,"plotBands")}function n(e,i){let n=this.userOptions,r=new t(this,e);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(n.plotLines||[]).concat(n.plotBands||[]).forEach(e=>{this.addPlotBandOrLine(e)})),i){let t=n[i]||[];t.push(e),n[i]=t}this.plotLinesAndBands.push(r)}return r}function r(e){return this.addPlotBandOrLine(e,"plotLines")}function s(e,t,i){i=i||this.options;let n,r,s=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),a=[],o=this.horiz,l=!ce(this.min)||!ce(this.max)||e<this.min&&t<this.min||e>this.max&&t>this.max,c=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),u=1;if(c&&s)for(l&&(r=c.toString()===s.toString(),u=0),n=0;n<c.length;n+=2){let e=c[n],t=c[n+1],i=s[n],l=s[n+1];("M"===e[0]||"L"===e[0])&&("M"===t[0]||"L"===t[0])&&("M"===i[0]||"L"===i[0])&&("M"===l[0]||"L"===l[0])&&(o&&i[1]===e[1]?(i[1]+=u,l[1]+=u):o||i[2]!==e[2]||(i[2]+=u,l[2]+=u),a.push(["M",e[1],e[2]],["L",t[1],t[2]],["L",l[1],l[2]],["L",i[1],i[2]],["Z"])),a.isFlat=r}return a}function a(e){this.removePlotBandOrLine(e)}function o(e){let t=this.plotLinesAndBands,i=this.options,n=this.userOptions;if(t){let r=t.length;for(;r--;)t[r].id===e&&t[r].destroy();[i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]].forEach(function(t){for(r=t.length;r--;)t[r]?.id===e&&K(t,t[r])})}}function l(e){this.removePlotBandOrLine(e)}e.compose=function(e,c){let u=c.prototype;return u.addPlotBand||(t=e,Q(u,{addPlotBand:i,addPlotLine:r,addPlotBandOrLine:n,getPlotBandPath:s,removePlotBand:a,removePlotLine:l,removePlotBandOrLine:o})),c}}(x||(x={}));let mi=x;class gi{static compose(e,t){return B(e,"afterInit",function(){this.labelCollectors.push(()=>{let e=[];for(let t of this.axes)for(let{label:i,options:n}of t.plotLinesAndBands)i&&!n?.label?.allowOverlap&&e.push(i);return e})}),mi.compose(gi,t)}constructor(e,t){this.axis=e,this.options=t,this.id=t.id}render(){J(this,"render");let e,{axis:t,options:i}=this,{horiz:n,logarithmic:r}=t,{color:s,events:a,zIndex:o=0}=i,{renderer:l,time:c}=t.chart,u={},d=c.parse(i.to),h=c.parse(i.from),p=c.parse(i.value),f=i.borderWidth,m=i.label,{label:g,svgElem:v}=this,y=[],b=X(h)&&X(d),_=X(p),T=!v,x={class:"highcharts-plot-"+(b?"band ":"line ")+(i.className||"")},w=b?"bands":"lines";if(!t.chart.styledMode&&(_?(x.stroke=s||"#999999",x["stroke-width"]=be(i.width,1),i.dashStyle&&(x.dashstyle=i.dashStyle)):b&&(x.fill=s||"#e6e9ff",f&&(x.stroke=i.borderColor,x["stroke-width"]=f))),u.zIndex=o,w+="-"+o,(e=t.plotLinesAndBandsGroups[w])||(t.plotLinesAndBandsGroups[w]=e=l.g("plot-"+w).attr(u).add()),v||(this.svgElem=v=l.path().attr(x).add(e)),X(p))y=t.getPlotLinePath({value:r?.log2lin(p)??p,lineWidth:v.strokeWidth(),acrossPanes:i.acrossPanes});else{if(!X(h)||!X(d))return;y=t.getPlotBandPath(r?.log2lin(h)??h,r?.log2lin(d)??d,i)}return!this.eventsAdded&&a&&(ge(a,(e,t)=>{v?.on(t,e=>{a[t].apply(this,[e,this])})}),this.eventsAdded=!0),!T&&v.d||!y?.length?v&&(y?(v.show(),v.animate({d:y})):v.d&&(v.hide(),g&&(this.label=g=g.destroy()))):v.attr({d:y}),m&&(X(m.text)||X(m.formatter))&&y?.length&&t.width>0&&t.height>0&&!y.isFlat?(m=fe({align:n&&b?"center":void 0,x:n?!b&&4:10,verticalAlign:!n&&b?"middle":void 0,y:n?b?16:10:b?6:-4,rotation:n&&!b?90:0,...b?{inside:!0}:{}},m),this.renderLabel(m,y,b,o)):g&&g.hide(),this}renderLabel(e,t,i,n){let r=this.axis,s=r.chart.renderer,a=e.inside,o=this.label;o||(this.label=o=s.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(e.className||""),zIndex:n}),r.chart.styledMode||o.css(fe({color:r.chart.options.title?.style?.color,fontSize:"0.8em",textOverflow:i&&!a?"":"ellipsis"},e.style)),o.add());let l=t.xBounds||[t[0][1],t[1][1],i?t[2][1]:t[0][1]],c=t.yBounds||[t[0][2],t[1][2],i?t[2][2]:t[0][2]],u=F(l),d=F(c),h=U(l)-u;o.align(e,!1,{x:u,y:d,width:h,height:U(c)-d}),o.alignAttr.y-=s.fontMetrics(o).b,(!o.alignValue||"left"===o.alignValue||X(a))&&o.css({width:(e.style?.width||(i&&a?h:90===o.rotation?r.height-(o.alignAttr.y-r.top):(e.clip?r.width+r.left:r.chart.chartWidth)-o.alignAttr.x))+"px"}),o.show(!0)}getLabelText(e){return X(e.formatter)?e.formatter.call(this,this):e.text}destroy(){K(this.axis.plotLinesAndBands,this),delete this.axis,G(this)}}let{animObject:vi}=Je,{format:yi}
vendor: 4,977 bytes, line 2
2=pt,{composed:bi,dateFormats:_i,doc:Ti,isSafari:xi}=M,{distribute:wi}=mt,Si=e=>{clearTimeout(e.hideTimer),clearTimeout(e.showTimer)};class ki{constructor(e,t,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,t),this.pointer=i}bodyFormatter(e){return e.map(e=>{let t=e.series.tooltipOptions,i=e.formatPrefix||"point";return(t[i+"Formatter"]||e.tooltipFormatter).call(e,t[i+"Format"]||"",e)})}cleanSplit(e){this.chart.series.forEach(function(t){let i=t?.tt;i&&(!i.isActive||e?t.tt=i.destroy():i.isActive=!1)})}defaultFormatter(e){let t,i=this.points||ke(this);return(t=(t=[e.headerFooterFormatter(i[0])]).concat(e.bodyFormatter(i))).push(e.headerFooterFormatter(i[0],!0)),t}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),$(this.container)),ae(this.hideTimer),Si(this)}getAnchor(e,t){let i,{chart:n,pointer:r}=this,s=n.inverted,a=n.plotTop,o=n.plotLeft;if(e=ke(e),e[0].series?.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)void 0===t.chartX&&(t=r.normalize(t)),i=[t.chartX-o,t.chartY-a];else if(e[0].tooltipPos)i=e[0].tooltipPos;else{let n=0,r=0;e.forEach(function(e){let t=e.pos(!0);t&&(n+=t[0],r+=t[1])}),n/=e.length,r/=e.length,this.shared&&e.length>1&&t&&(s?n=t.chartX:r=t.chartY),i=[n-o,r-a]}let l={point:e[0],ret:i};return J(this,"getAnchor",l),l.ret.map(Math.round)}getClassName(e,t,i){let n=this.options,r=e.series,s=r.options;return[n.className,"highcharts-label",i&&"highcharts-tooltip-header",t?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+be(e.colorIndex,r.colorIndex),s?.className].filter(ue).join(" ")}getLabel({anchorX:e,anchorY:t}={anchorX:0,anchorY:0}){let i=this,n=this.chart.styledMode,r=this.options,s=this.split&&this.allowShared,a=this.container,o=this.chart.renderer;if(this.label){let e=!this.label.hasClass("highcharts-label");(!s&&e||s&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart,t=e.options.chart.style,i=ft.getRendererType();this.container=a=M.doc.createElement("div"),a.className="highcharts-tooltip-container "+(e.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),V(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(t?.zIndex||0)+3)}),this.renderer=o=new i(a,0,0,t,void 0,void 0,o.styledMode)}if(s?this.label=o.g("tooltip"):(this.label=o.label("",e,t,r.shape||"callout",void 0,void 0,r.useHTML,void 0,"tooltip").attr({padding:r.padding,r:r.borderRadius}),n||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth||0}).css(r.style).css({pointerEvents:r.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let e=this.label;[e.xSetter,e.ySetter].forEach((t,n)=>{e[n?"ySetter":"xSetter"]=r=>{t.call(e,i.distance),e[n?"y":"x"]=r,a&&(a.style[n?"top":"left"]=`${r}px`)}})}this.label.attr({zIndex:8}).shadow(r.shadow??!r.fixed).add()}return a&&!a.parentElement&&M.doc.body.appendChild(a),this.label}getPlayingField(){let{body:e,documentElement:t}=Ti,{chart:i,distance:n,outside:r}=this;return{width:r?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*n-2:i.chartWidth,height:r?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):i.chartHeight}}getPosition(e,t,i){let n,{distance:r,chart:s,outside:a,pointer:o}=this,{inverted:l,plotLeft:c,plotTop:u,polar:d}=s,{plotX:h=0,plotY:p=0}=i,f={},m=l&&i.h||0,{height:g,width:v}=this.getPlayingField(),y=o.getChartPosition(),b=i=>{let n="x"===i;return[i,n?v:g,n?e:t].concat(a?[n?e*y.scaleX:t*y.scaleY,n?y.left-r+(h+c)*y.scaleX:y.top-r+(p+u)*y.scaleY,0,n?v:g]:[n?e:t,n?h+c:p+u,n?c:u,n?c+s.plotWidth:u+s.plotHeight])},_=b("y"),T=b("x"),x=!!i.negative;!d&&s.hoverSeries?.yAxis?.reversed&&(x=!x);let w=!this.followPointer&&be(i.ttBelow,!d&&!l===x),S=function(e,t,i,n,s,o,l){let c=a?"y"===e?r*y.scaleY:r*y.scaleX:r,u=(i-n)/2,d=n<s-r,h=s+r+n<t,p=s-c-i+u,g=s+c-u;if(w&&h)f[e]=g;else if(!w&&d)f[e]=p;else if(d)f[e]=Math.min(l-n,p-m<0?p:p-m);else{if(!h)return f[e]=0,!1;f[e]=Math.max(o,g+m+i>t?g:g+m)}},k=function(e,t,i,n,s){if(s<r||s>t-r)return!1;f[e]=s<i/2?1:s>t-n/2?t-n-2:s-i/2},E=function(e){[_,T]=[T,_],n=e},C=()=>{!1!==S.apply(0,_)?!1!==k.apply(0,T)||n||(E(!0),C()):n?f.x=f.y=0:(E(!0),C())};return(l&&!d||this.len>1)&&E(),C(),a&&(f.x-=y.left,f.y-=y.top),f}getFixedPosition(e,t,i){let n=i.series,{chart:r,options:s,split:a}=this,o=s.position,l=o.relativeTo,c=s.shared||n?.yAxis?.isRadial&&("pane"===l||!l)?"plotBox":l,u="chart"===c?r.renderer:r[c]||r.getClipBox(n,!0);return{x:u.x+(u.width-e)*ee(o.align)+o.x,y:u.y+(u.height-t)*ee(o.verticalAlign)+(!a&&o.y||0)}}hide(e){let t=this;Si(this),e=be(e,this.options.hideDelay),this.isHidden||(this.hideTimer=Ce(function(){let i=t.getLabel();t.getLabel().animate({opacity:0}
vendor: 4,140 bytes, line 2
2,{duration:e?150:e,complete:()=>{i.hide(),t.container&&t.container.remove()}}),t.isHidden=!0},e))}init(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=be(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))}shouldStickOnContact(e){return!(this.followPointer||!this.options.stickOnContact||e&&!this.pointer.inClass(e.target,"highcharts-tooltip"))}move(e,t,i,n){let{followPointer:r,options:s}=this,a=vi(!r&&!this.isHidden&&!s.fixed&&s.animation),o={x:e,y:t};r||(this.len||0)>1?o.anchorX=o.anchorY=NaN:(o.anchorX=i,o.anchorY=n),a.step=()=>this.drawTracker(),this.getLabel().animate(o,a)}refresh(e,t){let i=this,{chart:n,options:r,pointer:s,shared:a}=this,o=ke(e),l=o[0],c=r.format,u=r.formatter||i.defaultFormatter,d=n.styledMode,h=i.allowShared;if(!r.enabled||!l.series)return;Si(this),i.allowShared=!(!de(e)&&e.series&&e.series.noSharedTooltip),h=h&&!i.allowShared,i.followPointer=!i.split&&l.series.tooltipOptions.followPointer;let p=i.getAnchor(e,t),f=p[0],m=p[1];a&&i.allowShared&&(s.applyInactiveState(o),o.forEach(e=>e.setState("hover")),l.points=o),this.len=o.length;let g=ue(c)?yi(c,l,n):u.call(l,i,l);l.points=void 0;let v=l.series;this.distance=be(v.tooltipOptions.distance,16),!1===g?this.hide():this.showTimer=Ce(()=>{if(i.split&&i.allowShared)i.renderSplit(g,o);else{let e=f,a=m;if(t&&s.isDirectTouch&&(e=t.chartX-n.plotLeft,a=t.chartY-n.plotTop),!n.polar&&!1!==v.options.clip&&!o.some(t=>s.isDirectTouch||t.series.shouldShowTooltip(e,a)))return void i.hide();{let e=i.getLabel(h&&i.tt||{});(!r.style.width||d)&&e.css({width:(this.outside?this.getPlayingField():n.spacingBox).width-2*r.padding+"px"}),e.attr({class:i.getClassName(l),text:de(g)?g.join(""):g}),this.outside&&e.attr({x:H(e.x||0,0,this.getPlayingField().width-(e.width||0)-1)}),d||e.attr({stroke:r.borderColor||l.color||v.color||"#666666"}),i.updatePosition({plotX:f,plotY:m,negative:l.negative,ttBelow:l.ttBelow,series:v,h:p[2]||0})}}i.isHidden&&i.label&&i.label.attr({opacity:1}).show(),i.isHidden=!1},i.isHidden&&r.showDelay||0),J(this,"refresh")}renderSplit(e,t){let i=this,{chart:n,chart:{chartWidth:r,chartHeight:s,plotHeight:a,plotLeft:o,plotTop:l,scrollablePixelsY:c=0,scrollablePixelsX:u,styledMode:d},distance:h,options:p,options:{fixed:f,position:m,positioner:g},pointer:v}=i,{scrollLeft:y=0,scrollTop:b=0}=n.scrollablePlotArea?.scrollingContainer||{},_=i.outside&&"number"!=typeof u?Ti.documentElement.getBoundingClientRect():{left:y,right:y+r,top:b,bottom:b+s},T=i.getLabel(),x=this.renderer||n.renderer,w=!!n.xAxis[0]?.opposite,{left:S,top:k}=v.getChartPosition(),E=g||f,C=l+b,A=0,L=a-c,I=function(e,t,n,r,s=[0,0],a=!0){let o,l;if(n.isHeader)l=w?0:L,o=H(s[0]-e/2,_.left,_.right-e-(i.outside?S:0));else if(f&&n){let r=i.getFixedPosition(e,t,n);o=r.x,l=r.y-C}else l=s[1]-C,o=H(o=a?s[0]-e-h:s[0]+h,a?o:_.left,_.right);return{x:o,y:l}};ue(e)&&(e=[!1,e]);let P=e.slice(0,t.length+1).reduce(function(e,n,r){if(!1!==n&&""!==n){let s=t[r-1]||{isHeader:!0,plotX:t[0].plotX,plotY:a,series:{}},c=s.isHeader,u=c?i:s.series,m=u.tt=function(e,t,n){let r=e,{isHeader:s,series:a}=t,o=a.tooltipOptions||p;if(!r){let e={padding:o.padding,r:o.borderRadius};d||(e.fill=o.backgroundColor,e["stroke-width"]=o.borderWidth??(f&&!s?0:1)),r=x.label("",0,0,o[s?"headerShape":"shape"]||(f&&!s?"rect":"callout"),void 0,void 0,o.useHTML).addClass(i.getClassName(t,!0,s)).attr(e).add(T)}return r.isActive=!0,r.attr({text:n}),d||r.css(o.style).attr({stroke:o.borderColor||t.color||a.color||"#333333"}),r}(u.tt,s,n.toString()),v=m.getBBox(),y=v.width+m.strokeWidth();c&&(A=v.height,L+=A,w&&(C-=A));let{anchorX:b,anchorY:S}=function(e){let t,i,{isHeader:n,plotX:r=0,plotY:s=0,series:c}=e;if(n)t=Math.max(o+r,o),i=l+a/2;else{let{xAxis:e,yAxis:n}=c;t=e.pos+H(r,-h,e.len+h),c.shouldShowTooltip(0,n.pos-l+s,{ignoreX:!0})&&(i=n.pos+s)}return{anchorX:t=H(t,_.left-h,_.right+h),anchorY:i}}(s);if("number"==typeof S){let t=v.height+1,n=(g||I).call(i,y,t,s,i,[b,S]);e.push({align:E?0:void 0,anchorX:b,anchorY:S,boxWidth:y,point:s,rank:be(n.rank,+!!c),size:t,target:n.y,tt:m,x:n.x})}
2else m.isActive=!1}return e},[]);!E&&P.some(e=>{let{outside:t}=i,n=(t?S:0)+e.anchorX;return n<_.left&&n+e.boxWidth<_.right||n<S-_.left+e.boxWidth&&_.right-n>n})&&(P=P.map(e=>{let{x:t,y:i}=I.call(this,e.boxWidth,e.size,e.point,void 0,[e.anchorX,e.anchorY],!1);return Q(e,{target:i,x:t})})),i.cleanSplit(),wi(P,L);let O={left:S,right:S};P.forEach(function(e){let{x:t,boxWidth:n,isHeader:r}=e;!r&&(i.outside&&S+t<O.left&&(O.left=S+t),!r&&i.outside&&O.left+n>O.right&&(O.right=S+t))}),P.forEach(function(e){let{x:t,anchorX:n,anchorY:r,pos:s,point:{isHeader:a}}=e,o={visibility:void 0===s?"hidden":"inherit",x:t,y:(s||0)+C+(f&&m.y||0),anchorX:n,anchorY:r};if(i.outside&&t<n){let e=S-O.left;e>0&&(a||(o.x=t+e,o.anchorX=n+e),a&&(o.x=(O.right-O.left)/2,o.anchorX=n+e))}e.tt.attr(o)});let{container:D,outside:M,renderer:N}=i;if(M&&D&&N){let{width:e,height:t,x:i,y:n}=T.getBBox();N.setSize(e+i,t+n,!1),D.style.left=O.left+"px",D.style.top=k+"px"}xi&&T.attr({opacity:1===T.opacity?.999:1})}drawTracker(){let e=this;if(!this.shouldStickOnContact())return void(e.tracker&&(e.tracker=e.tracker.destroy()));let t=e.chart,i=e.label,n=e.shared?t.hoverPoints:t.hoverPoint;if(!i||!n)return;let r={x:0,y:0,width:0,height:0},s=this.getAnchor(n),a=i.getBBox();s[0]+=t.plotLeft-(i.translateX||0),s[1]+=t.plotTop-(i.translateY||0),r.x=Math.min(0,s[0]),r.y=Math.min(0,s[1]),r.width=s[0]<0?Math.max(Math.abs(s[0]),a.width-s[0]):Math.max(Math.abs(s[0]),a.width),r.height=s[1]<0?Math.max(Math.abs(s[1]),a.height-Math.abs(s[1])):Math.max(Math.abs(s[1]),a.height),e.tracker?e.tracker.attr(r):(e.tracker=i.renderer.rect(r).addClass("highcharts-tracker").add(i),B(e.tracker.element,"mouseenter",()=>Si(e)),t.styledMode||e.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(e,t){let i=e.series,n=i.tooltipOptions,r=i.xAxis,s=r?.dateTime,a={isFooter:t,point:e},o=n.xDateFormat||"",l=n[t?"footerFormat":"headerFormat"];return J(this,"headerFormatter",a,function(t){if(s&&!o&&ce(e.key)&&(o=s.getXDateFormat(e.key,n.dateTimeLabelFormats)),s&&o){if(pe(o)){let e=o;_i[0]=t=>i.chart.time.dateFormat(e,t),o="%0"}
2(e.tooltipDateKeys||["key"]).forEach(e=>{l=l.replace(RegExp("point\\."+e+"([ \\)}])"),`(point.${e}:${o})$1`)})}i.chart.styledMode&&(l=this.styledModeFormat(l)),t.text=yi(l,e,this.chart)}),a.text||""}update(e){this.destroy(),this.init(this.chart,fe(!0,this.options,e))}updatePosition(e){let t,{chart:i,container:n,distance:r,options:s,pointer:a,renderer:o}=this,{height:l=0,width:c=0}=this.getLabel(),{fixed:u,positioner:d}=s,{left:h,top:p,scaleX:f,scaleY:m}=a.getChartPosition(),g=(d||u&&this.getFixedPosition||this.getPosition).call(this,c,l,e,this),v=M.doc,y=(e.plotX||0)+i.plotLeft,b=(e.plotY||0)+i.plotTop;if(o&&n){let{scrollLeft:e=0,scrollTop:a=0}=i.scrollablePlotArea?.scrollingContainer||{};g.x+=e+h,g.y+=a+p,t=(s.borderWidth||0)+2*r+2,o.setSize(H(c+t,0,v.documentElement.clientWidth)-1,l+t,!1),(1!==f||1!==m)&&(V(n,{transform:`scale(${f}, ${m})`}),y*=f,b*=m),y+=h-g.x,b+=p-g.y}this.move(Math.round(g.x),Math.round(g.y||0),y,b)}}(c=ki||(ki={})).compose=function(e){Te(bi,"Core.Tooltip")&&B(e,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new c(e,e.options.tooltip,this))})};let Ei=ki,{animObject:Ci}=Je,{defaultOptions:Ai}=ze,{format:Li}=pt;class Ii{constructor(e,t,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=e,this.applyOptions(t,i),this.id??(this.id=Me()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=e.options.nullInteraction),e.chart.pointCount++,this.category=e.xAxis?.categories?.[this.x]??this.x,this.key=this.name??this.category,J(this,"afterInit")}animateBeforeDestroy(){let e=this,t={x:e.startXPos,opacity:0},i=e.getGraphicalProps();i.singular.forEach(function(i){e[i]=e[i].animate("dataLabel"===i?{x:e[i].startXPos,y:e[i].startYPos,opacity:0}:t)}),i.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(Q({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})}applyOptions(e,t){let i=this.series,n=i.options.pointValKey||i.pointValKey;return Q(this,e=Ii.prototype.optionsToObject.call(this,e)),this.options?this.options=i.chart.options.chart.allowMutatingData?Q(this.options,e):fe(this.options,e):this.options=e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,n&&(this.y=Ii.prototype.getNestedProperty.call(this,n)),this.selected&&(this.state="select"),"name"in this&&void 0===t&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=t??i.autoIncrement():ce(e.x)&&i.options.relativeXValue?this.x=i.autoIncrement(e.x):"string"==typeof this.x&&(t??(t=i.chart.time.parse(this.x)),ce(t)&&(this.x=t)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let e=this,t=e.series,i=t.chart,n=t.options.dataSorting,r=i.hoverPoints,s=Ci(e.series.chart.renderer.globalAnimation),a=()=>{for(let t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Se(e),e.destroyElements()),e)delete e[t]};e.legendItem&&i.legend.destroyItem(e),r&&(e.setState(),K(r,e),r.length||(i.hoverPoints=null)),e===i.hoverPoint&&e.onMouseOut(),n?.enabled?(this.animateBeforeDestroy(),Ce(a,s.duration)):a(),i.pointCount--}this.destroyed=!0}destroyElements(e){let t=this,i=t.getGraphicalProps(e);i.singular.forEach(function(e){t[e]=t[e].destroy()}),i.plural.forEach(function(e){t[e].forEach(function(e){e?.element&&e.destroy()}),delete t[e]})}firePointEvent(e,t,i){let n=this,r=this.series.options;n.manageEvent(e),"click"===e&&r.allowPointSelect&&(i=function(e){!n.destroyed&&n.select&&n.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),J(n,e,t,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&!1!==this.series.options.negativeColor?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone?.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){let t,i,n=this,r=[],s={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","connector"),e.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper"),i=r.length;i--;)n[t=r[i]]&&s.singular.push(t);return["graphic","dataLabel"].forEach(function(t){let i=t+"s";e[t]&&n[i]&&s.plural.push(i)}),s}getNestedProperty(e){if(e)return 0===e.indexOf("custom.")?ne(e,this.options):this[e]}getZone(){let e,t=this.series,i=t.zones,n=t.zoneAxis||"y",r=0;for(e=i[0];this[n]>=e.value;)e=i[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),e?.color&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}isValid(){return(ce(this.x)||this.x instanceof Date)&&ce(this.y)}optionsToObject(e){let t,i=this.series,n=i.options.keys,r=n||i.pointArrayMap||["y"],s=r.length,a={},o=0,l=0;if(ce(e)||null===e)a[r[0]]=e;else if(de(e))for(!n&&e.length>s&&("string"==(t=typeof e[0])?i.xAxis?.dateTime?a.x=i.chart.time.parse(e[0]):a.name=e[0]:"number"===t&&(a.x=e[0]),o++);l<s;)n&&void 0===e[o]||(r[l].indexOf(".")>0?Ii.prototype.setNestedProperty(a,e[o],r[l]):a[r[l]]=e[o]),o++,l++;else"object"==typeof e&&(a=e,e.dataLabels&&(i.hasDataLabels=()=>!0),e.marker&&(i._hasPointMarkers=!0));return a}pos(e,t=this.plotY){if(!this.destroyed){let{plotX:i,series:n}=this,{chart:r,xAxis:s,yAxis:a}=n,o=0,l=0;if(ce(i)&&ce(t))return e&&(o=s?s.pos:r.plotLeft,l=a?a.pos:r.plotTop),r.inverted&&s&&a?[a.len-t+l,s.len-i+o]:[i+o,t+l]}}resolveColor(){let e,t,i,n=this.series,r=n.chart.options.chart,s=n.chart.styledMode,a=r.colorCount;delete this.nonZonedColor,n.options.colorByPoint?(s||(e=(t=n.options.colors||n.chart.options.colors)[n.colorCounter],a=t.length),i=n.colorCounter,n.colorCounter++,n.colorCounter===a&&(n.colorCounter=0)):(s||(e=n.color),i=n.colorIndex),this.colorIndex=be(this.options.colorIndex,i),this.color=be(this.options.color,e)}setNestedProperty(e,t,i){return i.split(".").reduce(function(e,i,n,r){let s=r.length-1===n;return e[i]=s?t:pe(e[i],!0)?e[i]:{},e[i]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){let{chart:t,pointArrayMap:i=["y"],tooltipOptions:n}=this.series,{valueDecimals:r="",valuePrefix:s="",valueSuffix:a=""}=n;return t.styledMode&&(e=t.tooltip?.styledModeFormat(e)||e),i.forEac
2h(t=>{t="{point."+t,(s||a)&&(e=e.replace(RegExp(t+"}","g"),s+t+"}"+a)),e=e.replace(RegExp(t+"}","g"),t+":,."+r+"f}")}),Li(e,this,t)}update(e,t,i,n){let r,s=this,a=s.series,o=s.graphic,l=a.chart,c=a.options,u=c.data;function d(){s.applyOptions(e);let n=o&&s.hasMockGraphic,d=null===s.y?!n:n;o&&d&&(s.graphic=o.destroy(),delete s.hasMockGraphic),pe(e,!0)&&(o?.element&&e&&e.marker&&void 0!==e.marker.symbol&&(s.graphic=o.destroy()),e?.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy())),r=s.index;let h={};for(let e of a.dataColumnKeys())h[e]=s[e];a.dataTable.setRow(h,r),u&&!a.processedData&&(u[r]=pe(u[r],!0)||pe(e,!0)?s.options:e??u[r]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),t&&l.redraw(i)}t=be(t,!0),!1===n?d():s.firePointEvent("update",{options:e},d)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){let i=this,n=i.series,r=n.chart;e=be(e,!i.selected),this.selectedStaging=e,i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,n.options.data[n.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||r.getSelectedPoints().forEac
vendor: 4,568 bytes, line 2
2h(function(e){let t=e.series;e.selected&&e!==i&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(r.hoverPoints&&t.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){let{inverted:t,pointer:i}=this.series.chart;i&&(e=e?i.normalize(e):i.getChartCoordinatesFromPoint(this,t),i.runPointActions(e,this))}onMouseOut(){let e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null}manageEvent(e){let t=fe(this.series.options.point,this.options),i=t.events?.[e];!he(i)||this.hcEvents?.[e]&&-1!==this.hcEvents?.[e]?.map(e=>e.fn).indexOf(i)?this.importedUserEvent&&!i&&this.hcEvents?.[e]&&this.hcEvents?.[e].userEvent&&(Se(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||delete this.importedUserEvent):(this.importedUserEvent?.(),this.importedUserEvent=B(this,e,i),this.hcEvents&&(this.hcEvents[e].userEvent=!0))}setState(e,t){let i,n,r,s,a=this.series,o=this.state,l=a.options.states[e||"normal"]||{},c=Ai.plotOptions[a.type].marker&&a.options.marker,u=c&&!1===c.enabled,d=c?.states?.[e||"normal"]||{},h=!1===d.enabled,p=this.marker||{},f=a.chart,m=c&&a.markerAttribs,g=a.halo,v=a.stateMarkerGraphic;if((e=e||"")===this.state&&!t||this.selected&&"select"!==e||!1===l.enabled||e&&(h||u&&!1===d.enabled)||e&&p.states&&p.states[e]&&!1===p.states[e].enabled)return;if(this.state=e,m&&(i=a.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),e&&this.graphic.addClass("highcharts-point-"+e),!f.styledMode){n=a.pointAttribs(this,e),r=be(f.options.chart.animation,l.animation);let t=n.opacity;a.options.inactiveOtherPoints&&ce(t)&&(this.dataLabels||[]).forEach(function(e){e&&!e.hasClass("highcharts-data-label-hidden")&&(e.animate({opacity:t},r),e.connector&&e.connector.animate({opacity:t},r))}),this.graphic.animate(n,r)}i&&this.graphic.animate(i,be(f.options.chart.animation,d.animation,c.animation)),v&&v.hide()}else e&&d&&(s=p.symbol||a.symbol,v&&v.currentSymbol!==s&&(v=v.destroy()),i&&(v?v[t?"animate":"attr"]({x:i.x,y:i.y}):s&&(a.stateMarkerGraphic=v=f.renderer.symbol(s,i.x,i.y,i.width,i.height,fe(c,d)).add(a.markerGroup),v.currentSymbol=s)),!f.styledMode&&v&&"inactive"!==this.state&&v.attr(a.pointAttribs(this,e))),v&&(v[e&&this.isInside?"show":"hide"](),v.element.point=this,v.addClass(this.getClassName(),!0));let y=l.halo,b=this.graphic||v,_=b?.visibility||"inherit";y?.size&&b&&"hidden"!==_&&!this.isCluster?(g||(a.halo=g=f.renderer.path().add(b.parentGroup)),g.show()[t?"animate":"attr"]({d:this.haloPath(y.size)}),g.attr({class:"highcharts-halo highcharts-color-"+be(this.colorIndex,a.colorIndex)+(this.className?" "+this.className:""),visibility:_,zIndex:-1}),g.point=this,f.styledMode||g.attr(Q({fill:this.color||a.color,"fill-opacity":y.opacity},st.filterUserAttributes(y.attributes||{})))):g?.point?.haloPath&&!g.point.destroyed&&g.animate({d:g.point.haloPath(0)},null,g.hide),J(this,"afterSetState",{state:e})}haloPath(e){let t=this.pos();return t?this.series.chart.renderer.symbols.circle(W(t[0],1)-e,t[1]-e,2*e,2*e):[]}}let Pi=Ii,{parse:Oi}=Ge,{charts:Di,composed:Mi,isTouchDevice:Ni}=M,Ri=(e,t)=>!X(t)||e[`${t}Key`];class Bi{applyInactiveState(e=[]){let t=[];for(let i of(e.forEach(e=>{let i=e.series;t.push(i),i.linkedParent&&t.push(i.linkedParent),i.linkedSeries&&t.push.apply(t,i.linkedSeries),i.navigatorSeries&&t.push(i.navigatorSeries),i.boosted&&i.markerGroup&&t.push.apply(t,this.chart.series.filter(e=>e.markerGroup===i.markerGroup))}),this.chart.series)){let e=i.options;!1!==e.states?.inactive?.enabled&&(-1===t.indexOf(i)?i.setState("inactive",!0):e.inactiveOtherPoints&&i.setAllPointsToState("inactive"))}}destroy(){let e=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!M.chartCount&&(Bi.unbindDocumentMouseUp.forEach(e=>e.unbind()),Bi.unbindDocumentMouseUp.length=0,Bi.unbindDocumentTouchEnd&&(Bi.unbindDocumentTouchEnd=Bi.unbindDocumentTouchEnd())),ge(e,function(t,i){e[i]=void 0})}getSelectionMarkerAttrs(e,t){let i={args:{chartX:e,chartY:t},attrs:{},shapeType:"rect"};return J(this,"getSelectionMarkerAttrs",i,i=>{let n,{chart:r,zoomHor:s,zoomVert:a}=this,{mouseDownX:o=0,mouseDownY:l=0}=r,c=i.attrs;c.x=r.plotLeft,c.y=r.plotTop,c.width=s?1:r.plotWidth,c.height=a?1:r.plotHeight,s&&(c.width=Math.max(1,Math.abs(n=e-o)),c.x=(n>0?0:n)+o),a&&(c.height=Math.max(1,Math.abs(n=t-l)),c.y=(n>0?0:n)+l)}),i}drag(e){let t,{chart:i}
vendor: 7,354 bytes, line 2
2=this,{mouseDownX:n=0,mouseDownY:r=0}=i,{panning:s,panKey:a,selectionMarkerFill:o}=i.options.chart,l=i.plotLeft,c=i.plotTop,u=i.plotWidth,d=i.plotHeight,h=pe(s)?s.enabled:s,p=a&&e[`${a}Key`],f=e.chartX,m=e.chartY,g=this.selectionMarker;if((!g||!g.touch)&&(f<l?f=l:f>l+u&&(f=l+u),m<c?m=c:m>c+d&&(m=c+d),this.hasDragged=Math.sqrt(Math.pow(n-f,2)+Math.pow(r-m,2)),this.hasDragged>10)){t=i.isInsidePlot(n-l,r-c,{visiblePlotOnly:!0});let{shapeType:u,attrs:d}=this.getSelectionMarkerAttrs(f,m);this.hasZoom&&t&&!p&&!g&&(this.selectionMarker=g=i.renderer[u](),g.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||g.attr({fill:o||Oi("#334eff").setOpacity(.25).get()})),g&&g.attr(d),t&&!g&&h&&Ri(e,a)&&i.pan(e,s)}}dragStart(e){let t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=e.chartX,t.mouseDownY=e.chartY}getSelectionBox(e){let t={args:{marker:e},result:e.getBBox()};return J(this,"getSelectionBox",t),t.result}drop(e){let t,{chart:i,selectionMarker:n}=this;for(let e of i.axes)e.isPanning&&(e.isPanning=!1,(e.options.startOnTick||e.options.endOnTick||e.series.some(e=>e.boosted))&&(e.forceRedraw=!0,e.setExtremes(e.userMin,e.userMax,!1),t=!0));if(t&&i.redraw(),n&&e){if(this.hasDragged){let t=this.getSelectionBox(n);i.transform({axes:i.axes.filter(e=>e.zoomEnabled&&("xAxis"===e.coll&&this.zoomX||"yAxis"===e.coll&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...t},from:t})}ce(i.index)&&(this.selectionMarker=n.destroy())}i&&ce(i.index)&&(V(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(e,t,i){let n;return e.forEach(function(e){var r;let s,a,o,l=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf("y"),c=e.searchPoint(i,l);pe(c,!0)&&c.series&&(!pe(n,!0)||(s=(r=n).distX-c.distX,a=r.dist-c.dist,o=c.series.group?.zIndex-r.series.group?.zIndex,(0!==s&&t?s:0!==a?a:0!==o?o:r.series.index>c.series.index?-1:1)>0))&&(n=c)}),n}getChartCoordinatesFromPoint(e,t){let{xAxis:i,yAxis:n}=e.series,r=e.shapeArgs;if(i&&n){let s=e.clientX??e.plotX??0,a=e.plotY||0;return e.isNode&&r&&ce(r.x)&&ce(r.y)&&(s=r.x,a=r.y),t?{chartX:n.len+n.pos-a,chartY:i.len+i.pos-s}:{chartX:s+i.pos,chartY:a+n.pos}}if(r?.x&&r.y)return{chartX:r.x,chartY:r.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,t=ve(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:n}=e;return n>2&&i>2&&(this.chartPosition.scaleX=t.width/n,this.chartPosition.scaleY=t.height/i),this.chartPosition}getCoordinates(e){let t={xAxis:[],yAxis:[]};for(let i of this.chart.axes)t[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(e[i.horiz?"chartX":"chartY"])});return t}getHoverData(e,t,i,n,r,s){let a,o=[],l=function(e){return e.visible&&!(!r&&e.directTouch)&&be(e.options.enableMouseTracking,!0)},c=t,u={chartX:s?s.chartX:void 0,chartY:s?s.chartY:void 0,shared:r};J(this,"beforeGetHoverData",u),a=c&&!c.stickyTracking?[c]:i.filter(e=>e.stickyTracking&&(u.filter||l)(e));let d=n&&e||!s?e:this.findNearestKDPoint(a,r,s);return c=d?.series,d&&(r&&!c.noSharedTooltip?(a=i.filter(function(e){return u.filter?u.filter(e):l(e)&&!e.noSharedTooltip})).forEach(function(e){let t=e.options?.nullInteraction,i=se(e.points,function(e){return!(e.x!==d.x||e.isNull&&!t)});pe(i)&&(e.boosted&&e.boost&&(i=e.boost.getPoint(i)),o.push(i))}):o.push(d)),J(this,"afterGetHoverData",u={hoverPoint:d}),{hoverPoint:u.hoverPoint,hoverSeries:c,hoverPoints:o}}getPointFromEvent(e){let t,i=e.target;for(;i&&!t;)t=i.point,i=i.parentNode;return t}onTrackerMouseOut(e){let t=this.chart,i=e.relatedTarget,n=t.hoverSeries;this.isDirectTouch=!1,!n||!i||n.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+n.index)&&this.inClass(i,"highcharts-tracker")||n.onMouseOut()}inClass(e,t){let i,n=e;for(;n;){if(i=j(n,"class")){if(-1!==i.indexOf(t))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}n=n.parentElement}}constructor(e,t){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=t,this.chart=e,this.runChartClick=!!t.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),J(this,"afterInit")}normalize(e,t){let i=e.touches,n=i?i.length?i.item(0):be(i.changedTouches,e.changedTouches)[0]:e;t||(t=this.getChartPosition());let r=n.pageX-t.left,s=n.pageY-t.top;return Q(e,{chartX:Math.round(r/=t.scaleX),chartY:Math.round(s/=t.scaleY)})}onContainerClick(e){let t=this.chart,i=t.hoverPoint,n=this.normalize(e),r=t.plotLeft,s=t.plotTop;!t.cancelClick&&(i&&this.inClass(n.target,"highcharts-tracker")?(J(i.series,"click",Q(n,{point:i})),t.hoverPoint&&i.firePointEvent("click",n)):(Q(n,this.getCoordinates(n)),t.isInsidePlot(n.chartX-r,n.chartY-s,{visiblePlotOnly:!0})&&J(t,"click",n)))}onContainerMouseDown(e){let t=!(1&~(e.buttons||e.button));e=this.normalize(e),M.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||t)&&(this.zoomOption(e),t&&e.preventDefault?.(),this.dragStart(e))}onContainerMouseLeave(e){let{pointer:t}=Di[be(Bi.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),t&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(t.reset(),t.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){let t=this.chart,i=t.tooltip,n=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===t.mouseIsDown||this.touchSelect(n))&&this.drag(n),!t.exporting?.openMenu&&(this.inClass(n.target,"highcharts-tracker")||t.isInsidePlot(n.chartX-t.plotLeft,n.chartY-t.plotTop,{visiblePlotOnly:!0}))&&!i?.shouldStickOnContact(n)&&(this.inClass(n.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(n))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let t=this.chart,i=t.tooltip,n=this.chartPosition,r=this.normalize(e,n);!n||t.isInsidePlot(r.chartX-t.plotLeft,r.chartY-t.plotTop,{visiblePlotOnly:!0})||i?.shouldStickOnContact(r)||r.target!==t.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(e){e?.touches&&this.hasPinchMoved&&e?.preventDefault?.(),Di[be(Bi.hoverChartIndex,-1)]?.pointer?.drop(e)}pinch(e){let t=this,{chart:i,hasZoom:n,lastTouches:r}=t,s=[].map.call(e.touches||[],e=>t.normalize(e)),a=s.length,o=1===a&&(t.inClass(e.target,"highcharts-tracker")&&i.runTrackerClick||t.runChartClick),l=i.tooltip,c=1===a&&be(l?.options.followTouchMove,!0);a>1?t.initiated=!0:c&&(t.initiated=!1),n&&t.initiated&&!o&&!1!==e.cancelable&&e.preventDefault(),"touchstart"===e.type?(t.pinchDown=s,t.res=!0,i.mouseDownX=e.chartX):c?this.runPointActions(t.normalize(e)):r&&(J(i,"touchpan",{originalEvent:e,touches:s},()=>{let t=e=>{let t=e[0],i=e[1]||t;return{x:t.chartX,y:t.chartY,width:i.chartX-t.chartX,height:i.chartY-t.chartY}};i.transform({axes:i.axes.filter(e=>e.zoomEnabled&&(this.zoomHor&&e.horiz||this.zoomVert&&!e.horiz)),to:t(s),from:t(r),trigger:e.type})}),t.res&&(t.res=!1,this.reset(!1,0))),t.lastTouches=s}reset(e,t){let i=this.chart,n=i.hoverSeries,r=i.hoverPoint,s=i.hoverPoints,a=i.tooltip,o=a?.shared?s:r;
vendor: 6,307 bytes, line 2
2e&&o&&ke(o).forEach(function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?a&&o&&ke(o).length&&(a.refresh(o),a.shared&&s?s.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(e){e.crosshair&&r.series[e.coll]===e&&e.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),s&&s.forEach(function(e){e.setState()}),n&&n.onMouseOut(),a&&a.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(e){e.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(e,t,i){let n=this.chart,r=n.series,s=n.tooltip?.options.enabled?n.tooltip:void 0,a=!!s&&s.shared,o=t||n.hoverPoint,l=o?.series||n.hoverSeries,c=(!e||"touchmove"!==e.type)&&(!!t||l?.directTouch&&this.isDirectTouch),u=this.getHoverData(o,l,r,c,a,e);o=u.hoverPoint,l=u.hoverSeries;let d=u.hoverPoints,h=l?.tooltipOptions.followPointer&&!l.tooltipOptions.split,p=a&&l&&!l.noSharedTooltip;if(o&&(i||o!==n.hoverPoint||s?.isHidden)){if((n.hoverPoints||[]).forEach(function(e){-1===d.indexOf(e)&&e.setState()}),n.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(d),(d||[]).forEach(function(e){e.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!o.series)return;n.hoverPoints=d,n.hoverPoint=o,o.firePointEvent("mouseOver",void 0,()=>{s&&o&&s.refresh(p?d:o,e)})}else if(h&&s&&!s.isHidden){let t=s.getAnchor([{}],e);n.isInsidePlot(t[0],t[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:t[0],plotY:t[1]})}this.unDocMouseMove||(this.unDocMouseMove=B(n.container.ownerDocument,"mousemove",e=>Di[Bi.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(e)),this.eventsToUnbind.push(this.unDocMouseMove)),n.axes.forEach(function(t){let i,r=t.crosshair?.snap??!0;r&&((i=n.hoverPoint)&&i.series[t.coll]===t||(i=se(d,e=>e.series?.[t.coll]===t))),i||!r?t.drawCrosshair(e,i):t.hideCrosshair()})}setDOMEvents(){let e=this.chart.container,t=e.ownerDocument,i=e=>e.parentElement||e.getRootNode()?.host?.parentElement;e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(B(e,"mouseenter",this.onContainerMouseEnter.bind(this)),B(e,"mouseleave",this.onContainerMouseLeave.bind(this))),Bi.unbindDocumentMouseUp.some(e=>e.doc===t)||Bi.unbindDocumentMouseUp.push({doc:t,unbind:B(t,"mouseup",this.onDocumentMouseUp.bind(this))});let n=i(this.chart.renderTo);for(;n&&"BODY"!==n.tagName;)this.eventsToUnbind.push(B(n,"scroll",()=>{delete this.chartPosition})),n=i(n);this.eventsToUnbind.push(B(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),B(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Bi.unbindDocumentTouchEnd||(Bi.unbindDocumentTouchEnd=B(t,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),B(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!Ni)return;let e=this.pointerCaptureEventsToUnbind,t=this.chart,i=t.container,n=be(t.options.tooltip?.followTouchMove,!0)&&t.series.some(e=>e.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&n?(e.push(B(i,"pointerdown",e=>{e.target?.hasPointerCapture(e.pointerId)&&e.target?.releasePointerCapture(e.pointerId)}),B(i,"pointermove",e=>{t.pointer?.getPointFromEvent(e)?.onMouseOver(e)})),t.styledMode||V(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!n&&(e.forEach(e=>e()),e.length=0,t.styledMode||V(i,{"touch-action":be(t.options.chart.style?.["touch-action"],"manipulation")}),i.className=i.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(e){let t=this.chart,i=M.charts[be(Bi.hoverChartIndex,-1)];if(i&&i!==t){let n={relatedTarget:t.container};e&&!e?.relatedTarget&&Object.assign({},e,n),i.pointer?.onContainerMouseLeave(e||n)}i?.mouseIsDown||(Bi.hoverChartIndex=t.index)}touch(e,t){let i,{chart:n,pinchDown:r=[]}=this;this.setHoverChartIndex(),1===(e=this.normalize(e)).touches.length?n.isInsidePlot(e.chartX-n.plotLeft,e.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.exporting?.openMenu?(t&&this.runPointActions(e),"touchmove"===e.type&&(this.hasPinchMoved=i=!!r[0]&&Math.pow(r[0].chartX-e.chartX,2)+Math.pow(r[0].chartY-e.chartY,2)>=16),be(i,!0)&&this.pinch(e)):t&&this.reset():2===e.touches.length&&this.pinch(e)}touchSelect(e){return!(!this.chart.zooming.singleTouch||!e.touches||1!==e.touches.length)}zoomOption(e){let t,i,n=this.chart,r=n.inverted,s=n.zooming.type||"";/touch/.test(e.type)&&(s=be(n.zooming.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=i=/y/.test(s),this.zoomHor=t&&!r||i&&r,this.zoomVert=i&&!r||t&&r,this.hasZoom=(t||i)&&Ri(e,n.zooming.key)}}Bi.unbindDocumentMouseUp=[],(u=Bi||(Bi={})).compose=function(e){Te(Mi,"Core.Pointer")&&B(e,"beforeRender",function(){this.pointer=new u(this,this.options)})};let Fi=Bi,{setLength:Ui,splice:ji}={convertToNumber:function(e,t){switch(typeof e){case"boolean":return+!!e;case"number":return isNaN(e)&&!t?null:e;default:return isNaN(e=parseFloat(`${e??""}`))&&!t?null:e}},setLength:function(e,t,i){return Array.isArray(e)?(e.length=t,e):e[i?"subarray":"slice"](0,t)},splice:function(e,t,i,n,r=[]){if(Array.isArray(e))return Array.isArray(r)||(r=Array.from(r)),{removed:e.splice(t,i,...r),array:e};let s=Object.getPrototypeOf(e).constructor,a=e[n?"subarray":"slice"](t,t+i),o=new s(e.length-i+r.length);return o.set(e.subarray(0,t),0),o.set(r,t),o.set(e.subarray(t+i),t+r.length),{removed:a,array:o}}},Hi=class{constructor(e={}){this.autoId=!e.id,this.columns={},this.id=e.id||Me(),this.rowCount=0,this.versionTag=Me();let t=0;ge(e.columns||{},(e,i)=>{this.columns[i]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,ge(this.columns,(t,i)=>{t.length!==e&&(this.columns[i]=Ui(t,e))})}deleteRows(e,t=1){if(t>0&&e<this.rowCount){let i=0;ge(this.columns,(n,r)=>{this.columns[r]=ji(n,e,t).array,i=n.length}),this.rowCount=i}J(this,"afterDeleteRows",{rowIndex:e,rowCount:t}),this.versionTag=Me()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((e,t)=>
2(e[t]=this.columns[t],e),{})}getRow(e,t){return(t||Object.keys(this.columns)).map(t=>this.columns[t]?.[e])}setColumn(e,t=[],i=0,n){this.setColumns({[e]:t},i,n)}setColumns(e,t,i){let n=this.rowCount;ge(e,(e,t)=>{this.columns[t]=e.slice(),n=e.length}),this.applyRowCount(n),i?.silent||(J(this,"afterSetColumns"),this.versionTag=Me())}setRow(e,t=this.rowCount,i,n){let{columns:r}=this,s=i?this.rowCount+1:t+1,a=Object.keys(e);if(!1!==n?.addColumns)for(let e=0,t=a.length;e<t;e++){let t=a[e];r[t]||(r[t]=[])}ge(r,(a,o)=>{a||!1===n?.addColumns||(a=Array(s)),a&&(i?a=ji(a,t,0,!0,[e[o]??null]).array:a[t]=e[o]??null,r[o]=a)}),s>this.rowCount&&this.applyRowCount(s),n?.silent||(J(this,"afterSetRows"),this.versionTag=Me())}getModified(){return this.modified||this}};var qi=w||(w={});function zi(e,t,i){let n,r=this.legendItem=this.legendItem||{},{chart:s,options:a}=this,{baseline:o=0,symbolWidth:l,symbolHeight:c}=e,u=this.symbol||"circle",d=c/2,h=s.renderer,p=r.group,f=o-Math.round((e.fontMetrics?.b||c)*(i?.4:.3)),m={},g=a.marker,v=0;if(s.styledMode||(m["stroke-width"]=Math.min(a.lineWidth||0,24),a.dashStyle?m.dashstyle=a.dashStyle:"square"!==a.linecap&&(m["stroke-linecap"]="round")),r.line=h.path().addClass("highcharts-graph").attr(m).add(p),i&&(r.area=h.path().addClass("highcharts-area").add(p)),m["stroke-linecap"]&&(v=Math.min(r.line.strokeWidth(),l)/2),l){let e=[["M",v,f],["L",l-v,f]];r.line.attr({d:e}),r.area?.attr({d:[...e,["L",l-v,o],["L",v,o]]})}if(g&&!1!==g.enabled&&l){let e=Math.min(be(g.radius,d),d);0===u.indexOf("url")&&(g=fe(g,{width:c,height:c}),e=0),r.symbol=n=h.symbol(u,l/2-e,f-e,2*e,2*e,Q({context:"legend"},g)).addClass("highcharts-point").add(p),n.isMarker=!0}}qi.areaMarker=function(e,t){zi.call(this,e,t,!0)},qi.lineMarker=zi;let Wi=w,{defaultOptions:Vi}=ze;var Xi=S||(S={});function Gi(e,t){let i=Vi.plotOptions||{},n=t.defaultOptions,r=t.prototype;return r.type=e,r.pointClass||(r.pointClass=Pi),!Xi.seriesTypes[e]&&(n&&(i[e]=n),Xi.seriesTypes[e]=t,!0)}Xi.seriesTypes=M.seriesTypes,Xi.registerSeriesType=Gi,Xi.seriesType=function(e,t,i,n,r){let s=Vi.plotOptions||{};if(t=t||"",s[e]=fe(s[t],i),delete Xi.seriesTypes[e],Gi(e,Z(Xi.seriesTypes[t]||M.Series,n)),Xi.seriesTypes[e].prototype.type=e,r){class t extends Pi{}Q(t.prototype,r),Xi.seriesTypes[e].prototype.pointClass=t}return Xi.seriesTypes[e]};let $i=S,{animObject:Yi,setAnimation:Ki}=Je,{defaultOptions:Qi}=ze,{registerEventOptions:Zi}=ii,{svg:Ji,win:en}=M,{seriesTypes:tn}=$i,{format:nn}=pt;class rn{constructor(){this.zoneAxis="y"}init(e,t){let i;J(this,"init",{options:t}),this.dataTable??(this.dataTable=new Hi);let n=e.series;this.eventsToUnbind=[],this.chart=e,this.options=this.setOptions(t);let r=this.options,s=!1!==r.visible;this.linkedSeries=[],this.bindAxes(),Q(this,{name:r.name,state:"",visible:s,selected:!0===r.selected}),Zi(this,r);let a=r.events;(a?.click||r.point?.events?.click||r.allowPointSelect)&&(e.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(e.hasCartesianSeries=!0),n.length&&(i=n[n.length-1]),this._i=be(i?._i,-1)+1,this.opacity=this.options.opacity,e.orderItems("series",Oe(this,n)),r.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(r.data,!1),J(this,"afterInit")}is(e){return tn[e]&&this instanceof tn[e]}bindAxes(){let e,t=this,i=t.options,n=t.chart;J(this,"bindAxes",null,function(){(t.axisTypes||[]).forEach(function(r){(n[r]||[]).forEach(function(n){e=n.options,(be(i[r],0)===n.index||void 0!==i[r]&&i[r]===e.id)&&(Oe(t,n.series),t[r]=n,n.isDirty=!0)}),t[r]||t.optionalAxis===r||Pe(18,!0,n)})}),J(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(e,t){let i=e.marker,n=t.marker||{};return i&&(n.enabled&&!i.enabled||n.symbol!==i.symbol||n.height!==i.height||n.width!==i.width)}autoIncrement(e){let t,i=this.options,{pointIntervalUnit:n,relativeXValue:r}=this.options,s=this.chart.time,a=this.xIncrement??s.parse(i.pointStart)??0;if(this.pointInterval=t=be(this.pointInterval,i.pointInterval,1),r&&ce(e)&&(t*=e),n){let e=s.toParts(a);"day"===n?e[2]+=t:"month"===n?e[1]+=t:"year"===n&&(e[0]+=t),t=s.makeTime.apply(s,e)-a}return r&&ce(e)?a+t:(this.xIncrement=a+t,a)}setDataSortingOptions(){let e=this.options;Q(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),X(e.pointRange)||(e.pointRange=1)}setOptions(e){let t,i=this.chart,n=i.options.plotOptions,r=i.userOptions||{},s=fe(e),a=i.styledMode,o={plotOptions:n,userOptions:s};J(this,"setOptions",o);let l=o.plotOptions[this.type],c=r.plotOptions||{},u=c.series||{},d=Qi.plotOptions[this.type]||{},h=c[this.type]||{};l.dataLabels=this.mergeArrays(d.dataLabels,l.dataLabels),this.userOptions=o.userOptions;let p=fe(l,n.series,h,s);this.tooltipOptions=fe(Qi.tooltip,Qi.plotOptions.series?.tooltip,d?.tooltip,i.userOptions.tooltip,c.series?.tooltip,h.tooltip,s.tooltip),this.stickyTracking=be(s.stickyTracking,h.stickyTracking,u.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||p.stickyTracking),null===l.marker&&delete p.marker;let{negativeColor:f,negativeFillColor:m,zoneAxis:g="y",zones:v}=p,y=this.zones=(v||[]).map(e=>({...e}));return this.zoneAxis=g,(f||m)&&!v&&(t={value:p[g+"Threshold"]||p.threshold||0,className:"highcharts-negative"},a||("boolean"!=typeof f&&(t.color=f),t.fillColor=m),y.push(t)),y.length&&X(y[y.length-1].value)&&y.push(a?{}:{color:this.color,fillColor:this.fillColor}),J(this,"afterSetOptions",{options:p}),p}getName(){return this.options.name??nn(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(e,t,i){let n,r,s=this.chart,a=`${e}Index`,o=`${e}Counter`,l=i?.length||s.options.chart.colorCount;!t&&(X(r=be("color"===e?this.options.colorIndex:void 0,this[a]))?n=r:(s.series.length||(s[o]=0),n=s[o]%l,s[o]+=1),i&&(t=i[n])),void 0!==n&&(this[a]=n),this[e]=t}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||Qi.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}getColumn(e,t){return(t?this.dataTable.getModified():this.dataTable).getColumn(e,!0)||[]}findPointIndex(e,t){let i,n,r,{id:s,x:a}=e,o=this.points,l=this.options.dataSorting,c=this.cropStart||0;if(s){let e=this.chart.get(s);e instanceof Pi&&(i=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let t=t=>!t.touched&&t.index===e.index;if(l?.matchByName?t=t=>!t.touched&&t.name===e.name:this.options.relativeXValue&&(t=t=>!t.touched&&t.options.x===e.x),!(i=se(o,t)))return}return i&&void 0!==(r=i?.index)&&(n=!0),void 0===r&&ce(a)&&(r=this.getColumn("x").indexOf(a,t)),-1!==r&&void 0!==r&&this.cropped&&(r=r>=c?r-c:r),!n&&ce(r)&&o[r]?.touched&&(r=void 0),r}updateData(e,t){let i,n,r,s,{options:a,requireSorting:o}=this,l=a.dataSorting,c=this.points,u=[],d=e.length===c.length,h=this.xIncrement,p=!0;if(this.xIncrement=null,e.forEach((e,t)=>{let n,r=X(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},{id:h,x:p}=r;h||ce(p)?(-1===(n=this.findPointIndex(r,s))||void 0===n?u.push(e):c[n]&&e!==a.data?.[n]?(c[n].update(e,!1,void 0,!1),c[n].touched=!0,o&&(s=n+1)):c[n]&&(c[n].touched=!0),(!d||t!==n||l?.enabled||this.hasDerivedData)&&(i=!0)):u.push(e)},this),i)for(n=c.length;n--;)(r=c[n])&&!r.touched&&r.remove?.(!1,t);else d&&!l?.enabled?(e.forEach((e,t)=>{e===c[t].y||c[t].destroyed||c[t].update(e,!1,void 0,!1)}),u.length=0):p=!1;
2if(c.forEach(e=>{e&&(e.touched=!1)}),!p)return!1;u.forEach(e=>{this.addPoint(e,!1,void 0,void 0,!1)},this);let f=this.getColumn("x");return null!==h&&null===this.xIncrement&&f.length&&(this.xIncrement=U(f),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(e,t=!0,i,n){let r,s,a,o=this.points,l=o?.length||0,c=this.options,u=this.chart,d=c.dataSorting,h=this.xAxis,p=c.turboThreshold,f=this.dataTable,m=this.dataColumnKeys(),g=this.pointValKey||"y",v=(this.pointArrayMap||[]).length,y=c.keys,b=0,_=1;u.options.chart.allowMutatingData||(c.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,a=fe(!0,e));let T=(e=a||e||[]).length;if(d?.enabled&&(e=this.sortData(e)),!1!==n&&T&&l&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(s=this.updateData(e,i)),!s){this.xIncrement=null,this.colorCounter=0;let t=p&&!c.relativeXValue&&T>p;if(t){let i=this.getFirstValidPoint(e),n=this.getFirstValidPoint(e,T-1,-1),r=e=>!(!de(e)||!y&&!ce(e[0]));if(ce(i)&&ce(n)){let t=[],i=[];for(let n of e)t.push(this.autoIncrement()),i.push(n);f.setColumns({x:t,[g]:i})}else if(r(i)&&r(n))if(v){let t=+(i.length===v),n=Array(m.length).fill(0).map(()=>[]);for(let i of e){t&&n[0].push(this.autoIncrement());for(let e=t;e<=v;e++)n[e]?.push(i[e-t])}f.setColumns(m.reduce((e,t,i)=>(e[t]=n[i],e),{}))}else{y&&(b=y.indexOf("x"),_=y.indexOf("y"),b=b>=0?b:0,_=_>=0?_:1),1===i.length&&(_=0);let t=[],n=[];for(let i of e)b===_?t.push(this.autoIncrement()):t.push(i[b]??i.x??null),n.push(i[_]??i.y??null);f.setColumns({x:t,[g]:n})}else t=!1}if(!t){let t=m.reduce((e,t)=>(e[t]=[],e),{});for(r=0;r<T;r++){let i=this.pointClass.prototype.applyOptions.apply({series:this},[e[r]]);for(let e of m)t[e][r]=i[e]}f.setColumns(t)}for(ue(this.getColumn("y")[0])&&Pe(14,!0,u),this.data=[],this.options.data=this.userOptions.data=e,r=l;r--;)o[r]?.destroy();h&&(h.minRange=h.userMinRange),this.isDirty=u.isDirtyBox=!0,this.isDirtyData=!!o,i=!1}"point"===c.legendType&&(this.processData(),this.generatePoints()),t&&u.redraw(i)}sortData(e){let t=this,i=t.options.dataSorting.sortKey||"y",n=function(e,t){return X(t)&&e.pointClass.prototype.optionsToObject.call({series:e},t)||{}};return e.forEach(function(i,r){e[r]=n(t,i),e[r].index=r},this),e.concat().sort((e,t)=>{let n=ne(i,e),r=ne(i,t);return r<n?-1:+(r>n)}).forEach(function(e,t){e.x=t},this),t.linkedSeries&&t.linkedSeries.forEach(function(t){let i=t.options,r=i.data;!i.dataSorting?.enabled&&r&&(r.forEach(function(i,s){r[s]=n(t,i),e[s]&&(r[s].x=e[s].x,r[s].index=s)}),t.setData(r,!1))}),e}getProcessedData(e){let t,i,n,r,s,a=this,{dataTable:o,isCartesian:l,options:c,xAxis:u}=a,d=c.cropThreshold,h=e||a.getExtremesFromAll,p=u?.logarithmic,f=o.rowCount,m=0,g=a.getColumn("x"),v=o,y=!1;return u&&(r=(n=u.getExtremes()).min,s=n.max,y=!(!u.categories||u.names.length),l&&a.sorted&&!h&&(!d||f>d||a.forceCrop)&&(g[f-1]<r||g[0]>s?v=new Hi:a.getColumn(a.pointValKey||"y").length&&(g[0]<r||g[f-1]>s)&&(v=(t=this.cropData(o,r,s)).modified,m=t.start,i=!0))),g=v.getColumn("x")||[],{modified:v,cropped:i,cropStart:m,closestPointRange:te([p?g.map(p.log2lin):g],()=>a.requireSorting&&!y&&Pe(15,!1,a.chart))}}processData(e){let t=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;let n=this.getProcessedData();i.modified=n.modified,this.cropped=n.cropped,this.cropStart=n.cropStart,this.closestPointRange=this.basePointRange=n.closestPointRange,J(this,"afterProcessData")}cropData(e,t,i){let n,r,s=e.getColumn("x",!0)||[],a=s.length,o={},l=0,c=a;for(n=0;n<a;n++)if(s[n]>=t){l=Math.max(0,n-1);break}for(r=n;r<a;r++)if(s[r]>i){c=r+1;break}for(let t of this.dataColumnKeys()){let i=e.getColumn(t,!0);i&&(o[t]=i.slice(l,c))}return{modified:new Hi({columns:o}),start:l,end:c}}generatePoints(){let e,t,i,n,r,s=this.options,a=this.processedData||s.data,o=this.dataTable.getModified(),l=this.getColumn("x",!0),c=this.pointClass,u=o.rowCount,d=this.cropStart||0,h=this.hasGroupedData,p=s.keys,f=[],m=s.dataGrouping?.groupAll?d:0,g=this.pointArrayMap||["y"],v=this.dataColumnKeys(),y=this.data;if(!y&&!h){let e=[];e.length=a?.length||0,y=this.data=e}for(p&&h&&(this.options.keys=!1),n=0;n<u;n++)t=d+n,h?((i=new c(this,o.getRow(n,v)||[])).dataGroup=this.groupMap?.[m+n],i.dataGroup?.options&&(i.options=i.dataGroup.options,Q(i,i.dataGroup.options),delete i.dataLabels,i.key=i.name??i.category)):(i=y[t],r=a?a[t]:o.getRow(n,g),i||void 0===r?i&&(i.category=this.xAxis?.categories?.[i.x]??i.x,i.key=i.name??i.category):y[t]=i=new c(this,r,l[n])),i&&(i.index=h?m+n:t,f[n]=i);if(this.options.keys=p,y&&(u!==(e=y.length)||h))for(n=0;n<e;n++)n!==d||h||(n+=u),y[n]&&(y[n].destroyElements(),y[n].plotX=void 0);this.data=y,this.points=f,J(this,"afterGeneratePoints")}getXExtremes(e){return{min:F(e),max:U(e)}}getExtremes(e,t){let i,n,r,{xAxis:s,yAxis:a}=this,o=t||this.getExtremesFromAll||this.options.getExtremesFromAll,l=o&&this.cropped?this.dataTable:this.dataTable.getModified(),c=l.rowCount,u=e||this.stackedYData,d=u?[u]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(e=>l.getColumn(e,!0)||[])||[],h=this.getColumn("x",!0),p=[],f=this.requireSorting&&!this.is("column")?1:0,m=!!a&&a.positiveValuesOnly,g=o||this.cropped||!s,v=0,y=0;for(s&&(v=(i=s.getExtremes()).min,y=i.max),r=0;r<c;r++)if(n=h[r],g||(h[r+f]||n)>=v&&(h[r-f]||n)<=y)for(let e of d){let t=e[r];ce(t)&&(t>0||!m)&&p.push(t)}let b={activeYData:p,dataMin:F(p),dataMax:U(p)};return J(this,"afterGetExtremes",{dataExtremes:b}),b}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e,t=0,i=1){let n=e.length,r=t;for(;r>=0&&r<n;){if(X(e[r]))return e[r];r+=i}}translate(){this.generatePoints();let e,t,i,n,r=this.options,s=r.stacking,a=this.xAxis,o=this.enabledDataSorting,l=this.yAxis,c=this.points,u=c.length,d=this.pointPlacementToXValue(),h=!!d,p=r.threshold,f=r.startFromThreshold?p:0,m=r?.nullInteraction&&l.len,g=Number.MAX_VALUE;function v(e){return H(e,-1e9,1e9)}for(e=0;e<u;e++){let r,u,y,b=c[e],_=b.x,T=b.y,x=b.low,w=s&&l.stacking?.stacks[(this.negStacks&&T<(f?0:p)?"-":"")+this.stackKey];b.plotX=ce(t=a.translate(_,!1,!1,!1,!0,d))?q(v(t)):void 0,s&&this.visible&&w&&w[_]&&(n=this.getStackIndicator(n,_,this.index),!b.isNull&&n.key&&(y=(u=w[_]).points[n.key]),u&&de(y)&&(x=y[0],T=y[1],x===f&&n.key===w[_].base&&(x=be(ce(p)?p:l.min)),l.positiveValuesOnly&&X(x)&&x<=0&&(x=void 0),b.total=b.stackTotal=be(u.total),b.percentage=X(b.y)&&u.total?b.y/u.total*100:void 0,b.stackY=T,this.irregularWidths||u.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),b.yBottom=X(x)?v(l.translate(x,!1,!0,!1,!0)):void 0,this.dataModify&&(T=this.dataModify.modifyValue(T,e)),ce(T)&&void 0!==b.plotX?r=ce(r=l.translate(T,!1,!0,!1,!0))?v(r):void 0:!ce(T)&&m&&(r=m),b.plotY=r,b.isInside=this.isPointInside(b),b.clientX=h?q(a.translate(_,!1,!1,!1,!0,d)):t,b.negative=(b.y||0)<(p||0),b.isNull||!1===b.visible||(void 0!==i&&(g=Math.min(g,Math.abs(t-i))),i=t),b.zone=this.zones.length?b.getZone():void 0,!b.graphic&&this.group&&o&&(b.isNew=!0)}this.closestPointRangePx=g,J(this,"afterTranslate")}getValidPoints(e,t,i){let n=this.chart;return(e||this.points||[]).filter(function(e){let{plotX:r,plotY:s}=e;return!(!i&&(e.isNull||!ce(s))||t&&!n.isInsidePlot(r,s,{inverted:n.inverted})||!1===e.visible)})}
2getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:e,group:t,markerGroup:i}=this,n=e.sharedClips,r=e.renderer,s=e.getClipBox(this),a=this.getSharedClipKey(),o=n[a];J(this,"setClip",{clipBox:s}),o?o.animate(s):n[a]=o=r.clipRect(s),t&&t.clip(!1===this.options.clip?void 0:o),i&&i.clip()}animate(e){let{chart:t,group:i,markerGroup:n}=this,r=t.inverted,s=Yi(this.options.animation),a=[this.getSharedClipKey(),s.duration,s.easing,s.defer].join(","),o=t.sharedClips[a],l=t.sharedClips[a+"m"];if(e&&i){let e=t.getClipBox(this);if(o)o.attr("height",e.height);else{e.width=0,r&&(e.x=t.plotHeight),o=t.renderer.clipRect(e),t.sharedClips[a]=o;let i={x:-99,y:-99,width:r?t.plotWidth+199:99,height:r?99:t.plotHeight+199};l=t.renderer.clipRect(i),t.sharedClips[a+"m"]=l}i.clip(o),n?.clip(l)}else if(o&&!o.hasClass("highcharts-animating")){let e=t.getClipBox(this),i=s.step;(n?.element.childNodes.length||t.series.length>1)&&(s.step=function(e,t){i&&i.apply(t,arguments),"width"===t.prop&&l?.element&&l.attr(r?"height":"width",e+99)}),o.addClass("highcharts-animating").animate(e,s)}}afterAnimate(){this.setClip(),ge(this.chart.sharedClips,(e,t,i)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete i[t])}),this.finishedAnimating=!0,J(this,"afterAnimate")}drawPoints(e=this.points){let t,i,n,r,s,a,o,l=this.chart,c=l.styledMode,{colorAxis:u,options:d}=this,h=d.marker,p=d.nullInteraction,f=this[this.specialGroup||"markerGroup"],m=this.xAxis,g=be(h.enabled,!m||!!m.isRadial||null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(t=0;t<e.length;t++){r=(n=(i=e[t]).graphic)?"animate":"attr",s=i.marker||{},a=!!i.marker;let d=i.isNull;if(!(g&&!X(s.enabled)||s.enabled)||d&&!p||!1===i.visible)n&&(i.graphic=n.destroy());else{let e=be(s.symbol,this.symbol,"rect");o=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=m.reversed?-(o.width||0):m.width);let t=!1!==i.isInside;if(!n&&t&&((o.width||0)>0||i.hasImage)&&(i.graphic=n=l.renderer.symbol(e,o.x,o.y,o.width,o.height,a?s:h).add(f),this.enabledDataSorting&&l.hasRendered&&(n.attr({x:i.startXPos}),r="animate")),n&&"animate"===r&&n[t?"show":"hide"](t).animate(o),n){let e=this.pointAttribs(i,c||!i.selected?void 0:"select");c?u&&n.css({fill:e.fill}):n[r](e)}n&&n.addClass(i.getClassName(),!0)}}}markerAttribs(e,t){let i,n,r=this.options,s=r.marker,a=e.marker||{},o=a.symbol||s.symbol,l={},c=be(a.radius,s?.radius);t&&(i=s?.states?.[t],n=a.states?.[t],c=be(n?.radius,i?.radius,c&&c+(i?.radiusPlus||0))),e.hasImage=o&&0===o.indexOf("url"),e.hasImage&&(c=0);let u=e.pos();return ce(c)&&u&&(r.crisp&&(u[0]=W(u[0],e.hasImage?0:"rect"===o?s?.lineWidth||0:1)),l.x=u[0]-c,l.y=u[1]-c),c&&(l.width=l.height=2*c),l}pointAttribs(e,t){let i,n,r,s,a=this.options,o=a.marker,l=e?.options,c=l?.marker||{},u=l?.color,d=e?.color,h=e?.zone?.color,p=this.color,f=be(c.lineWidth,o.lineWidth),m=e?.isNull&&a.nullInteraction?0:1;return p=u||h||d||p,r=c.fillColor||o.fillColor||p,s=c.lineColor||o.lineColor||p,t=t||"normal",i=o.states[t]||{},f=be((n=c.states&&c.states[t]||{}).lineWidth,i.lineWidth,f+be(n.lineWidthPlus,i.lineWidthPlus,0)),r=n.fillColor||i.fillColor||r,s=n.lineColor||i.lineColor||s,{stroke:s,"stroke-width":f,fill:r,opacity:m=be(n.opacity,i.opacity,m)}}destroy(e){let t,i,n=this,r=n.chart,s=/AppleWebKit\/533/.test(en.navigator.userAgent),a=n.data||[];for(J(n,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(n.axisTypes||[]).forEach(function(e){i=n[e],i?.series&&(K(i.series,n),i.isDirty=i.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),t=a.length;t--;)a[t]?.destroy?.();for(let e of n.zones)G(e,void 0,!0);ae(n.animationTimeout),ge(n,function(e,t){e instanceof Et&&!e.survive&&e[s&&"group"===t?"hide":"destroy"]()}),r.hoverSeries===n&&(r.hoverSeries=void 0),K(r.series,n),r.orderItems("series"),ge(n,function(t,i){e&&"hcEvents"===i||delete n[i]})}applyZones(){let{area:e,chart:t,graph:i,zones:n,points:r,xAxis:s,yAxis:a,zoneAxis:o}=this,{inverted:l,renderer:c}=t,u=this[`${o}Axis`],{isXAxis:d,len:h=0,minPointOffset:p=0}=u||{},f=(i?.strokeWidth()||0)/2+1,m=(e,t=0,i=0)=>{l&&(i=h-i);let{translated:n=0,lineClip:r}=e,s=i-n;r?.push(["L",t,Math.abs(s)<f?i-f*(s<=0?-1:1):n])};if(n.length&&(i||e)&&u&&ce(u.min)){let t=u.getExtremes().max+p,f=e=>{e.forEach((t,i)=>{("M"===t[0]||"L"===t[0])&&(e[i]=[t[0],d?h-t[1]:t[1],d?t[2]:h-t[2]])})};
vendor: 4,967 bytes, line 2
2if(n.forEach(e=>{e.lineClip=[],e.translated=H(u.toPixels(be(e.value,t),!0)||0,0,h)}),i&&!this.showLine&&i.hide(),e&&e.hide(),"y"===o&&r.length<s.len)for(let e of r){let{plotX:t,plotY:i,zone:r}=e,s=r&&n[n.indexOf(r)-1];r&&m(r,t,i),s&&m(s,t,i)}let g=[],v=u.toPixels(u.getExtremes().min-p,!0);n.forEach(t=>{let n=t.lineClip||[],r=Math.round(t.translated||0);s.reversed&&n.reverse();let{clip:o,simpleClip:u}=t,h=0,p=0,m=s.len,y=a.len;d?(h=r,m=v):(p=r,y=v);let b=[["M",h,p],["L",m,p],["L",m,y],["L",h,y],["Z"]],_=[b[0],...n,b[1],b[2],...g,b[3],b[4]];g=n.reverse(),v=r,l&&(f(_),e&&f(b)),o?(o.animate({d:_}),u?.animate({d:b})):(o=t.clip=c.path(_),e&&(u=t.simpleClip=c.path(b))),i&&t.graph?.clip(o),e&&t.area?.clip(u)})}else this.visible&&(i&&i.show(),e&&e.show())}plotGroup(e,t,i,n,r){let s=this[e],a=!s,o={visibility:i,zIndex:n||.1};return X(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(o.opacity=this.opacity),s||(this[e]=s=this.chart.renderer.g().add(r)),s.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(X(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(s.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),s.attr(o)[a?"attr":"animate"](this.getPlotBox(t)),s}getPlotBox(e){let t=this.xAxis,i=this.yAxis,n=this.chart,r=n.inverted&&!n.polar&&t&&this.invertible&&"series"===e;n.inverted&&(t=i,i=this.xAxis);let s={scale:1,translateX:t?t.left:n.plotLeft,translateY:i?i.top:n.plotTop,name:e};J(this,"getPlotBox",s);let{scale:a,translateX:o,translateY:l}=s;return{translateX:o,translateY:l,rotation:90*!!r,rotationOriginX:r?a*(t.len-i.len)/2:0,rotationOriginY:r?a*(t.len+i.len)/2:0,scaleX:r?-a:a,scaleY:a}}removeEvents(e){let{eventsToUnbind:t}=this;e||Se(this),t.length&&(t.forEach(e=>{e()}),t.length=0)}render(){let e=this,{chart:t,options:i,hasRendered:n}=e,r=Yi(i.animation),s=e.visible?"inherit":"hidden",a=i.zIndex,o=t.seriesGroup,l=e.finishedAnimating?0:r.duration;J(this,"render"),e.plotGroup("group","series",s,a,o),e.markerGroup=e.plotGroup("markerGroup","markers",s,a,o),!1!==i.clip&&e.setClip(),l&&e.animate?.(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels?.(),e.redrawPoints?.(),i.enableMouseTracking&&e.drawTracker?.(),l&&e.animate?.(),n||(l&&r.defer&&(l+=r.defer),e.animationTimeout=Ce(()=>{e.afterAnimate()},l||0)),e.isDirty=!1,e.hasRendered=!0,J(e,"afterRender")}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,t){let{xAxis:i,yAxis:n}=this,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-e.chartY+i.pos:e.chartX-i.pos,plotY:r?n.len-e.chartX+n.pos:e.chartY-n.pos},t,e)}buildKDTree(e){this.buildingKdTree=!0;let t=this,i=t.options,n=i.findNearestPointBy.indexOf("y")>-1?2:1;delete t.kdTree,Ce(function(){t.kdTree=function e(i,n,r){let s,a,o=i?.length;if(o)return s=t.kdAxisArray[n%r],i.sort((e,t)=>(e[s]||0)-(t[s]||0)),{point:i[a=Math.floor(o/2)],left:e(i.slice(0,a),n+1,r),right:e(i.slice(a+1),n+1,r)}}(t.getValidPoints(void 0,!t.directTouch,i?.nullInteraction),n,n),t.buildingKdTree=!1},i.kdNow||"touchstart"===e?.type?0:1)}searchKDTree(e,t,i,n,r){let s=this,[a,o]=this.kdAxisArray,l=t?"distX":"dist",c=(s.options.findNearestPointBy||"").indexOf("y")>-1?2:1,u=!!s.isBubble,d=n||((e,t,i)=>{let n=e[i]||0,r=t[i]||0;return[n===r&&e.index>t.index||n<r?e:t,!1]}),h=r||((e,t)=>e<t);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function e(t,i,n,r){let c,p,f,m,g,v,y,b=i.point,_=s.kdAxisArray[n%r],T=b,x=!1;c=t[a],p=b[a],f=X(c)&&X(p)?c-p:null,m=t[o],g=b[o],v=X(m)&&X(g)?m-g:0,y=u&&b.marker?.radius||0,b.dist=Math.sqrt((f&&f*f||0)+v*v)-y,b.distX=X(f)?Math.abs(f)-y:Number.MAX_VALUE;let w=(t[_]||0)-(b[_]||0)+(u&&b.marker?.radius||0),S=w<0?"left":"right",k=w<0?"right":"left";return i[S]&&([T,x]=d(b,e(t,i[S],n+1,r),l)),i[k]&&h(Math.sqrt(w*w),T[l],x)&&(T=d(T,e(t,i[k],n+1,r),l)[0]),T}(e,this.kdTree,c,c)}pointPlacementToXValue(){let{options:e,xAxis:t}=this,i=e.pointPlacement;return"between"===i&&(i=t.reversed?-.5:.5),ce(i)?i*(e.pointRange||t.pointRange):0}isPointInside(e){let{chart:t,xAxis:i,yAxis:n}=this,{plotX:r=-1,plotY:s=-1}=e;return s>=0&&s<=(n?n.len:t.plotHeight)&&r>=0&&r<=(i?i.len:t.plotWidth)}drawTracker(){let e=this,t=e.options,i=t.trackByArea,n=[].concat((i?e.areaPath:e.graphPath)||[]),r=e.chart,s=r.pointer,a=r.renderer,o=r.options.tooltip?.snap||0,l=()=>{t.enableMouseTracking&&r.hoverSeries!==e&&e.onMouseOver()},c="rgba(192,192,192,"+(Ji?1e-4:.002)+")",u=e.tracker;u?u.attr({d:n}):e.graph&&(e.tracker=u=a.path(n).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),r.styledMode||u.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":e.graph.strokeWidth()+(i?0:2*o)}
2),[e.tracker,e.markerGroup,...e.dataLabelsGroups||[]].forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",e=>{s?.onTrackerMouseOut(e)}),t.cursor&&!r.styledMode&&e.css({cursor:t.cursor}),e.on("touchstart",l))})),J(this,"afterDrawTracker")}addPoint(e,t,i,n,r){let s,a,o=this.options,{chart:l,data:c,dataTable:u,xAxis:d}=this,h=d?.hasNames&&d.names,p=o.data,f=this.getColumn("x");t=be(t,!0);let m={series:this};this.pointClass.prototype.applyOptions.apply(m,[e]);let g=m.x;if(a=f.length,this.requireSorting&&g<f[a-1])for(s=!0;a&&f[a-1]>g;)a--;u.setRow(m,a,!0,{addColumns:!1}),h&&m.name&&(h[g]=m.name),p?.splice(a,0,e),(s||this.processedData)&&(this.data.splice(a,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),i&&(c[0]&&c[0].remove?c[0].remove(!1):([c,p].filter(X).forEach(e=>{e.shift()}),u.deleteRows(0))),!1!==r&&J(this,"addPoint",{point:m}),this.isDirty=!0,this.isDirtyData=!0,t&&l.redraw(n)}removePoint(e,t,i){let n=this,{chart:r,data:s,points:a,dataTable:o}=n,l=s[e],c=function(){[a?.length===s.length?a:void 0,s,n.options.data].filter(X).forEach(t=>{t.splice(e,1)}),o.deleteRows(e),l?.destroy(),n.isDirty=!0,n.isDirtyData=!0,t&&r.redraw()};Ki(i,r),t=be(t,!0),l?l.firePointEvent("remove",null,c):c()}remove(e,t,i,n){let r=this,s=r.chart;function a(){r.destroy(n),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(n),be(e,!0)&&s.redraw(t)}!1!==i?J(r,"remove",null,a):a()}update(e,t){J(this,"update",{options:e=Y(e,this.userOptions)});let i,n,r=this,s=r.chart,a=r.userOptions,o=r.initialType||r.type,l=s.options.plotOptions,c=tn[o].prototype,u=r.finishedAnimating&&{animation:!1},d={},h=rn.keepProps.slice(),p=e.type||a.type||s.options.chart.type,f=!(this.hasDerivedData||p&&p!==this.type||void 0!==e.ke
2ys||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(e=>r.hasOptionChanged(e)));p=p||o,f?(h.push.apply(h,rn.keepPropsForPoints),!1!==e.visible&&h.push("area","graph"),r.parallelArrays.forEach(function(e){h.push(e+"Data")}),e.data&&(e.dataSorting&&Q(r.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e.dataLabels&&a.dataLabels&&(e.dataLabels=this.mergeArrays(a.dataLabels,e.dataLabels)),e=fe(a,{index:void 0===a.index?r.index:a.index,pointStart:l?.series?.pointStart??a.pointStart??r.getColumn("x")[0]},!f&&{data:r.options.data},e,u),f&&e.data&&(e.data=r.options.data),(h=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(h)).forEach(function(e){h[e]=r[e],delete r[e]});let m=!1;if(tn[p]){if(m=p!==r.type,r.remove(!1,!1,!1,!0),m)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(r,tn[p].prototype);else{let e=Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents;for(n in c)r[n]=void 0;Q(r,tn[p].prototype),e?r.hcEvents=e:delete r.hcEvents}}else Pe(17,!0,s,{missingModuleFor:p});if(h.forEach(function(e){r[e]=h[e]}),r.init(s,e),f&&this.points)for(let e of(!1===(i=r.options).visible?(d.graphic=1,d.dataLabel=1):(this.hasMarkerChanged(i,a)&&(d.graphic=1),r.hasDataLabels?.()||(d.dataLabel=1)),this.points))e?.series&&(e.resolveColor(),Object.keys(d).length&&e.destroyElements(d),!1===i.showInLegend&&e.legendItem&&s.legend.destroyItem(e));r.initialType=o,s.linkSeries(),s.setSortedData(),m&&r.linkedSeries.length&&(r.isDirtyData=!0),J(this,"afterUpdate"),be(t,!0)&&s.redraw(!!f&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){let t=this.chart,i=this.options[e],n=t.options.plotOptions,r=this.userOptions[e],s=be(n?.[this.type]?.[e],n?.series?.[e]);return r&&!X(s)?i!==r:i!==be(s,i)}onMouseOver(){let e=this.chart,t=e.hoverSeries,i=e.pointer;i?.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&J(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}onMouseOut(){let e=this.options,t=this.chart,i=t.tooltip,n=t.hoverPoint;t.hoverSeries=null,n&&n.onMouseOut(),this&&e.events.mouseOut&&J(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),t.series.forEach(function(e){e.setState("",!0)})}setState(e,t){let i=this,{graph:n,options:r}=i,{inactiveOtherPoints:s,states:a}=r,o=be(a?.[e||"normal"]?.animation,i.chart.options.chart.animation),{lineWidth:l,opacity:c}=r;if(e=e||"",i.state!==e&&([i.group,i.markerGroup,...i.dataLabelsGroups||[]].forEach(function(t){t&&(i.state&&t.removeClass("highcharts-series-"+i.state),e&&t.addClass("highcharts-series-"+e))}),i.state=e,!i.chart.styledMode)){if(!1===a[e]?.enabled)return;if(e&&(l=a[e].lineWidth||l+(a[e].lineWidthPlus||0),c=be(a[e].opacity,c)),n&&!n.dashstyle&&ce(l))for(let e of[n,...this.zones.map(e=>e.graph)])e?.animate({"stroke-width":l},o);s||[i.group,i.markerGroup,...i.dataLabelsGroups||[],i.labelBySeries].forEach(function(e){e?.animate({opacity:c},o)})}t&&s&&i.points&&i.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(t){t.setState&&t.setState(e)})}setVisible(e,t){let i=this,n=i.chart,r=n.options.chart.ignoreHiddenSeries,s=i.visible;i.visible=e=i.options.visible=i.userOptions.visible=void 0===e?!s:e;let a=e?"show":"hide";["group","markerGroup","tracker","tt"].forEach(e=>{i[e]?.[a]()}),i.dataLabelsGroups?.forEach(e=>{e?.[a]()}),(n.hoverSeries===i||n.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&n.legend.colorizeItem(i,e),i.isDirty=!0,i.options.stacking&&n.series.forEach(e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)}),i.linkedSeries.forEach(t=>{t.setVisible(e,!1)}),r&&(n.isDirtyBox=!0),J(i,a),!1!==t&&n.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),J(this,e?"select":"unselect")}shouldShowTooltip(e,t,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,i)}drawLegendSymbol(e,t){let i=this.chart.renderer,n=this.options.legendSymbol||"rectangle",r=t.legendItem||{}
vendor: 4,880 bytes, line 2
2,{options:s,symbolHeight:a,symbolWidth:o}=e,l=s.squareSymbol,c=l?a:o,u=l?(o-a)/2:0,d=(e.baseline||0)-a+1,h=s.symbolRadius??a,p="rectangle"===n?i.rect(u,d,c,a,h):i.symbols[n]&&i.symbol(n,u,d,c,a,{r:h});p?r.symbol=p.addClass("highcharts-point").attr({zIndex:3}).add(r.group):Wi[n]?.call(this,e,t)}}rn.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return"number"!=typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},rn.types=$i.seriesTypes,rn.registerType=$i.registerSeriesType,rn.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],rn.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],Q(rn.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Pi,requireSorting:!0,sorted:!0}),$i.series=rn;let sn=rn,{animObject:an,setAnimation:on}=Je,{registerEventOptions:ln}=ii,{composed:cn,marginNames:un}=M,{distribute:dn}=mt,{format:hn}=pt;class pn{constructor(e,t){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(t),t.enabled&&(this.render(),ln(this,t),B(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),B(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let t=be(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=fe(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=be(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}update(e,t){let i=this.chart;this.setOptions(fe(!0,this.options,e)),"events"in this.options&&ln(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,be(t,!0)&&i.redraw(),J(this,"afterUpdate",{redraw:t})}colorizeItem(e,t){let i=e.color,{area:n,group:r,label:s,line:a,symbol:o}=e.legendItem||{};if((e instanceof sn||e instanceof Pi)&&(e.color=e.options?.legendSymbolColor||i),r?.[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:i={}}=this,r=i.color,{fillColor:l,fillOpacity:c,lineColor:u,marker:d}=e.options,h=e=>(!t&&(e.fill&&(e.fill=r),e.stroke&&(e.stroke=r)),e);s?.css(fe(t?this.itemStyle:i)),a?.attr(h({stroke:u||e.color})),o&&o.attr(h(d&&o.isMarker?e.pointAttribs():{fill:e.color})),n?.attr(h({fill:l||e.color,"fill-opacity":l?1:c??.75}))}e.color=i,J(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:t,x:i=0,y:n=0}=e.legendItem||{},r=this.options,s=r.symbolPadding,a=!r.rtl,o=e.checkbox;if(t?.element){let r={translateX:a?i:this.legendWidth-i-2*s-4,translateY:n},o=()=>{J(this,"afterPositionItem",{item:e})};t[X(t.translateY)?"animate":"attr"](r,void 0,o)}o&&(o.x=i,o.y=n)}destroyItem(e){let t=e.legendItem||{};for(let e of["group","label","line","symbol"])t[e]&&(t[e]=t[e].destroy());e.checkbox=$(e.checkbox),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of["clipRect","up","down","pager","nav","box","title","group"])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){let e,t=this.group?.alignAttr,i=this.clipHeight||this.legendHeight,n=this.titleHeight;
vendor: 3,748 bytes, line 2
2t&&(e=t.translateY,this.allItems.forEach(function(r){let s,a=r.checkbox;a&&(s=e+n+a.y+(this.scrollOffset||0)+3,V(a,{left:t.translateX+r.checkboxOffset+a.x-20+"px",top:s+"px",display:this.proximate||s>e-6&&s<e+i-6?"":"none"}))},this))}renderTitle(){let e,t=this.options,i=this.padding,n=t.title,r=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,i-3,i-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r}setText(e){let t=this.options;e.legendItem.label.attr({text:t.labelFormat?hn(t.labelFormat,e,this.chart):t.labelFormatter.call(e,e)})}renderItem(e){let t=e.legendItem=e.legendItem||{},i=this.chart,n=i.renderer,r=this.options,s="horizontal"===r.layout,a=this.symbolWidth,o=r.symbolPadding||0,l=this.itemStyle,c=this.itemHiddenStyle,u=s?be(r.itemDistance,20):0,d=!r.rtl,h=!e.series,p=!h&&e.series.drawLegendSymbol?e.series:e,f=p.options,m=!!this.createCheckboxForItem&&f&&f.showCheckbox,g=r.useHTML,v=e.options.className,y=t.label,b=a+o+u+20*!!m;!y&&(t.group=n.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+e.colorIndex+(v?" "+v:"")+(h?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=y=n.text("",d?a+o:-o,this.baseline||0,g),i.styledMode||y.css(fe(e.visible?l:c)),y.attr({align:d?"left":"right",zIndex:2}).add(t.group),!this.baseline&&(this.fontMetrics=n.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=be(r.symbolHeight,this.fontMetrics.f),r.squareSymbol&&(this.symbolWidth=be(r.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+o+u+20*!!m,d&&y.attr("x",this.symbolWidth+o))),p.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,y,g)),m&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),(i.styledMode||!l.width)&&y.css({width:Math.min(r.itemWidth||this.widthOption||i.spacingBox.width,r.maxWidth?xe(r.maxWidth,i.chartWidth):1/0)-b+"px"}),this.setText(e);let _=y.getBBox(),T=this.fontMetrics?.h||0;e.itemWidth=e.checkboxOffset=r.itemWidth||t.labelWidth||_.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(_.height>1.5*T?_.height:T))}layoutItem(e){let t=this.options,i=this.padding,n="horizontal"===t.layout,r=e.itemHeight,s=this.itemMarginBottom,a=this.itemMarginTop,o=n?be(t.itemDistance,20):0,l=this.maxLegendWidth,c=t.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:e.itemWidth,u=e.legendItem||{};n&&this.itemX-i+c>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=a+this.itemY+s,this.lastLineHeight=Math.max(r,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,n?this.itemX+=c:(this.itemY+=a+r+s,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(e.checkbox?0:o):c)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){let i=t?.options;t&&be(i.showInLegend,!X(i.linkedTo)&&void 0,!0)&&(e=e.concat(t.legendItem?.labels||("point"===i.legendType?t.data:t)))}),J(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){let i=this.chart,n=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEac
vendor: 5,770 bytes, line 2
2h((s,a)=>{s.test(r)&&!X(e[a])&&(i[un[a]]=Math.max(i[un[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*n[a%2?"x":"y"]+(n.margin??12)+t[a]+(i.titleOffset[a]||0)))})}proximatePositions(){let e,t=this.chart,i=[],n="left"===this.options.align;for(let r of(this.allItems.forEach(function(e){let r,s,a,o,l=n;e.yAxis&&(e.xAxis.options.reversed&&(l=!l),e.points&&(r=se(l?e.points:e.points.slice(0).reverse(),function(e){return ce(e.plotY)})),s=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,o=e.yAxis.top-t.plotTop,a=e.visible?(r?r.plotY:e.yAxis.height)+(o-.3*s):o+e.yAxis.height,i.push({target:a,size:s,item:e}))},this),dn(i,t.plotHeight)))e=r.item.legendItem||{},ce(r.pos)&&(e.y=t.plotTop-t.spacing[0]+r.pos)}render(){let e,t,i,n,r=this.chart,s=r.spacingBox.width,a=r.renderer,o=this.options,l=this.padding,c=this.getAllItems(),u=this.group,d=this.box;this.itemX=l,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=xe(o.width,s-l),n=s-2*l-o.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(n/=2),this.maxLegendWidth=this.widthOption||n,u||(this.group=u=a.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(u),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),Ee(c,(e,t)=>(e.options?.legendIndex||0)-(t.options?.legendIndex||0)),o.reversed&&c.reverse(),this.allItems=c,this.display=e=!!c.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),t=(o.maxWidth?Math.min(this.widthOption||this.offsetWidth,n,xe(o.maxWidth,r.chartWidth)||1/0):this.widthOption||this.offsetWidth)+l,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+l,d||(this.box=d=a.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(u)),r.styledMode||d.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),t>0&&i>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:t,height:i},d.strokeWidth())),u[e?"show":"hide"](),r.styledMode&&"none"===u.getStyle("display")&&(t=i=0),this.legendWidth=t,this.legendHeight=i,e&&this.align(),this.proximate||this.positionItems(),J(this,"afterRender")}align(e=this.chart.spacingBox){let t=this.chart,i=this.options,n=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?n+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(n-=t.titleOffset[2]),n!==e.y&&(e=fe(e,{y:n})),t.hasRendered||(this.group.placed=!1),this.group.align(fe(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,e)}handleOverflow(e){let t,i,n,r,s=this,a=this.chart,o=a.renderer,l=this.options,c=l.y,u="top"===l.verticalAlign,d=this.padding,h=l.maxHeight,p=l.navigation,f=be(p.animation,!0),m=p.arrowSize||12,g=this.pages,v=this.allItems,y=function(e){"number"==typeof e?x.attr({height:e}):x&&(s.clipRect=x.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=e?"rect("+d+"px,9999px,"+(d+e)+"px,0)":"auto")},b=function(e){return s[e]=o.circle(0,0,1.3*m).translate(m/2,m/2).add(T),a.styledMode||s[e].attr("fill","rgba(0,0,0,0.0001)"),s[e]},_=a.spacingBox.height+(u?-c:c)-d,T=this.nav,x=this.clipRect;return"horizontal"!==l.layout||"middle"===l.verticalAlign||l.floating||(_/=2),h&&(_=Math.min(_,h)),g.length=0,e&&_>0&&e>_&&!1!==p.enabled?(this.clipHeight=t=Math.max(_-20-this.titleHeight-d,0),this.currentPage=be(this.currentPage,1),this.fullHeight=e,v.forEach((e,s)=>{let a=(n=e.legendItem||{}).y||0,o=Math.round(n.label.getBBox().height),l=g.length;(!l||a-g[l-1]>t&&(i||a)!==g[l-1])&&(g.push(i||a),l++),n.pageIx=l-1,i&&r&&(r.pageIx=l-1),s===v.length-1&&a+o-g[l-1]>t&&a>g[l-1]&&(g.push(a),n.pageIx=l),a!==i&&(i=a),r=n}),x||(x=s.clipRect=o.clipRect(0,d-2,9999,0),s.contentGroup.clip(x)),y(t),T||(this.nav=T=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,m,m).add(T),b("upTracker").on("click",function(){s.scroll(-1,f)}),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(T),this.down=o.symbol("triangle-down",0,0,m,m).add(T),b("downTracker").on("click",function(){s.scroll(1,f)})),s.scroll(0),e=_):T&&(y(),this.nav=T.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){let i=this.chart,n=this.pages,r=n.length,s=this.clipHeight,a=this.options.navigation,o=this.pager,l=this.padding,c=this.currentPage+e;c>r&&(c=r),c>0&&(void 0!==t&&on(t,i),this.nav.attr({translateX:l,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(e){e.attr({class:1===c?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),o.attr({text:c+"/"+r}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:c===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:1===c?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===c?"default":"pointer"}),this.down.attr({fill:c===r?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:c===r?"default":"pointer"})),this.scrollOffset=-n[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),Ce(()=>{J(this,"afterScroll",{currentPage:c})},an(be(t,i.renderer.globalAnimation,!0)).duration))}setItemEvents(e,t,i){let n=this,r=e.legendItem||{},s=n.chart.renderer.boxWrapper,a=e instanceof Pi,o=e instanceof sn,l="highcharts-legend-"+(a?"point":"series")+"-active",c=n.chart.styledMode,u=i?[t,r.symbol]:[r.group],d=t=>
vendor: 5,105 bytes, line 2
2{n.allItems.forEach(i=>{e!==i&&[i].concat(i.linkedSeries||[]).forEach(e=>{e.setState(t,!a)})})};for(let i of u)i&&i.on("mouseover",function(){e.visible&&d("inactive"),e.setState("hover"),e.visible&&s.addClass(l),c||t.css(n.options.itemHoverStyle)}).on("mouseout",function(){n.chart.styledMode||t.css(fe(e.visible?n.itemStyle:n.itemHiddenStyle)),d(""),s.removeClass(l),e.setState()}).on("click",function(t){s.removeClass(l),J(n,"itemClick",{browserEvent:t,legendItem:e,context:n},function(){e.setVisible&&e.setVisible(),d(e.visible?"inactive":"")}),a?e.firePointEvent("legendItemClick",{browserEvent:t}):o&&J(e,"legendItemClick",{browserEvent:t})})}createCheckboxForItem(e){e.checkbox=z("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),B(e.checkbox,"click",function(t){let i=t.target;J(e.series||e,"checkboxClick",{checked:i.checked,item:e},function(){e.select()})})}}(d=pn||(pn={})).compose=function(e){Te(cn,"Core.Legend")&&B(e,"beforeMargins",function(){this.legend=new d(this,this.options.legend)})};let fn=pn,{animate:mn,animObject:gn,setAnimation:vn}=Je,{defaultOptions:yn}=ze,{numberFormat:bn}=pt,{registerEventOptions:_n}=ii,{charts:Tn,doc:xn,marginNames:wn,svg:Sn,win:kn}=M,{seriesTypes:En}=$i;class Cn{static chart(e,t,i){return new Cn(e,t,i)}constructor(e,t,i){if(this.sharedClips={},!xn)return void Pe(36,!1,this);const n=[...arguments];(ue(e)||e.nodeName)&&(this.renderTo=n.shift()),this.init(n[0],n[1])}setZoomOptions(){let e=this.options.chart,t=e.zooming;this.zooming={...t,type:be(e.zoomType,t.type),key:be(e.zoomKey,t.key),pinchType:be(e.pinchType,t.pinchType),singleTouch:be(e.zoomBySingleTouch,t.singleTouch,!1),resetButton:fe(t.resetButton,e.resetZoomButton)}}init(e,t){J(this,"init",{args:arguments},function(){let i=fe(yn,e),n=i.chart,r=this.renderTo||n.renderTo;this.userOptions=Q({},e),(this.renderTo=ue(r)?xn.getElementById(r):r)||Pe(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.locale=i.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new Ue(Q(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(n.numberFormatter||bn).bind(this),this.styledMode=n.styledMode,this.hasCartesianSeries=n.showAxes,this.index=Tn.length,Tn.push(this),M.chartCount++,_n(this,n),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),J(this,"afterInit"),this.firstRender()})}initSeries(e){let t=this.options.chart,i=e.type||t.type,n=En[i];n||Pe(17,!0,this,{missingModuleFor:i});let r=new n;return"function"==typeof r.init&&r.init(this,e),r}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,t=0){let i=this[e],n=this.options[e]=ke(this.options[e]).slice(),r=this.userOptions[e]=this.userOptions[e]?ke(this.userOptions[e]).slice():[];if(this.hasRendered&&(n.splice(t),r.splice(t)),i)for(let e=t,s=i.length;e<s;++e){let t=i[e];t&&(t.index=e,t instanceof sn&&(t.name=t.getName()),t.options.isInternal||(n[e]=t.options,r[e]=t.userOptions))}}getClipBox(e,t){let i=this.inverted,{xAxis:n,yAxis:r}=e||{},{x:s,y:a,width:o,height:l}=fe(this.clipBox);return e&&(n&&n.len!==this.plotSizeX&&(o=n.len),r&&r.len!==this.plotSizeY&&(l=r.len),i&&!e.invertible&&([o,l]=[l,o])),t&&(s+=(i?r:n)?.pos??this.plotLeft,a+=(i?n:r)?.pos??this.plotTop),{x:s,y:a,width:o,height:l}}isInsidePlot(e,t,i={}){let{inverted:n,plotBox:r,plotLeft:s,plotTop:a,scrollablePlotBox:o}=this,{scrollLeft:l=0,scrollTop:c=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},u=i.series,d=i.visiblePlotOnly&&o||r,h=i.inverted?t:e,p=i.inverted?e:t,f={x:h,y:p,isInsidePlot:!0,options:i};if(!i.ignoreX){let e=u&&(n&&!this.polar?u.yAxis:u.xAxis)||{pos:s,len:1/0},t=i.paneCoordinates?e.pos+h:s+h;t>=Math.max(l+s,e.pos)&&t<=Math.min(l+s+d.width,e.pos+e.len)||(f.isInsidePlot=!1)}if(!i.ignoreY&&f.isInsidePlot){let e=!n&&i.axis&&!i.axis.isXAxis&&i.axis||u&&(n?u.xAxis:u.yAxis)||{pos:a,len:1/0},t=i.paneCoordinates?e.pos+p:a+p;t>=Math.max(c+a,e.pos)&&t<=Math.min(c+a+d.height,e.pos+e.len)||(f.isInsidePlot=!1)}return J(this,"afterIsInsidePlot",f),f.isInsidePlot}redraw(e){J(this,"beforeRedraw");let t,i,n,r,s=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,o=this.pointer,l=this.legend,c=this.userOptions.legend,u=this.renderer,d=u.isHidden(),h=[],p=this.isDirtyBox,f=this.isDirtyLegend;for(u.rootFontSize=u.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),vn(!!this.hasRendered&&e,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),n=a.length;n--;)if(((r=a[n]).options.stacking||r.options.centerInCategory)&&(i=!0,r.isDirty)){t=!0;break}if(t)for(n=a.length;n--;)(r=a[n]).options.stacking&&(r.isDirty=!0);
vendor: 4,886 bytes, line 2
2a.forEach(function(e){e.isDirty&&("point"===e.options.legendType?("function"==typeof e.updateTotals&&e.updateTotals(),f=!0):c&&(c.labelFormatter||c.labelFormat)&&(f=!0)),e.isDirtyData&&J(e,"updatedData")}),f&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),s.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),s.forEach(function(e){e.isDirty&&(p=!0)}),s.forEach(function(e){let t=e.min+","+e.max;e.extKey!==t&&(e.extKey=t,h.push(function(){J(e,"afterSetExtremes",Q(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(p||i)&&e.redraw()}),p&&this.drawChartBox(),J(this,"predraw"),a.forEach(function(e){(p||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),o&&o.reset(!0),u.draw(),J(this,"redraw"),J(this,"render"),d&&this.temporaryDisplay(!0),h.forEach(function(e){e.call()})}get(e){let t=this.series;function i(t){return t.id===e||t.options&&t.options.id===e}let n=se(this.axes,i)||se(this.series,i);for(let e=0;!n&&e<t.length;e++)n=se(t[e].points||[],i);return n}createAxes(){let e=this.userOptions;for(let t of(J(this,"createAxes"),["xAxis","yAxis"]))for(let i of e[t]=ke(e[t]||{}))new hi(this,i,t);J(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((e,t)=>(t.getPointsCollection().forEach(t=>{be(t.selectedStaging,t.selected)&&e.push(t)}),e),[])}getSelectedSeries(){return this.series.filter(e=>e.selected)}setTitle(e,t,i){this.applyDescription("title",e),this.applyDescription("subtitle",t),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(e,t){let i=this,n=this.options[e]=fe(this.options[e],t),r=this[e];r&&t&&(this[e]=r=r.destroy()),n&&!r&&((r=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+e,zIndex:n.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(t,n){i.applyDescription(e,t),i.layOutTitles(n)},this.styledMode||r.css(Q("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},n.style)),r.textPxLength=r.getBBox().width,r.css({whiteSpace:n.style?.whiteSpace}),this[e]=r)}layOutTitles(e=!0){let t=[0,0,0],{options:i,renderer:n,spacingBox:r}=this;["title","subtitle","caption"].forEach(e=>{let i=this[e],s=this.options[e],a=fe(r),o=i?.textPxLength||0;if(i&&s){J(this,"layOutTitle",{alignTo:a,key:e,textPxLength:o});let r=n.fontMetrics(i),l=r.b,c=r.h,u=s.verticalAlign||"top",d="top"===u,h=d&&s.minScale||1,p="title"===e?d?-3:0:d?t[0]+2:0,f=Math.min(a.width/o,1),m=Math.max(h,f),g=fe({y:"bottom"===u?l:p+l},s),v=(s.width||(f>h?this.chartWidth:a.width)/m)+"px";g.align??(g.align="title"===e?f<h?"left":"center":this.title?.alignValue),i.alignValue!==g.align&&(i.placed=!1);let y=Math.round(i.css({width:v}).getBBox(s.useHTML).height);if(g.height=y,i.align(g,!1,a).attr({align:g.align,scaleX:m,scaleY:m,"transform-origin":`${a.x+o*m*ee(g.align)} ${c}`}),!s.floating){let e=y*(y<1.2*c?1:m);"top"===u?t[0]=Math.ceil(t[0]+e):"bottom"===u&&(t[2]=Math.ceil(t[2]+e))}}},this),t[0]&&"top"===(i.title?.verticalAlign||"top")&&(t[0]+=i.title?.margin||0),t[2]&&"bottom"===i.caption?.verticalAlign&&(t[2]+=i.caption?.margin||0);let s=!this.titleOffset||this.titleOffset.join(",")!==t.join(",");this.titleOffset=t,J(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){let e=[].map.call(this.renderTo.children,e=>{if(e!==this.container){let t=e.style.display;return e.style.display="none",[e,t]}}),t={width:re(this.renderTo,"width",!0)||0,height:re(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(([e,t])=>{e.style.display=t}),t}getChartSize(){let e=this.options.chart,t=e.width,i=e.height,n=this.getContainerBox(),r=n.height<=1||!this.renderTo.parentElement?.style.height&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,t||n.width||600),this.chartHeight=Math.max(0,xe(i,this.chartWidth)||(r?400:n.height)),this.containerBox=n}temporaryDisplay(e){let t,i=this.renderTo;if(e)for(;i?.style;)i.hcOrigStyle&&(V(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(xn.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i?.style&&(xn.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,xn.body.appendChild(i)),("none"===re(i,"display",!1)||i.hcOrigDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},t={display:"block",overflow:"hidden"},i!==this.renderTo&&(t.height=0),V(i,t),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==xn.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){let e,t=this.options,i=t.chart,n="data-highcharts-chart",r=Me(),s=this.renderTo,a=_e(j(s,n));ce(a)&&Tn[a]&&Tn[a].hasRendered&&Tn[a].destroy(),j(s,n,this.index),s.innerHTML=st.emptyHTML,i.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize();
vendor: 2,823 bytes, line 2
2let o=this.chartHeight,l=this.chartWidth;V(s,{overflow:"hidden"}),this.styledMode||(e=Q({position:"relative",overflow:"hidden",width:l+"px",height:o+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},i.style||{}));let c=z("div",{id:r},e,s);this.container=c,this.getChartSize(),l!==this.chartWidth&&(l=this.chartWidth,this.styledMode||V(c,{width:be(i.style?.width,l+"px")})),this.containerBox=this.getContainerBox(),this._cursor=c.style.cursor;let u=i.renderer||!Sn?ft.getRendererType(i.renderer):$t;if(this.renderer=new u(c,l,o,void 0,i.forExport,t.exporting?.allowHTML,this.styledMode),vn(void 0,this),this.setClassName(i.className),this.styledMode)for(let e in t.defs)this.renderer.definition(t.defs[e]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,J(this,"afterGetContainer")}getMargins(e){let{spacing:t,margin:i,titleOffset:n}=this;this.resetMargins(),n[0]&&!X(i[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+t[0])),n[2]&&!X(i[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+t[2])),this.legend?.display&&this.legend.adjustMargins(i,t),J(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){let e=this,t=e.axisOffset=[0,0,0,0],i=e.colorAxis,n=e.margin,r=e=>{e.forEach(e=>{e.visible&&e.getOffset()})};e.hasCartesianSeries?r(e.axes):i?.length&&r(i),wn.forEach((i,r)=>{X(n[r])||(e[i]+=t[r])}),e.setChartSize()}getOptions(){return Y(this.userOptions,yn)}reflow(e){let t=this,i=t.containerBox,n=t.getContainerBox();delete t.pointer?.chartPosition,!t.exporting?.isPrinting&&!t.isResizing&&i&&n.width&&((n.width!==i.width||n.height!==i.height)&&(ae(t.reflowTimeout),t.reflowTimeout=Ce(function(){if(t.container){t.setSize(void 0,void 0,!1);let e=t.containerBox;e&&(e.height=t.chartHeight)}},100*!!e)),t.containerBox=n)}setReflow(){let e=this,t=t=>{e.options?.chart.reflow&&e.hasLoaded&&e.reflow(t)};if("function"==typeof ResizeObserver)new ResizeObserver(t).observe(e.renderTo);else{let e=B(kn,"resize",t);B(this,"destroy",e)}}setSize(e,t,i){let n=this,r=n.renderer;n.isResizing+=1,vn(i,n);let s=r.globalAnimation;n.oldChartHeight=n.chartHeight,n.oldChartWidth=n.chartWidth,void 0!==e&&(n.options.chart.width=e),void 0!==t&&(n.options.chart.height=t),n.getChartSize();let{chartWidth:a,chartHeight:o,scrollablePixelsX:l=0,scrollablePixelsY:c=0}=n;(n.isDirtyBox||a!==n.oldChartWidth||o!==n.oldChartHeight)&&(n.styledMode||(s?mn:V)(n.container,{width:`${a+l}px`,height:`${o+c}px`},s),n.setChartSize(!0),r.setSize(a,o,s),n.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),n.isDirtyLegend=!0,n.isDirtyBox=!0,n.layOutTitles(),n.getMargins(),n.redraw(s),n.oldChartHeight=void 0,J(n,"resize"),setTimeout(()=>{n&&J(n,"endResize")},gn(s).duration)),n.isResizing-=1}
2setChartSize(e){let t,i,n,r,{chartHeight:s,chartWidth:a,inverted:o,spacing:l,renderer:c}=this,u=this.clipOffset,d=Math[o?"floor":"round"];this.plotLeft=t=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(a-t-(this.marginRight??0))),this.plotHeight=r=Math.max(0,Math.round(s-i-(this.marginBottom??0))),this.plotSizeX=o?r:n,this.plotSizeY=o?n:r,this.spacingBox=c.spacingBox={x:l[3],y:l[0],width:a-l[3]-l[1],height:s-l[0]-l[2]},this.plotBox=c.plotBox={x:t,y:i,width:n,height:r},u&&(this.clipBox={x:d(u[3]),y:d(u[0]),width:d(this.plotSizeX-u[1]-u[3]),height:d(this.plotSizeY-u[0]-u[2])}),e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),c.alignElements()),J(this,"afterSetChartSize",{skipAxes:e})}resetMargins(){J(this,"resetMargins");let e=this,t=e.options.chart,i=t.plotBorderWidth||0,n=Math.round(i)/2;["margin","spacing"].forEach(i=>{let n=t[i],r=pe(n)?n:[n,n,n,n];["Top","Right","Bottom","Left"].forEach((n,s)=>{e[i][s]=t[`${i}${n}`]??r[s]})}),wn.forEach((t,i)=>{e[t]=e.margin[i]??e.spacing[i]}),e.axisOffset=[0,0,0,0],e.clipOffset=[n,n,n,n],e.plotBorderWidth=i}drawChartBox(){let e,t,i,n=this.options.chart,r=this.renderer,s=this.chartWidth,a=this.chartHeight,o=this.styledMode,l=this.plotBGImage,c=n.backgroundColor,u=n.plotBackgroun
2dColor,d=n.plotBackgroundImage,h=this.plotLeft,p=this.plotTop,f=this.plotWidth,m=this.plotHeight,g=this.plotBox,v=this.clipRect,y=this.clipBox,b=this.chartBackground,_=this.plotBackground,T=this.plotBorder,x="animate";b||(this.chartBackground=b=r.rect().addClass("highcharts-background").add(),x="attr"),o?e=t=b.strokeWidth():(t=(e=n.borderWidth||0)+8*!!n.shadow,i={fill:c||"none"},(e||b["stroke-width"])&&(i.stroke=n.borderColor,i["stroke-width"]=e),b.attr(i).shadow(n.shadow)),b[x]({x:t/2,y:t/2,width:s-t-e%2,height:a-t-e%2,r:n.borderRadius}),x="animate",_||(x="attr",this.plotBackground=_=r.rect().addClass("highcharts-plot-background").add()),_[x](g),!o&&(_.attr({fill:u||"none"}).shadow(n.plotShadow),d&&(l?(d!==l.attr("href")&&l.attr("href",d),l.animate(g)):this.plotBGImage=r.image(d,h,p,f,m).add())),v?v.animate({width:y.width,height:y.height}):this.clipRect=r.clipRect(y),x="animate",T||(x="attr",this.plotBorder=T=r.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),o||T.attr({stroke:n.plotBorderColor,"stroke-width":n.plotBorderWidth||0,fill:"none"}),T[x](T.crisp(g,-T.strokeWidth())),this.isDirtyBox=!1,J(this,"afterDrawChartBox")}propFromSeries(){let e,t,i,n=this,r=n.options.chart,s=n.options.series;["inverted","angular","polar"].forEach(function(a){for(t=En[r.type],i=r[a]||t&&t.prototype[a],e=s?.length;!i&&e--;)(t=En[s[e].type])&&t.prototype[a]&&(i=!0);n[a]=i})}linkSeries(e){let t=this,i=t.series;i.forEach(function(e){e.linkedSeries.length=0}),i.forEach(function(e){let{linkedTo:n}=e.options,r=ue(n)&&(":previous"===n?i[e.index-1]:t.get(n));r&&r.linkedParent!==e&&(r.linkedSeries.push(e),e.linkedParent=r,r.enabledDataSorting&&e.setDataSortingOptions(),e.visible=e.options.visible??r.options.visible??e.visible)}),J(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){let e,t=this.axes,i=this.colorAxis,n=this.renderer,r=this.options.chart.axisLayoutRuns||2,s=e=>{e.forEach(e=>{e.visible&&e.render()})},a=0,o=!0,l=0;for(let e of(this.setTitle(),J(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),t)){let{options:t}=e,{labels:i}=t;if(this.hasCartesianSeries&&e.horiz&&e.visible&&i.enabled&&e.series.length&&"colorAxis"!==e.coll&&!this.polar){a=t.tickLength,e.createGroups();let n=new ri(e,0,"",!0),r=n.createLabel("x",i);if(n.destroy(),r&&be(i.reserveSpace,!ce(t.crossing))&&(a=r.getBBox().height+i.distance+Math.max(t.offset||0,0)),a){r?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-a,0);(o||e||r>1)&&l<r;){let i=this.plotWidth,n=this.plotHeight,r=[1.05,1.1];for(let i of t){let t=+(i.horiz||0);if(0===l){i.setScale();let e=i.tickPositions?.info?.match;e&&(r[t]=Math.min(e,r[t]))}else(t&&o||!t&&e)&&i.setTickInterval(!0)}0===l?this.getAxisMargins():this.getMargins(),o=i/this.plotWidth>(l?1:r[1]),e=n/this.plotHeight>(l?1:r[0]),l++}this.drawChartBox(),this.hasCartesianSeries?s(t):i?.length&&s(i),this.seriesGroup||(this.seriesGroup=n.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){let t=this,i=fe(!0,this.options.credits,e);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(e){J(t,"creditsClick",e,()=>{i.href&&(kn.location.href=i.href)})}).attr({align:i.position.align,zIndex:8}),i.events?.click&&B(t,"creditsClick",i.events.click),t.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})}destroy(){let e,t=this,i=t.axes,n=t.series,r=t.container,s=r?.parentNode;for(J(t,"destroy"),t.renderer.forExport?K(Tn,t):Tn[t.index]=void 0,M.chartCount--,t.renderTo.removeAttribute("data-highcharts-chart"),Se(t),e=i.length;e--;)i[e]=i[e].destroy();for(this.scroller?.destroy?.(),e=n.length;e--;)n[e]=n[e].destroy();
vendor: 4,145 bytes, line 2
2["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(e=>{t[e]=t[e]?.destroy?.()}),r&&(r.innerHTML=st.emptyHTML,Se(r),s&&$(r)),ge(t,function(e,i){delete t[i]})}firstRender(){let e=this,t=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();let i=de(t.series)?t.series:[];t.series=[],i.forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSortedData(),J(e,"beforeRender"),e.render(),e.pointer?.getChartPosition(),e.renderer.asyncCounter||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),J(this,"load"),J(this,"render"),X(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:t}=this;e&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(t?.element.textContent||"").replace(/</g,"<")}),e.accessibility&&!1===e.accessibility.enabled||Pe('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}warnIfCSSNotLoaded(){this.styledMode&&"0"!==kn.getComputedStyle(this.container).zIndex&&Pe(35,!1,this)}addSeries(e,t,i){let n,r=this;return e&&(t=be(t,!0),J(r,"addSeries",{options:e},function(){n=r.initSeries(e),r.isDirtyLegend=!0,r.linkSeries(),n.enabledDataSorting&&n.setData(e.data,!1),J(r,"afterAddSeries",{series:n}),t&&r.redraw(i)})),n}addAxis(e,t,i,n){return this.createAxis(t?"xAxis":"yAxis",{axis:e,redraw:i,animation:n})}addColorAxis(e,t,i){return this.createAxis("colorAxis",{axis:e,redraw:t,animation:i})}createAxis(e,t){let i=new hi(this,t.axis,e);return be(t.redraw,!0)&&this.redraw(t.animation),i}showLoading(e){let t=this,i=t.options,n=i.loading,r=n?.style??{},s=function(){a&&V(a,{left:r.left??t.plotLeft+"px",top:r.top??t.plotTop+"px",width:r.width??t.plotWidth+"px",height:r.height??t.plotHeight+"px"})},a=t.loadingDiv,o=t.loadingSpan;a||(t.loadingDiv=a=z("div",{className:"highcharts-loading highcharts-loading-hidden"},null,t.container)),o||(t.loadingSpan=o=z("span",{className:"highcharts-loading-inner"},null,a),B(t,"redraw",s)),a.className="highcharts-loading",st.setElementHTML(o,be(e,i.lang.loading,"")),!t.styledMode&&(V(a,Q(r,{zIndex:10})),V(o,n?.labelStyle??{}),t.loadingShown||(V(a,{opacity:0,display:""}),mn(a,{opacity:r.opacity??.5},{duration:n?.showDuration??0}))),t.loadingShown=!0,s()}hideLoading(){let e=this.options,t=this.loadingDiv;t&&(t.className="highcharts-loading highcharts-loading-hidden",this.styledMode||mn(t,{opacity:0},{duration:e.loading?.hideDuration??100,complete:function(){V(t,{display:"none"})}})),this.loadingShown=!1}update(e,t,i,n){let r,s,a,o=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=e.isResponsiveOptions,u=[];J(o,"update",{options:e}),c||o.setResponsive(!1,!0),e=Y(e,o.options),o.userOptions=fe(o.userOptions,e);let d=e.chart;d&&(fe(!0,o.options.chart,d),this.setZoomOptions(),"className"in d&&o.setClassName(d.className),("inverted"in d||"polar"in d||"type"in d)&&(o.propFromSeries(),r=!0),"alignTicks"in d&&(r=!0),"events"in d&&_n(this,d),ge(d,function(e,t){-1!==o.propsRequireUpdateSeries.indexOf("chart."+t)&&(s=!0),-1!==o.propsRequireDirtyBox.indexOf(t)&&(o.isDirtyBox=!0),-1!==o.propsRequireReflow.indexOf(t)&&(o.isDirtyBox=!0,c||(a=!0))}),!o.styledMode&&d.style&&o.renderer.setStyle(o.options.chart.style||{})),!o.styledMode&&e.colors&&(this.options.colors=e.colors),ge(e,function(t,i){o[i]&&"function"==typeof o[i].update?o[i].update(t,!1):"function"==typeof o[l[i]]?o[l[i]](t):"colors"!==i&&-1===o.collectionsWithUpdate.indexOf(i)&&fe(!0,o.options[i],e[i]),"chart"!==i&&-1!==o.propsRequireUpdateSeries.indexOf(i)&&(s=!0)}),this.collectionsWithUpdate.forEach(t=>
2{e[t]&&(ke(e[t]).forEach((e,n)=>{let r;if(!e)return;let s=X(e.id);s&&(r=o.get(e.id)),!r&&o[t]&&(r=o[t][be(e.index,n)])&&(s&&X(r.options.id)||r.options.isInternal)&&(r=void 0),r&&r.coll===t&&(r.update(e,!1),i&&(r.touched=!0)),!r&&i&&o.collectionsWithInit[t]&&(o.collectionsWithInit[t][0].apply(o,[e].concat(o.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)}),i&&o[t].forEach(e=>{e.touched||e.options.isInternal?delete e.touched:u.push(e)}))}),u.forEach(e=>{e.chart&&e.remove&&e.remove(!1)}),r&&o.axes.forEach(function(e){e.update({},!1)}),s&&o.getSeriesOrderByLinks().forEach(function(e){e.chart&&e.update({},!1)},this);let h=d?.width,p=d&&(ue(d.height)?xe(d.height,h||o.chartWidth):d.height);a||ce(h)&&h!==o.chartWidth||ce(p)&&p!==o.chartHeight?o.setSize(h,p,n):be(t,!0)&&o.redraw(n),J(o,"afterUpdate",{options:e,redraw:t,animation:n})}setSubtitle(e,t){this.applyDescription("subtitle",e),this.layOutTitles(t)}setCaption(e,t){this.applyDescription("caption",e),this.layOutTitles(t)}showResetZoom(){let e=this,t=yn.lang,i=e.zooming.resetButton,n=i.theme,r="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function s(){e.zoomOut()}J(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(t.resetZoom,null,null,s,n).attr({align:i.position.align,title:t.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,r)}),J(this,"afterShowResetZoom")}zoomOut(){J(this,"selection",{resetSelection:!0}
vendor: 2,805 bytes, line 2
2,()=>this.transform({reset:!0,trigger:"zoom"}))}pan(e,t){let i=this,n="object"==typeof t?t:{enabled:t,type:"x"},r=n.type,s=r&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[r]].filter(e=>e.options.panningEnabled&&!e.options.isInternal),a=i.options.chart;a?.panning&&(a.panning=n),J(this,"pan",{originalEvent:e},()=>{i.transform({axes:s,event:e,to:{x:e.chartX-(i.mouseDownX||0),y:e.chartY-(i.mouseDownY||0)},trigger:"pan"}),V(i.container,{cursor:"move"})})}transform(e){let{axes:t=this.axes,event:i,from:n={},reset:r,selection:s,to:a={},trigger:o,allowResetButton:l=!0}=e,{inverted:c,time:u}=this;this.hoverPoints?.forEach(e=>e.setState()),J(this,"transform",e);let d,h,p=e.hasZoomed||!1;for(let e of t){let{horiz:t,len:f,minPointOffset:m=0,options:g,reversed:v}=e,y=t?"width":"height",b=t?"x":"y",_=be(a[y],e.len),T=be(n[y],e.len),x=10>Math.abs(_)?1:_/T,w=(n[b]||0)+T/2-e.pos,S=w-((a[b]??e.pos)+_/2-e.pos)/x,k=v&&!c||!v&&c?-1:1;if(!r&&(w<0||w>e.len))continue;let E=e.chart.polar||e.isOrdinal?0:m*k||0,C=e.toValue(S,!0),A=e.toValue(S+f/x,!0),L=C+E,I=A-E,P=e.allExtremes;if(s&&s[e.coll].push({axis:e,min:Math.min(C,A),max:Math.max(C,A)}),L>I&&([L,I]=[I,L]),1===x&&!r&&"yAxis"===e.coll&&!P){for(let t of e.series){let e=t.getExtremes(t.getProcessedData(!0).modified.getColumn(t.pointValKey||"y")||[],!0);P??(P={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),ce(e.dataMin)&&ce(e.dataMax)&&(P.dataMin=Math.min(e.dataMin,P.dataMin),P.dataMax=Math.max(e.dataMax,P.dataMax))}e.allExtremes=P}let{dataMin:O,dataMax:D,min:M,max:N}=Q(e.getExtremes(),P||{}),R=u.parse(g.min),B=u.parse(g.max),F=O??R,U=D??B,j=I-L,H=e.categories?0:Math.min(j,U-F),q=F-H*(X(R)?0:g.minPadding),z=U+H*(X(B)?0:g.maxPadding),W=e.allowZoomOutside||1===x||"zoom"!==o&&x>1,V=Math.min(R??q,q,W?M:q),G=Math.max(B??z,z,W?N:z);(!e.isOrdinal||1!==x||r)&&(L<V&&(L=V,x>=1&&(I=L+j)),I>G&&(I=G,x>=1&&(L=I-j)),(r||e.series.length&&(L!==M||I!==N)&&L>=V&&I<=G)&&(s?s[e.coll].push({axis:e,min:L,max:I}):(e.isPanning="zoom"!==o,e.isPanning&&"mousewheel"!==o&&(h=!0),e.setExtremes(r?void 0:L,r?void 0:I,!1,!1,{move:S,trigger:o,scale:x}),!r&&(L>V||I<G)&&(d=l)),p=!0),this.hasCartesianSeries||r||(d=l),i&&(this[t?"mouseDownX":"mouseDownY"]=i[t?"chartX":"chartY"]))}return p&&(s?J(this,"selection",s,()=>{delete e.selection,e.trigger="zoom",this.transform(e)}):(!d||h||this.resetZoomButton?!d&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===o&&(this.options.chart.animation??this.pointCount<100)))),p}}Q(Cn.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Cn.prototype.addAxis,[!0]],yAxis:[Cn.prototype.addAxis,[!1]],series:[Cn.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
2dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});let{stop:An}=Je,{composed:Ln}=M;function In(){let e=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!e&&(this.scrollablePlotArea=e=new On(this)),e?.applyFixed()}function Pn(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class On{static compose(e,t,i){Te(Ln,this.compose)&&(B(e,"afterInit",Pn),B(t,"afterSetChartSize",e=>this.afterSetSize(e.target,e)),B(t,"render",In),B(i,"show",Pn))}static afterSetSize(e,t){let i,n,r,{minWidth:s,minHeight:a}=e.options.chart.scrollablePlotArea||{},{clipBox:o,plotBox:l,inverted:c,renderer:u}=e;if(!u.forExport)if(s?(e.scrollablePixelsX=i=Math.max(0,s-e.chartWidth),i&&(e.scrollablePlotBox=fe(e.plotBox),l.width=e.plotWidth+=i,o[c?"height":"width"]+=i,r=!0)):a&&(e.scrollablePixelsY=n=Math.max(0,a-e.chartHeight),X(n)&&(e.scrollablePlotBox=fe(e.plotBox),l.height=e.plotHeight+=n,o[c?"width":"height"]+=n,r=!1)),X(r)){if(!t.skipAxes)for(let t of e.axes)(t.horiz===r||e.hasParallelCoordinates&&"yAxis"===t.coll)&&(t.setAxisSize(),t.setAxisTranslation())}else delete e.scrollablePlotBox}constructor(e){let t;const i=e.options.chart,n=ft.getRendererType(),r=i.scrollablePlotArea||{},s=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(a.overflowX="auto"),e.scrollablePixelsY&&(a.overflowY="auto"),this.chart=e;const o=this.parentDiv=z("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),l=this.scrollingContainer=z("div",{className:"highcharts-scrolling"},a,o),c=this.innerContainer=z("div",{className:"highcharts-inner-container"},void 0,l),u=this.fixedDiv=z("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(i.style?.zIndex||0)+2,top:0},void 0,!0),d=this.fixedRenderer=new n(u,e.chartWidth,e.chartHeight,i.style);this.mask=d.path().attr({fill:i.backgroundColor||"#fff","fill-opacity":r.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),l.parentNode.insertBefore(u,l),V(e.renderTo,{overflow:"visible"}),B(e,"afterShowResetZoom",s),B(e,"afterApplyDrilldown",s),B(e,"afterLayOutTitles",s),B(l,"scroll",()=>{let{pointer:i,hoverPoint:n}=e;i&&(delete i.chartPosition,n&&(t=n),i.runPointActions(void 0,t,!0))}),c.appendChild(e.container)}applyFixed(){let{chart:e,fixedRenderer:t,isDirty:i,scrollingContainer:n}=this,{axisOffset:r,chartWidth:s,chartHeight:a,container:o,plotHeight:l,plotLeft:c,plotTop:u,plotWidth:d,scrollablePixelsX:h=0,scrollablePixelsY:p=0}=e,{scrollPositionX:f=0,scrollPositionY:m=0}=e.options.chart.scrollablePlotArea||{},g=s+h,v=a+p;t.setSize(s,a),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),An(e.container),V(o,{width:`${g}px`,height:`${v}px`}),e.renderer.boxWrapper.attr({width:g,height:v,viewBox:["0 0",g,v].join(" ")}),e.chartBackground?.attr({width:g,height:v}),V(n,{width:`${s}px`,height:`${a}px`}),X(i)||(n.scrollLeft=h*f,n.scrollTop=p*m);let y=u-r[0]-1,b=c-r[3]-1,_=u+l+r[2]+1,T=c+d+r[1]+1,x=c+d-h,w=u+l-p,S=[["M",0,0]];h?S=[["M",0,y],["L",c-1,y],["L",c-1,_],["L",0,_],["Z"],["M",x,y],["L",s,y],["L",s,_],["L",x,_],["Z"]]:p&&(S=[["M",b,0],["L",b,u-1],["L",T,u-1],["L",T,0],["Z"],["M",b,w],["L",b,a],["L",T,a],["L",T,w],["Z"]]),"adjustHeight"!==e.redrawTrigger&&this.mask.attr({d:S})}moveFixedElements(){let e,{container:t,inverted:i,scrollablePixelsX:n,scrollablePixelsY:r}=this.chart,s=this.fixedRenderer,a=On.fixedSelectors.slice();if(n&&!i?e=".highcharts-yaxis":n&&i||r&&!i?e=".highcharts-xaxis":r&&i&&(e=".highcharts-yaxis"),!e||this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e)for(let e of[".highcharts-xaxis",".highcharts-yaxis"])for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])K(a,t);else for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])Te(a,t);for(let e of a)[].forEach.call(t.querySelectorAll(e),e=>{(e.namespaceURI===s.SVG_NS?s.box:s.box.parentNode).appendChild(e),e.style.pointerEvents="auto"})}}On.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];let{format:Dn}=pt,{series:Mn}=$i,Nn=class{constructor(e,t,i,n,r){const s=e.chart.inverted,a=e.reversed;this.axis=e;const o=this.isNegative=!!i!=!!a;this.options=t=t||{},this.x=n,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(s?o?"left":"right":"center"),verticalAlign:t.verticalAlign||(s?"middle":o?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(s?o?"right":"left":"center")}destroy(){G(this,this.axis)}render(e){let t=this.axis.chart,i=this.options,n=i.format,r=(n?Dn(n,this,t):i.formatter?.call(this,this))||"";if(this.label)this.label.attr({text:r,visibility:"hidden"});else{this.label=t.renderer.label(r,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");let n={r:i.borderRadius||0,text:r,padding:be(i.padding,5),visibility:"hidden"};t.styledMode||(n.fill=i.backgroundColor,n.stroke=i.borderColor,n["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(n),this.label.added||this.label.add(e)}
vendor: 4,956 bytes, line 2
2this.label.labelrank=t.plotSizeY,J(this,"afterRender")}setOffset(e,t,i,n,r,s){let{alignOptions:a,axis:o,label:l,options:c,textAlign:u}=this,d=o.chart,h=this.getStackBox({xOffset:e,width:t,boxBottom:i,boxTop:n,defaultX:r,xAxis:s}),{verticalAlign:p}=a;if(l&&h){let e,t=l.getBBox(void 0,0),i=l.padding,n="justify"===be(c.overflow,"justify");a.x=c.x||0,a.y=c.y||0;let{x:r,y:s}=this.adjustStackPosition({labelBox:t,verticalAlign:p,textAlign:u});h.x-=r,h.y-=s,l.align(a,!1,h),(e=d.isInsidePlot(l.alignAttr.x+a.x+r,l.alignAttr.y+a.y+s))||(n=!1),n&&Mn.prototype.justifyDataLabel.call(o,l,a,l.alignAttr,t,h),l.attr({x:l.alignAttr.x,y:l.alignAttr.y,rotation:c.rotation,rotationOriginX:t.width*ee(c.textAlign||"center"),rotationOriginY:t.height/2}),be(!n&&c.crop,!0)&&(e=ce(l.x)&&ce(l.y)&&d.isInsidePlot(l.x-i+(l.width||0),l.y)&&d.isInsidePlot(l.x+i,l.y)),l[e?"show":"hide"]()}J(this,"afterSetOffset",{xOffset:e,width:t})}adjustStackPosition({labelBox:e,verticalAlign:t,textAlign:i}){return{x:e.width/2+e.width/2*(2*ee(i)-1),y:e.height/2*2*(1-ee(t))}}getStackBox(e){let t=this.axis,i=t.chart,{boxTop:n,defaultX:r,xOffset:s,width:a,boxBottom:o}=e,l=t.stacking.usePercentage?100:be(n,this.total,0),c=t.toPixels(l),u=e.xAxis||i.xAxis[0],d=be(r,u.translate(this.x))+s,h=Math.abs(c-t.toPixels(o||ce(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),p=i.inverted,f=this.isNegative;return p?{x:(f?c:c-h)-i.plotLeft,y:u.height-d-a+u.top-i.plotTop,width:h,height:a}:{x:d+u.transB-i.plotLeft,y:(f?c-h:c)-i.plotTop,width:a,height:h}}},{getDeferredAnimation:Rn}=Je,{series:{prototype:Bn}}=$i;function Fn(){let e=this.inverted;this.axes.forEach(e=>{e.stacking?.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach(t=>{let i=t.xAxis?.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,be(t.options.stack,""),e?i.top:i.left,e?i.height:i.width].join(","))})}function Un(){let e=this.stacking;if(e){let t=e.stacks;ge(t,(e,i)=>{G(e),delete t[i]}),e.stackTotalGroup?.destroy()}}function jn(){this.stacking||(this.stacking=new Xn(this))}function Hn(e,t,i,n){return!X(e)||e.x!==t||n&&e.stackKey!==n?e={x:t,index:0,key:n,stackKey:n}:e.index++,e.key=[i,t,e.index].join(","),e}function qn(){let e,t=this,i=t.yAxis,n=t.stackKey||"",r=i.stacking.stacks,s=t.getColumn("x",!0),a=t.options.stacking,o=t[a+"Stacker"];o&&[n,"-"+n].forEach(i=>{let n,a,l,c=s.length;for(;c--;)n=s[c],e=t.getStackIndicator(e,n,t.index,i),a=r[i]?.[n],(l=a?.points[e.key||""])&&o.call(t,l,a,c)})}function zn(e,t,i){let n=t.total?100/t.total:0;e[0]=q(e[0]*n),e[1]=q(e[1]*n),this.stackedYData[i]=e[1]}function Wn(e){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?Bn.setStackedPoints.call(this,e,"group"):e.stacking.resetStacks())}function Vn(e,t){let i,n,r,s,a,o,l,c=t||this.options.stacking;if(!c||!this.reserveSpace()||({group:"xAxis"}[c]||"yAxis")!==e.coll)return;let u=this.getColumn("x",!0),d=this.getColumn(this.pointValKey||"y",!0),h=[],p=d.length,f=this.options,m=f.threshold||0,g=f.startFromThreshold?m:0,v=f.stack,y=t?`${this.type},${c}`:this.stackKey||"",b="-"+y,_=this.negStacks,T=e.stacking,x=T.stacks,w=T.oldStacks;for(T.stacksTouched+=1,l=0;l<p;l++){let t=u[l]||0,p=d[l],f=ce(p)&&p||0;o=(i=this.getStackIndicator(i,t,this.index)).key||"",x[a=(n=_&&f<(g?0:m))?b:y]||(x[a]={}),x[a][t]||(w[a]?.[t]?(x[a][t]=w[a][t],x[a][t].total=null):x[a][t]=new Nn(e,e.options.stackLabels,!!n,t,v)),r=x[a][t],null!==p?(r.points[o]=r.points[this.index]=[be(r.cumulative,g)],X(r.cumulative)||(r.base=o),r.touched=T.stacksTouched,i.index>0&&!1===this.singleStacks&&(r.points[o][0]=r.points[this.index+","+t+",0"][0])):(delete r.points[o],delete r.points[this.index]);let S=r.total||0;"percent"===c?(s=n?y:b,S=_&&x[s]?.[t]?(s=x[s][t]).total=Math.max(s.total||0,S)+Math.abs(f):q(S+Math.abs(f))):"group"===c?ce(p)&&S++:S=q(S+f),r.cumulative="group"===c?(S||1)-1:q(be(r.cumulative,g)+f),r.total=S,null!==p&&(r.points[o].push(r.cumulative),h[l]=r.cumulative,r.hasValidPoints=!0)}"percent"===c&&(T.usePercentage=!0),"group"!==c&&(this.stackedYData=h),T.oldStacks={}}class Xn{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,t,i=this.axis,n=i.series,r="xAxis"===i.coll,s=i.options.reversedStacks,a=n.length;for(this.resetStacks(),this.usePercentage=!1,t=a;t--;)e=n[s?t:a-t-1],r&&e.setGroupedPoints(i),e.setStackedPoints(i);if(!r)for(t=0;t<a;t++)n[t].modifyStacks();J(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,ge(this.stacks,e=>{ge(e,e=>{e.cumulative=e.total})}))}resetStacks(){ge(this.stacks,e=>{ge(e,(t,i)=>{ce(t.touched)&&t.touched<this.stacksTouched?(t.destroy(),delete e[i]):(t.total=null,t.cumulative=null)})})}renderStackTotals(){let e=this.axis,t=e.chart,i=t.renderer,n=this.stacks,r=Rn(t,e.options.stackLabels?.animation||!1),s=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}
vendor: 8,682 bytes, line 2
2).add();s.translate(t.plotLeft,t.plotTop),ge(n,e=>{ge(e,e=>{e.render(s)})}),s.animate({opacity:1},r)}}(k||(k={})).compose=function(e,t,i){let n=t.prototype,r=i.prototype;n.getStacks||(B(e,"init",jn),B(e,"destroy",Un),n.getStacks=Fn,r.getStackIndicator=Hn,r.modifyStacks=qn,r.percentStacker=zn,r.setGroupedPoints=Wn,r.setStackedPoints=Vn)};let Gn=k;class $n extends sn{drawGraph(){let e=this.options,t=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((n,r)=>{let s,a=n.graph,o=a?"animate":"attr",l=n.dashStyle||e.dashStyle;if(a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):t.length&&(n.graph=a=this.chart.renderer.path(t).addClass("highcharts-graph"+(r?` highcharts-zone-graph-${r-1} `:" ")+(r&&n.className||"")).attr({zIndex:1}).add(this.group)),a&&!i&&(s={stroke:!r&&e.lineColor||n.color||this.color||"#cccccc","stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||"none"},l?s.dashstyle=l:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[o](s),e.shadow)){let t=this.chart.inverted,i={filterUnits:"userSpaceOnUse"},n=pe(e.shadow)?fe(t?{}:i,e.shadow):!!t||i;a.shadow(n)}a&&(a.startX=t.xMap,a.isArea=t.isArea)})}getGraphPath(e,t,i){let n,r=this,s=r.options,a=[],o=[],l=s.step,c=(e=e||r.points).reversed;return c&&e.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(e=this.getValidPoints(e,!1,s.nullInteraction||!(s.connectNulls&&!t&&!i))).forEach(function(c,u){let d,h=c.plotX,p=c.plotY,f=e[u-1],m=c.isNull||"number"!=typeof p;(c.leftCliff||f?.rightCliff)&&!i&&(n=!0),m&&!X(t)&&u>0?n=!s.connectNulls:m&&!t?n=!0:(0===u||n?d=[["M",c.plotX,c.plotY]]:r.getPointSpline?d=[r.getPointSpline(e,c,u)]:l?(d=1===l?[["L",f.plotX,p]]:2===l?[["L",(f.plotX+h)/2,f.plotY],["L",(f.plotX+h)/2,p]]:[["L",h,f.plotY]]).push(["L",h,p]):d=[["L",h,p]],o.push(c.x),l&&(o.push(c.x),2===l&&o.push(c.x)),a.push.apply(a,d),n=!1)}),a.xMap=o,r.graphPath=a,a}}$n.defaultOptions=fe(sn.defaultOptions,{legendSymbol:"lineMarker"}),$i.registerSeriesType("line",$n);let{seriesTypes:{line:Yn}}=$i;class Kn extends Yn{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:t}=this;[this,...this.zones].forEach((i,n)=>{let r={},s=i.fillColor||t.fillColor,a=i.area,o=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):(r.zIndex=0,(a=i.area=this.chart.renderer.path(e).addClass("highcharts-area"+(n?` highcharts-zone-area-${n-1} `:" ")+(n&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(r.fill=s||i.color||this.color,r["fill-opacity"]=s?1:t.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[o](r),a.startX=e.xMap,a.shiftUnit=t.step?2:1})}getGraphPath(e){let t,i,n,r=Yn.prototype.getGraphPath,s=this.options,a=s.stacking,o=this.yAxis,l=[],c=[],u=this.index,d=o.stacking.stacks[this.stackKey],h=s.threshold,p=Math.round(o.getThreshold(s.threshold)),f=be(s.connectNulls,"percent"===a),m=function(i,n,r){let s,f,m=e[i],g=e[n],v=a&&d[m.x].points[u],y=m[r+"Null"]||0,b=m[r+"Cliff"]||0,_=!0;v&&(b||y)?(s=(y?v[0]:v[1])+b,f=v[0]+b,_=!!y):!a&&g&&(g.isNull||!X(g.plotY))&&(s=f=h),void 0!==s&&(c.push({plotX:t,plotY:null===s?p:o.getThreshold(s),isNull:_,isCliff:!0}),l.push({plotX:t,plotY:null===f?p:o.getThreshold(f),doCurve:!1}))};e=e||this.points,a&&(e=this.getStackPoints(e));for(let r=0,s=e.length;r<s;++r)a||(e[r].leftCliff=e[r].rightCliff=e[r].leftNull=e[r].rightNull=void 0),i=e[r].isNull||!X(e[r].plotY),t=be(e[r].rectPlotX,e[r].plotX),n=a?be(e[r].yBottom,p):p,(!i||f)&&(f||m(r,r-1,"left"),i&&!a&&f||(c.push(e[r]),l.push({x:r,plotX:t,plotY:n})),f||m(r,r+1,"right"));let g=r.call(this,c,!0,!0);l.reversed=!0;let v=r.call(this,l,!0,!0),y=v[0];y&&"M"===y[0]&&(v[0]=["L",y[1],y[2]]);let b=g.concat(v);b.length&&b.push(["Z"]);let _=r.call(this,c,!1,f);return this.chart.series.length>1&&a&&c.some(e=>e.isCliff)&&(b.hasStackedCliffs=_.hasStackedCliffs=!0),b.xMap=g.xMap,this.areaPath=b,_}getStackPoints(e){let t=this,i=[],n=[],r=this.xAxis,s=this.yAxis,a=s.stacking.stacks[this.stackKey],o={},l=s.series,c=l.length,u=s.options.reversedStacks?1:-1,d=l.indexOf(t),h=s.getThreshold(t.options.threshold||0);if(e=e||this.points,this.options.stacking){for(let t=0;t<e.length;t++)e[t].leftNull=e[t].rightNull=void 0,o[e[t].x]=e[t];ge(a,function(e,t){null!==e.total&&n.push(t)}),n.sort(function(e,t){return e-t});let p=l.map(e=>e.visible);n.forEach(function(e,f){let m,g,v=0;if(o[e]&&!o[e].isNull)i.push(o[e]),[-1,1].forEach(function(i){let r=1===i?"rightNull":"leftNull",s=a[n[f+i]],h=0;if(s){let i=d;for(;i>=0&&i<c;){let n=l[i].index;!(m=s.points[n])&&(n===t.index?o[e][r]=!0:p[i]&&(g=a[e].points[n])&&(h-=g[1]-g[0])),i+=u}}o[e][1===i?"rightCliff":"leftCliff"]=h});else{let t=d;for(;t>=0&&t<c;){let i=l[t].index;if(m=a[e].points[i]){v=m[1];break}t+=u}v||(v=0);let n=s.positiveValuesOnly&&v<=0?h:s.translate(v,!1,!0,!1,!0);i.push({isNull:!0,plotX:r.translate(e,!1,!1,!1,!0),x:e,plotY:n,yBottom:n})}})}return i}}Kn.defaultOptions=fe(Yn.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Q(Kn.prototype,{singleStacks:!1}),$i.registerSeriesType("area",Kn);let{line:Qn}=$i.seriesTypes;class Zn extends Qn{getPointSpline(e,t,i){let n,r,s,a,o=t.plotX||0,l=t.plotY||0,c=e[i-1],u=e[i+1];function d(e){return e&&!e.isNull&&!1!==e.doCurve&&!t.isCliff}if(d(c)&&d(u)){let e=c.plotX||0,i=c.plotY||0,d=u.plotX||0,h=u.plotY||0,p=0;n=(1.5*o+e)/2.5,r=(1.5*l+i)/2.5,s=(1.5*o+d)/2.5,a=(1.5*l+h)/2.5,s!==n&&(p=(a-r)*(s-o)/(s-n)+l-a),r+=p,a+=p,r>i&&r>l?(r=Math.max(i,l),a=2*l-r):r<i&&r<l&&(r=Math.min(i,l),a=2*l-r),a>h&&a>l?(a=Math.max(h,l),r=2*l-a):a<h&&a<l&&(a=Math.min(h,l),r=2*l-a),t.rightContX=s,t.rightContY=a,t.controlPoints={low:[n,r],high:[s,a]}}let h=["C",be(c.rightContX,c.plotX,0),be(c.rightContY,c.plotY,0),be(n,o,0),be(r,l,0),o,l];return c.rightContX=c.rightContY=void 0,h}}Zn.defaultOptions=fe(Qn.defaultOptions),$i.registerSeriesType("spline",Zn);let Jn=Zn,{area:er,area:{prototype:tr}}=$i.seriesTypes;class ir extends Jn{}ir.defaultOptions=fe(Jn.defaultOptions,er.defaultOptions),Q(ir.prototype,{getGraphPath:tr.getGraphPath,getStackPoints:tr.getStackPoints,drawGraph:tr.drawGraph}),$i.registerSeriesType("areaspline",ir);let{animObject:nr}=Je,{parse:rr}=Ge,{noop:sr}=M;class ar extends sn{animate(e){let t,i,n=this,r=this.yAxis,s=r.pos,a=r.reversed,o=n.options,{clipOffset:l,inverted:c}=this.chart,u={},d=c?"translateX":"translateY";e&&l?(u.scaleY=.001,i=H(r.toPixels(o.threshold||0),s,s+r.len),c?u.translateX=(i+=a?-Math.floor(l[0]):Math.ceil(l[2]))-r.len:u.translateY=i+=a?Math.ceil(l[0]):-Math.floor(l[2]),n.clipBox&&n.setClip(),n.group.attr(u)):(t=Number(n.group.attr(d)),n.group.animate({scaleY:1},Q(nr(n.options.animation),{step:function(e,i){n.group&&(u[d]=t+i.pos*(s-t),n.group.attr(u))}})))}init(e,t){super.init.apply(this,arguments);let i=this;(e=i.chart).hasRendered&&e.series.forEach(function(e){e.type===i.type&&(e.isDirty=!0)})}getColumnMetrics(){let e,t=this,i=t.options,n=t.xAxis,r=t.yAxis,s=n.options.reversedStacks,a=n.reversed&&!s||!n.reversed&&s,o={},l=0;!1===i.grouping?l=1:t.chart.series.forEach(function(i){let n,s=i.yAxis,a=i.options;i.type===t.type&&i.reserveSpace()&&r.len===s.len&&r.pos===s.pos&&(a.stacking&&"group"!==a.stacking?(void 0===o[e=i.stackKey]&&(o[e]=l++),n=o[e]):!1!==a.grouping&&(n=l++),i.columnIndex=n)});let c=Math.min(Math.abs(n.transA)*(!n.brokenAxis?.hasBreaks&&n.ordinal?.slope||i.pointRange||n.closestPointRange||n.tickInterval||1),n.len),u=c*i.groupPadding,d=(c-2*u)/(l||1),h=Math.min(i.maxPointWidth||n.len,be(i.pointWidth,d*(1-2*i.pointPadding))),p=(t.columnIndex||0)+ +!!a;return t.columnMetrics={width:h,offset:(d-h)/2+(u+p*d-c/2)*(a?-1:1),paddedWidth:d,columnCount:l},t.columnMetrics}crispCol(e,t,i,n){let r=this.borderWidth,s=this.chart.inverted;return n=W(t+n,r,s)-(t=W(t,r,s)),this.options.crisp&&(i=W(e+i,r)-(e=W(e,r))),{x:e,y:t,width:i,height:n}}adjustForMissingColumns(e,t,i,n){if(!i.isNull&&n.columnCount>1){let r=this.xAxis.series.filter(e=>e.visible).map(e=>e.index),s=0,a=0;ge(this.xAxis.stacking?.stacks,e=>{let t="number"==typeof i.x?e[i.x.toString()]?.points:void 0,n=t?.[this.index],o={};if(t&&de(n)){let e=this.index,i=Object.keys(t).filter(e=>!e.match(",")&&t[e]&&t[e].length>1).map(parseFloat).filter(e=>-1!==r.indexOf(e)).filter(t=>{let i=this.chart.series[t].options,n=i.stacking&&i.stack;if(X(n)){if(ce(o[n]))return e===t&&(e=o[n]),!1;o[n]=t}return!0}).sort((e,t)=>t-e);s=i.indexOf(e),a=i.length}}),s=this.xAxis.reversed?a-1-s:s;let o=(a-1)*n.paddedWidth+t;e=(i.plotX||0)+o/2-t-s*n.paddedWidth}return e}translate(){let e=this,t=e.chart,i=e.options,n=e.dense=e.closestPointRange*e.xAxis.transA<2,r=e.borderWidth=i.borderWidth??+!n,s=e.xAxis,a=e.
vendor: 2,167 bytes, line 2
2yAxis,o=i.threshold,l=i.minPointLength??5,c=e.getColumnMetrics(),u=c.width,d=e.pointXOffset=c.offset,h=e.dataMin,p=e.dataMax,f=e.translatedThreshold=a.getThreshold(o),m=e.barW=Math.max(u,1+2*r);i.pointPadding&&i.crisp&&(m=Math.ceil(m)),sn.prototype.translate.apply(e),e.points.forEach(function(n){let r,g=n.yBottom??f,v=999+Math.abs(g),y=n.plotX||0,b=H(n.plotY,-v,a.len+v),_=Math.min(b,g),T=Math.max(b,g)-_,x=u,w=y+d,S=m;l&&Math.abs(T)<l&&(T=l,r=!a.reversed&&!n.negative||a.reversed&&n.negative,ce(o)&&ce(p)&&n.y===o&&p<=o&&(a.min||0)<o&&(h!==p||(a.max||0)<=o)&&(r=!r,n.negative=!n.negative),_=Math.abs(_-f)>l?g-(r?l:0):f-(r?l:0)),X(n.options.pointWidth)&&(w-=Math.round(((x=S=Math.ceil(n.options.pointWidth))-u)/2)),i.centerInCategory&&(w=e.adjustForMissingColumns(w,x,n,c)),n.barX=w,n.pointWidth=x,n.tooltipPos=t.inverted?[H(a.len+a.pos-t.plotLeft-b,a.pos-t.plotLeft,a.len+a.pos-t.plotLeft),s.len+s.pos-t.plotTop-w-S/2,T]:[s.left-t.plotLeft+w+S/2,H(b+a.pos-t.plotTop,a.pos-t.plotTop,a.len+a.pos-t.plotTop),T],n.shapeType=e.pointClass.prototype.shapeType||"roundedRect",n.shapeArgs=e.crispCol(w,_,S,n.isNull?0:T)}),J(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,t){let i,n,r,s=this.options,a=this.pointAttrToOptions||{},o=a.stroke||"borderColor",l=a["stroke-width"]||"borderWidth",c=e&&e.color||this.color,u=e&&e[o]||s[o]||c,d=e&&e.options.dashStyle||s.dashStyle,h=e&&e[l]||s[l]||this[l]||0,p=e?.isNull&&s.nullInteraction?0:e?.opacity??s.opacity??1;e&&this.zones.length&&(n=e.getZone(),c=e.options.color||n&&(n.color||e.nonZonedColor)||this.color,n&&(u=n.borderColor||u,d=n.dashStyle||d,h=n.borderWidth||h)),t&&e&&(r=(i=fe(s.states[t],e.options.states?.[t]||{})).brightness,c=i.color||void 0!==r&&rr(c).brighten(i.brightness).get()||c,u=i[o]||u,h=i[l]||h,d=i.dashStyle||d,p=be(i.opacity,p));let f={fill:c,stroke:u,"stroke-width":h,opacity:p};return d&&(f.dashstyle=d),f}drawPoints(e=this.points){let t,i=this,n=this.chart,r=i.options,s=r.nullInteraction,a=n.renderer,o=r.animationLimit||250;e.forEach(function(e){let l=e.plotY,c=e.graphic,u=!!c,d=c&&n.pointCount<o?"animate":"attr";
2ce(l)&&(null!==e.y||s)?(t=e.shapeArgs,c&&e.hasNewShapeType()&&(c=c.destroy()),i.enabledDataSorting&&(e.startXPos=i.xAxis.reversed?-(t&&t.width||0):i.xAxis.width),!c&&(e.graphic=c=a[e.shapeType](t).add(e.group||i.group),c&&i.enabledDataSorting&&n.hasRendered&&n.pointCount<o&&(c.attr({x:e.startXPos}),u=!0,d="animate")),c&&u&&c[d](fe(t)),n.styledMode||c[d](i.pointAttribs(e,e.selected&&"select")).shadow(!1!==e.allowShadow&&r.shadow),c&&(c.addClass(e.getClassName(),!0),c.attr({visibility:e.visible?"inherit":"hidden"}))):c&&(e.graphic=c.destroy())})}drawTracker(e=this.points){let t,i=this,n=i.chart,r=n.pointer,s=function(e){r?.normalize(e);let t=r?.getPointFromEvent(e);r&&t&&i.options.enableMouseTracking&&(n.isInsidePlot(e.chartX-n.plotLeft,e.chartY-n.plotTop,{visiblePlotOnly:!0})||i.allowOutsidePlotInteraction&&r?.inClass(e.target,"highcharts-point")||r?.inClass(e.target,"highcharts-data-label"))&&(r.isDirectTouch=!0,t.onMouseOver(e))};e.forEach(function(e){t=de(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(function(t){(t.div||t.element).point=e})}),i._hasTracking||(i.trackerGroups?.reduce((e,t)=>("dataLabelsGroup"===t?e.push(...i.dataLabelsGroups||[]):e.push(i[t]),e),[]).forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(e){r?.onTrackerMouseOut(e)}).on("touchstart",s),!n.styledMode&&i.options.cursor&&e.css({cursor:i.options.cursor}))}),i._hasTracking=!0),J(this,"afterDrawTracker")}remove(){let e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),sn.prototype.remove.apply(e,arguments)}}ar.defaultOptions=fe(sn.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),Q(ar.prototype,{directTouch:!0,getSymbol:sr,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),$i.registerSeriesType("column",ar);let or=ar,{getDeferredAnimation:lr}=Je,{format:cr}=pt;!function(e){function t(){return l(this).some(e=>e?.enabled)}function i(e,t,i,n,r){let{chart:s,enabledDataSorting:a}=this,o=this.isCartesian&&s.inverted,l=e.plotX,c=e.plotY,u=i.rotation||0,d=X(l)&&X(c)&&s.isInsidePlot(l,Math.round(c),{inverted:o,paneCoordinates:!0,series:this}),h=0===u&&"justify"===be(i.overflow,a?"none":"justify"),p=this.visible&&!1!==e.visible&&X(l)&&(e.series.forceDL||a&&!h||d||be(i.inside,!!this.options.stacking)&&n&&s.isInsidePlot(l,o?n.x+1:n.y+n.height-1,{inverted:o,paneCoordinates:!0,series:this})),f=e.pos();if(p&&f){var m;let l=t.getBBox(),c=t.getBBox(void 0,0);if(n=Q({x:f[0],y:Math.round(f[1]),width:0,height:0},n||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(n[o?"x":"y"]=0,n[o?"width":"height"]=this.yAxis?.len||0),Q(i,{width:l.width,height:l.height}),m=n,a&&this.xAxis&&!h&&this.setDataLabelStartPos(e,t,r,d,m),t.align(fe(i,{width:c.width,height:c.height}),!1,n,!1),t.alignAttr.x+=ee(i.align)*(c.width-l.width),t.alignAttr.y+=ee(i.verticalAlign)*(c.height-l.height),t[t.placed?"animate":"attr"]({"text-align":t.alignAttr["text-align"]||"center",x:t.alignAttr.x+(l.width-c.width)/2,y:t.alignAttr.y+(l.height-c.height)/2,rotationOriginX:(t.width||0)/2,rotationOriginY:(t.height||0)/2}),h&&n.height>=0)this.justifyDataLabel(t,i,t.alignAttr,l,n,r);else if(be(i.crop,!0)){let{x:e,y:i}=t.alignAttr;p=s.isInsidePlot(e,i,{paneCoordinates:!0,series:this})&&s.isInsidePlot(e+l.width-1,i+l.height-1,{paneCoordinates:!0,series:this})}i.shape&&!u&&t[r?"attr":"animate"]({anchorX:f[0],anchorY:f[1]})}r&&a&&(t.placed=!1),p||a&&!h?(t.show(),t.placed=!0):(t.hide(),t.placed=!1)}function n(e,t){J(this,"initDataLabelsGroup",{index:e,zIndex:t?.zIndex??6}),this.dataLabelsGroup=this.dataLabelsGroups?.[e];let i=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",t?.zIndex??6,this.dataLabelsParentGroups?.[e]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[e]=i,this.dataLabelsGroup=this.dataLabelsGroups[0],i}function r(e,t,i){let n=!!this.hasRendered,r=this.initDataLabelsGroup(e,i).attr({opacity:+n});return!n&&r&&(this.visible&&r.show(),this.options.animation?r.animate({opacity:1},t):r.attr({opacity:1})),r}function s(e){let t;e=e||this.points;let i=this,n=i.chart,r=i.options,s=n.renderer,{backgroundColor:a,plotBackgroun
2dColor:c}=n.options.chart,u=s.getContrast(ue(c)&&c||ue(a)&&a||"#000000"),d=l(i),{animation:h,defer:p}=d[0],f=p?lr(n,h,i):{defer:0,duration:0};J(this,"drawDataLabels"),i.hasDataLabels?.()&&e.forEach(e=>{let a=e.dataLabels||[],l=e.color||i.color;ke(o(d,e.dlOptions||e.options?.dataLabels)).forEach((o,c)=>{t=this.initDataLabels(c,f,o);let d,h,p,m,g=o.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&function(e,t){let i=t.filter;if(i){let t=i.operator,n=e[i.property],r=i.value;return">"===t&&n>r||"<"===t&&n<r||">="===t&&n>=r||"<="===t&&n<=r||"=="===t&&n==r||"==="===t&&n===r||"!="===t&&n!=r||"!=="===t&&n!==r||!1}return!0}(e,o),{backgroundColor:v,borderColor:y,distance:b,style:_={}}=o,T={},x=a[c],w=!x;g&&(h=X(d=be(o[e.formatPrefix+"Format"],o.format))?cr(d,e,n):(o[e.formatPrefix+"Formatter"]||o.formatter).call(e,o,e),p=o.rotation,!n.styledMode&&(_.color=be(o.color,_.color,ue(i.color)?i.color:void 0,"#000000"),"contrast"===_.color?("none"!==v&&(m=v),e.contrastColor=s.getContrast("auto"!==m&&ue(m)&&m||(ue(l)?l:"")),_.color=m||!X(b)&&o.inside||0>_e(b||0)||r.stacking?e.contrastColor:u):delete e.contrastColor,r.cursor&&(_.cursor=r.cursor)),T={r:o.borderRadius||0,rotation:p,padding:o.padding,zIndex:1},n.styledMode||(T.fill="auto"===v?e.color:v,T.stroke="auto"===y?e.color:y,T["stroke-width"]=o.borderWidth),ge(T,(e,t)=>{void 0===e&&delete T[t]})),!x||g&&X(h)&&!(!x.div&&!x.text?.foreignObject)==!!o.useHTML&&(x.rotation&&o.rotation||x.rotation===o.rotation)||(x=void 0,w=!0),g&&X(h)&&""!==h&&(x?T.text=h:(x=s.label(h,0,0,o.shape,void 0,void 0,o.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(o.className||"")+(o.useHTML?" highcharts-tracker":"")),x&&(x.options=o,x.attr(T),n.styledMode?_.width&&x.css({width:_.width,textOverflow:_.textOverflow,whiteSpace:_.whiteSpace}):x.css(_).shadow(o.shadow),J(x,"beforeAddingDataLabel",{labelOptions:o,point:e}),x.added||x.add(t),i.alignDataLabel(e,x,o,void 0,w),x.isActive=!0,a[c]&&a[c]!==x&&a[c].destroy(),a[c]=x))});let c=a.length;for(;c--;)a[c]?.isActive?a[c].isActive=!1:(a[c]?.destroy(),a.splice(c,1));e.dataLabel=a[0],e.dataLabels=a}),J(this,"afterDrawDataLabels")}function a(e,t,i,n,r,s){let a,o,l=this.chart,c=t.align,u=t.verticalAlign,d=e.box?0:e.padding||0,h=l.inverted?this.yAxis:this.xAxis,p=h?h.left-l.plotLeft:0,f=l.inverted?this.xAxis:this.yAxis,m=f?f.top-l.plotTop:0,{x:g=0,y:v=0}=t;return(a=(i.x||0)+d+p)<0&&("right"===c&&g>=0?(t.align="left",t.inside=!0):g-=a,o=!0),(a=(i.x||0)+n.width-d+p)>l.plotWidth&&("left"===c&&g<=0?(t.align="right",t.inside=!0):g+=l.plotWidth-a,o=!0),(a=i.y+d+m)<0&&("bottom"===u&&v>=0?(t.verticalAlign="top",t.inside=!0):v-=a,o=!0),(a=(i.y||0)+n.height-d+m)>l.plotHeight&&("top"===u&&v<=0?(t.verticalAlign="bottom",t.inside=!0):v+=l.plotHeight-a,o=!0),o&&(t.x=g,t.y=v,e.placed=!s,e.align(t,void 0,r)),o}function o(e,t){let i,n=[];if(de(e)&&!de(t))n=e.map(function(e){return fe(e,t)});else if(de(t)&&!de(e))n=t.map(function(t){return fe(e,t)});else if(de(e)||de(t)){if(de(e)&&de(t))for(i=Math.max(e.length,t.length);i--;)n[i]=fe(e[i],t[i])}else n=fe(e,t);return n}function l(e){let t=e.chart.options.plotOptions;return ke(o(o(t?.series?.dataLabels,t?.[e.type]?.dataLabels),e.options.dataLabels))}function c(e,t,i,n,r){let s=this.chart,a=s.inverted,o=this.xAxis,l=o.reversed,c=((a?t.height:t.width)||0)/2,u=e.pointWidth,d=u?u/2:0;t.startXPos=a?r.x:l?-c-d:o.width-c+d,t.startYPos=a?l?this.yAxis.height-c+d:-c-d:r.y,n?"hidden"===t.visibility&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0}
vendor: 9,980 bytes, line 2
2,void 0,t.hide),s.hasRendered&&(i&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}e.compose=function(e){let l=e.prototype;l.initDataLabels||(l.initDataLabels=r,l.initDataLabelsGroup=n,l.alignDataLabel=i,l.drawDataLabels=s,l.justifyDataLabel=a,l.mergeArrays=o,l.setDataLabelStartPos=c,l.hasDataLabels=t)}}(E||(E={}));let ur=E,{composed:dr}=M,{series:hr}=$i;function pr(e,t,i,n,r){let{chart:s,options:a}=this,o=s.inverted,l=this.xAxis?.len||s.plotSizeX||0,c=this.yAxis?.len||s.plotSizeY||0,u=e.dlBox||e.shapeArgs,d=e.below??(e.plotY||0)>(this.translatedThreshold??c),h=i.inside??!!a.stacking;if(u){if(n=fe(u),"allow"!==i.overflow||!1!==i.crop||!1!==a.clip){n.y<0&&(n.height+=n.y,n.y=0);let e=n.y+n.height-c;e>0&&e<n.height-1&&(n.height-=e)}o&&(n={x:c-n.y-n.height,y:l-n.x-n.width,width:n.height,height:n.width}),h||(o?(n.x+=d?0:n.width,n.width=0):(n.y+=d?n.height:0,n.height=0))}i.align??(i.align=!o||h?"center":d?"right":"left"),i.verticalAlign??(i.verticalAlign=o||h?"middle":d?"top":"bottom"),hr.prototype.alignDataLabel.call(this,e,t,i,n,r),i.inside&&e.contrastColor&&t.css({color:e.contrastColor})}(C||(C={})).compose=function(e){ur.compose(hr),Te(dr,"ColumnDataLabel")&&(e.prototype.alignDataLabel=pr)};let fr=C;class mr extends or{}mr.defaultOptions=fe(or.defaultOptions,{}),Q(mr.prototype,{inverted:!0}),$i.registerSeriesType("bar",mr);let{column:gr,line:vr}=$i.seriesTypes;class yr extends vr{applyJitter(){let e=this,t=this.options.jitter,i=this.points.length;t&&this.points.forEach(function(n,r){["x","y"].forEach(function(s,a){if(t[s]&&!n.isNull){let o=`plot${s.toUpperCase()}`,l=e[`${s}Axis`],c=t[s]*l.transA;if(l&&!l.logarithmic){let e,t=Math.max(0,(n[o]||0)-c),u=Math.min(l.len,(n[o]||0)+c);n[o]=t+(u-t)*((e=1e4*Math.sin(r+a*i))-Math.floor(e)),"x"===s&&(n.clientX=n.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}yr.defaultOptions=fe(vr.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">â</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),Q(yr.prototype,{allowOutsidePlotInteraction:!0,drawTracker:gr.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),B(yr,"afterTranslate",function(){this.applyJitter()}),$i.registerSeriesType("scatter",yr);let{deg2rad:br}=M;(h=A||(A={})).getCenter=function(){let e,t,i,n=this.options,r=this.chart,s=2*(n.slicedOffset||0),a=r.plotWidth-2*s,o=r.plotHeight-2*s,l=n.center,c=Math.min(a,o),u=n.thickness,d=n.size,h=n.innerSize||0;"string"==typeof d&&(d=parseFloat(d)),"string"==typeof h&&(h=parseFloat(h));let p=[be(l?.[0],"50%"),be(l?.[1],"50%"),be(d&&d<0?void 0:n.size,"100%"),be(h&&h<0?void 0:n.innerSize||0,"0%")];for(!r.angular||this instanceof sn||(p[3]=0),t=0;t<4;++t)i=p[t],e=t<2||2===t&&/%$/.test(i),p[t]=xe(i,[a,o,c,p[2]][t])+(e?s:0);return p[3]>p[2]&&(p[3]=p[2]),ce(u)&&2*u<p[2]&&u>0&&(p[3]=p[2]-2*u),J(this,"afterGetCenter",{positions:p}),p},h.getStartAndEndRadians=function(e,t){let i=ce(e)?e:0,n=ce(t)&&t>i&&t-i<360?t:i+360;return{start:br*(i+-90),end:br*(n+-90)}};let _r=A,{setAnimation:Tr}=Je;class xr extends Pi{getConnectorPath(e){let t=e.dataLabelPosition,i=e.options||{},n=i.connectorShape,r=this.connectorShapes[n]||n;return t&&r.call(this,{...t.computed,alignment:t.alignment},t.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}constructor(e,t,i){super(e,t,i),this.half=0,this.name??(this.name=e.chart.options.lang.pieSliceName);const n=e=>{this.slice("select"===e.type)};B(this,"select",n),B(this,"unselect",n)}isValid(){return ce(this.y)&&this.y>=0}setVisible(e,t=!0){e!==this.visible&&this.update({visible:e??!this.visible},t,void 0,!1)}slice(e,t,i){let n=this.series;Tr(i,n.chart),t=be(t,!0),this.sliced=this.options.sliced=e=X(e)?e:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}Q(xr.prototype,{connectorShapes:{fixedOffset:function(e,t,i){let n=t.breakAt,r=t.touchingSliceAt,s=i.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*n.x-r.x,2*n.y-r.y,n.x,n.y]:["L",n.x,n.y];return[["M",e.x,e.y],s,["L",r.x,r.y]]},straight:function(e,t){let i=t.touchingSliceAt;return[["M",e.x,e.y],["L",i.x,i.y]]},crookedLine:function(e,t,i){let{angle:n=this.angle||0,breakAt:r,touchingSliceAt:s}=t,{series:a}=this,[o,l,c]=a.center,u=c/2,{plotLeft:d,plotWidth:h}=a.chart,p="left"===e.alignment,{x:f,y:m}=e,g=r.x;if(i.crookDistance){let e=xe(i.crookDistance,1);g=p?o+u+(h+d-o-u)*(1-e):d+(o-u)*e}else g=o+(l-m)*Math.tan(n-Math.PI/2);let v=[["M",f,m]];return(p?g<=f&&g>=r.x:g>=f&&g<=r.x)&&v.push(["L",g,m]),v.push(["L",r.x,r.y],["L",s.x,s.y]),v}}});let{getStartAndEndRadians:wr}=_r,{noop:Sr}=M;class kr extends sn{animate(e){let t=this,i=t.points,n=t.startAngleRad;e||i.forEach(function(e){let i=e.graphic,r=e.shapeArgs;i&&r&&(i.attr({r:be(e.startR,t.center&&t.center[3]/2),start:n,end:n}),i.animate({r:r.r,start:r.start,end:r.end},t.options.animation))})}drawEmpty(){let e,t,i=this.startAngleRad,n=this.endAngleRad,r=this.options;0===this.total&&this.center?(e=this.center[0],t=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,t,this.center[1]/2,0,i,n).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Pt.arc(e,t,this.center[2]/2,0,{start:i,end:n,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,t,i,n){let r=this.center,s=this.radii?this.radii[i.index]||0:r[2]/2,a=n.dataLabelPosition,o=a?.distance||0,l=Math.asin(H((e-r[1])/(s+o),-1,1));return r[0]+Math.cos(l)*(s+o)*(t?-1:1)+(o>0?(t?-1:1)*(n.padding||0):0)}hasData(){return this.points.some(e=>e.visible)}redrawPoints(){let e,t,i,n,r=this,s=r.chart;this.drawEmpty(),r.group&&!s.styledMode&&r.group.shadow(r.options.shadow),r.points.forEach(function(a){let o={};t=a.graphic,!a.isNull&&t?(n=a.shapeArgs,e=a.getTranslate(),s.styledMode||(i=r.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(t.setRadialReference(r.center).attr(n).attr(e),s.styledMode||t.attr(i).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(t.setRadialReference(r.center),s.styledMode||fe(!0,o,i),fe(!0,o,n,e),t.animate(o)),t.attr({visibility:a.visible?"inherit":"hidden"}),t.addClass(a.getClassName(),!0)):t&&(a.graphic=t.destroy())})}sortByAngle(e,t){e.sort(function(e,i){return void 0!==e.angle&&(i.angle-e.angle)*t})}translate(e){J(this,"translate"),this.generatePoints();let t,i,n,r,s,a,o,l=this.options,c=l.slicedOffset,u=wr(l.startAngle,l.endAngle),d=this.startAngleRad=u.start,h=(this.endAngleRad=u.end)-d,p=this.points,f=l.ignoreHiddenPoint,m=p.length,g=0;for(e||(this.center=e=this.getCenter()),a=0;a<m;a++){o=p[a],t=d+g*h,o.isValid()&&(!f||o.visible)&&(g+=o.percentage/100),i=d+g*h;let l={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:t,end:i};o.shapeType="arc",o.shapeArgs=l,(n=(i+t)/2)>1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI),o.slicedTranslation={translateX:Math.round(Math.cos(n)*c),translateY:Math.round(Math.sin(n)*c)},r=Math.cos(n)*e[2]/2,s=Math.sin(n)*e[2]/2,o.tooltipPos=[e[0]+.7*r,e[1]+.7*s],o.half=+(n<-Math.PI/2||n>Math.PI/2),o.angle=n}J(this,"afterTranslate")}updateTotals(){let e,t,i=this.points,n=i.length,r=this.options.ignoreHiddenPoint,s=0;for(e=0;e<n;e++)(t=i[e]).isValid()&&(!r||t.visible)&&(s+=t.y);for(e=0,this.total=s;e<n;e++)(t=i[e]).percentage=s>0&&(t.visible||!r)?t.y/s*100:0,t.total=s}}kr.defaultOptions=fe(sn.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),Q(kr.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:or.prototype.drawTracker,getCenter:_r.getCenter,getSymbol:Sr,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:or.prototype.pointAttribs,pointClass:xr,requireSorting:!1,searchPoint:Sr,trackerGroups:["group","dataLabelsGroup"]}),$i.registerSeriesType("pie",kr);let{composed:Er,noop:Cr}=M,{distribute:Ar}=mt,{series:Lr}=$i;!function(e){let t={radialDistributionY:function(e,t){return(t.dataLabelPosition?.top||0)+e.distributeBox.pos},radialDistributionX:function(e,t,i,n,r){let s=r.dataLabelPosition;return e.getX(i<(s?.top||0)+2||i>(s?.bottom||0)-2?n:i,t.half,t,r)},justify:function(e,t,i,n){return n[0]+(e.half?-1:1)*(i+(t.dataLabelPosition?.distance||0))},alignToPlotEdges:function(e,t,i,n){let r=e.getBBox().width;return t?r+n:i-r-n},alignToConnectors:function(e,t,i,n){let r,s=0;return e.forEach(function(e){(r=e.dataLabel.getBBox().width)>s&&(s=r)}),t?s+n:i-s-n}};function i(e,t){let i=Math.PI/2,{start:n=0,end:r=0}=e.shapeArgs||{},s=e.angle||0;t>0&&n<i&&r>i&&s>i/2&&s<1.5*i&&(s=s<=i?Math.max(i/2,(n+i)/2):Math.min(1.5*i,(i+r)/2));let{center:a,options:o}=this,l=a[2]/2,c=Math.cos(s),u=Math.sin(s),d=a[0]+c*l,h=a[1]+u*l,p=Math.min((o.slicedOffset||0)+(o.borderWidth||0),t/5);
vendor: 4,158 bytes, line 2
2return{natural:{x:d+c*t,y:h+u*t},computed:{},alignment:t<0?"center":e.half?"right":"left",connectorPosition:{angle:s,breakAt:{x:d+c*p,y:h+u*p},touchingSliceAt:{x:d,y:h}},distance:t}}function n(){let e,t,i,n=this,r=n.points,s=n.chart,a=s.plotWidth,o=s.plotHeight,l=s.plotLeft,c=Math.round(s.chartWidth/3),u=n.center,d=u[2]/2,h=u[1],p=[[],[]],f=[0,0,0,0],m=n.dataLabelPositioners,g=0;n.visible&&n.hasDataLabels?.()&&(r.forEach(e=>{(e.dataLabels||[]).forEach(e=>{e.shortened&&(e.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.shortened=!1)})}),Lr.prototype.drawDataLabels.apply(n),r.forEach(e=>{(e.dataLabels||[]).forEach((t,i)=>{let n=u[2]/2,r=t.options,s=xe(r?.distance||0,n);0===i&&p[e.half].push(e),!X(r?.style?.width)&&t.getBBox().width>c&&(t.css({width:Math.round(.7*c)+"px"}),t.shortened=!0),t.dataLabelPosition=this.getDataLabelPosition(e,s),g=Math.max(g,s)})}),p.forEach((e,r)=>{let c,p,v,y=e.length,b=[],_=0;y&&(n.sortByAngle(e,r-.5),g>0&&(c=Math.max(0,h-d-g),p=Math.min(h+d+g,s.plotHeight),e.forEach(e=>{(e.dataLabels||[]).forEach(t=>{let i=t.dataLabelPosition;i&&i.distance>0&&(i.top=Math.max(0,h-d-i.distance),i.bottom=Math.min(h+d+i.distance,s.plotHeight),_=t.getBBox().height||21,t.lineHeight=s.renderer.fontMetrics(t.text||t).h+2*t.padding,e.distributeBox={target:(t.dataLabelPosition?.natural.y||0)-i.top+t.lineHeight/2,size:_,rank:e.y},b.push(e.distributeBox))})}),Ar(b,v=p+_-c,v/5)),e.forEach(s=>{(s.dataLabels||[]).forEach(c=>{let h=c.options||{},p=s.distributeBox,g=c.dataLabelPosition,v=g?.natural.y||0,y=h.connectorPadding||0,_=c.lineHeight||21,T=(_-c.getBBox().height)/2,x=0,w=v,S="inherit";if(g){if(b&&X(p)&&g.distance>0&&(void 0===p.pos?S="hidden":(i=p.size,w=m.radialDistributionY(s,c))),h.justify)x=m.justify(s,c,d,u);else switch(h.alignTo){case"connectors":x=m.alignToConnectors(e,r,a,l);break;case"plotEdges":x=m.alignToPlotEdges(c,r,a,l);break;default:x=m.radialDistributionX(n,s,w-T,v,c)}if(g.attribs={visibility:S,align:g.alignment},g.posAttribs={x:x+(h.x||0)+({left:y,right:-y}[g.alignment]||0),y:w+(h.y||0)-_/2},g.computed.x=x,g.computed.y=w-T,be(h.crop,!0)){let e;x-(t=c.getBBox().width)<y&&1===r?(e=Math.round(t-x+y),f[3]=Math.max(e,f[3])):x+t>a-y&&0===r&&(e=Math.round(x+t-a+y),f[1]=Math.max(e,f[1])),w-i/2<0?f[0]=Math.max(Math.round(i/2-w),f[0]):w+i/2>o&&(f[2]=Math.max(Math.round(w+i/2-o),f[2])),g.sideOverflow=e}}})}))}),(0===U(f)||this.verifyDataLabelOverflow(f))&&(this.placeDataLabels(),this.points.forEach(t=>{t.dataLabels?.forEach((i,r)=>{let{connectorColor:a,connectorWidth:o=1}=i.options||{},l=i.dataLabelPosition;if(ce(o)){let c;e=i.connector,l&&l.distance>0?(c=!e,e||(i.connector=e=s.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(n.dataLabelsGroups?.[r])),s.styledMode||e.attr({"stroke-width":o,stroke:a||t.color||"#666666"}),e[c?"attr":"animate"]({d:t.getConnectorPath(i)}),e.attr({visibility:l.attribs?.visibility})):e&&(i.connector=e.destroy())}})})))}function r(){this.points.forEach(e=>{(e.dataLabels||[]).forEach(e=>{let t=e.dataLabelPosition;t?(t.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-t.sideOverflow,0)+"px",textOverflow:e.options?.style?.textOverflow||"ellipsis"}),e.shortened=!0),e.attr(t.attribs),e[e.moved?"animate":"attr"](t.posAttribs),e.moved=!0):e&&e.attr({y:-9999})}),delete e.distributeBox},this)}function s(e){let t=this.center,i=this.options,n=i.center,r=i.minSize||80,s=r,a=null!==i.size;return!a&&(null!==n[0]?s=Math.max(t[2]-Math.max(e[1],e[3]),r):(s=Math.max(t[2]-e[1]-e[3],r),t[0]+=(e[3]-e[1])/2),null!==n[1]?s=H(s,r,t[2]-Math.max(e[0],e[2])):(s=H(s,r,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2),s<t[2]?(t[2]=s,t[3]=Math.min(i.thickness?Math.max(0,s-2*i.thickness):Math.max(0,xe(i.innerSize||0,s)),s),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}e.compose=function(e){if(ur.compose(Lr),Te(Er,"PieDataLabel")){let a=e.prototype;a.dataLabelPositioners=t,a.alignDataLabel=Cr,a.drawDataLabels=n,a.getDataLabelPosition=i,a.placeDataLabels=r,a.verifyDataLabelOverflow=s}}}(L||(L={}));let Ir=L;(p=I||(I={})).getCenterOfPoints=function(e){let t=e.reduce((e,t)=>
vendor: 4,074 bytes, line 2
2(e.x+=t.x,e.y+=t.y,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}},p.getDistanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},p.getAngleBetweenPoints=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)},p.pointInPolygon=function({x:e,y:t},i){let n,r,s=i.length,a=!1;for(n=0,r=s-1;n<s;r=n++){let[s,o]=i[n],[l,c]=i[r];o>t!=c>t&&e<(l-s)*(t-o)/(c-o)+s&&(a=!a)}return a};let{pointInPolygon:Pr}=I;function Or(e,t){let i,n=!1;return e&&(i=e.newOpacity,e.oldOpacity!==i&&(e.hasClass("highcharts-data-label")?(e[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,e[e.isOld?"animate":"attr"]({opacity:i},void 0,function(){t.styledMode||e.css({pointerEvents:i?"auto":"none"})}),J(t,"afterHideOverlappingLabel")):e.attr({opacity:i})),e.isOld=!0),n}let{defaultOptions:Dr}=ze,{noop:Mr}=M,Nr={radius:0,scope:"stack",where:void 0},Rr=Mr,Br=Mr;function Fr(e,t,i,n,r={}){let s=Rr(e,t,i,n,r),{brStart:a=!0,brEnd:o=!0,innerR:l=0,r:c=i,start:u=0,end:d=0}=r;if(r.open||!r.borderRadius)return s;let h=d-u,p=Math.sin(h/2),f=Math.max(Math.min(xe(r.borderRadius||0,c-l),(c-l)/2,c*p/(1+p)),0),m=Math.min(f,h/Math.PI*2*l),g=s.length-1;for(;g--;)(a||0!==g&&3!==g)&&(o||1!==g&&2!==g)&&function(e,t,i){let n,r,s,a=e[t],o=e[t+1];if("Z"===o[0]&&(o=e[0]),"M"!==a[0]&&"L"!==a[0]||"A"!==o[0]?"A"===a[0]&&("M"===o[0]||"L"===o[0])&&(n=o,r=a):(n=a,r=o,s=!0),n&&r&&r.params){let a=r[1],o=r[5],l=r.params,{start:c,end:u,cx:d,cy:h}=l,p=o?a-i:a+i,f=p?Math.asin(i/p):0,m=o?f:-f,g=Math.cos(f)*p;s?(l.start=c+m,n[1]=d+g*Math.cos(c),n[2]=h+g*Math.sin(c),e.splice(t+1,0,["A",i,i,0,0,1,d+a*Math.cos(l.start),h+a*Math.sin(l.start)])):(l.end=u-m,r[6]=d+a*Math.cos(l.end),r[7]=h+a*Math.sin(l.end),e.splice(t+1,0,["A",i,i,0,0,1,d+g*Math.cos(u),h+g*Math.sin(u)])),r[4]=Math.abs(l.end-l.start)<Math.PI?0:1}}(s,g,g>1?m:f);return s}function Ur(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:e,yAxis:t}=this,i="percent"===e.stacking,n=Dr.plotOptions?.[this.type]?.borderRadius,r=jr(e.borderRadius,pe(n)?n:{}),s=t.options.reversed;for(let n of this.points){let{shapeArgs:a}=n;if("roundedRect"===n.shapeType&&a){let{width:o=0,height:l=0,y:c=0}=a,u=c,d=l;if("stack"===r.scope&&n.stackTotal){let r=t.translate(i?100:n.stackTotal,!1,!0,!1,!0),s=t.translate(e.threshold||0,!1,!0,!1,!0),a=this.crispCol(0,Math.min(r,s),0,Math.abs(r-s));u=a.y,d=a.height}let h=(n.negative?-1:1)*(s?-1:1)==-1,p=r.where;!p&&this.is("waterfall")&&Math.abs((n.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(p="all"),p||(p="end");let f=Math.min(xe(r.radius,o),o/2,"all"===p?d/2:1/0)||0;"end"===p&&(h&&(u-=f),d+=f),Q(a,{brBoxHeight:d,brBoxY:u,r:f})}}}}function jr(e,t){return pe(e)||(e={radius:e||0}),fe(Nr,t,e)}function Hr(){let e=jr(this.options.borderRadius);for(let t of this.points){let i=t.shapeArgs;i&&(i.borderRadius=xe(e.radius,(i.r||0)-(i.innerR||0)))}}function qr(e,t,i,n,r={}){let s=Br(e,t,i,n,r),{r:a=0,brBoxHeight:o=n,brBoxY:l=t}=r,c=t-l,u=l+o-(t+n),d=c-a>-.1?0:a,h=u-a>-.1?0:a,p=Math.max(d&&c,0),f=Math.max(h&&u,0),m=[e+d,t],g=[e+i-d,t],v=[e+i,t+d],y=[e+i,t+n-h],b=[e+i-h,t+n],_=[e+h,t+n],T=[e,t+n-h],x=[e,t+d],w=(e,t)=>Math.sqrt(Math.pow(e,2)-Math.pow(t,2));if(p){let e=w(d,d-p);m[0]-=e,g[0]+=e,v[1]=x[1]=t+d-p}if(n<d-p){let r=w(d,d-p-n);v[0]=y[0]=e+i-d+r,b[0]=Math.min(v[0],b[0]),_[0]=Math.max(y[0],_[0]),T[0]=x[0]=e+d-r,v[1]=x[1]=t+n}if(f){let e=w(h,h-f);b[0]+=e,_[0]-=e,y[1]=T[1]=t+n-h+f}if(n<h-f){let r=w(h,h-f-n);v[0]=y[0]=e+i-h+r,g[0]=Math.min(v[0],g[0]),m[0]=Math.max(y[0],m[0]),T[0]=x[0]=e+h-r,y[1]=T[1]=t}return s.length=0,s.push(["M",...m],["L",...g],["A",d,d,0,0,1,...v],["L",...y],["A",h,h,0,0,1,...b],["L",..._],["A",h,h,0,0,1,...T],["L",...x],["A",d,d,0,0,1,...m],["Z"]),s}function zr(e,t){let i=e.condition;(i.callback||function(){return this.chartWidth<=be(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=be(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=be(i.minWidth,0)&&this.chartHeight>=be(i.minHeight,0)}).call(this,this)&&t.push(e._id)}function Wr(e,t){let i,n=this.options.responsive,r=this.currentResponsive,s=[];
vendor: 3,029 bytes, line 2
2!t&&n&&n.rules&&n.rules.forEach(e=>{void 0===e._id&&(e._id=Me()),this.matchResponsiveRule(e,s)},this);let a=fe(...s.map(e=>se(n?.rules||[],t=>t._id===e)).map(e=>e?.chartOptions));a.isResponsiveOptions=!0,s=s.toString()||void 0;let o=r?.ruleIds;s!==o&&(r&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(r.undoOptions,e,!0),this.updatingResponsive=!1),s?((i=Y(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:a,undoOptions:i},this.updatingResponsive||this.update(a,e,!0)):this.currentResponsive=void 0)}(P||(P={})).compose=function(e){let t=e.prototype;return t.matchResponsiveRule||Q(t,{matchResponsiveRule:zr,setResponsive:Wr}),e};let Vr=P;M.AST=st,M.Axis=hi,M.Chart=Cn,M.Color=Ge,M.DataLabel=ur,M.DataTableCore=Hi,M.Fx=Ke,M.HTMLElement=Jt,M.Legend=fn,M.LegendSymbol=Wi,M.PlotLineOrBand=gi,M.Point=Pi,M.Pointer=Fi,M.RendererRegistry=ft,M.Series=sn,M.SeriesRegistry=$i,M.StackItem=Nn,M.SVGElement=Et,M.SVGRenderer=$t,M.Templating=pt,M.Tick=ri,M.Time=Ue,M.Tooltip=Ei,M.addEvent=B,M.animObject=Je.animObject,M.animate=Je.animate,M.arrayMax=U,M.arrayMin=F,M.attr=j,M.chart=Cn.chart,M.clamp=H,M.color=Ge.parse,M.correctFloat=q,M.createElement=z,M.css=V,M.dateFormat=pt.dateFormat,M.defaultOptions=ze.defaultOptions,M.defined=X,M.destroyObjectProperties=G,M.diffObjects=Y,M.discardElement=$,M.distribute=mt.distribute,M.erase=K,M.error=Pe,M.extend=Q,M.extendClass=Z,M.find=se,M.fireEvent=J,M.format=pt.format,M.getDeferredAnimation=Je.getDeferredAnimation,M.getMagnitude=ie,M.getOptions=ze.getOptions,M.getStyle=re,M.insertItem=Oe,M.isArray=de,M.isClass=le,M.isDOMElement=oe,M.isFunction=he,M.isNumber=ce,M.isObject=pe,M.isString=ue,M.merge=fe,M.normalizeTickInterval=me,M.numberFormat=pt.numberFormat,M.objectEach=ge,M.offset=ve,M.pad=ye,M.pick=be,M.pInt=_e,M.relativeLength=xe,M.removeEvent=Se,M.seriesType=$i.seriesType,M.setAnimation=Je.setAnimation,M.setOptions=ze.setOptions,M.splat=ke,M.stableSort=Ee,M.stop=Je.stop,M.syncTimeout=Ce,M.time=ze.defaultTime,M.timers=Ke.timers,M.timeUnits=De,M.uniqueKey=Me,M.useSerialIds=function(t){return e=be(t,e)},M.wrap=function(e,t,i){let n=e[t];e[t]=function(){let e=arguments,t=this;return i.apply(this,[function(){return n.apply(t,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}},function(e,t,i){let n=e.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let r=i.prototype.symbols;B(e,"afterColumnTranslate",Ur,{order:9}),B(n,"afterTranslate",Hr),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),Rr=r.arc,Br=r.roundedRect,r.arc=Fr,r.roundedRect=qr}}(M.Series,M.SVGElement,M.SVGRenderer),fr.compose(M.Series.types.column),ur.compose(M.Series),pi.compose(M.Axis),Jt.compose(M.SVGRenderer),fn.compose(M.Chart),fi.compose(M.Axis),(s=(f=M.Chart).prototype).hideOverlappingLabels||(s.hideOverlappingLabels=function(e){let t,i,n,r,s,a=e.length,o=(e,t)=>!(t.x>=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y),l=(e,t)=>
2{for(let i of e)if(Pr({x:i[0],y:i[1]},t))return!0;return!1},c=!1;for(let i=0;i<a;i++)(t=e[i])&&(t.oldOpacity=t.opacity,t.newOpacity=1,t.absoluteBox=function(e){if(e&&(!e.alignAttr||e.placed)){let t=e.box?0:e.padding||0,i=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},{height:n,polygon:r,width:s}=e.getBBox(),a=ee(e.alignValue)*s;return e.width=s,e.height=n,{x:i.x+(e.parentGroup?.translateX||0)+t-a,y:i.y+(e.parentGroup?.translateY||0)+t,width:s-2*t,height:n-2*t,polygon:r}}}(t));e.sort((e,t)=>(t?.labelrank||0)-(e?.labelrank||0));for(let t=0;t<a;++t){r=(i=e[t])&&i.absoluteBox;let c=r?.polygon;for(let u=t+1;u<a;++u){s=(n=e[u])&&n.absoluteBox;let t=!1;if(r&&s&&i!==n&&0!==i?.newOpacity&&0!==n?.newOpacity&&"hidden"!==i?.visibility&&"hidden"!==n?.visibility){let e=s.polygon;if(c&&e&&c!==e?l(c,e)&&(t=!0):o(r,s)&&(t=!0),t){let e=i?.labelrank<n?.labelrank?i:n,t=e?.text;e&&(e.newOpacity=0),t?.element.querySelector("textPath")&&t.hide()}}}}for(let t of e)t&&Or(t,this)&&(c=!0);c&&J(this,"afterHideAllOverlappingLabels")},B(f,"render",function(){let e=this,t=[];for(let i of e.labelCollectors||[])t=t.concat(i());for(let i of e.yAxis||[])i.stacking&&i.options.stackLabels&&!i.options.stackLabels.allowOverlap&&ge(i.stacking.stacks,e=>{ge(e,e=>{e.label&&t.push(e.label)})});for(let i of e.series||[])if(i.visible&&i.hasDataLabels?.()){let n=i=>{for(let n of i)n.visible&&(n.dataLabels||[]).forEach(i=>{let r=i.options||{};i.labelrank=be(r.labelrank,n.labelrank,n.shapeArgs?.height),r.allowOverlap??Number(r.distance)>0?(i.oldOpacity=i.opacity,i.newOpacity=1,Or(i,e)):t.push(i)})};n(i.nodes||[]),n(i.points)}this.hideOverlappingLabels(t)})),Ir.compose(M.Series.types.pie),gi.compose(M.Chart,M.Axis),Fi.compose(M.Chart),Vr.compose(M.Chart),On.compose(M.Axis,M.Chart,M.Series),Gn.compose(M.Axis,M.Chart,M.Series),Ei.compose(M.Pointer);let Xr=M;return D.default})(),t._Highcharts=i(),e.exports=t._Highcharts},7056:function(e){e.exports=function(e){if(!e)return!1;var i=t.call(e);return"[object Function]"===i||"function"==typeof e&&"[object RegExp]"!==i||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var t=Object.prototype.toString},4692:function(e,t){var i;!function(t,i){"use strict";"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,function(n,r){"use strict";var s=[],a=Object.getPrototypeOf,o=s.slice,l=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},c=s.push,u=s.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function T(e,t,i){var n,r,s=(i=i||b).createElement("script");if(s.text=e,t)for(n in _)(r=t[n]||t.getAttribute&&t.getAttribute(n))&&s.setAttribute(n,r);i.head.appendChild(s).parentNode.removeChild(s)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var w="3.7.1",S=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,i=x(e);return!v(e)&&!y(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}k.fn=k.prototype={jquery:w,constructor:k,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},k.extend=k.fn.extend=function(){var e,t,i,n,r,s,a=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[o]||{},o++),"object"==typeof a||v(a)||(a={}),o===l&&(a=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)n=e[t],"__proto__"!==t&&a!==n&&(c&&n&&(k.isPlainObject(n)||(r=Array.isArray(n)))?(i=a[t],s=r&&!Array.isArray(i)?[]:r||k.isPlainObject(i)?i:{},r=!1,a[t]=k.extend(c,s,n)):void 0!==n&&(a[t]=n));return a},k.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;
vendor: 5,911 bytes, line 2
2return!(!e||"[object Object]"!==h.call(e))&&(!(t=a(e))||"function"==typeof(i=p.call(t,"constructor")&&t.constructor)&&f.call(i)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){T(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(E(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},text:function(e){var t,i="",n=0,r=e.nodeType;if(!r)for(;t=e[n++];)i+=k.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:i},makeArray:function(e,t){var i=t||[];return null!=e&&(E(Object(e))?k.merge(i,"string"==typeof e?[e]:e):c.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:u.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!S.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,s=e.length,a=!i;r<s;r++)!t(e[r],r)!==a&&n.push(e[r]);return n},map:function(e,t,i){var n,r,s=0,a=[];if(E(e))for(n=e.length;s<n;s++)null!=(r=t(e[s],s,i))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,i))&&a.push(r);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=s[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var A=s.pop,L=s.sort,I=s.splice,P="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");k.contains=function(e,t){var i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(e.contains?e.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))};var D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}k.escapeSelector=function(e){return(e+"").replace(D,M)};var N=b,R=c;!function(){var e,t,i,r,a,l,c,d,h,f,m=R,v=k.expando,y=0,b=0,_=ee(),T=ee(),x=ee(),w=ee(),S=function(e,t){return e===t&&(a=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+P+"*("+D+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+P+"*\\]",B=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",F=new RegExp(P+"+","g"),U=new RegExp("^"+P+"*,"+P+"*"),j=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),H=new RegExp(P+"|>"),q=new RegExp(B),z=new RegExp("^"+D+"$"),W={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},Q=function(){le()},Z=he(function(e){return!0===e.disabled&&C(e,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(s=o.call(N.childNodes),N.childNodes),s[N.childNodes.length].nodeType}catch(e){m={apply:function(e,t){R.apply(e,o.call(t))},call:function(e){R.apply(e,o.call(arguments,1))}}}function J(e,t,i,n){var r,s,a,o,c,u,p,f=t&&t.ownerDocument,y=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return i;if(!n&&(le(t),t=t||l,d)){if(11!==y&&(c=G.exec(e)))if(r=c[1]){if(9===y){if(!(a=t.getElementById(r)))return i;if(a.id===r)return m.call(i,a),i}else if(f&&(a=f.getElementById(r))&&J.contains(t,a)&&a.id===r)return m.call(i,a),i}else{if(c[2])return m.apply(i,t.getElementsByTagName(e)),i;if((r=c[3])&&t.getElementsByClassName)return m.apply(i,t.getElementsByClassName(r)),i}if(!(w[e+" "]||h&&h.test(e))){if(p=e,f=t,1===y&&(H.test(e)||j.test(e))){for((f=$.test(e)&&oe(t.parentNode)||t)==t&&g.scope||((o=t.getAttribute("id"))?o=k.escapeSelector(o):t.setAttribute("id",o=v)),s=(u=ue(e)).length;s--;)u[s]=(o?"#"+o:":scope")+" "+de(u[s]);p=u.join(",")}try{return m.apply(i,f.querySelectorAll(p)),i}catch(t){w(e,!0)}finally{o===v&&t.removeAttribute("id")}}}return ye(e.replace(O,"$1"),t,i,n)}function ee(){var e=[];return function i(n,r){return e.push(n+" ")>t.cacheLength&&delete i[e.shift()],i[n+" "]=r}}function te(e){return e[v]=!0,e}function ie(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ne(e){return function(t){return C(t,"input")&&t.type===e}}function re(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function se(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Z(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te(function(t){return t=+t,te(function(i,n){for(var r,s=e([],i.length,t),a=s.length;a--;)i[r=s[a]]&&(i[r]=!(n[r]=i[r]))})})}function oe(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var i,n=e?e.ownerDocument||e:N;return n!=l&&9===n.nodeType&&n.documentElement?(c=(l=n).documentElement,d=!k.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&N!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",Q),g.getById=ie(function(e){return c.appendChild(e).id=k.exp
vendor: 12,112 bytes, line 2
2ando,!l.getElementsByName||!l.getElementsByName(k.expando).length}),g.disconnectedMatch=ie(function(e){return f.call(e,"*")}),g.scope=ie(function(){return l.querySelectorAll(":scope")}),g.cssHas=ie(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),g.getById?(t.filter.ID=function(e){var t=e.replace(Y,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i=t.getElementById(e);return i?[i]:[]}}):(t.filter.ID=function(e){var t=e.replace(Y,K);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i,n,r,s=t.getElementById(e);if(s){if((i=s.getAttributeNode("id"))&&i.value===e)return[s];for(r=t.getElementsByName(e),n=0;s=r[n++];)if((i=s.getAttributeNode("id"))&&i.value===e)return[s]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ie(function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+P+"*(?:value|"+E+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")}),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),S=function(e,t){if(e===t)return a=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument==N&&J.contains(N,e)?-1:t===l||t.ownerDocument==N&&J.contains(N,t)?1:r?u.call(r,e)-u.call(r,t):0:4&i?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),d&&!w[t+" "]&&(!h||!h.test(t)))try{var i=f.call(e,t);if(i||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){w(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),k.contains(e,t)},J.attr=function(e,i){(e.ownerDocument||e)!=l&&le(e);var n=t.attrHandle[i.toLowerCase()],r=n&&p.call(t.attrHandle,i.toLowerCase())?n(e,i,!d):void 0;return void 0!==r?r:e.getAttribute(i)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,i=[],n=0,s=0;if(a=!g.sortStable,r=!g.sortStable&&o.call(e,0),L.call(e,S),a){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)I.call(e,i[n],1)}return r=null,e},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(o.apply(this)))},t=k.expr={cacheLength:50,createPseudo:te,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,K),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&q.test(i)&&(t=ue(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var r=J.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(F," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var s="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,h,p,f=s!==a?"nextSibling":"previousSibling",m=t.parentNode,g=o&&t.nodeName.toLowerCase(),b=!l&&!o,_=!1;if(m){if(s){for(;f;){for(d=t;d=d[f];)if(o?C(d,g):1===d.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&b){for(_=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(_=h=0)||p.pop();)if(1===d.nodeType&&++_&&d===t){u[e]=[y,h,_];break}}else if(b&&(_=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===_)for(;(d=++h&&d&&d[f]||(_=h=0)||p.pop())&&(!(o?C(d,g):1===d.nodeType)||!++_||(b&&((u=d[v]||(d[v]={}))[e]=[y,_]),d!==t)););return(_-=r)===n||_%n===0&&_/n>=0}}},PSEUDO:function(e,i){var n,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return r[v]?r(i):r.length>1?(n=[e,e,"",i],t.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,t){for(var n,s=r(e,i),a=s.length;a--;)e[n=u.call(e,s[a])]=!(t[n]=s[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:te(function(e){var t=[],i=[],n=ve(e.replace(O,"$1"));return n[v]?te(function(e,t,i,r){for(var s,a=n(e,null,r,[]),o=e.length;o--;)(s=a[o])&&(e[o]=!(t[o]=s))}):function(e,r,s){return t[0]=e,n(t,null,s,i),t[0]=null,!i.pop()}}),has:te(function(e){return function(t){return J(e,t).length>0}}),contains:te(function(e){return e=e.replace(Y,K),function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}}),lang:te(function(e){return z.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(Y,K).toLowerCase(),function(t){var i;do{if(i=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:se(!1),disabled:se(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){var t;return C(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae(function(){return[0]}),last:ae(function(e,t){return[t-1]}),eq:ae(function(e,t,i){return[i<0?i+t:i]}),even:ae(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:ae(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:ae(function(e,t,i){var n;for(n=i<0?i+t:i>t?t:i;--n>=0;)e.push(n);return e}),gt:ae(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ne(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,i){var n,r,s,a,o,l,c,u=T[e+" "];if(u)return i?0:u.slice(0);for(o=e,l=[],c=t.preFilter;o;){for(a in n&&!(r=U.exec(o))||(r&&(o=o.slice(r[0].length)||o),l.push(s=[])),n=!1,(r=j.exec(o))&&(n=r.shift(),s.push({value:n,type:r[0].replace(O," ")}),o=o.slice(n.length)),t.filter)!(r=W[a].exec(o))||c[a]&&!(r=c[a](r))||(n=r.shift(),s.push({value:n,type:a,matches:r}),o=o.slice(n.length));if(!n)break}return i?o.length:o?J.error(e):T(e,l).slice(0)}function de(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function he(e,t,i){var n=t.dir,r=t.next,s=r||n,a=i&&"parentNode"===s,o=b++;return t.first?function(t,i,r){for(;t=t[n];)if(1===t.nodeType||a)return e(t,i,r);return!1}:function(t,i,l){var c,u,d=[y,o];if(l){for(;t=t[n];)if((1===t.nodeType||a)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||a)if(u=t[v]||(t[v]={}),r&&C(t,r))t=t[n]||t;else{if((c=u[s])&&c[0]===y&&c[1]===o)return d[2]=c[2];if(u[s]=d,d[2]=e(t,i,l))return!0}return!1}}function pe(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function fe(e,t,i,n,r){for(var s,a=[],o=0,l=e.length,c=null!=t;o<l;o++)(s=e[o])&&(i&&!i(s,n,r)||(a.push(s),c&&t.push(o)));return a}function me(e,t,i,n,r,s){return n&&!n[v]&&(n=me(n)),r&&!r[v]&&(r=me(r,s)),te(function(s,a,o,l){var c,d,h,p,f=[],g=[],v=a.length,y=s||function(e,t,i){for(var n=0,r=t.length;n<r;n++)J(e,t[n],i);return i}(t||"*",o.nodeType?[o]:o,[]),b=!e||!s&&t?y:fe(y,f,e,o,l);if(i?i(b,p=r||(s?e:v||n)?[]:a,o,l):p=b,n)for(c=fe(p,g),n(c,[],o,l),d=c.length;d--;)(h=c[d])&&(p[g[d]]=!(b[g[d]]=h));if(s){if(r||e){if(r){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);r(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=r?u.call(s,h):f[d])>-1&&(s[c]=!(a[c]=h))}}else p=fe(p===a?p.splice(v,p.length):p),r?r(null,a,p,l):m.apply(a,p)})}function ge(e){for(var n,r,s,a=e.length,o=t.relative[e[0].type],l=o||t.relative[" "],c=o?1:0,d=he(function(e){return e===n},l,!0),h=he(function(e){return u.call(n,e)>-1},l,!0),p=[function(e,t,r){var s=!o&&(r||t!=i)||((n=t).nodeType?d(e,t,r):h(e,t,r));return n=null,s}];c<a;c++)if(r=t.relative[e[c].type])p=[he(pe(p),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(s=++c;s<a&&!t.relative[e[s].type];s++);return me(c>1&&pe(p),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(O,"$1"),r,c<s&&ge(e.slice(c,s)),s<a&&ge(e=e.slice(s)),s<a&&de(e))}p.push(r)}return pe(p)}function ve(e,n){var r,s=[],a=[],o=x[e+" "];if(!o){for(n||(n=ue(e)),r=n.length;r--;)(o=ge(n[r]))[v]?s.push(o):a.push(o);o=x(e,function(e,n){var r=n.length>0,s=e.length>0,a=function(a,o,c,u,h){var p,f,g,v=0,b="0",_=a&&[],T=[],x=i,w=a||s&&t.find.TAG("*",h),S=y+=null==x?1:Math.random()||.1,E=w.length;for(h&&(i=o==l||o||h);b!==E&&null!=(p=w[b]);b++){if(s&&p){for(f=0,o||p.ownerDocument==l||(le(p),c=!d);g=e[f++];)if(g(p,o||l,c)){m.call(u,p);break}h&&(y=S)}r&&((p=!g&&p)&&v--,a&&_.push(p))}if(v+=b,r&&b!==v){for(f=0;g=n[f++];)g(_,T,o,c);if(a){if(v>0)for(;b--;)_[b]||T[b]||(T[b]=A.call(u));T=fe(T)}m.apply(u,T),h&&!a&&T.length>0&&v+n.length>1&&k.uniqueSort(u)}return h&&(y=S,i=x),_};return r?te(a):a}(a,s)),o.selector=e}return o}function ye(e,i,n,r){var s,a,o,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(n=n||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(o=a[0]).type&&9===i.nodeType&&d&&t.relative[a[1].type]){if(!(i=(t.find.ID(o.matches[0].replace(Y,K),i)||[])[0]))return n;u&&(i=i.parentNode),e=e.slice(a.shift().value.length)}for(s=W.needsContext.test(e)?0:a.length;s--&&(o=a[s],!t.relative[l=o.type]);)if((c=t.find[l])&&(r=c(o.matches[0].replace(Y,K),$.test(a[0].type)&&oe(i.parentNode)||i))){if(a.splice(s,1),!(e=r.length&&de(a)))return m.apply(n,r),n;break}}return(u||ve(e,h))(r,i,!d,n,!i||$.test(e)&&oe(i.parentNode)||i),n}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=v.split("").sort(S).join("")===v,le(),g.sortDetached=ie(function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))}),k.find=J,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,J.compile=ve,J.select=ye,J.setDocument=le,J.tokenize=ue,J.escape=k.escapeSelector,J.getText=k.text,J.isXML=k.isXMLDoc,J.selectors=k.expr,J.supp
vendor: 5,415 bytes, line 2
2ort=k.support,J.uniqueSort=k.uniqueSort}();var B=function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&k(e).is(i))break;n.push(e)}return n},F=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},U=k.expr.match.needsContext,j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(e,t,i){return v(t)?k.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?k.grep(e,function(e){return e===t!==i}):"string"!=typeof t?k.grep(e,function(e){return u.call(t,e)>-1!==i}):k.filter(t,e,i)}k.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?k.find.matchesSelector(n,e)?[n]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<n;t++)if(k.contains(r[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)k.find(e,r[t],i);return n>1?k.uniqueSort(i):i},filter:function(e){return this.pushStack(H(this,e||[],!1))},not:function(e){return this.pushStack(H(this,e||[],!0))},is:function(e){return!!H(this,"string"==typeof e&&U.test(e)?k(e):e||[],!1).length}});var q,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,i){var n,r;if(!e)return this;if(i=i||q,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:z.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),j.test(n[1])&&k.isPlainObject(t))for(n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=b.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(b);var W=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function X(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,r=this.length,s=[],a="string"!=typeof e&&k(e);if(!U.test(e))for(;n<r;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&k.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(s.length>1?k.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?u.call(k(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return B(e,"parentNode")},parentsUntil:function(e,t,i){return B(e,"parentNode",i)},next:function(e){return X(e,"nextSibling")},prev:function(e){return X(e,"previousSibling")},nextAll:function(e){return B(e,"nextSibling")},prevAll:function(e){return B(e,"previousSibling")},nextUntil:function(e,t,i){return B(e,"nextSibling",i)},prevUntil:function(e,t,i){return B(e,"previousSibling",i)},siblings:function(e){return F((e.parentNode||{}).firstChild,e)},children:function(e){return F(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(e,t){k.fn[e]=function(i,n){var r=k.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=k.filter(n,r)),this.length>1&&(V[e]||k.uniqueSort(r),W.test(e)&&r.reverse()),this.pushStack(r)}});var G=/[^\x20\t\r\n\f]+/g;function $(e){return e}function Y(e){throw e}function K(e,t,i,n){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(i):e&&v(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(G)||[],function(e,i){t[i]=!0}),t}(e):k.extend({},e);var t,i,n,r,s=[],a=[],o=-1,l=function(){for(r=r||e.once,n=t=!0;a.length;o=-1)for(i=a.shift();++o<s.length;)!1===s[o].apply(i[0],i[1])&&e.stopOnFalse&&(o=s.length,i=!1);e.memory||(i=!1),t=!1,r&&(s=i?[]:"")},c={add:function(){return s&&(i&&!t&&(o=s.length-1,a.push(i)),function t(i){k.each(i,function(i,n){v(n)?e.unique&&c.has(n)||s.push(n):n&&n.length&&"string"!==x(n)&&t(n)})}(arguments),i&&!t&&l()),this},remove:function(){return k.each(arguments,function(e,t){for(var i;(i=k.inArray(t,s,i))>-1;)s.splice(i,1),i<=o&&o--}),this},has:function(e){return e?k.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=a=[],s=i="",this},disabled:function(){return!s},lock:function(){return r=a=[],i||t||(s=i=""),this},locked:function(){return!!r},fireWith:function(e,i){return r||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pe
2nding",r={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return k.Deferred(function(i){k.each(t,function(t,n){var r=v(e[n[4]])&&e[n[4]];s[n[1]](function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,i,r){var s=0;function a(e,t,i,r){return function(){var o=this,l=arguments,c=function(){var n,c;if(!(e<s)){if((n=i.apply(o,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?r?c.call(n,a(s,t,$,r),a(s,t,Y,r)):(s++,c.call(n,a(s,t,$,r),a(s,t,Y,r),a(s,t,$,t.notifyWith))):(i!==$&&(o=void 0,l=[n]),(r||t.resolveWith)(o,l))}},u=r?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.error),e+1>=s&&(i!==Y&&(o=void 0,l=[n]),t.rejectWith(o,l))}};e?u():(k.Deferred.getErrorHook?u.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(u.error=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred(function(n){t[0][3].add(a(0,n,v(r)?r:$,n.notifyWith)),t[1][3].add(a(0,n,v(e)?e:$)),t[2][3].add(a(0,n,v(i)?i:Y))}).promise()},promise:function(e){return null!=e?k.extend(e,r):r}},s={};return k.each(t,function(e,n){var a=n[2],o=n[5];r[n[1]]=a.add,o&&a.add(function(){i=o},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),s[n[0]]=function(){return s[n[0]+"With"](this===s?void 0:this,arguments),this},s[n[0]+"With"]=a.fireWith}),r.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,i=t,n=Array(i),r=o.call(arguments),s=k.Deferred(),a=function(e){return function(i){n[e]=this,r[e]=arguments.length>1?o.call(arguments):i,--t||s.resolveWith(n,r)}};if(t<=1&&(K(e,s.done(a(i)).resolve,s.reject,!t),"pending"===s.state()||v(r[i]&&r[i].then)))return s.then();for(;i--;)K(r[i],a(i),s.reject);return s.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Q.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout(function(){throw e})};var Z=k.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),n.removeEventListener("load",J),k.ready()}k.fn.ready=function(e){return Z.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||Z.resolveWith(b,[k]))}}),k.ready.then=Z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",J),n.addEventListener("load",J));var ee=function(e,t,i,n,r,s,a){var o=0,l=e.length,c=null==i;if("object"===x(i))for(o in r=!0,i)ee(e,t,o,i[o],!0,s,a);else if(void 0!==n&&(r=!0,v(n)||(a=!0),c&&(a?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(k(e),i)})),t))for(;o<l;
vendor: 11,289 bytes, line 2
2o++)t(e[o],i,a?n:n.call(e[o],o,t(e[o],i)));return r?e:c?t.call(e):l?t(e[0],i):s},te=/^-ms-/,ie=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ie,ne)}var se=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=k.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},se(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,r=this.cache(e);if("string"==typeof t)r[re(t)]=i;else for(n in t)r[re(n)]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(re):(t=re(t))in n?[t]:t.match(G)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||k.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var oe=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(i)}catch(e){}le.set(e,t,i)}else i=void 0;return i}k.extend({hasData:function(e){return le.hasData(e)||oe.hasData(e)},data:function(e,t,i){return le.access(e,t,i)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,i){return oe.access(e,t,i)},_removeData:function(e,t){oe.remove(e,t)}}),k.fn.extend({data:function(e,t){var i,n,r,s=this[0],a=s&&s.attributes;if(void 0===e){if(this.length&&(r=le.get(s),1===s.nodeType&&!oe.get(s,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&(n=re(n.slice(5)),de(s,n,r[n]));oe.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){le.set(this,e)}):ee(this,function(t){var i;if(s&&void 0===t)return void 0!==(i=le.get(s,e))||void 0!==(i=de(s,e))?i:void 0;this.each(function(){le.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){le.remove(this,e)})}}),k.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=oe.get(e,t),i&&(!n||Array.isArray(i)?n=oe.access(e,t,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=k.queue(e,t),n=i.length,r=i.shift(),s=k._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete s.stop,r.call(e,function(){k.dequeue(e,t)},s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return oe.get(e,i)||oe.access(e,i,{empty:k.Callbacks("once memory").add(function(){oe.remove(e,[t+"queue",i])})})}}),k.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?k.queue(this[0],e):void 0===t?this:this.each(function(){var i=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&k.dequeue(this,e)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=k.Deferred(),s=this,a=this.length,o=function(){--n||r.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=oe.get(s[a],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return k.contains(e.ownerDocument,e)},ve={composed:!0};me.getRootNode&&(ge=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===k.css(e,"display")};function be(e,t,i,n){var r,s,a=20,o=n?function(){return n.cur()}:function(){return k.css(e,t,"")},l=o(),c=i&&i[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&pe.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)k.style(e,t,u+c),(1-s)*(1-(s=o()/l||.5))<=0&&(a=0),u/=s;u*=2,k.style(e,t,u+c),i=i||[]}return i&&(u=+u||+l||0,r=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=r)),r}var _e={};function Te(e){var t,i=e.ownerDocument,n=e.nodeName,r=_e[n];return r||(t=i.body.appendChild(i.createElement(n)),r=k.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),_e[n]=r,r)}function xe(e,t){for(var i,n,r=[],s=0,a=e.length;s<a;s++)(n=e[s]).style&&(i=n.style.display,t?("none"===i&&(r[s]=oe.get(n,"display")||null,r[s]||(n.style.display="")),""===n.style.display&&ye(n)&&(r[s]=Te(n))):"none"!==i&&(r[s]="none",oe.set(n,"display",i)));for(s=0;s<a;s++)null!=r[s]&&(e[s].style.display=r[s]);return e}k.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ye(this)?k(this).show():k(this).hide()})}});var we,Se,ke=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;we=b.createDocumentFragment().appendChild(b.createElement("div")),(Se=b.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),we.appendChild(Se),g.checkClone=we.cloneNode(!0).cloneNode(!0).lastChild.checked,we.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!we.cloneNode(!0).lastChild.defaultValue,we.innerHTML="<option></option>",g.option=!!we.lastChild;var Ae={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Le(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?k.merge([e],i):i}function Ie(e,t){for(var i=0,n=e.length;i<n;i++)oe.set(e[i],"globalEval",!t||oe.get(t[i],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,g.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);var Pe=/<|&#?\w+;/;function Oe(e,t,i,n,r){for(var s,a,o,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((s=e[p])||0===s)if("object"===x(s))k.merge(h,s.nodeType?[s]:s);else if(Pe.test(s)){for(a=a||d.appendChild(t.createElement("div")),o=(Ee.exec(s)||["",""])[1].toLowerCase(),l=Ae[o]||Ae._default,a.innerHTML=l[1]+k.htmlPrefilter(s)+l[2],u=l[0];u--;)a=a.lastChild;k.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(s));for(d.textContent="",p=0;s=h[p++];)if(n&&k.inArray(s,n)>-1)r&&r.push(s);else if(c=ge(s),a=Le(d.appendChild(s),"script"),c&&Ie(a),i)for(u=0;s=a[u++];)Ce.test(s.type||"")&&i.push(s);return d}var De=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Ne(){return!1}function Re(e,t,i,n,r,s){var a,o;if("object"==typeof t){for(o in"string"!=typeof i&&(n=n||i,i=void 0),t)Re(e,o,i,n,t[o],s);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Ne;else if(!r)return e;return 1===s&&(a=r,r=function(e){return k().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,r,n,i)})}function Be(e,t,i){i?(oe.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var i,n=oe.get(this,t);if(1&e.isTrigger&&this[t]){if(n)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=o.call(arguments),oe.set(this,t,n),this[t](),i=oe.get(this,t),oe.set(this,t,!1),n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else n&&(oe.set(this,t,k.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===oe.get(e,t)&&k.event.add(e,t,Me)}k.event={global:{},add:function(e,t,i,n,r){var s,a,o,l,c,u,d,h,p,f,m,g=oe.get(e);if(se(e))for(i.handler&&(i=(s=i).handler,r=s.selector),r&&k.find.matchesSelector(me,r),i.guid||(i.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(G)||[""]).length;c--;)p=m=(o=De.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p&&(d=k.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=k.event.special[p]||{},u=k.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:f.join(".")},s),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,f,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),k.event.global[p]=!0)},remove:function(e,t,i,n,r){var s,a,o,l,c,u,d,h,p,f,m,g=oe.hasData(e)&&oe.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(G)||[""]).length;c--;)if(p=m=(o=De.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=h.length;s--;)u=h[s],!r&&m!==u.origType||i&&i.guid!==u.guid||o&&!o.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||k.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[c],i,n,!0);k.isEmptyObject(l)&&oe.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,s,a,o=new Array(arguments.length),l=k.event.fix(e),c=(oe.get(this,"events")||Object.create(null))[l.type]||[],u=k.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=k.event.handlers.call(this,l,c),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(s=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(n=((k.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,o))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,r,s,a,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],a={},i=0;i<l;i++)void 0===a[r=(n=t[i]).selector+" "]&&(a[r]=n.needsContext?k(r,this).index(c)>-1:k.find(r,this,null,[c]).length),a[r]&&s.push(n);s.length&&o.push({elem:c,handlers:s})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 9,157 bytes, line 2
2,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ke.test(t.type)&&t.click&&C(t,"input")&&Be(t,"click",!0),!1},trigger:function(e){var t=this||e;return ke.test(t.type)&&t.click&&C(t,"input")&&Be(t,"click"),!0},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&C(t,"input")&&oe.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Ne,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Ne,isPropagationStopped:Ne,isImmediatePropagationStopped:Ne,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){function i(e){if(b.documentMode){var i=oe.get(this,"handle"),n=k.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,i(e),n.target===n.currentTarget&&i(n)}else k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[e]={setup:function(){var n;if(Be(this,e,!0),!b.documentMode)return!1;(n=oe.get(this,t))||this.addEventListener(t,i),oe.set(this,t,(n||0)+1)},trigger:function(){return Be(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=oe.get(this,t)-1)?oe.set(this,t,e):(this.removeEventListener(t,i),oe.remove(this,t))},_default:function(t){return oe.get(t.target,e)},delegateType:t},k.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,r=b.documentMode?this:n,s=oe.get(r,t);s||(b.documentMode?this.addEventListener(t,i):n.addEventListener(e,i,!0)),oe.set(r,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=b.documentMode?this:n,s=oe.get(r,t)-1;s?oe.set(r,t,s):(b.documentMode?this.removeEventListener(t,i):n.removeEventListener(e,i,!0),oe.remove(r,t))}}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=r.origType,i=r.handler.apply(this,arguments),e.type=t),i}}}),k.fn.extend({on:function(e,t,i,n){return Re(this,e,t,i,n)},one:function(e,t,i,n){return Re(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,k(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Ne),this.each(function(){k.event.remove(this,e,i,t)})}});var Fe=/<script|<style|<link/i,Ue=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function He(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function qe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var i,n,r,s,a,o;if(1===t.nodeType){if(oe.hasData(e)&&(o=oe.get(e).events))for(r in oe.remove(t,"handle events"),o)for(i=0,n=o[r].length;i<n;i++)k.event.add(t,r,o[r][i]);le.hasData(e)&&(s=le.access(e),a=k.extend({},s),le.set(t,a))}}function Ve(e,t){var i=t.nodeName.toLowerCase();"input"===i&&ke.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function Xe(e,t,i,n){t=l(t);var r,s,a,o,c,u,d=0,h=e.length,p=h-1,f=t[0],m=v(f);if(m||h>1&&"string"==typeof f&&!g.checkClone&&Ue.test(f))return e.each(function(r){var s=e.eq(r);m&&(t[0]=f.call(this,r,s.html())),Xe(s,t,i,n)});if(h&&(s=(r=Oe(t,e[0].ownerDocument,!1,e,n)).firstChild,1===r.childNodes.length&&(r=s),s||n)){for(o=(a=k.map(Le(r,"script"),qe)).length;d<h;d++)c=r,d!==p&&(c=k.clone(c,!0,!0),o&&k.merge(a,Le(c,"script"))),i.call(e[d],c,d);if(o)for(u=a[a.length-1].ownerDocument,k.map(a,ze),d=0;d<o;d++)c=a[d],Ce.test(c.type||"")&&!oe.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):T(c.textContent.replace(je,""),c,u))}return e}function Ge(e,t,i){for(var n,r=t?k.filter(t,e):e,s=0;null!=(n=r[s]);s++)i||1!==n.nodeType||k.cleanData(Le(n)),n.parentNode&&(i&&ge(n)&&Ie(Le(n,"script")),n.parentNode.removeChild(n));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,r,s,a,o=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=Le(o),n=0,r=(s=Le(e)).length;n<r;n++)Ve(s[n],a[n]);if(t)if(i)for(s=s||Le(e),a=a||Le(o),n=0,r=s.length;n<r;n++)We(s[n],a[n]);else We(e,o);return(a=Le(o,"script")).length>0&&Ie(a,!l&&Le(e,"script")),o},cleanData:function(e){for(var t,i,n,r=k.event.special,s=0;void 0!==(i=e[s]);s++)if(se(i)){if(t=i[oe.expando]){if(t.events)for(n in t.events)r[n]?k.event.remove(i,n):k.removeEvent(i,n,t.handle);i[oe.expando]=void 0}i[le.expando]&&(i[le.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return ee(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Xe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||He(this,e).appendChild(e)})},prepend:function(){return Xe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=He(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Xe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Xe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(Le(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return ee(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Fe.test(e)&&!Ae[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(k.cleanData(Le(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Xe(this,arguments,function(t){var i=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(Le(this)),i&&i.replaceChild(t,this))},e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){k.fn[e]=function(e){for(var i,n=[],r=k(e),s=r.length-1,a=0;a<=s;a++)i=a===s?this:this.clone(!0),k(r[a])[t](i),c.apply(n,i.get());return this.pushStack(n)}});var $e=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Ye=/^--/,Ke=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Qe=function(e,t,i){var n,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in n=i.call(e),t)e.style[r]=s[r];return n},Ze=new RegExp(fe.join("|"),"i");function Je(e,t,i){var n,r,s,a,o=Ye.test(t),l=e.style;return(i=i||Ke(e))&&(a=i.getPropertyValue(t)||i[t],o&&a&&(a=a.replace(O,"$1")||void 0),""!==a||ge(e)||(a=k.style(e,t)),!g.pixelBoxStyles()&&$e.test(a)&&Ze.test(t)&&(n=l.width,r=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=i.width,l.width=n,l.minWidth=r,l.maxWidth=s)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;
2left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);i="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),r=36===t(e.width),u.style.position="absolute",s=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var i,r,s,a,o,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,t,i,r;return null==o&&(e=b.createElement("table"),t=b.createElement("tr"),i=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;
2border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",me.appendChild(e).appendChild(t).appendChild(i),r=n.getComputedStyle(t),o=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),o}}))}();var tt=["Webkit","Moz","ms"],it=b.createElement("div").style,nt={};function rt(e){var t=k.cssProps[e]||nt[e];return t||(e in it?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=tt.length;i--;)if((e=tt[i]+t)in it)return e}(e)||e)}var st=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function lt(e,t,i){var n=pe.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function ct(e,t,i,n,r,s){var a="width"===t?1:0,o=0,l=0,c=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(c+=k.css(e,i+fe[a],!0,r)),n?("content"===i&&(l-=k.css(e,"padding"+fe[a],!0,r)),"margin"!==i&&(l-=k.css(e,"border"+fe[a]+"Width",!0,r))):(l+=k.css(e,"padding"+fe[a],!0,r),"padding"!==i?l+=k.css(e,"border"+fe[a]+"Width",!0,r):o+=k.css(e,"border"+fe[a]+"Width",!0,r));return!n&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-o-.5))||0),l+c}function ut(e,t,i){var n=Ke(e),r=(!g.boxSizingReliable()||i)&&"border-box"===k.css(e,"boxSizing",!1,n),s=r,a=Je(e,t,n),o="offset"+t[0].toUpperCase()+t.slice(1);if($e.test(a)){if(!i)return a;a="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&C(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,n))&&e.getClientRects().length&&(r="border-box"===k.css(e,"boxSizing",!1,n),(s=o in e)&&(a=e[o])),(a=parseFloat(a)||0)+ct(e,t,i||(r?"border":"content"),s,n,a)+"px"}function dt(e,t,i,n,r){return new dt.prototype.init(e,t,i,n,r)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Je(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,a,o=re(t),l=Ye.test(t),c=e.style;if(l||(t=rt(o)),a=k.cssHooks[t]||k.cssHooks[o],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(e,!1,n))?r:c[t];"string"===(s=typeof i)&&(r=pe.exec(i))&&r[1]&&(i=be(e,t,r),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=r&&r[3]||(k.cssNumber[o]?"":"px")),g.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var r,s,a,o=re(t);return Ye.test(t)||(t=rt(o)),(a=k.cssHooks[t]||k.cssHooks[o])&&"get"in a&&(r=a.get(e,!0,i)),void 0===r&&(r=Je(e,t,n)),"normal"===r&&t in ot&&(r=ot[t]),""===i||i?(s=parseFloat(r),!0===i||isFinite(s)?s||0:r):r}}),k.each(["height","width"],function(e,t){k.cssHooks[t]={get:function(e,i,n){if(i)return!st.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,n):Qe(e,at,function(){return ut(e,t,n)})},set:function(e,i,n){var r,s=Ke(e),a=!g.scrollboxSize()&&"absolute"===s.position,o=(a||n)&&"border-box"===k.css(e,"boxSizing",!1,s),l=n?ct(e,t,n,o,s):0;return o&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-ct(e,t,"border",!1,s)-.5)),l&&(r=pe.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=k.css(e,t)),lt(0,i,l)}}}),k.cssHooks.marginLeft=et(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(e,t){k.cssHooks[e+t]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+fe[n]+t]=s[n]||s[n-2]||s[0];return r}},"margin"!==e&&(k.cssHooks[e+t].set=lt)}),k.fn.extend({css:function(e,t){return ee(this,function(e,t,i){var n,r,s={},a=0;if(Array.isArray(t)){for(n=Ke(e),r=t.length;a<r;a++)s[t[a]]=k.css(e,t[a],!1,n);return s}return void 0!==i?k.style(e,t,i):k.css(e,t)},e,t,arguments.length>1)}}),k.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,i,n,r,s){this.elem=e,this.prop=i,this.easing=r||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(k.cssNumber[i]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,i=dt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=dt.prototype.init,k.fx.step={};var ht,pt,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){pt&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(gt):n.setTimeout(gt,k.fx.interval),k.fx.tick())}function vt(){return n.setTimeout(function(){ht=void 0}),ht=Date.now()}function yt(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=fe[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,i){for(var n,r=(_t.tweeners[t]||[]).concat(_t.tweeners["*"]),s=0,a=r.length;s<a;s++)if(n=r[s].call(i,t,e))return n}function _t(e,t,i){var n,r,s=0,a=_t.prefilters.length,o=k.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=ht||vt(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),s=0,a=c.tweens.length;s<a;s++)c.tweens[s].run(n);return o.notifyWith(e,[c,n,i]),n<1&&a?i:(a||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},i),originalProperties:t,originalOptions:i,startTime:ht||vt(),duration:i.duration,tweens:[],createTween:function(t,i){var n=k.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||
vendor: 4,104 bytes, line 2
2c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var i,n,r,s,a;for(i in e)if(r=t[n=re(i)],s=e[i],Array.isArray(s)&&(r=s[1],s=e[i]=s[0]),i!==n&&(e[n]=s,delete e[i]),(a=k.cssHooks[n])&&"expand"in a)for(i in s=a.expand(s),delete e[n],s)i in e||(e[i]=s[i],t[i]=r);else t[n]=r}(u,c.opts.specialEasing);s<a;s++)if(n=_t.prefilters[s].call(c,e,u,c.opts))return v(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return k.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(_t,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return be(i.elem,e,pe.exec(t),i),i}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(G);for(var i,n=0,r=e.length;n<r;n++)i=e[n],_t.tweeners[i]=_t.tweeners[i]||[],_t.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,r,s,a,o,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&ye(e),g=oe.get(e,"fxshow");for(n in i.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,o=a.empty.fire,a.empty.fire=function(){a.unqueued||o()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[n],ft.test(r)){if(delete t[n],s=s||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||k.style(e,n)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(n in d&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=oe.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(xe([e],!0),c=e.style.display||c,u=k.css(e,"display"),xe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=oe.access(e,"fxshow",{display:c}),s&&(g.hidden=!m),m&&xe([e],!0),h.done(function(){for(n in m||xe([e]),oe.remove(e,"fxshow"),p)k.style(e,n,p[n])})),l=bt(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?_t.prefilters.unshift(e):_t.prefilters.push(e)}}),k.speed=function(e,t,i){var n=e&&"object"==typeof e?k.extend({},e):{complete:i||!i&&t||v(e)&&e,duration:e,easing:i&&t||t&&!v(t)&&t};return k.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in k.fx.speeds?n.duration=k.fx.speeds[n.duration]:n.duration=k.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&k.dequeue(this,n.queue)},n},k.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=k.isEmptyObject(e),s=k.speed(t,i,n),a=function(){var t=_t(this,k.extend({},e),s);(r||oe.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===s.queue?this.each(a):this.queue(s.queue,a)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",s=k.timers,a=oe.get(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&mt.test(r)&&n(a[r]);for(r=s.length;r--;)s[r].elem!==this||null!=e&&s[r].queue!==e||(s[r].anim.stop(i),t=!1,s.splice(r,1));!t&&i||k.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,i=oe.get(this),n=i[e+"queue"],r=i[e+"queueHooks"],s=k.timers,a=n?n.length:0;for(i.finish=!0,k.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1)
vendor: 5,993 bytes, line 2
2);for(t=0;t<a;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),k.each(["toggle","show","hide"],function(e,t){var i=k.fn[t];k.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(yt(t,!0),e,n,r)}}),k.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){k.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,i=k.timers;for(ht=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||k.fx.stop(),ht=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){pt||(pt=!0,gt())},k.fx.stop=function(){pt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}})},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var Tt,xt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return ee(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?k.prop(e,t,i):(1===s&&k.isXMLDoc(e)||(r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?Tt:void 0)),void 0!==i?null===i?void k.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=k.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&C(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(G);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),Tt={set:function(e,t,i){return!1===t?k.removeAttr(e,i):e.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var i=xt[t]||k.find.attr;xt[t]=function(e,t,n){var r,s,a=t.toLowerCase();return n||(s=xt[a],xt[a]=r,r=null!=i(e,t,n)?a:null,xt[a]=s),r}});var wt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;function kt(e){return(e.match(G)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(G)||[]}k.fn.extend({prop:function(e,t){return ee(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&k.isXMLDoc(e)||(t=k.propFix[t]||t,r=k.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,i,n,r,s,a;return v(e)?this.each(function(t){k(this).addClass(e.call(this,t,Et(this)))}):(t=Ct(e)).length?this.each(function(){if(n=Et(this),i=1===this.nodeType&&" "+kt(n)+" "){for(s=0;s<t.length;s++)r=t[s],i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=kt(i),n!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,i,n,r,s,a;return v(e)?this.each(function(t){k(this).removeClass(e.call(this,t,Et(this)))}):arguments.length?(t=Ct(e)).length?this.each(function(){if(n=Et(this),i=1===this.nodeType&&" "+kt(n)+" "){for(s=0;s<t.length;s++)for(r=t[s];i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");a=kt(i),n!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var i,n,r,s,a=typeof e,o="string"===a||Array.isArray(e);return v(e)?this.each(function(i){k(this).toggleClass(e.call(this,i,Et(this),t),t)}):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(i=Ct(e),this.each(function(){if(o)for(s=k(this),r=0;r<i.length;r++)n=i[r],s.hasClass(n)?s.removeClass(n):s.addClass(n);else void 0!==e&&"boolean"!==a||((n=Et(this))&&oe.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":oe.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+kt(Et(i))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;k.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=v(e),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,k(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,function(e){return null==e?"":e+""})),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(At,""):null==i?"":i:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:kt(k.text(e))}},select:{get:function(e){var t,i,n,r=e.options,s=e.selectedIndex,a="select-one"===e.type,o=a?null:[],l=a?s+1:r.length;for(n=s<0?l:a?s:0;n<l;n++)if(((i=r[n]).selected||n===s)&&!i.disabled&&(!i.parentNode.disabled||!C(i.parentNode,"optgroup"))){if(t=k(i).val(),a)return t;o.push(t)}return o}
vendor: 16,647 bytes, line 2
2,set:function(e,t){for(var i,n,r=e.options,s=k.makeArray(t),a=r.length;a--;)((n=r[a]).selected=k.inArray(k.valHooks.option.get(n),s)>-1)&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Lt=n.location,It={guid:Date.now()},Pt=/\?/;k.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||k.error("Invalid XML: "+(i?k.map(i.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ot=/^(?:focusinfocus|focusoutblur)$/,Dt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,i,r){var s,a,o,l,c,u,d,h,f=[i||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(a=h=o=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!Ot.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,t))){if(!r&&!d.noBubble&&!y(i)){for(l=d.delegateType||m,Ot.test(l+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),o=a;o===(i.ownerDocument||b)&&f.push(o.defaultView||o.parentWindow||n)}for(s=0;(a=f[s++])&&!e.isPropagationStopped();)h=a,e.type=s>1?l:d.bindType||m,(u=(oe.get(a,"events")||Object.create(null))[e.type]&&oe.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&se(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!se(i)||c&&v(i[m])&&!y(i)&&((o=i[c])&&(i[c]=null),k.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Dt),i[m](),e.isPropagationStopped()&&h.removeEventListener(m,Dt),k.event.triggered=void 0,o&&(i[c]=o)),e.result}},simulate:function(e,t,i){var n=k.extend(new k.Event,i,{type:e,isSimulated:!0});k.event.trigger(n,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return k.event.trigger(e,t,i,!0)}});var Mt=/\[\]$/,Nt=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,Bt=/^(?:input|select|textarea|keygen)/i;function Ft(e,t,i,n){var r;if(Array.isArray(t))k.each(t,function(t,r){i||Mt.test(e)?n(e,r):Ft(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,i,n)});else if(i||"object"!==x(t))n(e,t);else for(r in t)Ft(e+"["+r+"]",t[r],i,n)}k.param=function(e,t){var i,n=[],r=function(e,t){var i=v(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){r(this.name,this.value)});else for(i in e)Ft(i,e[i],t,r);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Bt.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!ke.test(e))}).map(function(e,t){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:i.replace(Nt,"\r\n")}}).get()}});var Ut=/%20/g,jt=/#.*$/,Ht=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Wt=/^\/\//,Vt={},Xt={},Gt="*/".concat("*"),$t=b.createElement("a");function Yt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,s=t.toLowerCase().match(G)||[];if(v(i))for(;n=s[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Kt(e,t,i,n){var r={},s=e===Xt;function a(o){var l;return r[o]=!0,k.each(e[o]||[],function(e,o){var c=o(t,i,n);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Qt(e,t){var i,n,r=k.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&k.extend(!0,e,n),e}$t.href=Lt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,k.ajaxSettings),t):Qt(k.ajaxSettings,e)},ajaxPrefilter:Yt(Vt),ajaxTransport:Yt(Xt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,s,a,o,l,c,u,d,h,p=k.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?k(f):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),y=p.statusCode||{},_={},T={},x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=qt.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),S(0,t),this}};if(g.promise(w),p.url=((e||p.url||Lt.href)+"").replace(Wt,Lt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(G)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=$t.protocol+"//"+$t.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),Kt(Vt,p,t,w),c)return w;for(d in(u=k.event&&p.global)&&0===k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!zt.test(p.type),r=p.url.replace(jt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ut,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Pt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ht,"$1"),h=(Pt.test(r)?"&":"?")+"_="+It.guid+++h),p.url=r+h),p.ifModified&&(k.lastModified[r]&&w.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&w.setRequestHeader("If-None-Match",k.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Gt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,w,p)||c))return w.abort();if(x="abort",v.add(p.complete),w.done(p.success),w.fail(p.error),i=Kt(Xt,p,t,w)){if(w.readyState=1,u&&m.trigger("ajaxSend",[w,p]),c)return w;p.async&&p.timeout>0&&(o=n.setTimeout(function(){w.abort("timeout")},p.timeout));try{c=!1,i.send(_,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,l){var d,h,b,_,T,x=t;c||(c=!0,o&&n.clearTimeout(o),i=void 0,s=l||"",w.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(_=function(e,t,i){for(var n,r,s,a,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in o)if(o[r]&&o[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){s=r;break}a||(a=r)}s=s||a}if(s)return s!==l[0]&&l.unshift(s),i[s]}(p,w,a)),!d&&k.inArray("script",p.dataTypes)>-1&&k.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(e,t,i,n){var r,s,a,o,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(s=u.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(a=c[l+" "+s]||c["* "+s]))for(r in c)if((o=r.split(" "))[1]===s&&(a=c[l+" "+o[0]]||c["* "+o[0]])){!0===a?a=c[r]:!0!==c[r]&&(s=o[0],u.unshift(o[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(p,_,w,d),d?(p.ifModified&&((T=w.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=T),(T=w.getResponseHeader("etag"))&&(k.etag[r]=T)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=_.state,h=_.data,d=!(b=_.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),w.status=e,w.statusText=(t||x)+"",d?g.resolveWith(f,[h,x,w]):g.rejectWith(f,[w,x,b]),w.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[w,p,d?h:b]),v.fireWith(f,[w,x]),u&&(m.trigger("ajaxComplete",[w,p]),--k.active||k.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,i){return k.get(e,t,i,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,t){k[t]=function(e,i,n,r){return v(i)&&(r=r||n,n=i,i=void 0),k.ajax(k.extend({url:e,type:t,dataType:r,data:i,success:n},k.isPlainObject(e)&&e))}}),k.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),k._evalUrl=function(e,t,i){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,i)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v(e)?this.each(function(t){k(this).wrapInner(e.call(this,t))}):this.each(function(){var t=k(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=v(e);return this.each(function(i){k(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},Jt=k.ajaxSettings.xhr();g.cors=!!Jt&&"withCredentials"in Jt,g.ajax=Jt=!!Jt,k.ajaxTransport(function(e){var t,i;if(g.cors||Jt&&!e.crossDomain)return{send:function(r,s){var a,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)o[a]=e.xhrFields[a];for(a in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)o.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=i=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Zt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),i=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&n.setTimeout(function(){t&&i()})},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,r){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){i&&i()}}});var ei,ti=[],ii=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ti.pop()||k.expando+"_"+It.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,i){var r,s,a,o=!1!==e.jsonp&&(ii.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(ii,"$1"+r):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||k.error(r+" was not called"),a[0]},e.dataTypes[0]="json",s=n[r],n[r]=function(){a=arguments},i.always(function(){void 0===s?k(n).removeProp(r):n[r]=s,e[r]&&(e.jsonpCallback=t.jsonpCallback,ti.push(r)),a&&v(s)&&s(a[0]),a=s=void 0}),"script"}),g.createHTMLDocument=((ei=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ei.childNodes.length),k.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(g.createHTMLDocument?((n=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(n)):t=b),s=!i&&[],(r=j.exec(e))?[t.createElement(r[1])]:(r=Oe([e],t,s),s&&s.length&&k(s).remove(),k.merge([],r.childNodes)));var n,r,s},k.fn.load=function(e,t,i){var n,r,s,a=this,o=e.indexOf(" ");return o>-1&&(n=kt(e.slice(o)),e=e.slice(0,o)),v(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){s=arguments,a.html(n?k("<div>").append(k.parseHTML(e)).find(n):e)}).always(i&&function(e,t){a.each(function(){i.apply(this,s||[e.responseText,t,e])})}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(e,t,i){var n,r,s,a,o,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),o=u.offset(),s=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(a=(n=u.position()).top,r=n.left):(a=parseFloat(s)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,i,k.extend({},o))),null!=t.top&&(d.top=t.top-o.top+a),null!=t.left&&(d.left=t.left-o.left+r),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],r={top:0,left:0};if("fixed"===k.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((r=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),r.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-k.css(n,"marginTop",!0),left:t.left-r.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||me})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i="pageYOffset"===t;k.fn[e]=function(n){return ee(this,function(e,n,r){var s;if(y(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===r)return s?s[t]:e[n];s?s.scrollTo(i?s.pageXOffset:r,i?r:s.pageYOffset):e[n]=r},e,n,arguments.length)}}
2),k.each(["top","left"],function(e,t){k.cssHooks[t]=et(g.pixelPosition,function(e,i){if(i)return i=Je(e,t),$e.test(i)?k(e).position()[t]+"px":i})}),k.each({Height:"height",Width:"width"},function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){k.fn[n]=function(r,s){var a=arguments.length&&(i||"boolean"!=typeof r),o=i||(!0===r||!0===s?"margin":"border");return ee(this,function(t,i,r){var s;return y(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===r?k.css(t,i,o):k.style(t,i,r,o)},t,a?r:void 0,a)}})}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){k.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}});var ni=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var i,n,r;if("string"==typeof t&&(i=e[t],t=e,e=i),v(e))return n=o.call(arguments,2),r=function(){return e.apply(t||this,n.concat(o.call(arguments)))},r.guid=e.guid=e.guid||k.guid++,r},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=C,k.isFunction=v,k.isWindow=y,k.camelCase=re,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(ni,"$1")},void 0===(i=function(){return k}.apply(t,[]))||(e.exports=i);var ri=n.jQuery,si=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=si),e&&n.jQuery===k&&(n.jQuery=ri),k},void 0===r&&(n.jQuery=n.$=k),k})},2733:function(e){e.exports=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)"__proto__"!==n&&(e[n]=i[n])}return e}function t(i,n){function r(t,r,s){if("undefined"!=typeof document){"number"==typeof(s=e({},n,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var o in s)s[o]&&(a+="; "+o,!0!==s[o]&&(a+="="+s[o].split(";")[0]));return document.cookie=t+"="+i.write(r,t)+a}}function s(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},r=0;r<t.length;r++){var s=t[r].split("="),a=s.slice(1).join("=");try{var o=decodeURIComponent(s[0]);if(o in n||(n[o]=i.read(a,o)),e===o)break}catch(e){}}return e?n[e]:n}}return Object.create({set:r,get:s,remove:function(t,i){r(t,"",e({},i,{expires:-1}))},withAttributes:function(i){return t(this.converter,e({},this.attributes,i))},withConverter:function(i){return t(e({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(i)}})}return t({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},6545:function(e,t){function i(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var i,s=String(e);return(i=n[s.toLowerCase()])?i:(i=r[s.toLowerCase()])||(1===s.length?s.charCodeAt(0):void 0)}i.isEventKey=function(e,t){if(e&&"object"==typeof e){var i=e.which||e.keyCode||e.charCode;if(null==i)return!1;if("string"==typeof t){var s;if(s=n[t.toLowerCase()])return s===i;if(s=r[t.toLowerCase()])return s===i}else if("number"==typeof t)return t===i;return!1}};
2var n=(t=e.exports=i).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"â§":16,"â¥":18,"â":17,"â":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(s=97;s<123;s++)n[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)n[s-48]=s;for(s=1;s<13;s++)n["f"+s]=s+111;for(s=0;s<10;s++)n["numpad "+s]=s+96;var a=t.names=t.title={};for(s in n)a[n[s]]=s;for(var o in r)n[o]=r[o]},8962:function(e,t,i){var n=i(3626).H;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===i.version?(i.earliestPresentationTime=t.getUint32(r),i.firstOffset=t.getUint32(r+4),r+=8):(i.earliestPresentationTime=n(e.subarray(r)),i.firstOffset=n(e.subarray(r+8)),r+=16),r+=2;var s=t.getUint16(r);for(r+=2;s>0;r+=12,s--)i.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return i}},9622:function(e){var t,i,n,r,s,a,o,l=9e4;t=function(e){return e*l},i=function(e,t){return e*t},n=function(e){return e/l},r=function(e,t){return e/t},s=function(e,i){return t(r(e,i))},a=function(e,t){return i(n(e),t)},o=function(e,t,i){return n(i?e:e-t)},e.exports={WZ:l,secondsToVideoTs:t,secondsToAudioTs:i,videoTsToSeconds:n,audioTsToSeconds:r,audioTsToVideoTs:s,videoTsToAudioTs:a,metadataTsToSeconds:o}},3626:function(e){var t=Math.pow(2,32);e.exports={H:function(e){var i,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(i=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(i):i:n.getUint32(0)*t+n.getUint32(4)},MAX_UINT32:t}},8851:function(e,t,i){"use strict";i.r(t);var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var s=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var i=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?i[t]:i}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(i+r+n)?e:c(l(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var d=n&&!(!window.MSInputMethodContext||!document.documentMode),h=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?d:10===e?h:d||h}function f(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,i=e.offsetParent||null;i===t&&e.nextElementSibling;)i=(e=e.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===o(i,"position")?f(i):i:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var i=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?e:t,r=i?t:e,s=document.createRange();s.setStart(n,0),s.setEnd(r,0);var a,o,l=s.commonAncestorContainer;if(e!==l&&t!==l||n.contains(r))return"BODY"===(o=(a=l).nodeName)||"HTML"!==o&&f(a.firstElementChild)!==a?f(l):l;var c=m(e);return c.host?g(c.host,t):g(e,m(t).host)}function v(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var n=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||n)[t]}return e[t]}function y(e,t){var i="x"===t?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(e["border"+i+"Width"])+parseFloat(e["border"+n+"Width"])}function b(e,t,i,n){return Math.max(t["offset"+e],t["scroll"+e],i["client"+e],i["offset"+e],i["scroll"+e],p(10)?parseInt(i["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function _(e){var t=e.body,i=e.documentElement,n=p(10)&&getComputedStyle(i);return{height:b("Height",t,i,n),width:b("Width",t,i,n)}}var T=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
vendor: 15,155 bytes, line 2
2return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),x=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function S(e){return w({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var i=v(e,"top"),n=v(e,"left");t.top+=i,t.left+=n,t.bottom+=i,t.right+=n}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s="HTML"===e.nodeName?_(e.ownerDocument):{},a=s.width||e.clientWidth||r.width,l=s.height||e.clientHeight||r.height,c=e.offsetWidth-a,u=e.offsetHeight-l;if(c||u){var d=o(e);c-=y(d,"x"),u-=y(d,"y"),r.width-=c,r.height-=u}return S(r)}function E(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=p(10),r="HTML"===t.nodeName,s=k(e),a=k(t),l=c(e),u=o(t),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);i&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=S({top:s.top-a.top-d,left:s.left-a.left-h,width:s.width,height:s.height});if(f.marginTop=0,f.marginLeft=0,!n&&r){var m=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);f.top-=d-m,f.bottom-=d-m,f.left-=h-g,f.right-=h-g,f.marginTop=m,f.marginLeft=g}return(n&&!i?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(f=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=v(t,"top"),r=v(t,"left"),s=i?-1:1;return e.top+=n*s,e.bottom+=n*s,e.left+=r*s,e.right+=r*s,e}(f,t)),f}function C(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===o(e,"position"))return!0;var i=l(e);return!!i&&C(i)}function A(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===o(t,"transform");)t=t.parentElement;return t||document.documentElement}function L(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},a=r?A(e):g(e,u(t));if("viewport"===n)s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.ownerDocument.documentElement,n=E(e,i),r=Math.max(i.clientWidth,window.innerWidth||0),s=Math.max(i.clientHeight,window.innerHeight||0),a=t?0:v(i),o=t?0:v(i,"left");return S({top:a-n.top+n.marginTop,left:o-n.left+n.marginLeft,width:r,height:s})}(a,r);else{var o=void 0;"scrollParent"===n?"BODY"===(o=c(l(t))).nodeName&&(o=e.ownerDocument.documentElement):o="window"===n?e.ownerDocument.documentElement:n;var d=E(o,a,r);if("HTML"!==o.nodeName||C(a))s=d;else{var h=_(e.ownerDocument),p=h.height,f=h.width;s.top+=d.top-d.marginTop,s.bottom=p+d.top,s.left+=d.left-d.marginLeft,s.right=f+d.left}}var m="number"==typeof(i=i||0);return s.left+=m?i:i.left||0,s.top+=m?i:i.top||0,s.right-=m?i:i.right||0,s.bottom-=m?i:i.bottom||0,s}function I(e,t,i,n,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=L(i,n,s,r),o={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(o).map(function(e){return w({key:e},o[e],{area:(t=o[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function P(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return E(i,n?A(t):g(t,u(i)),n)}function O(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),n=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+n,height:e.offsetHeight+i}}function D(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function M(e,t,i){i=i.split("-")[0];var n=O(e),r={width:n.width,height:n.height},s=-1!==["right","left"].indexOf(i),a=s?"top":"left",o=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[a]=t[a]+t[l]/2-n[l]/2,r[o]=i===o?t[o]-n[c]:t[D(o)],r}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,i){return(void 0===i?e:e.slice(0,function(e,t,i){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===i});var n=N(e,function(e){return e[t]===i});return e.indexOf(n)}(e,"name",i))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=e.function||e.fn;e.enabled&&a(i)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=i(t,e))}),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=I(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=M(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=R(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function F(e,t){return e.some(function(e){var i=e.name;return e.enabled&&i===t})}function U(e){for(var t=[!1,"ms","Webkit","Moz","O"],i=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var r=t[n],s=r?""+r+i:e;if(void 0!==document.body.style[s])return s}return null}function j(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(e){var t=e.ownerDocument;return t?t.defaultView:window}function q(e,t,i,n){var r="BODY"===e.nodeName,s=r?e.ownerDocument.defaultView:e;s.addEventListener(t,i,{passive:!0}),r||q(c(s.parentNode),t,i,n),n.push(s)}function z(e,t,i,n){i.updateBound=n,H(e).addEventListener("resize",i.updateBound,{passive:!0});var r=c(e);return q(r,"scroll",i.updateBound,i.scrollParents),i.scrollElement=r,i.eventsEnabled=!0,i}function W(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function V(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,H(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function X(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach(function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&X(t[i])&&(n="px"),e.style[i]=t[i]+n})}var $=n&&/Firefox/i.test(navigator.userAgent);function Y(e,t,i){var n=N(e,function(e){return e.name===t}),r=!!n&&e.some(function(e){return e.name===i&&e.enabled&&e.order<n.order});if(!r){var s="`"+t+"`",a="`"+i+"`";console.warn(a+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=K.slice(3);function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Q.indexOf(e),n=Q.slice(i+1).concat(Q.slice(0,i));return t?n.reverse():n}var J="flip",ee="clockwise",te="counterclockwise";function ie(e,t,i,n){var r=[0,0],s=-1!==["right","left"].indexOf(n),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),o=a.indexOf(N(a,function(e){return-1!==e.search(/,|\s/)}));a[o]&&-1===a[o].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==o?[a.slice(0,o).concat([a[o].split(l)[0]]),[a[o].split(l)[1]].concat(a.slice(o+1))]:[a];return c=c.map(function(e,n){var r=(1===n?!s:s)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,i,n){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],a=r[2];if(!s)return e;if(0===a.indexOf("%")){return S("%p"===a?i:n)[t]/100*s}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s;return s}(e,r,t,i)})}),c.forEach(function(e,t){e.forEach(function(i,n){X(i)&&(r[t]+=i*("-"===e[n-1]?-1:1))})}),r}var ne={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,i=t.split("-")[0],n=t.split("-")[1];if(n){var r=e.offsets,s=r.reference,a=r.popper,o=-1!==["bottom","top"].indexOf(i),l=o?"left":"top",c=o?"width":"height",u={start:x({},l,s[l]),end:x({},l,s[l]+s[c]-a[c])};e.offsets.popper=w({},a,u[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var i=t.offset,n=e.placement,r=e.offsets,s=r.popper,a=r.reference,o=n.split("-")[0],l=void 0;return l=X(+i)?[+i,0]:ie(i,s,a,o),"left"===o?(s.top+=l[0],s.left-=l[1]):"right"===o?(s.top+=l[0],s.left+=l[1]):"top"===o?(s.left+=l[0],s.top-=l[1]):"bottom"===o&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var i=t.boundariesElement||f(e.instance.popper);e.instance.reference===i&&(i=f(i));var n=U("transform"),r=e.instance.popper.style,s=r.top,a=r.left,o=r[n];r.top="",r.left="",r[n]="";var l=L(e.instance.popper,e.instance.reference,t.padding,i,e.positionFixed);r.top=s,r.left=a,r[n]=o,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var i=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(i=Math.max(u[e],l[e])),x({},e,i)},secondary:function(e){var i="right"===e?"left":"top",n=u[i];return u[e]>l[e]&&!t.escapeWithReference&&(n=Math.min(u[i],l[e]-("right"===e?u.width:u.height))),x({},i,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=w({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,i=t.popper,n=t.reference,r=e.placement.split("-")[0],s=Math.floor,a=-1!==["top","bottom"].indexOf(r),o=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return i[o]<s(n[l])&&(e.offsets.popper[l]=s(n[l])-i[c]),i[l]>s(n[o])&&(e.offsets.popper[l]=s(n[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var i;if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],s=e.offsets,a=s.popper,l=s.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",m=O(n)[u];l[f]-m<a[h]&&(e.offsets.popper[h]-=a[h]-(l[f]-m)),l[h]+m>a[f]&&(e.offsets.popper[h]+=l[h]+m-a[f]),e.offsets.popper=S(e.offsets.popper);var g=l[h]+l[u]/2-m/2,v=o(e.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),_=g-e.offsets.popper[h]-y-b;return _=Math.max(Math.min(a[u]-m,_),0),e.arrowElement=n,e.offsets.arrow=(x(i={},h,Math.round(_)),x(i,p,""),i),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var i=L(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],r=D(n),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case J:a=[n,r];break;case ee:a=Z(n);break;case te:a=Z(n,!0);break;default:a=t.behavior}return a.forEach(function(o,l){if(n!==o||a.length===l+1)return e;n=e.placement.split("-")[0],r=D(n);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===n&&d(c.right)>d(u.left)||"right"===n&&d(c.left)<d(u.right)||"top"===n&&d(c.bottom)>d(u.top)||"bottom"===n&&d(c.top)<d(u.bottom),p=d(c.left)<d(i.left),f=d(c.right)>d(i.right),m=d(c.top)<d(i.top),g=d(c.bottom)>d(i.bottom),v="left"===n&&p||"right"===n&&f||"top"===n&&m||"bottom"===n&&g,y=-1!==["top","bottom"].indexOf(n),b=!!t.flipVariations&&(y&&"start"===s&&p||y&&"end"===s&&f||!y&&"start"===s&&m||!y&&"end"===s&&g),_=!!t.flipVariationsByContent&&(y&&"start"===s&&f||y&&"end"===s&&p||!y&&"start"===s&&g||!y&&"end"===s&&m),T=b||_;(h||v||T)&&(e.flipped=!0,(h||v)&&(n=a[l+1]),T&&(s=function(e){return"end"===e?"start":"start"===e?"end":e}(s)),e.placement=n+(s?"-"+s:""),e.offsets.popper=w({},e.offsets.popper,M(e.instance.popper,e.offsets.reference,e.placement)),e=R(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,i=t.split("-")[0],n=e.offsets,r=n.popper,s=n.reference,a=-1!==["left","right"].indexOf(i),o=-1===["top","left"].indexOf(i);return r[a?"left":"top"]=s[i]-(o?r[a?"width":"height"]:0),e.placement=D(t),e.offsets.popper=S(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,i=N(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var i=t.x,n=t.y,r=e.offsets.popper,s=N(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==s?s:t.gpuAcceleration,o=f(e.instance.popper),l=k(o),c={position:r.position},u=function(e,t){var i=e.offsets,n=i.popper,r=i.reference,s=Math.round,a=Math.floor,o=function(e){return e},l=s(r.width),c=s(n.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?u||d||l%2==c%2?s:a:o,p=t?s:o;return{left:h(l%2==1&&c%2==1&&!d&&t?n.left-1:n.left),top:p(n.top),bottom:p(n.bottom),right:h(n.right)}}(e,window.devicePixelRatio<2||!$),d="bottom"===i?"top":"bottom",h="right"===n?"left":"right",p=U("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===o.nodeName?-o.clientHeight+u.bottom:-l.he
2ight+u.bottom:u.top,m="right"===h?"HTML"===o.nodeName?-o.clientWidth+u.right:-l.width+u.right:u.left,a&&p)c[p]="translate3d("+m+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var v="bottom"===d?-1:1,y="right"===h?-1:1;c[d]=g*v,c[h]=m*y,c.willChange=d+", "+h}var b={"x-placement":e.placement};return e.attributes=w({},b,e.attributes),e.styles=w({},c,e.styles),e.arrowStyles=w({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,i;return G(e.instance.popper,e.styles),t=e.instance.popper,i=e.attributes,Object.keys(i).forEach(function(e){!1!==i[e]?t.setAttribute(e,i[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,i,n,r){var s=P(r,t,e,i.positionFixed),a=I(i.placement,s,t,e,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",a),G(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}},re={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ne},se=function(){function e(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=s(this.update.bind(this)),this.options=w({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(w({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){n.options.modifiers[t]=w({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return w({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return T(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return j.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return V.call(this)}}]),e}();se.Utils=("undefined"!=typeof window?window:i.g).PopperUtils,se.placements=K,se.Defaults=re,t.default=se},8865:function(e){e.exports=function(e,t){var i,n=null;try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]}},7842:function(e){var t,i,n,r,s;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):t;var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=i.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var c={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(c.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var u=o.path,d=u.substring(0,u.lastIndexOf("/")+1)+a.path;c.path=s.normalizePath(d)}else c.path=o.path,a.params||(c.params=o.params,a.query||(c.query=o.query));return null===c.path&&(c.path=n.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(c)},parseURL:function(e){var i=t.exec(e);return i?{scheme:i[1]||"",netLoc:i[2]||"",path:i[3]||"",params:i[4]||"",query:i[5]||"",fragment:i[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},7804:function(e,t,i){"use strict";var n=i(3448);function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=function(e){var t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:function(){return t.enabled_()},set:function(e){t.enabled_(e)}}),t},a=function(e){var t,i;function n(){var t,i=r(r(t=e.call(this)||this));return i.levels_=[],i.selectedIndex_=-1,Object.defineProperty(i,"selectedIndex",{get:function(){return i.selectedIndex_}}),Object.defineProperty(i,"length",{get:function(){return i.levels_.length}}),i||r(t)}i=e,(t=n).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var a=n.prototype;return a.addQualityLevel=function(e){var t=this.getQualityLevelById(e.id);if(t)return t;var i=this.levels_.length;return t=new s(e),""+i in this||Object.defineProperty(this,i,{get:function(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t},a.removeQualityLevel=function(e){for(var t=null,i=0,n=this.length;i<n;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t},a.getQualityLevelById=function(e){for(var t=0,i=this.length;t<i;t++){var n=this[t];if(n.id===e)return n}return null},a.dispose=function(){this.selectedIndex_=-1,this.levels_.length=0},n}(n.A.EventTarget);for(var o in a.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},a.prototype.allowedEvents_)a.prototype["on"+o]=null;var l="2.2.1",c=n.A.registerPlugin||n.A.plugin,u=function(e){return t=this,n.A.mergeOptions({}
2,e),i=t.qualityLevels,r=new a,t.on("dispose",function e(){r.dispose(),t.qualityLevels=i,t.off("dispose",e)}),t.qualityLevels=function(){return r},t.qualityLevels.VERSION=l,r;var t,i,r};c("qualityLevels",u),u.VERSION=l},0:function(e,t,i){"use strict";var n=i(3448),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=(function(){function e(e){this.value=e}function t(t){var i,n;function r(i,n){try{var a=t[i](n),o=a.value;o instanceof e?Promise.resolve(o.value).then(function(e){r("next",e)},function(e){r("throw",e)}):s(a.done?"return":"normal",a.value)}catch(e){s("throw",e)}}function s(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}(i=i.next)?r(i.key,i.arg):n=null}this._invoke=function(e,t){return new Promise(function(s,a){var o={key:e,arg:t,resolve:s,reject:a,next:null};n?n=n.next=o:(i=n=o,r(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l=n.A.getComponent("MenuButton"),c=n.A.getComponent("Menu"),u=n.A.getComponent("Component"),d=n.A.dom;var h=function(e){function t(i){return s(this,t),o(this,e.call(this,i,{title:i.localize("Quality"),name:"QualityButton"}))}return a(t,e),t.prototype.createItems=function(){return[]},t.prototype.createMenu=function(){var e,t=new c(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var i=d.createEl("li",{className:"vjs-menu-title",innerHTML:(e=this.options_.title,"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)),tabIndex:-1}),n=new u(this.player_,{el:i});this.hideThreshold_+=1,t.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)t.addItem(this.items[r]);return t},t}(l),p=function(e){function t(i,n,r,a){s(this,t);var l=o(this,e.call(this,i,{label:n.label,selectable:!0,selected:n.selected||!1}));return l.item=n,l.qualityButton=r,l.plugin=a,l}return a(t,e),t.prototype.handleClick=function(){for(var e=0;e<this.qualityButton.items.length;++e)this.qualityButton.items[e].selected(!1);this.plugin.setQuality(this.item.value),this.selected(!0)},t}(n.A.getComponent("MenuItem")),f={},m=n.A.registerPlugin||n.A.plugin,g=function(){function e(t,i){s(this,e),this.player=t,this.config=i,this.player.qualityLevels&&this.getHls()&&(this.createQualityButton(),this.bindPlayerEvents())}return e.prototype.getHls=function(){return this.player.tech({IWillNotUseThisInPlugins:!0}).hls},e.prototype.bindPlayerEvents=function(){this.player.qualityLevels().on("addqualitylevel",this.onAddQualityLevel.bind(this))},e.prototype.createQualityButton=function(){var e=this.player;this._qualityButton=new h(e);var t=e.controlBar.children().length-2,i=e.controlBar.addChild(this._qualityButton,{componentClass:"qualitySelector"},this.config.placementIndex||t);if(i.addClass("vjs-quality-selector"),this.config.displayCurrentQuality)this.setButtonInnerText("auto");else{var n=" "+(this.config.vjsIconClass||"vjs-icon-hd");i.menuButton_.$(".vjs-icon-placeholder").className+=n}i.removeClass("vjs-hidden")},e.prototype.setButtonInnerText=function(e){this._qualityButton.menuButton_.$(".vjs-icon-placeholder").innerHTML=e},e.prototype.getQualityMenuItem=function(e){var t=this.player;return new p(t,e,this._qualityButton,this)},e.prototype.onAddQualityLevel=function(){for(var e=this,t=this.player,i=t.qualityLevels().levels_||[],n=[],s=function(t){if(!n.filter(function(e){return e.item&&e.item.value===i[t].height}).length){var r=e.getQualityMenuItem.call(e,{label:i[t].height+"p",value:i[t].height});n.push(r)}},a=0;a<i.length;++a)s(a);n.sort(function(e,t){return"object"!==(void 0===e?"undefined":r(e))||"object"!==(void 0===t?"undefined":r(t))||e.item.value<t.item.value?-1:e.item.value>t.item.value?1:0}),n.push(this.getQualityMenuItem.call(this,{label:t.localize("Auto"),value:"auto",selected:!0})),this._qualityButton&&(this._qualityButton.createItems=function(){return n},this._qualityButton.update())},e.prototype.setQuality=function(e){var t=this.player.qualityLevels();this._currentQuality=e,this.config.displayCurrentQuality&&this.setButtonInnerText("auto"===e?e:e+"p");for(var i=0;i<t.length;++i){var n=t[i];n.enabled=n.height===e||"auto"===e}this._qualityButton.unpressButton()},e.prototype.getCurrentQuality=function(){return this._currentQuality||"auto"},e}(),v=function(e){var t=this;this.ready(function(){!function(e,t){e.addClass("vjs-hls-quality-selector"),e.hlsQualitySelector=new g(e,t)}(t,n.A.mergeOptions(f,e))})};m("hlsQualitySelector",v),v.VERSION="1.1.4"},4784:function(e,t,i){var n=i(9840),r=e.exports={WebVTT:i(6311),VTTCue:i(184),VTTRegion:i(5891)};n.vttjs=r,n.WebVTT=r.WebVTT;var s=r.VTTCue,a=r.VTTRegion,o=n.VTTCue,l=n.VTTRegion;r.shim=function(){n.VTTCue=s,n.VTTRegion=a},r.restore=function(){n.VTTCue=o,n.VTTRegion=l},n.VTTCue||r.shim()},6311:function(e,t,i){var n=i(9697),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();
vendor: 13,206 bytes, line 2
2function s(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function o(){this.values=r(null)}function l(e,t,i,n){var r=n?e.split(n):[e];for(var s in r)if("string"==typeof r[s]){var a=r[s].split(i);if(2===a.length)t(a[0].trim(),a[1].trim())}}function c(e,t,i){var n=e;function r(){var t=a(e);if(null===t)throw new s(s.Errors.BadTimeStamp,"Malformed timestamp: "+n);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=r(),c(),"--\x3e"!==e.substr(0,3))throw new s(s.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);e=e.substr(3),c(),t.endTime=r(),c(),function(e,t){var n=new o;l(e,function(e,t){switch(e){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===t){n.set(e,i[r].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var s=t.split(","),a=s[0];n.integer(e,a),n.percent(e,a)&&n.set("snapToLines",!1),n.alt(e,a,["auto"]),2===s.length&&n.alt("lineAlign",s[1],["start","center","end"]);break;case"position":s=t.split(","),n.percent(e,s[0]),2===s.length&&n.alt("positionAlign",s[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(e){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}s.prototype=r(Error.prototype),s.prototype.constructor=s,s.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=n.createElement&&n.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function i(){if(!t)return null;var e,i=t.match(/^([^<]*)(<[^>]*>?)?/);return e=i[1]?i[1]:i[2],t=t.substr(e.length),e}function n(e){return u.innerHTML=e,e=u.textContent,u.textContent="",e}function r(e,t){return!f[t.localName]||f[t.localName]===e.localName}function s(t,i){var n=d[t];if(!n)return null;var r=e.document.createElement(n),s=p[t];return s&&i&&(r[s]=i.trim()),r}for(var o,l=e.document.createElement("div"),c=l,m=[];null!==(o=i());)if("<"!==o[0])c.appendChild(e.document.createTextNode(n(o)));else{if("/"===o[1]){m.length&&m[m.length-1]===o.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=a(o.substr(1,o.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=s(y[1],y[3])))continue;if(!r(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach(function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(h.hasOwnProperty(i)){var n=t?"background-color":"color",r=h[i];g.style[n]=r}}),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(e){for(var t=0;t<g.length;t++){var i=g[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function y(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function n(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function r(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var s=i.match(/^.*(\n|\r)/);return s?(e.length=0,s[0]):i}return"ruby"===t.tagName?r(e):t.childNodes?(n(e,t),r(e)):void 0}for(n(t,e);i=r(t);)for(var s=0;s<i.length;s++)if(v(i.charCodeAt(s)))return"rtl";return"ltr"}function b(){}function _(e,t,i){b.call(this),this.cue=t,this.cueDiv=m(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:y(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function T(e){var t,i,n,r;if(e.div){i=e.div.offsetHeight,n=e.div.offsetWidth,r=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||n,this.lineHeight=void 0!==t?t:e.lineHeight}function x(e,t,i,n){var r=new T(t),s=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}(s),o=[];if(s.snapToLines){var l;switch(s.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var c=r.lineHeight,u=c*Math.round(a),d=i[l]+c,h=o[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),a<0&&(u+=""===s.vertical?i.height:i.width,o=o.reverse()),r.move(h,u)}else{var p=r.lineHeight/i.height*100;switch(s.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}o=["+y","-x","+x","-y"],r=new T(t)}var f=function(e,t){for(var r,s=new T(e),a=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(n);)e.move(t[o]);if(e.within(i))return e;var l=e.intersectPercentage(i);a>l&&(r=new T(e),a=l),e=new T(s)}return r||s}(r,o);t.move(f.toCSSCompatValues(i))}function w(){}b.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=r(b.prototype),_.prototype.constructor=_,T.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},T.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},T.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},T.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},T.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},T.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},T.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},T.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},w.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},w.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};w.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],s=T.getSimpleBoxPosition(n),a={font:Math.round(.05*s.height*100)/100+"px sans-serif"};!function(){for(var i,o,l=0;l<t.length;l++)o=t[l],i=new _(e,o,a),n.appendChild(i.div),x(0,i,s,r),o.displayState=i.div,r.push(T.getSimpleBoxPosition(i))}()}else for(var o=0;o<t.length;o++)n.appendChild(t[o].displayState)},w.Parser=function(e,t,i){i||(i=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof s))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function i(){for(var e=t.buffer,i=0;i<e.length&&"\r"!==e[i]&&"\n"!==e[i];)++i;var n=e.substr(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.substr(i),n}function n(e){e.match(/X-TIMESTAMP-MAP/)?l(e,function(e,i){if("X-TIMESTAMP-MAP"===e)!function(e){var i=new o;l(e,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",a(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}(i)},/=/):l(e,function(e,i){if("Region"===e)!function(e){var i=new o;if(l(e,function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var n=t.split(",");if(2!==n.length)break;var r=new o;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;i.set(e+"X",r.get("x")),i.set(e+"Y",r.get("y"));break;case"scroll":i.alt(e,t,["up"])}}
vendor: 2,370 bytes, line 2
2,/=/,/\s/),i.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion);n.width=i.get("width",100),n.lines=i.get("lines",3),n.regionAnchorX=i.get("regionanchorX",0),n.regionAnchorY=i.get("regionanchorY",100),n.viewportAnchorX=i.get("viewportanchorX",0),n.viewportAnchorY=i.get("viewportanchorY",100),n.scroll=i.get("scroll",""),t.onregion&&t.onregion(n),t.regionList.push({id:i.get("id"),region:n})}}(i)},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(r=i()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new s(s.Errors.BadSignature);t.state="HEADER"}for(var d=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(d?d=!1:r=i(),t.state){case"HEADER":/:/.test(r)?n(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===r.indexOf("--\x3e")){t.cue.id=r;continue}case"CUE":try{c(r,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==r.indexOf("--\x3e");if(!r||h&&(d=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new s(s.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=w},184:function(e){var t={"":1,lr:1,rl:1},i={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}function r(e,i,r){this.hasBeenReset=!1;var s="",a=!1,o=e,l=i,c=r,u=null,d="",h=!0,p="auto",f="start",m="auto",g="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(e){s=""+e}},pauseOnExit:{enumerable:!0,get:function(){return a}
vendor: 3,076 bytes, line 2
2,set:function(e){a=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){var i=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===i)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=i,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=n(e);t?(f=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=n(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=n(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=r},5891:function(e){var t={"":!0,up:!0};function i(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,n=3,r=0,s=100,a=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return n},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");n=e}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!i(e))throw new Error("RegionAnchorX must be between 0 and 100.");s=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!i(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!i(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return a}
vendor: 4,664 bytes, line 2
2,set:function(e){if(!i(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var i=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);!1===i?console.warn("Scroll: an invalid or illegal string was specified."):l=i}}})}},9406:function(){!function(){"use strict";function e(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=e.Adapter.extend({},e.defaults,n),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,t+=1}var t=0,i={};e.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},e.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(e){var t=[];for(var n in i)t.push(i[n]);for(var r=0,s=t.length;s>r;r++)t[r][e]()},e.destroyAll=function(){e.invokeAll("destroy")},e.disableAll=function(){e.invokeAll("disable")},e.enableAll=function(){for(var t in e.Context.refreshAll(),i)i[t].enabled=!0;return this},e.refreshAll=function(){e.Context.refreshAll()},e.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},e.viewportWidth=function(){return document.documentElement.clientWidth},e.adapters=[],e.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},e.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=e}(),function(){"use strict";function e(e){window.setTimeout(e,1e3/60)}function t(e){this.element=e,this.Adapter=r.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,n[e.waypointContextKey]=this,i+=1,r.windowContext||(r.windowContext=!0,r.windowContext=new t(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},r=window.Waypoint,s=window.onload;t.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},t.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;e&&t&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},t.prototype.createThrottledResizeHandler=function(){function e(){t.handleResize(),t.didResize=!1}var t=this;this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,r.requestAnimationFrame(e))})},t.prototype.createThrottledScrollHandler=function(){function e(){t.handleScroll(),t.didScroll=!1}var t=this;this.adapter.on("scroll.waypoints",function(){(!t.didScroll||r.isTouch)&&(t.didScroll=!0,r.requestAnimationFrame(e))})},t.prototype.handleResize=function(){r.Context.refreshAll()},t.prototype.handleScroll=function(){var e={},t={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in t){var n=t[i],r=n.newScroll>n.oldScroll?n.forward:n.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s];if(null!==a.triggerPoint){var o=n.oldScroll<a.triggerPoint,l=n.newScroll>=a.triggerPoint;(o&&l||!o&&!l)&&(a.queueTrigger(r),e[a.group.id]=a.group)}}}for(var c in e)e[c].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}}
vendor: 5,836 bytes, line 2
2,t.prototype.innerHeight=function(){return this.element==this.element.window?r.viewportHeight():this.adapter.innerHeight()},t.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},t.prototype.innerWidth=function(){return this.element==this.element.window?r.viewportWidth():this.adapter.innerWidth()},t.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var n=0,r=e.length;r>n;n++)e[n].destroy()},t.prototype.refresh=function(){var e,t=this.element==this.element.window,i=t?void 0:this.adapter.offset(),n={};for(var s in this.handleScroll(),e={horizontal:{contextOffset:t?0:i.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:i.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a=e[s];for(var o in this.waypoints[s]){var l,c,u,d,h=this.waypoints[s][o],p=h.options.offset,f=h.triggerPoint,m=0,g=null==f;h.element!==h.element.window&&(m=h.adapter.offset()[a.offsetProp]),"function"==typeof p?p=p.apply(h):"string"==typeof p&&(p=parseFloat(p),h.options.offset.indexOf("%")>-1&&(p=Math.ceil(a.contextDimension*p/100))),l=a.contextScroll-a.contextOffset,h.triggerPoint=Math.floor(m+l-p),c=f<a.oldScroll,u=h.triggerPoint>=a.oldScroll,d=!c&&!u,!g&&(c&&u)?(h.queueTrigger(a.backward),n[h.group.id]=h.group):(!g&&d||g&&a.oldScroll>=h.triggerPoint)&&(h.queueTrigger(a.forward),n[h.group.id]=h.group)}}return r.requestAnimationFrame(function(){for(var e in n)n[e].flushTriggers()}),this},t.findOrCreateByElement=function(e){return t.findByElement(e)||new t(e)},t.refreshAll=function(){for(var e in n)n[e].refresh()},t.findByElement=function(e){return n[e.waypointContextKey]},window.onload=function(){s&&s(),t.refreshAll()},r.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},r.Context=t}(),function(){"use strict";function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}function i(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},r=window.Waypoint;i.prototype.add=function(e){this.waypoints.push(e)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],r="up"===i||"left"===i;n.sort(r?t:e);for(var s=0,a=n.length;a>s;s+=1){var o=n[s];(o.options.continuous||s===n.length-1)&&o.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(t){this.waypoints.sort(e);var i=r.Adapter.inArray(t,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(t){this.waypoints.sort(e);var i=r.Adapter.inArray(t,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},i.prototype.remove=function(e){var t=r.Adapter.inArray(e,this.waypoints);t>-1&&this.waypoints.splice(t,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(e){return n[e.axis][e.name]||new i(e)},r.Group=i}(),function(){"use strict";function e(e){return e===e.window}function t(t){return e(t)?t:t.defaultView}function i(e){this.element=e,this.handlers={}}var n=window.Waypoint;i.prototype.innerHeight=function(){return e(this.element)?this.element.innerHeight:this.element.clientHeight},i.prototype.innerWidth=function(){return e(this.element)?this.element.innerWidth:this.element.clientWidth},i.prototype.off=function(e,t){function i(e,t,i){for(var n=0,r=t.length-1;r>n;n++){var s=t[n];i&&i!==s||e.removeEventListener(s)}}var n=e.split("."),r=n[0],s=n[1],a=this.element;if(s&&this.handlers[s]&&r)i(a,this.handlers[s][r],t),this.handlers[s][r]=[];else if(r)for(var o in this.handlers)i(a,this.handlers[o][r]||[],t),this.handlers[o][r]=[];else if(s&&this.handlers[s]){for(var l in this.handlers[s])i(a,this.handlers[s][l],t);this.handlers[s]={}}},i.prototype.offset=function(){if(!this.element.ownerDocument)return null;var e=this.element.ownerDocument.documentElement,i=t(this.element.ownerDocument),n={top:0,left:0};return this.element.getBoundingClientRect&&(n=this.element.getBoundingClientRect()),{top:n.top+i.pageYOffset-e.clientTop,left:n.left+i.pageXOffset-e.clientLeft}},i.prototype.on=function(e,t){var i=e.split("."),n=i[0],r=i[1]||"__default",s=this.handlers[r]=this.handlers[r]||{};(s[n]=s[n]||[]).push(t),this.element.addEventListener(n,t)},i.prototype.outerHeight=function(t){var i,n=this.innerHeight();return t&&!e(this.element)&&(i=window.getComputedStyle(this.element),n+=parseInt(i.marginTop,10),n+=parseInt(i.marginBottom,10)),n},i.prototype.outerWidth=function(t){var i,n=this.innerWidth();return t&&!e(this.element)&&(i=window.getComputedStyle(this.element),n+=parseInt(i.marginLeft,10),n+=parseInt(i.marginRight,10)),n},i.prototype.scrollLeft=function(){var e=t(this.element);return e?e.pageXOffset:this.element.scrollLeft},i.prototype.scrollTop=function(){var e=t(this.element);return e?e.pageYOffset:this.element.scrollTop},i.extend=function(){function e(e,t){if("object"==typeof e&&"object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}for(var t=Array.prototype.slice.call(arguments),i=1,n=t.length;n>i;i++)e(t[0],t[i]);return t[0]},i.inArray=function(e,t,i){return null==t?-1:t.indexOf(e,i)},i.isEmptyObject=function(e){for(var t in e)return!1;return!0}
vendor: 2,379 bytes, line 2
2,n.adapters.push({name:"noframework",Adapter:i}),n.Adapter=i}()},3448:function(e,t,i){"use strict";i.d(t,{A:function(){return bu}});var n=i.cw(function(e,t){var n=h(),r=f(),s=p();l.httpHandler=i(7495);var a=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var i=e.indexOf(":"),n=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();void 0===t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]}),t):t};function o(e,t,i){var n=e;return s(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=r({},t,{uri:e}),n.callback=i,n}function l(e,t,i){return c(t=o(e,t,i))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,i=function(i,n,r){t||(t=!0,e.callback(i,n,r))};function n(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),v)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,i(e,y)}function s(){if(!c){var t;clearTimeout(d),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var r=y,s=null;return 0!==t?(r={body:n(),statusCode:t,method:p,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(r.headers=a(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),i(s,r,r.body)}}var o,c,u=e.xhr||null;u||(u=e.cors||e.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var d,h=u.url=e.uri||e.url,p=u.method=e.method||"GET",f=e.body||e.data,m=u.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(s,0)},u.onload=s,u.onerror=r,u.onprogress=function(){},u.onabort=function(){c=!0},u.ontimeout=r,u.open(p,h,!g,e.username,e.password),g||(u.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(d=setTimeout(function(){if(!c){c=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}}
2,e.timeout)),u.setRequestHeader)for(o in m)m.hasOwnProperty(o)&&u.setRequestHeader(o,m[o]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(f||null),u}e.exports=l,e.exports.default=l,l.XMLHttpRequest=n.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:n.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){l["delete"===e?"del":e]=function(t,i,n){return(i=o(t,i,n)).method=e.toUpperCase(),c(i)}})}),r=i.cw(function(e,t){function i(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.getOwnPropertyDescriptors&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&"function"==typeof t.freeze?t.freeze(e):e}function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var r=i({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});var s=i({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});var a=i({script:!1,style:!1,textarea:!0,title:!0});function o(e){return e===l.HTML}var l=i({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),c=Object.keys(l).map(function(e){return l[e]});var u=i({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var i in t)n(t,i)&&(e[i]=t[i]);return e},t.find=function(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"==typeof i.find)return i.find.call(e,t);for(var r=0;r<e.length;r++)if(n(e,r)){var s=e[r];if(t.call(void 0,s,r,e))return s}},t.freeze=i,t.HTML_BOOLEAN_ATTRIBUTES=r,t.HTML_RAW_TEXT_ELEMENTS=a,t.HTML_VOID_ELEMENTS=s,t.hasDefaultHTMLNamespace=function(e){return o(e)||e===l.XML_XHTML_APPLICATION},t.hasOwn=n,t.isHTMLBooleanAttribute=function(e){return n(r,e.toLowerCase())},t.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return n(a,t)&&!a[t]},t.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return n(a,t)&&a[t]},t.isHTMLMimeType=o,t.isHTMLVoidElement=function(e){return n(s,e.toLowerCase())},t.isValidMimeType=function(e){return c.indexOf(e)>-1},t.MIME_TYPE=l,t.NAMESPACE=u}),s=i.cw(function(e,t){var i=r(),n=a(),s=l(),c=o(),u=d(),h=n.DOMImplementation,p=i.hasDefaultHTMLNamespace,f=i.isHTMLMimeType,m=i.isValidMimeType,g=i.MIME_TYPE,v=i.NAMESPACE,y=s.ParseError,b=u.XMLReader;function _(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function T(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||i.assign,this.domHandler=e.domHandler||x,this.onError=e.onError||e.errorHandler,e.errorHandler&&"function"!=typeof e.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");e.errorHandler&&e.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||_,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function x(e){var t=e||{};this.mimeType=t.mimeType||g.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function w(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function S(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function k(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}T.prototype.parseFromString=function(e,t){if(!m(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not val
2id.');var n=this.assign(Object.create(null),this.xmlns),r=c.XML_ENTITIES,s=n[""]||null;p(t)?(r=c.HTML_ENTITIES,s=v.HTML):t===g.XML_SVG_IMAGE&&(s=v.SVG),n[""]=s,n.xml=n.xml||v.XML;var a=new this.domHandler({mimeType:t,defaultNamespace:s,onError:this.onError}),o=this.locator?{}:void 0;this.locator&&a.setDocumentLocator(o);var l=new b;return l.errorHandler=a,l.domBuilder=a,!i.isHTMLMimeType(t)&&"string"!=typeof e&&l.errorHandler.fatalError("source is not a string"),l.parse(this.normalizeLineEndings(String(e)),n,r),a.doc.documentElement||l.errorHandler.fatalError("missing root element"),a.doc},x.prototype={startDocument:function(){var e=new h;this.doc=f(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,i,n){var r=this.doc,s=r.createElementNS(e,i||t),a=n.length;k(this,s),this.currentElement=s,this.locator&&w(this.locator,s);for(var o=0;o<a;o++){e=n.getURI(o);var l=n.getValue(o),c=(i=n.getQName(o),r.createAttributeNS(e,i));this.locator&&w(n.getLocator(o),c),c.value=c.nodeValue=l,s.setAttributeNode(c)}},endElement:function(e,t,i){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&w(this.locator,i),k(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=S.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&w(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,i){e=S.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&w(this.locator,n),k(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var s=r.createDocumentType(e,t,i,n);this.locator&&w(this.locator,s),k(this,s),this.doc.doctype=s}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(i){throw new y("Reporting "+e+' "'+t+'" caused '+i,this.locator)}else console.error("[xmldom "+e+"]\t"+t,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e,t){throw this.reportError("fatalError",e),new y(e,this.locator,t)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){x.prototype[e]=function(){return null}}),t.__DOMHandler=x,t.DOMParser=T,t.normalizeLineEndings=_,t.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},t.onWarningStopParsing=function(){throw"onWarningStopParsing"}}),a=i.cw(function(e,t){var i=r(),n=i.find,s=i.hasDefaultHTMLNamespace,a=i.hasOwn,o=i.isHTMLMimeType,u=i.isHTMLRawTextElement,d=i.isHTMLVoidElement,h=i.MIME_TYPE,p=i.NAMESPACE,f=Symbol(),m=l(),g=m.DOMException,v=m.DOMExceptionName,y=c();function b(e){if(e!==f)throw new TypeError("Illegal constructor")}function _(e){return""!==e}function T(e,t){return a(e,t)||(e[t]=!0),e}function x(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(_):[]}(e);return Object.keys(t.reduce(T,{}))}function w(e){if(!y.QName_exact.test(e))throw new g(g.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function S(e,t){w(t),e=e||null;var n=null,r=t;if(t.indexOf(":")>=0){var s=t.split(":");n=s[0],r=s[1]}if(null!==n&&null===e)throw new g(g.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&e!==i.NAMESPACE.XML)throw new g(g.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===t)&&e!==i.NAMESPACE.XMLNS)throw new g(g.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===i.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==t)throw new g(g.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,n,r]}function k(e,t){for(var i in e)a(e,i)&&(t[i]=e[i])}function E(e,t){var i=e.prototype;if(!(i instanceof t)){function n(){}n.prototype=t.prototype,k(i,n=new n),e.prototype=i=n}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.c
vendor: 26,643 bytes, line 2
2onstructor=e)}var C={},A=C.ELEMENT_NODE=1,L=C.ATTRIBUTE_NODE=2,I=C.TEXT_NODE=3,P=C.CDATA_SECTION_NODE=4,O=C.ENTITY_REFERENCE_NODE=5,D=C.ENTITY_NODE=6,M=C.PROCESSING_INSTRUCTION_NODE=7,N=C.COMMENT_NODE=8,R=C.DOCUMENT_NODE=9,B=C.DOCUMENT_TYPE_NODE=10,F=C.DOCUMENT_FRAGMENT_NODE=11,U=C.NOTATION_NODE=12,j=i.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function H(e,t){if(t.length<e.length)return H(t,e);var i=null;for(var n in e){if(e[n]!==t[n])return i;i=e[n]}return i}function q(e){return e.guid||(e.guid=Math.random()),e.guid}function z(){}function W(e,t){this._node=e,this._refresh=t,V(this)}function V(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(De(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var n=i.length;n in e;n++)a(e,n)&&delete e[n];k(i,e),e._inc=t}}function X(){this._nsIndex=Object.create(null),this._noNsIndex=Object.create(null)}function G(e,t){for(var i=0;i<e.length;){if(e[i]===t)return i;i++}}function $(e,t,i){if(!t)return e._noNsIndex;var n=e._nsIndex[t];return!n&&i&&(n=e._nsIndex[t]=Object.create(null)),n}function Y(e,t,i,n){var r;if(n?t[G(t,n)]=i:(t[t.length]=i,t.length++),$(t,(r=i).namespaceURI,!0)[r.localName]=r,e){i.ownerElement=e;var s=e.ownerDocument;s&&(n&&ne(s,e,n),function(e,t,i){e&&e._inc++;var n=i.namespaceURI;n===p.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}(s,e,i))}}function K(e,t,i){var n=G(t,i);if(n>=0){for(var r=t.length-1;n<=r;)t[n]=t[++n];if(t.length=r,function(e,t){var i=$(e,t.namespaceURI,!1);i&&delete i[t.localName]}(t,i),e){var s=e.ownerDocument;s&&ne(s,e,i),i.ownerElement=null}}}function Q(){}function Z(e){b(e)}function J(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function ee(e,t){te(e,null,{enter:function(e){return!t(e)||te.STOP}})}function te(e,t,i){for(var n=[{node:e,context:t,phase:te.ENTER}];n.length>0;){var r=n.pop();if(r.phase===te.ENTER){var s=i.enter(r.node,r.context);if(s===te.STOP)return te.STOP;if(n.push({node:r.node,context:s,phase:te.EXIT}),null==s)continue;for(var a=r.node.lastChild;a;)n.push({node:a,context:s,phase:te.ENTER}),a=a.previousSibling}else i.exit&&i.exit(r.node,r.context)}}function ie(e,t){b(e);var i=t||{};this.ownerDocument=this,this.contentType=i.contentType||h.XML_APPLICATION,this.type=o(this.contentType)?"html":"xml"}function ne(e,t,i,n){e&&e._inc++,i.namespaceURI===p.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function re(e,t,i){if(e&&e._inc){e._inc++;var n=t.childNodes;if(i&&!i.nextSibling)n[n.length++]=i;else{for(var r=t.firstChild,s=0;r;)n[s++]=r,r=r.nextSibling;n.length=s,delete n[n.length]}}}function se(e,t){if(e!==t.parentNode)throw new g(g.NOT_FOUND_ERR,"child's parent is not parent");var i=t.previousSibling,n=t.nextSibling;return i?i.nextSibling=n:e.firstChild=n,n?n.previousSibling=i:e.lastChild=i,re(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function ae(e){return e&&e.nodeType===Z.DOCUMENT_TYPE_NODE}function oe(e){return e&&e.nodeType===Z.ELEMENT_NODE}function le(e){return e&&e.nodeType===Z.TEXT_NODE}function ce(e,t){var i=e.childNodes||[];if(n(i,oe)||ae(t))return!1;var r=n(i,ae);return!(t&&r&&i.indexOf(r)>i.indexOf(t))}function ue(e,t){var i=e.childNodes||[];if(n(i,function(e){return oe(e)&&e!==t}))return!1;var r=n(i,ae);return!(t&&r&&i.indexOf(r)>i.indexOf(t))}function de(e,t,i){if(!function(e){return e&&(e.nodeType===Z.DOCUMENT_NODE||e.nodeType===Z.DOCUMENT_FRAGMENT_NODE||e.nodeType===Z.ELEMENT_NODE)}(e))throw new g(g.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new g(g.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===Z.CDATA_SECTION_NODE||e.nodeType===Z.COMMENT_NODE||e.nodeType===Z.DOCUMENT_FRAGMENT_NODE||e.nodeType===Z.DOCUMENT_TYPE_NODE||e.nodeType===Z.ELEMENT_NODE||e.nodeType===Z.PROCESSING_INSTRUCTION_NODE||e.nodeType===Z.TEXT_NODE)}(t)||ae(t)&&e.nodeType!==Z.DOCUMENT_NODE)throw new g(g.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function he(e,t,i){var r=e.childNodes||[],s=t.childNodes||[];if(t.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var a=s.filter(oe);if(a.length>1||n(s,le))throw new g(g.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===a.length&&!ce(e,i))throw new g(g.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(oe(t)&&!ce(e,i))throw new g(g.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ae(t)){if(n(r,ae))throw new g(g.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var o=n(r,oe);if(i&&r.indexOf(o)<r.indexOf(i))throw new g(g.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!i&&o)throw new g(g.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function pe(e,t,i){var r=e.childNodes||[],s=t.childNodes||[];if(t.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var a=s.filter(oe);if(a.length>1||n(s,le))throw new g(g.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===a.length&&!ue(e,i))throw new g(g.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(oe(t)&&!ue(e,i))throw new g(g.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ae(t)){function l(e){return ae(e)&&e!==i}if(n(r,l))throw new g(g.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var o=n(r,oe);if(i&&r.indexOf(o)<r.indexOf(i))throw new g(g.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function fe(e,t,i,n){de(e,t,i),e.nodeType===Z.DOCUMENT_NODE&&(n||he)(e,t,i);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===F){var s=t.firstChild;if(null==s)return t;var a=t.lastChild}else s=a=t;var o=i?i.previousSibling:e.lastChild;s.previousSibling=o,a.nextSibling=i,o?o.nextSibling=s:e.firstChild=s,null==i?e.lastChild=a:i.previousSibling=a;do{s.parentNode=e}while(s!==a&&(s=s.nextSibling));return re(e.ownerDocument||e,e,t),t.nodeType==F&&(t.firstChild=t.lastChild=null),t}function me(e){b(e),this._nsMap=Object.create(null)}function ge(e){b(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function ve(e){b(e)}function ye(e){b(e)}function be(e){b(e)}function _e(e){b(e)}function Te(e){b(e)}function xe(e){b(e)}function we(e){b(e)}function Se(e){b(e)}function ke(e){b(e)}function Ee(e){b(e)}function Ce(){}function Ae(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:null!=e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var i=[],n=this.nodeType===R&&this.documentElement||this,r=n.prefix,s=n.namespaceURI;if(s&&null==r&&null==(r=n.lookupPrefix(s)))var a=[{namespace:s,prefix:null}];return Pe(this,i,a,t),i.join("")}function Le(e,t,i){var n=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===n&&r===p.XML||r===p.XMLNS)return!1;for(var s=i.length;s--;){var a=i[s];if(a.prefix===n)return a.namespace!==r}return!0}function Ie(e,t,i,n){if(n&&!y.QName_exact.test(t))throw new g('The attribute name "'+t+'" is not a valid XML QName',v.InvalidStateError);e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,J),'"')}function Pe(e,t,i,n){i||(i=[]);var r=n.nodeFilter,s=n.requireWellFormed,a=n.splitCDATASections,o="html"===(e.nodeType===R?e:e.ownerDocument).type;te(e,{ns:i},{enter:function(e,i){var l=i.ns;if(r){if(!(e=r(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case A:var c=e.attributes,h=c.length,f=e.tagName,m=f;if(!o&&!e.prefix&&e.namespaceURI){for(var b,_=0;_<c.length;_++)if("xmlns"===c.item(_).name){b=c.item(_).value;break}if(!b)for(var T=l.length-1;T>=0;T--){if(""===(x=l[T]).prefix&&x.namespace===e.namespaceURI){b=x.namespace;break}}if(b!==e.namespaceURI)for(T=l.length-1;T>=0;T--){var x;if((x=l[T]).namespace===e.namespaceURI){x.prefix&&(m=x.prefix+":"+f);break}}}if(s&&!y.QName_exact.test(m))throw new g('The element name "'+m+'" is not a valid XML QName',v.InvalidStateError);t.push("<",m);for(var w=l.slice(),S=0;S<h;S++){"xmlns"==(k=c.item(S)).prefix?w.push({prefix:k.localName,namespace:k.value}):"xmlns"==k.nodeName&&w.push({prefix:"",namespace:k.value})}for(S=0;S<h;S++){var k;if(Le(k=c.item(S),0,w)){var E=k.prefix||"",C=k.namespaceURI;Ie(t,E?"xmlns:"+E:"xmlns",C,s),w.push({prefix:E,namespace:C})}var D=r?r(k):k;D&&("string"==typeof D?t.push(D):Ie(t,D.name,D.value,s))}if(f===m&&Le(e,0,w)){var U=e.prefix||"";C=e.namespaceURI;Ie(t,U?"xmlns:"+U:"xmlns",C,s),w.push({prefix:U,namespace:C})}var j=!e.firstChild;if(j&&(o||e.namespaceURI===p.HTML)&&(j=d(f)),j)return t.push("/>"),null;if(t.push(">"),o&&u(f)){for(var H=e.firstChild;H;)H.data?t.push(H.data):Pe(H,t,w.slice(),n),H=H.nextSibling;return t.push("</",m,">"),null}return{ns:w,tag:m};case R:case F:if(s&&e.nodeType===R&&null==e.documentElement)throw new g("The Document has no documentElement",v.InvalidStateError);return{ns:l};case L:return Ie(t,e.name,e.value,s),null;case I:if(s&&y.InvalidChar.test(e.data))throw new g("The Text node data contains characters outside the XML Char production",v.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,J)),null;case P:if(s&&-1!==e.data.indexOf("]]>"))throw new g('The CDATASection data contains "]]>"',v.InvalidStateError);return a?t.push(y.CDATA_START,e.data.replace(/]]>/g,"]]]]><![CDATA[>"),y.CDATA_END):t.push(y.CDATA_START,e.data,y.CDATA_END),null;case N:if(s){if(y.InvalidChar.test(e.data))throw new g("The comment node data contains characters outside the XML Char production",v.InvalidStateError);if(-1!==e.data.indexOf("--")||"-"===e.data[e.data.length-1])throw new g('The comment node data contains "--" or ends with "-"',v.InvalidStateError)}return t.push(y.COMMENT_START,e.data,y.COMMENT_END),null;case B:var q=e.publicId,z=e.systemId;if(s){if(!y.Name_exact.test(e.name))throw new g('The doctype name "'+e.name+'" is not a valid XML Name',v.InvalidStateError);if(q&&!y.PubidLiteral_match.test(q))throw new g("DocumentType publicId is not a valid PubidLiteral",v.InvalidStateError);if(z&&"."!==z&&!y.SystemLiteral_match.test(z))throw new g("DocumentType systemId is not a valid SystemLiteral",v.InvalidStateError);if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new g('DocumentType internalSubset contains "]>"',v.InvalidStateError)}return t.push(y.DOCTYPE_DECL_START," ",e.name),q?(t.push(" ",y.PUBLIC," ",q),z&&"."!==z&&t.push(" ",z)):z&&"."!==z&&t.push(" ",y.SYSTEM," ",z),e.internalSubset&&t.push(" [",e.internalSubset,"]"),t.push(">"),null;case M:if(s){if(!y.NCName_exact.test(e.target)||"xml"===e.target.toLowerCase())throw new g('The processing instruction target "'+e.target+'" is not a valid XML NCName or is reserved',v.InvalidStateError);if(y.InvalidChar.test(e.data))throw new g("The ProcessingInstruction data contains characters outside the XML Char production",v.InvalidStateError);if(-1!==e.data.indexOf("?>"))throw new g('The ProcessingInstruction data contains "?>"',v.InvalidStateError)}return t.push("<?",e.target," ",e.data,"?>"),null;case O:if(s&&!y.Name_exact.test(e.nodeName))throw new g('The entity reference name "'+e.nodeName+'" is not a valid XML Name',v.InvalidStateError);return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,i){i&&i.tag&&t.push("</",i.tag,">")}})}function Oe(e,t,i){var n;return te(t,null,{enter:function(t,r){var s=new t.constructor(f);for(var o in t)if(a(t,o)){var l=t[o];"object"!=typeof l&&l!=s[o]&&(s[o]=l)}t.childNodes&&(s.childNodes=new z),s.ownerDocument=e;var c=i;switch(s.nodeType){case A:var u=t.attributes,d=s.attributes=new X,h=u.length;d._ownerElement=s;for(var p=0;p<h;p++)s.setAttributeNode(Oe(e,u.item(p),!0));break;case L:c=!0}return null!==r?r.appendChild(s):n=s,c?s:null}}),n}function De(e,t,i){e[t]=i}function Me(e){for(var t=[],i=e.firstChild;i;)i.nodeType===A&&t.push(i),i=i.nextSibling;return t}z.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var i=[],n=0;n<this.length;n++)Pe(this[n],i,null,t);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},z.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},W.prototype.item=function(e){return V(this),this[e]||null},E(W,z),X.prototype={length:0,item:z.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var i=this[t];if(i.nodeName===e)return i;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new g(g.INUSE_ATTRIBUTE_ERR);var i,n,r,s,a=(i=this,n=e.namespaceURI,r=e.localName,(s=$(i,n,!1))&&s[r]||null);return a===e?e:(Y(this._ownerElement,this,e,a),a)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new g(g.NOT_FOUND_ERR,e);return K(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);if(!i)throw new g(g.NOT_FOUND_ERR,e?e+" : "+t:t);return K(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){e||(e=null);for(var i=0;i<this.length;){var n=this[i];if(n.localName===t&&n.namespaceURI===e)return n;i++}return null}},X.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},Q.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var n=h.XML_APPLICATION;e===p.HTML?n=h.XML_XHTML_APPLICATION:e===p.SVG&&(n=h.XML_SVG_IMAGE);var r=new ie(f,{contentType:n});if(r.implementation=this,r.childNodes=new z,r.doctype=i||null,i&&r.appendChild(i),t){var s=r.createElementNS(e,t);r.appendChild(s)}return r},createDocumentType:function(e,t,i,n){w(e);var r=new Te(f);return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=i||"",r.internalSubset=n||"",r.childNodes=new z,r},createHTMLDocument:function(e){var t=new ie(f,{contentType:h.HTML});if(t.implementation=this,t.childNodes=new z,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var i=t.createElement("html");t.appendChild(i);var n=t.createElement("head");if(i.appendChild(n),"string"==typeof e){var r=t.createElement("title");r.appendChild(t.createTextNode(e)),n.appendChild(r)}i.appendChild(t.createElement("body"))}return t}},Z.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=t.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;for(var t=[{node:this,other:e}];t.length>0;){var i=t.pop(),n=i.node,r=i.other;if(n.nodeType!==r.nodeType)return!1;switch(n.nodeType){case n.DOCUMENT_TYPE_NODE:if(n.name!==r.name)return!1;if(n.publicId!==r.publicId)return!1;if(n.systemId!==r.systemId)return!1;break;case n.ELEMENT_NODE:if(n.namespaceURI!==r.namespaceURI)return!1;if(n.prefix!==r.prefix)return!1;if(n.localName!==r.localName)return!1;if(n.attributes.length!==r.attributes.length)return!1;for(var s=0;s<n.attributes.length;s++){var a=n.attributes.item(s),o=r.getAttributeNodeNS(a.namespaceURI,a.localName);if(!o)return!1;t.push({node:a,other:o})}break;case n.ATTRIBUTE_NODE:if(n.namespaceURI!==r.namespaceURI)return!1;if(n.localName!==r.localName)return!1;if(n.value!==r.value)return!1;break;case n.PROCESSING_INSTRUCTION_NODE:if(n.target!==r.target||n.data!==r.data)return!1;break;case n.TEXT_NODE:case n.CDATA_SECTION_NODE:case n.COMMENT_NODE:if(n.data!==r.data)return!1}if(n.childNodes.length!==r.childNodes.length)return!1;for(s=n.childNodes.length-1;s>=0;s--)t.push({node:n.childNodes[s],other:r.childNodes[s]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return fe(this,e,t)},replaceChild:function(e,t){fe(this,e,t,pe),t&&this.removeChild(t)},removeChild:function(e){return se(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Oe(this.ownerDocument||this,this,e)},normalize:function(){te(this,null,{enter:function(e){for(var t=e.firstChild;t;){var i=t.nextSibling;if(null!==i&&i.nodeType===I&&t.nodeType===I){for(var n=[],r=i;null!==r&&r.nodeType===I;)n.push(r.data),r=r.nextSibling;for(var s=t.nextSibling;s!==r;){var a=s.nextSibling;s.parentNode=null,s.previousSibling=null,s.nextSibling=null,s=a}t.nextSibling=r,null!==r?r.previousSibling=t:e.lastChild=t,t.appendData(n.join("")),re(e.ownerDocument,e),t=r}else t=i}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i)for(var n in i)if(a(i,n)&&i[n]===e)return n;t=t.nodeType==L?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&a(i,e))return i[e];t=t.nodeType==L?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,i=this,n=null,r=null;if(t instanceof ge&&(t=(n=t).ownerElement),i instanceof ge&&(i=(r=i).ownerElement,n&&t&&i===t))for(var s,a=0;s=i.attributes[a];a++){if(s===n)return j.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+j.DOCUMENT_POSITION_PRECEDING;if(s===r)return j.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+j.DOCUMENT_POSITION_FOLLOWING}if(!t||!i||i.ownerDocument!==t.ownerDocument)return j.DOCUMENT_POSITION_DISCONNECTED+j.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(q(i.ownerDocument)>q(t.ownerDocument)?j.DOCUMENT_POSITION_FOLLOWING:j.DOCUMENT_POSITION_PRECEDING);if(r&&t===i)return j.DOCUMENT_POSITION_CONTAINS+j.DOCUMENT_POSITION_PRECEDING;if(n&&t===i)return j.DOCUMENT_POSITION_CONTAINED_BY+j.DOCUMENT_POSITION_FOLLOWING;for(var o=[],l=t.parentNode;l;){if(!r&&l===i)return j.DOCUMENT_POSITION_CONTAINED_BY+j.DOCUMENT_POSITION_FOLLOWING;o.push(l),l=l.parentNode}o.reverse();for(var c=[],u=i.parentNode;u;){if(!n&&u===t)return j.DOCUMENT_POSITION_CONTAINS+j.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=H(o,c);for(var h in d.childNodes){var p=d.childNodes[h];if(p===i)return j.DOCUMENT_POSITION_FOLLOWING;if(p===t)return j.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(p)>=0)return j.DOCUMENT_POSITION_FOLLOWING;if(o.indexOf(p)>=0)return j.DOCUMENT_POSITION_PRECEDING}return 0}},k(C,Z),k(C,Z.prototype),k(j,Z),k(j,Z.prototype),te.STOP=Symbol("walkDOM.STOP"),te.ENTER=0,te.EXIT=1,ie.prototype={implementation:null,nodeName:"#document",nodeType:R,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===F){for(var i=e.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,t),i=n}return e}return fe(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===A&&(this.documentElement=e),e},removeChild:function(e){var t=se(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){fe(this,e,t,pe),e.ownerDocument=this,t&&this.removeChild(t),oe(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,i){var n;return te(t,null,{enter:function(t,r){var s=t.cloneNode(!1);return s.ownerDocument=e,s.parentNode=null,null===r?n=s:r.appendChild(s),t.nodeType===L||i?s:null}}),n}(this,e,t)},getElementById:function(e){var t=null;return ee(this.documentElement,function(i){if(i.nodeType==A&&i.getAttribute("id")==e)return t=i,!0}),t},createElement:function(e){var t=new me(f);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),s(this.contentType)&&(t.namespaceURI=p.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new z,(t.attributes=new X)._ownerElement=t,t},createDocumentFragment:function(){var e=new ke(f);return e.ownerDocument=this,e.childNodes=new z,e},createTextNode:function(e){var t=new ye(f);return t.ownerDocument=this,t.childNodes=new z,t.appendData(e),t},createComment:function(e){var t=new be(f);return t.ownerDocument=this,t.childNodes=new z,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new g(g.INVALID_CHARACTER_ERR,'data contains "]]>"');var t=new _e(f);return t.ownerDocument=this,t.childNodes=new z,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new Ee(f);return i.ownerDocument=this,i.childNodes=new z,i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){if(!y.QName_exact.test(e))throw new g(g.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new ge(f);return t.ownerDocument=this,t.childNodes=new z,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!y.Name_exact.test(e))throw new g(g.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new g("document is an html document",v.NotSupportedError);var t=new Se(f);return t.ownerDocument=this,t.childNodes=new z,t.nodeName=e,t},createElementNS:function(e,t){var i=S(e,t),n=new me(f),r=n.attributes=new X;return n.childNodes=new z,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=i[0],n.prefix=i[1],n.localName=i[2],r._ownerElement=n,n},createAttributeNS:function(e,t){var i=S(e,t),n=new ge(f);return n.ownerDocument=this,n.childNodes=new z,n.nodeName=t,n.name=t,n.specified=!0,n.namespaceURI=i[0],n.prefix=i[1],n.localName=i[2],n}},E(ie,Z),me.prototype={nodeType:A,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===p.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var i=this.getAttributeNode(e);i?i.value=i.nodeValue=""+t:((i=this.ownerDocument._createAttribute(e)).value=i.nodeValue=""+t,this.setAttributeNode(i))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i?i.value:null},setAttributeNS:function(e,t,i){var n=S(e,t)[2],r=this.getAttributeNodeNS(e,n);r?r.value=r.nodeValue=""+i:((r=this.ownerDocument.createAttributeNS(e,t)).value=r.nodeValue=""+i,this.setAttributeNode(r))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=x(e);return new W(this,function(i){var n=[];return t.length>0&&ee(i,function(r){if(r!==i&&r.nodeType===A){var s=r.getAttribute("class");if(s){var a=e===s;if(!a){var o=x(s);a=t.every((l=o,function(e){return l&&-1!==l.indexOf(e)}))}a&&n.push(r)}}var l}),n})},getElementsByTagName:function(e){var t="html"===(this.nodeType===R?this:this.ownerDocument).type,i=e.toLowerCase();return new W(this,function(n){var r=[];return ee(n,function(s){s!==n&&s.nodeType===A&&(("*"===e||s.getQualifiedName()===(t&&s.namespaceURI===p.HTML?i:e))&&r.push(s))}),r})},getElementsByTagNameNS:function(e,t){return new W(this,function(i){var n=[];return ee(i,function(r){r===i||r.nodeType!==A||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||n.push(r)}),n})}},ie.prototype.getElementsByClassName=me.prototype.getElementsByClassName,ie.prototype.getElementsByTagName=me.prototype.getElementsByTagName,ie.prototype.getElementsByTagNameNS=me.prototype.getElementsByTagNameNS,E(me,Z),ge.prototype.nodeType=L,E(ge,Z),ve.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){i=this.data.substring(0,e)+i+this.data.substring(e+t),this.nodeValue=this.data=i,this.length=i.length}},E(ve,Z),ye.prototype={nodeName:"#text",nodeType:I,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},E(ye,ve),be.prototype={nodeName:"#comment",nodeType:N},E(be,ve),_e.prototype={nodeName:"#cdata-section",nodeType:P},E(_e,ye),Te.prototype.nodeType=B,E(Te,Z),xe.prototype.nodeType=U,E(xe,Z),we.prototype.nodeType=D,E(we,Z),Se.prototype.nodeType=O,E(Se,Z),ke.prototype.nodeName="#document-fragment",ke.prototype.nodeType=F,E(ke,Z),Ee.prototype.nodeType=M,E(Ee,ve),Ce.prototype.serializeToString=function(e,t){return Ae.call(e,t)},Z.prototype.toString=Ae;try{Object.defineProperty&&(Object.defineProperty(W.prototype,"length",{get:function(){return V(this),this.$$length}}),Object.defineProperty(Z.prototype,"textContent",{get:function(){if(this.nodeType===A||this.nodeType===F){var e=[];return te(this,null,{enter:function(t){return t.nodeType===A||t.nodeType===F||(t.no
2deType===M||t.nodeType===N?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case A:case F:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Object.defineProperty(ve.prototype,"data",{get:function(){return null!=this._data?this._data:""},set:function(e){this._data=e,this.length="string"==typeof e?e.length:0}}),Object.defineProperty(ve.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"children",{get:function(){return new W(this,Me)}}),Object.defineProperty(ie.prototype,"children",{get:function(){return new W(this,Me)}}),Object.defineProperty(ke.prototype,"children",{get:function(){return new W(this,Me)}}),De=function(e,t,i){e["$$"+t]=i})}catch(e){}t._updateLiveList=V,t.Attr=ge,t.CDATASection=_e,t.CharacterData=ve,t.Comment=be,t.Document=ie,t.DocumentFragment=ke,t.DocumentType=Te,t.DOMImplementation=Q,t.Element=me,t.Entity=we,t.EntityReference=Se,t.LiveNodeList=W,t.NamedNodeMap=X,t.Node=Z,t.NodeList=z,t.Notation=xe,t.Text=ye,t.ProcessingInstruction=Ee,t.walkDOM=te,t.XMLSerializer=Ce}),o=i.cw(function(e,t){var i=r().freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i
vendor: 7,661 bytes, line 2
2({Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"¦",Bscr:"â¬",bscr:"ð·",bsemi:"â",bsim:"â½",bsime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"â",cfr:"ð ",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"ð",coprod:"â",Coproduct:"â",COPY:"©",copy:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"Ã",ecirc:"ê",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18
vendor: 4,523 bytes, line 2
2:"â
",frac23:"â
",frac25:"â
",frac34:"¾",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"ð»",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"ð",gfr:"ð¤",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"ð¾",gopf:"ð",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"ð¢",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"½",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"ð¥",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"ð",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"ð½",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"Ã",iacute:"Ã",ic:"â£",Icirc:"Ã",icirc:"î",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"¡",iff:"â",Ifr:"â",ifr:"ð¦",Igrave:"Ã",igrave:"ì",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"ð",iopf:"ð",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"â",iscr:"ð¾",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"Ã",iuml:"ï",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"ð",jfr:"ð§",jmath:"È·",Jopf:"ð",jopf:"ð",Jscr:"ð¥",jscr:"ð¿",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"ð",kfr:"ð¨",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"ð",kopf:"ð",Kscr:"ð¦",kscr:"ð",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"«",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â
vendor: 16,571 bytes, line 2
2",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"ð",lfr:"ð©",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"ð",lopf:"ð",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"ð",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"¯",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"ð",mfr:"ðª",mho:"â§",micro:"µ",mid:"â£",midast:"*",midcir:"â«°",middot:"·",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"ð",mopf:"ð",mp:"â",Mscr:"â³",mscr:"ð",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:" ",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"ð",nfr:"ð«",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:" ",Nopf:"â",nopf:"ð",Not:"⫬",not:"¬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"ð©",nscr:"ð",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"Ã",ntilde:"ñ",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"Ã",oacute:"ó",oast:"â",ocir:"â",Ocirc:"Ã",ocirc:"ô",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"ð",ofr:"ð¬",ogon:"Ë",Ograve:"Ã",ograve:"ò",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"ð",oopf:"ð ",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"ª",ordm:"º",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"ðª",oscr:"â´",Oslash:"Ã",oslash:"ø",osol:"â",Otilde:"Ã",otilde:"õ",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"Ã",ouml:"ö",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"¶",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"ð",pfr:"ð",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"ð¡",pound:"£",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"ð«",pscr:"ð
",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"ð",qfr:"ð®",qint:"â¨",Qopf:"â",qopf:"ð¢",qprime:"â",Qscr:"ð¬",qscr:"ð",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"»",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"®",reg:"®",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"â",Rfr:"â",rfr:"ð¯",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"ð£",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"ð",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"§",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"ð",sfr:"ð°",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"Â",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"ð",sopf:"ð¤",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"ð®",sscr:"ð",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"¯",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"Ã",Tab:"\t",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"ð",tfr:"ð±",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"Ã",thorn:"þ",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"Ã",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"ð",topf:"ð¥",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"ð¯",tscr:"ð",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"Ã",uacute:"ú",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"Ã",ucirc:"û",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"ð",ufr:"ð²",Ugrave:"Ã",ugrave:"ù",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"¨",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"ð",uopf:"ð¦",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"ð°",uscr:"ð",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"Ã",uuml:"ü",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"ð",vfr:"ð³",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"ð",vopf:"ð§",vprop:"â",vrtri:"â³",Vscr:"ð±",vscr:"ð",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"ð",wfr:"ð´",Wopf:"ð",wopf:"ð¨",wp:"â",wr:"â",wreath:"â",Wscr:"ð²",wscr:"ð",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"ð",xfr:"ðµ",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"ð",xopf:"ð©",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"ð³",xscr:"ð",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"Ã",yacute:"ý",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"Â¥",Yfr:"ð",yfr:"ð¶",YIcy:"Ð",yicy:"Ñ",Yopf:"ð",yopf:"ðª",Yscr:"ð´",yscr:"ð",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"ð·",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"ð«",Zscr:"ðµ",zscr:"ð",zwj:"â",zwnj:"â"}),t.entityMap=t.HTML_ENTITIES}
vendor: 14,584 bytes, line 2
2),l=i.cw(function(e,t){function i(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var n=r().freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),s=Object.keys(n);function a(e){return"number"==typeof e&&e>=1&&e<=25}function o(e,t){var i;a(e)?(this.name=s[e],this.message=t||""):(this.message=e,this.name="string"==typeof(i=t)&&i.substring(i.length-n.Error.length)===n.Error?t:n.Error),Error.captureStackTrace&&Error.captureStackTrace(this,o)}i(o,!0),Object.defineProperties(o.prototype,{code:{enumerable:!0,get:function(){var e=s.indexOf(this.name);return a(e)?e:0}}});for(var l={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},c=Object.entries(l),u=0;u<c.length;u++){o[c[u][0]]=c[u][1]}function d(e,t,i){this.message=e,this.locator=t,this.cause=i,Error.captureStackTrace&&Error.captureStackTrace(this,d)}i(d),t.DOMException=o,t.DOMExceptionName=n,t.ExceptionCode=l,t.ParseError=d}),c=i.cw(function(e,t){function i(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("ð","u").exec("ð");return!!t&&2===t[0].length}catch(e){}return!1}var n=i();function r(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function s(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),n?"u":"")}function a(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var i="string"==typeof e;if(i&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return i?e:e.source}).join(""),n?"u":"")}function o(e){if(0===arguments.length)throw new Error("no parameters provided");return a.apply(o,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var l=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;n&&(l=a("[",r(l),"\\u{10000}-\\u{10FFFF}","]"));var c=new RegExp("[^"+r(l)+"]",n?"u":""),u=/[\x20\x09\x0D\x0A]/,d=r(u),h=a(u,"+"),p=a(u,"*"),f=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;n&&(f=a("[",r(f),"\\u{10000}-\\u{10FFFF}","]"));var m=a("[",r(f),r(/[-.0-9\xB7]/),r(/[\u0300-\u036F\u203F-\u2040]/),"]"),g=a(f,m,"*"),v=a("^",g,"$"),y=a(m,"+"),b=a("&",g,";"),_=o(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),T=o(b,"|",_),x=a("%",g,";"),w=o(a('"',o(/[^%&"]/,"|",x,"|",T),"*",'"'),"|",a("'",o(/[^%&']/,"|",x,"|",T),"*","'")),S=o('"',o(/[^<&"]/,"|",T),"*",'"',"|","'",o(/[^<&']/,"|",T),"*","'"),k=a(s(f,":"),s(m,":"),"*"),E=a("^",k,"$"),C=a(k,o(":",k),"?"),A=a("^",C,"$"),L=a("(",C,")"),I=o(/"[^"]*"|'[^']*'/),P=a(/^<\?/,"(",g,")",o(h,"(?!",u,")(",l,"*?)"),"?",/\?>/),O=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,D=o('"',O,'*"',"|","'",s(O,"'"),"*'"),M="\x3c!--",N=a(M,o(s(l,"-"),"|",a("-",s(l,"-"))),"*","--\x3e"),R="#PCDATA",B=o(a(/\(/,p,R,o(p,/\|/,p,C),"*",p,/\)\*/),"|",a(/\(/,p,R,p,/\)/)),F=o("EMPTY","|","ANY","|",B,"|",a(/\([^>]+\)/,/[?*+]?/)),U=a("<!ELEMENT",h,o(C,"|",x),h,o(F,"|",x),p,">"),j=a("NOTATION",h,/\(/,p,g,o(p,/\|/,p,g),"*",p,/\)/),H=a(/\(/,p,y,o(p,/\|/,p,y),"*",p,/\)/),q=o(j,"|",H),z=o(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",q),W=o(/#REQUIRED|#IMPLIED/,"|",o(o("#FIXED",h),"?",S)),V=a("<!ATTLIST",h,g,o(h,g,h,z,h,W),"*",p,">"),X="about:legacy-compat",G=o('"'+X+'"',"|","'"+X+"'"),$="SYSTEM",Y="PUBLIC",K=o(o($,h,I),"|",o(Y,h,D,h,I)),Q=a("^",o(o($,h,"(?<SystemLiteralOnly>",I,")"),"|",o(Y,h,"(?<PubidLiteral>",D,")",h,"(?<SystemLiteral>",I,")"))),Z=a("^",D,"$"),J=a("^",I,"$"),ee=o(h,"NDATA",h,g),te="<!ENTITY",ie=a(te,h,g,h,o(w,"|",o(K,ee,"?")),p,">"),ne=o(w,"|",K),re=o(ie,"|",a(te,h,"%",h,g,h,ne,p,">")),se=a(Y,h,D),ae=a("<!NOTATION",h,g,h,o(K,"|",se),p,">"),oe=a(p,"=",p),le=/1[.]\d+/,ce=a(h,"version",oe,o("'",le,"'","|",'"',le,'"')),ue=/[A-Za-z][-A-Za-z0-9._]*/,de=a(/^<\?xml/,ce,o(h,"encoding",oe,o('"',ue,'"',"|","'",ue,"'")),"?",o(h,"standalone",oe,o("'",o("yes","|","no"),"'","|",'"',o("yes","|","no"),'"')),"?",p,/\?>/),he=a(l,"*?",/\]\]>/),pe=a(/<!\[CDATA\[/,he);t.chars=r,t.chars_without=s,t.detectUnicodeSupport=i,t.reg=a,t.regg=o,t.ABOUT_LEGACY_COMPAT=X,t.ABOUT_LEGACY_COMPAT_SystemLiteral=G,t.AttlistDecl=V,t.CDATA_START="<![CDATA[",t.CDATA_END="]]>",t.CDSect=pe,t.Char=l,t.Comment=N,t.COMMENT_START=M,t.COMMENT_END="--\x3e",t.DOCTYPE_DECL_START="<!DOCTYPE",t.elementdecl=U,t.EntityDecl=re,t.EntityValue=w,t.ExternalID=K,t.ExternalID_match=Q,t.Name=g,t.Name_exact=v,t.NCName_exact=E,t.NotationDecl=ae,t.Reference=T,t.PEReference=x,t.PI=P,t.PUBLIC=Y,t.PubidLiteral=D,t.PubidLiteral_match=Z,t.QName=C,t.QName_exact=A,t.QName_group=L,t.S=h,t.SChar_s=d,t.S_OPT=p,t.SYSTEM=$,t.SystemLiteral=I,t.SystemLiteral_match=J,t.InvalidChar=c,t.UNICODE_REPLACEMENT_CHARACTER="�",t.UNICODE_SUPPORT=n,t.XMLDecl=de}),u=i.cw(function(e,t){var i=r();i.assign,i.hasDefaultHTMLNamespace,i.isHTMLMimeType,i.isValidMimeType,i.MIME_TYPE,i.NAMESPACE;var n=l();n.DOMException,n.DOMExceptionName,n.ExceptionCode,n.ParseError;var o=a();o.Attr,o.CDATASection,o.CharacterData,o.Comment,o.Document,o.DocumentFragment,o.DocumentType,o.DOMImplementation,o.Element,o.Entity,o.EntityReference,o.LiveNodeList,o.NamedNodeMap,o.Node,o.NodeList,o.Notation,o.ProcessingInstruction,o.Text,o.XMLSerializer;var c=s();t.S4=c.DOMParser,c.normalizeLineEndings,c.onErrorStopParsing,c.onWarningStopParsing}),d=i.cw(function(e,t){var i=r(),n=c(),s=l(),a=i.isHTMLEscapableRawTextElement,o=i.isHTMLMimeType,u=i.isHTMLRawTextElement,d=i.hasOwn,h=i.NAMESPACE,p=s.ParseError,f=s.DOMException;function m(){}m.prototype={parse:function(e,t,r){var s=this.domBuilder;s.startDocument(),function(e,t){for(var i in e)d(e,i)&&(t[i]=e[i])}(t,t=Object.create(null)),function(e,t,r,s,a){var l=o(s.mimeType);e.indexOf(n.UNICODE_REPLACEMENT_CHARACTER)>=0&&a.warning("Unicode replacement character detected, source encoding issues?");function c(e){if(e>65535){var t=55296+((e-=65536)>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}function u(e){var t=";"===e[e.length-1]?e:e+";";if(!l&&t!==e)return a.error("EntityRef: expecting ;"),e;var i=n.Reference.exec(t);if(!i||i[0].length!==t.length)return a.error("entity not matching Reference production: "+e),e;var s=t.slice(1,-1);return d(r,s)?r[s]:"#"===s.charAt(0)?c(parseInt(s.substring(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function h(t){if(t>I){var i=e.substring(I,t).replace(g,u);E&&C(I),s.characters(i,0,t-I),I=t}}var m=0,T=0,k=/\r\n?|\n|$/g,E=s.locator;function C(t,i){for(;t>=T&&(i=k.exec(e));)m=T,T=i.index+i[0].length,E.lineNumber++;E.columnNumber=t-m+1}var A=[{currentNSMap:t}],L=[],I=0;for(;;){try{var P=e.indexOf("<",I);if(P<0){if(!l&&L.length>0)return a.fatalError("unclosed xml tag(s): "+L.join(", "));if(!e.substring(I).match(/^\s*$/)){var O=s.doc,D=O.createTextNode(e.substring(I));if(O.documentElement)return a.error("Extra content at the end of the document");O.appendChild(D),s.currentElement=D}return}if(P>I){var M=e.substring(I,P);l||0!==L.length||(M=M.replace(new RegExp(n.S_OPT.source,"g"),""))&&a.error("Unexpected content outside root element: '"+M+"'"),h(P)}switch(e.charAt(P+1)){case"/":var N=e.indexOf(">",P+2),R=e.substring(P+2,N>0?N:void 0);if(!R)return a.fatalError("end tag name missing");var B=n.reg("^",n.QName_group,n.S_OPT,"$"),F=N>0&&B.exec(R);if(!F){var U=N>0&&n.reg("^",n.QName_group).exec(R);if(l&&U)a.warning('end tag name contains invalid trailing characters: "'+R+'"'),F=U;else{if(!U||!new RegExp(B.source,B.flags+"m").test(R))return a.fatalError('end tag name contains invalid characters: "'+R+'"');a.error('end tag name is followed by a line break and trailing content: "'+R+'"'),F=U}}if(!s.currentElement&&!s.doc.documentElement)return;var j=L[L.length-1]||s.currentElement.tagName||s.doc.documentElement.tagName||"";if(j!==F[1]){var H=F[1].toLowerCase();if(!l||j.toLowerCase()!==H)return a.fatalError('Opening and ending tag mismatch: "'+j+'" != "'+R+'"')}var q=A.pop();L.pop();var z=q.localNSMap;if(s.endElement(q.uri,q.localName,j),z)for(var W in z)d(z,W)&&s.endPrefixMapping(W);N++;break;case"?":E&&C(P),N=w(e,P,s,a);break;case"!":E&&C(P),N=x(e,P,s,a,l);break;default:E&&C(P);var V=new S,X=A[A.length-1].currentNSMap,G=(N=y(e,P,V,X,u,a,l),V.length);if(V.closed||(l&&i.isHTMLVoidElement(V.tagName)?V.closed=!0:L.push(V.tagName)),E&&G){for(var $=v(E,{}),Y=0;Y<G;Y++){var K=V[Y];C(K.offset),K.locator=v(E,{})}s.locator=$,b(V,s,X)&&A.push(V),s.locator=E}else b(V,s,X)&&A.push(V);l&&!V.closed?N=_(e,N,V.tagName,u,s):N++}}catch(e){if(e instanceof p)throw e;if(e instanceof f)return a.fatalError("Error constructing the DOM: "+e.name+": "+e.message,e);a.error("element parse error: "+e),N=-1}N>I?I=N:h(Math.max(P,I)+1)}}(e,t,r,s,this.errorHandler),s.endDocument()}};var g=/&#?\w+;?/g;function v(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function y(e,t,i,n,r,s,a){function o(e,t,n){return d(i.attributeNames,e)?s.fatalError("Attribute "+e+" redefined"):!a&&t.indexOf("<")>=0?s.fatalError("Unescaped '<' not allowed in attributes values"):void i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(g,r),n)}for(var l,c=++t,u=0;;){var h=e.charAt(c);if(0===u&&"<"===h)throw new Error("unexpected < in tag name: "+e.slice(t,c));switch(h){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(s.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(h,t))>0))throw new Error("attribute value no end '"+h+"' match");o(l,p=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');o(l,p=e.slice(t,c),t),s.warning('attribute "'+l+'" missed start quot('+h+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:i.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,i.closed=!0;case 4:case 1:break;case 2:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),0==u&&i.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:i.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(p=e.slice(t,c)).slice(-1)&&(i.closed=!0,p=p.slice(0,-1));case 2:2===u&&(p=l),4==u?(s.warning('attribute "'+p+'" missed quot(")!'),o(l,p,t)):(a||s.warning('attribute "'+p+'" missed value!! "'+p+'" instead!!'),o(p,p,t));break;case 3:if(!a)return s.fatalError("AttValue: ' or \" expected")}return c;case"Â":h=" ";default:if(h<=" ")switch(u){case 0:i.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var p=e.slice(t,c);s.warning('attribute "'+p+'" missed quot(")!!'),o(l,p,t);case 5:u=6}else switch(u){case 2:a||s.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,t),t=c,u=1;break;case 5:s.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function b(e,t,i){for(var n=e.tagName,r=null,s=e.length;s--;){var a=e[s],o=a.qName,l=a.value;if((f=o.indexOf(":"))>0)var c=a.prefix=o.slice(0,f),u=o.slice(f+1),p="xmlns"===c&&u;else u=o,c=null,p="xmlns"===o&&"";a.localName=u,!1!==p&&(null==r&&(r=Object.create(null),i=Object.create(i)),i[p]=r[p]=l,a.uri=h.XMLNS,t.startPrefixMapping(p,l))}for(s=e.length;s--;)(a=e[s]).prefix&&("xml"===a.prefix&&(a.uri=h.XML),"xmlns"!==a.prefix&&(a.uri=i[a.prefix]));var f;(f=n.indexOf(":"))>0?(c=e.prefix=n.slice(0,f),u=e.localName=n.slice(f+1)):(c=null,u=e.localName=n);var m=e.uri=i[c||""];if(t.startElement(m,u,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=r,!0;if(t.endElement(m,u,n),r)for(c in r)d(r,c)&&t.endPrefixMapping(c)}function _(e,t,i,n,r){var s=a(i);if(s||u(i)){var o=new RegExp("</"+i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+">","ig");o.lastIndex=t;var l=o.exec(e),c=l?l.index:-1;if(c<0)return t+1;var d=e.substring(t+1,c);return s&&(d=d.replace(g,n)),r.characters(d,0,d.length),c}return t+1}function T(e,t){var i=t;function r(t){return t=t||0,e.charAt(i+t)}function s(e){i+=e=e||1}function a(){return e.substring(i)}return{char:r,getIndex:function(){return i},getMatch:function(e){var t=n.reg("^",e).exec(a());return t?(s(t[0].length),t[0]):null},getSource:function(){return e},skip:s,skipBlanks:function(){for(var t=0;i<e.length;){var n=r();if(" "!==n&&"\n"!==n&&"\t"!==n&&"\r"!==n)return t;t++,s()}return-1},substringFromIndex:a,substringStartsWith:function(t){return e.substring(i,i+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(i,i+t.length).toUpperCase()===t.toUpperCase()}}}function x(e,t,i,r,s){var a=T(e,t);
2switch(s?a.char(2).toUpperCase():a.char(2)){case"-":var o=a.getMatch(n.Comment);return o?(i.comment(o,n.COMMENT_START.length,o.length-n.COMMENT_START.length-n.COMMENT_END.length),a.getIndex()):r.fatalError("comment is not well-formed at position "+a.getIndex());case"[":var l=a.getMatch(n.CDSect);return l?s||i.currentElement?(i.startCDATA(),i.characters(l,n.CDATA_START.length,l.length-n.CDATA_START.length-n.CDATA_END.length),i.endCDATA(),a.getIndex()):r.fatalError("CDATA outside of element"):r.fatalError("Invalid CDATA starting at position "+t);case"D":if(i.doc&&i.doc.documentElement)return r.fatalError("Doctype not allowed inside or after documentElement at position "+a.getIndex());if(s?!a.substringStartsWithCaseInsensitive(n.DOCTYPE_DECL_START):!a.substringStartsWith(n.DOCTYPE_DECL_START))return r.fatalError("Expected "+n.DOCTYPE_DECL_START+" at position "+a.getIndex());if(a.skip(n.DOCTYPE_DECL_START.length),a.skipBlanks()<1)return r.fatalError("Expected whitespace after "+n.DOCTYPE_DECL_START+" at position "+a.getIndex());var c={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(c.name=a.getMatch(n.Name),!c.name)return r.fatalError("doctype name missing or contains unexpected characters at position "+a.getIndex());if(s&&"html"!==c.name.toLowerCase()&&r.warning("Unexpected DOCTYPE in HTML document at position "+a.getIndex()),a.skipBlanks(),a.substringStartsWith(n.PUBLIC)||a.substringStartsWith(n.SYSTEM)){var u=n.ExternalID_match.exec(a.substringFromIndex());if(!u)return r.fatalError("doctype external id is not well-formed at position "+a.getIndex());void 0!==u.groups.SystemLiteralOnly?c.systemId=u.groups.SystemLiteralOnly:(c.systemId=u.groups.SystemLiteral,c.publicId=u.groups.PubidLiteral),a.skip(u[0].length)}else if(s&&a.substringStartsWithCaseInsensitive(n.SYSTEM)){if(a.skip(n.SYSTEM.length),a.skipBlanks()<1)return r.fatalError("Expected whitespace after "+n.SYSTEM+" at position "+a.getIndex());if(c.systemId=a.getMatch(n.ABOUT_LEGACY_COMPAT_SystemLiteral),!c.systemId)return r.fatalError("Expected "+n.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+n.SYSTEM+" at position "+a.getIndex())}return s&&c.systemId&&!n.ABOUT_LEGACY_COMPAT_SystemLiteral.test(c.systemId)&&r.warning("Unexpected doctype.systemId in HTML document at position "+a.getIndex()),s||(a.skipBlanks(),c.internalSubset=function(e,t){function i(e,t){var i=n.PI.exec(e.substringFromIndex());return i?"xml"===i[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(i[0].length),i[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var r=e.getSource();if("["===e.char()){e.skip(1);for(var s=e.getIndex();e.getIndex()<r.length;){if(e.skipBlanks(),"]"===e.char()){var a=r.substring(s,e.getIndex());return e.skip(1),a}var o=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?o=e.getMatch(n.elementdecl):"N"===e.char(3)&&(o=e.getMatch(n.EntityDecl));break;case"A":o=e.getMatch(n.AttlistDecl);break;case"N":o=e.getMatch(n.NotationDecl);break;case"-":o=e.getMatch(n.Comment)}else if("<"===e.char()&&"?"===e.char(1))o=i(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");o=e.getMatch(n.PEReference)}if(!o)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(a,r)),a.skipBlanks(),">"!==a.char()?r.fatalError("doctype not terminated with > at position "+a.getIndex()):(a.skip(1),i.startDTD(c.name,c.publicId,c.systemId,c.internalSubset),i.endDTD(),a.getIndex());default:return r.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function w(e,t,i,r){var s=e.substring(t).match(n.PI);if(!s)return r.fatalError("Invalid processing instruction starting at position "+t);if("xml"===s[1].toLowerCase()){if(t>0)return r.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!n.XMLDecl.test(e.substring(t)))return r.fatalError("xml declaration is not well-formed")}return i.processingInstruction(s[1],s[2]),t+s[0].length}function S(){this.attributeNames=Object.create(null)}S.prototype={setTagName:function(e){if(!n.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!n.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=m,t.parseUtils=T,t.parseDoctypeCommentOrCData=x}),h=function(){return i(9840)},p=function(){return i(7056)},f=function(){return i(4634)};function m(){return m.c||(m.c=i.n(h()))}h();var g=i(9697),v=i.n(g);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},y.apply(null,arguments)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function T(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_(e,t)}var x=i(8865),w=i.n(x),S=i(6545),k=i.n(S);function E(){return E.c||(E.c=i.n(n()))}n();var C=i(4784),A=i.n(C);function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}var I=i(7842),P=i.n(I),O="http://example.com",D=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=m()().location&&m()().location.href||"");var i="function"==typeof m()().URL,n=/^\/\//.test(e),r=!m()().location&&!/\/\//i.test(e);
2if(i?e=new(m()().URL)(e,m()().location||O):/\/\//i.test(e)||(e=P().buildAbsoluteURL(m()().location&&m()().location.href||"",e)),i){var s=new URL(t,e);return r?s.href.slice(18):n?s.href.slice(s.protocol.length):s.href}return P().buildAbsoluteURL(e,t)},M=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=t.length,a=0;a<s;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function N(e){for(var t,i=(t=e,m()().atob?m()().atob(t):Buffer.from(t,"base64").toString("binary")),n=new Uint8Array(i.length),r=0;r<i.length;r++)n[r]=i.charCodeAt(r);return n}var R=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return T(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(M),B=String.fromCharCode(9),F=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),i={};return t[1]&&(i.length=parseInt(t[1],10)),t[2]&&(i.offset=parseInt(t[2],10)),i},U=function(e){for(var t,i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((t=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),n[t[0]]=t[1]);return n},j=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}T(t,e);var i=t.prototype;return i.push=function(e){var t,i,n=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(function(t,i){var n=i(e);return n===e?t:t.concat([n])},[e]).forEach(function(e){for(var r=0;r<n.customParsers.length;r++)if(n.customParsers[r].call(n,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))n.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),void n.trigger("data",i);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),void n.trigger("data",i);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),void n.trigger("data",i);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void n.trigger("data",i);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void n.trigger("data",i);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),void n.trigger("data",i);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return i=y(F(t[1]),{type:"tag",tagType:"byterange"}),void n.trigger("data",i);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),void n.trigger("data",i);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(i={type:"tag",tagType:"map"},t[1]){var s=U(t[1]);s.URI&&(i.uri=s.URI),s.BYTERANGE&&(i.byterange=F(s.BYTERANGE))}n.trigger("data",i)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(i={type:"tag",tagType:"stream-inf"},t[1]){if(i.attributes=U(t[1]),i.attributes.RESOLUTION){var a=i.attributes.RESOLUTION.split("x"),o={};a[0]&&(o.width=parseInt(a[0],10)),a[1]&&(o.height=parseInt(a[1],10)),i.attributes.RESOLUTION=o}i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}n.trigger("data",i)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=U(t[1])),void n.trigger("data",i);if(t=/^#EXT-X-ENDLIST/.exec(e))n.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))n.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return i={type:"tag",tagType:"program-date-time"}
2,t[1]&&(i.dateTimeString=t[1],i.dateTimeObject=new Date(t[1])),void n.trigger("data",i);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return i={type:"tag",tagType:"key"},t[1]&&(i.attributes=U(t[1]),i.attributes.IV&&("0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void n.trigger("data",i);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return i={type:"tag",tagType:"start"},t[1]&&(i.attributes=U(t[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),void n.trigger("data",i);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return i={type:"tag",tagType:"cue-out-cont"},t[1]?i.data=t[1]:i.data="",void n.trigger("data",i);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return i={type:"tag",tagType:"cue-out"},t[1]?i.data=t[1]:i.data="",void n.trigger("data",i);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return i={type:"tag",tagType:"cue-in"},t[1]?i.data=t[1]:i.data="",void n.trigger("data",i);if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1])return(i={type:"tag",tagType:"skip"}).attributes=U(t[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(B)),void n.trigger("data",i);if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1])return(i={type:"tag",tagType:"part"}).attributes=U(t[1]),["DURATION"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=F(i.attributes.BYTERANGE)),void n.trigger("data",i);if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1])return(i={type:"tag",tagType:"server-control"}).attributes=U(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))}),void n.trigger("data",i);if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1])return(i={type:"tag",tagType:"part-inf"}).attributes=U(t[1]),["PART-TARGET"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}),void n.trigger("data",i);if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1])return(i={type:"tag",tagType:"preload-hint"}).attributes=U(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(i.attributes.hasOwnProperty(e)){i.attributes[e]=parseInt(i.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[t]=i.attributes[e],delete i.attributes[e]}}),void n.trigger("data",i);if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1])return(i={type:"tag",tagType:"rendition-report"}).attributes=U(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseInt(i.attributes[e],10))}),void n.trigger("data",i);n.trigger("data",{type:"tag",data:e.slice(4)})}}}else n.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))},i.addParser=function(e){var t=this,i=e.expression,n=e.customType,r=e.dataParser,s=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(i.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:n,segment:s}),!0})},i.addTagMapper=function(e){var t=e.expression,i=e.map;this.tagMappers.push(function(e){return t.test(e)?i(e):e})},t}(M),H=function(e){var t={};return Object.keys(e).forEach(function(i){var n;t[n=i,n.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})]=e[i]}),t},q=function(e){var t=e.serverControl,i=e.targetDuration,n=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",s="holdBack",a="partHoldBack",o=i&&3*i,l=n&&2*n;i&&!t.hasOwnProperty(s)&&(t[s]=o,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+o+")."})),o&&t[s]<o&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[s]+") to targetDuration * 3 ("+o+")"}),t[s]=o),n&&!t.hasOwnProperty(a)&&(t[a]=3*n,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[a]+")."})),n&&t[a]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[a]+") to partTargetDuration * 2 ("+l+")."}),t[a]=l)}},z=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new R,t.parseStream=new j,t.lineStream.pipe(t.parseStream);var i,n,r=b(t),s=[],a={},o=!1,l=function(){},c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},u=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var d=0,h=0;return t.on("end",function(){a.uri||!a.parts&&!a.preloadHints||(!a.map&&i&&(a.map=i),!a.key&&n&&(a.key=n),a.timeline||"number"!=typeof u||(a.timeline=u),t.manifest.preloadSegment=a)}),t.parseStream.on("data",function(e){var t,p;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(e.offset=d)),"offset"in e&&(a.byterange=t,t.offset=e.offset),d=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:N(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(n.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,u=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){i={}
2,e.uri&&(i.uri=e.uri),e.byterange&&(i.byterange=e.byterange),n&&(i.key=n)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||c,e.attributes?(a.attributes||(a.attributes={}),y(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var i=this.manifest.mediaGroups[e.attributes.TYPE];i[e.attributes["GROUP-ID"]]=i[e.attributes["GROUP-ID"]]||{},t=i[e.attributes["GROUP-ID"]],(p={default:/yes/i.test(e.attributes.DEFAULT)}).default?p.autoselect=!0:p.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(p.language=e.attributes.LANGUAGE),e.attributes.URI&&(p.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(p.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(p.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(p.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=p}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){u+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),a.dateTimeString=e.dateTimeString,a.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,q.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=e.data},"cue-out-cont":function(){a.cueOutCont=e.data},"cue-in":function(){a.cueIn=e.data},skip:function(){this.manifest.skip=H(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;o=!0;var i=this.manifest.segments.length,n=H(e.attributes);a.parts=a.parts||[],a.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=h),h=n.byterange.offset+n.byterange.length);var r=a.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+i,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(e,i){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+i+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var t=this.manifest.serverControl=H(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),q.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,i=H(e.attributes),n=i.type&&"PART"===i.type;a.preloadHints=a.preloadHints||[],a.preloadHints.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=n?h:0,n&&(h=i.byterange.offset+i.byterange.length)));var r=a.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),i.type)for(var s=0;s<a.preloadHints.length-1;s++){var o=a.preloadHints[s];o.type&&(o.type===i.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+i.type+" as preload hint #"+s}))}},"rendition-report":function(){var t=H(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var i=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"];o&&n.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+i,e.attributes,n)},"part-inf":function(){this.manifest.partInf=H(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),q.call(this,this.manifest)}}[e.tagType]||l).call(r)}
2,uri:function(){a.uri=e.uri,s.push(a),this.manifest.targetDuration&&!("duration"in a)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),n&&(a.key=n),a.timeline=u,i&&(a.map=i),h=0,a={}},comment:function(){},custom:function(){e.segment?(a.custom=a.custom||{},a.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)}),t}T(t,e);var i=t.prototype;return i.warnOnMissingAttributes_=function(e,t,i){var n=[];i.forEach(function(e){t.hasOwnProperty(e)||n.push(e)}),n.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+n.join(", ")})},i.push=function(e){this.lineStream.push(e)},i.end=function(){this.lineStream.push("\n"),this.trigger("end")},i.addParser=function(e){this.parseStream.addParser(e)},i.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(M),W={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},V=["video","audio","text"],X=["Video","Audio","Text"],G=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)}):e},$=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach(function(e){var t;e=e.trim(),V.forEach(function(n){var r=W[n].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=n;var s=e.substring(0,r[1].length),a=e.replace(s,"");i.push({type:s,details:a,mediaType:n})}}),t||i.push({type:e,details:"",mediaType:"unknown"})}),i},Y=function(e){return void 0===e&&(e=""),W.audio.test(e.trim().toLowerCase())},K=function(e){if(e&&"string"==typeof e){var t,i=e.toLowerCase().split(",").map(function(e){return G(e.trim())}),n="video";1===i.length&&Y(i[0])?n="audio":1===i.length&&(void 0===(t=i[0])&&(t=""),W.text.test(t.trim().toLowerCase()))&&(n="application");var r="mp4";return i.every(function(e){return W.mp4.test(e)})?r="mp4":i.every(function(e){return W.webm.test(e)})?r="webm":i.every(function(e){return W.ogg.test(e)})&&(r="ogg"),n+"/"+r+';codecs="'+e+'"'}},Q=function(e){return void 0===e&&(e=""),m()().MediaSource&&m()().MediaSource.isTypeSupported&&m()().MediaSource.isTypeSupported(K(e))||!1},Z=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<X.length;t++){if(W["muxer"+X[t]].test(e))return!0}return!1})},J="mp4a.40.2",ee=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,te=/^application\/dash\+xml/i,ie=function(e){return ee.test(e)?"hls":te.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null};u();var ne,re,se,ae=function(e){return!!e&&"object"==typeof e},oe=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.reduce(function(t,i){return"object"!=typeof i||Object.keys(i).forEac
2h(function(n){Array.isArray(t[n])&&Array.isArray(i[n])?t[n]=t[n].concat(i[n]):ae(t[n])&&ae(i[n])?t[n]=e(t[n],i[n]):t[n]=i[n]}),t},{})},le=function(e){return Object.keys(e).map(function(t){return e[t]})},ce=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},ue=function(e){if(!e.length)return[];for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t},de=function(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i;return-1},he="INVALID_NUMBER_OF_PERIOD",pe="DASH_EMPTY_MANIFEST",fe="DASH_INVALID_XML",me="NO_BASE_URL",ge="SEGMENT_TIME_UNSPECIFIED",ve="UNSUPPORTED_UTC_TIMING_SCHEME",ye=function(e){var t=e.baseUrl,i=void 0===t?"":t,n=e.source,r=void 0===n?"":n,s=e.range,a=void 0===s?"":s,o=e.indexRange,l=void 0===o?"":o,c={uri:r,resolvedUri:D(i||"",r)};if(a||l){var u,d=(a||l).split("-"),h=m()().BigInt?m()().BigInt(d[0]):parseInt(d[0],10),p=m()().BigInt?m()().BigInt(d[1]):parseInt(d[1],10);h<Number.MAX_SAFE_INTEGER&&"bigint"==typeof h&&(h=Number(h)),p<Number.MAX_SAFE_INTEGER&&"bigint"==typeof p&&(p=Number(p)),"bigint"==typeof(u="bigint"==typeof p||"bigint"==typeof h?m()().BigInt(p)-m()().BigInt(h)+m()().BigInt(1):p-h+1)&&u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),c.byterange={length:u,offset:h}}return c},be=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},_e={static:function(e){var t=e.duration,i=e.timescale,n=void 0===i?1:i,r=e.sourceDuration,s=e.periodDuration,a=be(e.endNumber),o=t/n;return"number"==typeof a?{start:0,end:a}:"number"==typeof s?{start:0,end:s/o}:{start:0,end:r/o}},dynamic:function(e){var t=e.NOW,i=e.clientOffset,n=e.availabilityStartTime,r=e.timescale,s=void 0===r?1:r,a=e.duration,o=e.periodStart,l=void 0===o?0:o,c=e.minimumUpdatePeriod,u=void 0===c?0:c,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,p=be(e.endNumber),f=(t+i)/1e3,m=n+l,g=f+u-m,v=Math.ceil(g*s/a),y=Math.floor((f-m-h)*s/a),b=Math.floor((f-m)*s/a);return{start:Math.max(0,y),end:"number"==typeof p?p:Math.min(v,b)}}},Te=function(e){var t=e.type,i=e.duration,n=e.timescale,r=void 0===n?1:n,s=e.periodDuration,a=e.sourceDuration,o=_e[t](e),l=function(e,t){for(var i=[],n=e;n<t;n++)i.push(n);return i}(o.start,o.end).map(function(e){return function(t){var i=e.duration,n=e.timescale,r=void 0===n?1:n,s=e.periodStart,a=e.startNumber;return{number:(void 0===a?1:a)+t,duration:i/r,timeline:s,time:t*i}}}(e));if("static"===t){var c=l.length-1,u="number"==typeof s?s:a;l[c].duration=u-i/r*c}return l},xe=function(e){var t=e.baseUrl,i=e.initialization,n=void 0===i?{}:i,r=e.sourceDuration,s=e.indexRange,a=void 0===s?"":s,o=e.periodStart,l=e.presentationTime,c=e.number,u=void 0===c?0:c,d=e.duration;if(!t)throw new Error(me);var h=ye({baseUrl:t,source:n.sourceURL,range:n.range}),p=ye({baseUrl:t,source:t,indexRange:a});if(p.map=h,d){var f=Te(e);f.length&&(p.duration=f[0].duration,p.timeline=f[0].timeline)}else r&&(p.duration=r,p.timeline=o);return p.presentationTime=l||o,p.number=u,[p]},we=function(e,t,i){var n,r=e.sidx.map?e.sidx.map:null,s=e.sidx.duration,a=e.timeline||0,o=e.sidx.byterange,l=o.offset+o.length,c=t.timescale,u=t.references.filter(function(e){return 1!==e.referenceType}),d=[],h=e.endList?"static":"dynamic",p=e.sidx.timeline,f=p,g=e.mediaSequence||0;n="bigint"==typeof t.firstOffset?m()().BigInt(l)+t.firstOffset:l+t.firstOffset;for(var v=0;v<u.length;v++){var y=t.references[v],b=y.referencedSize,_=y.subsegmentDuration,T=void 0;T="bigint"==typeof n?n+m()().BigInt(b)-m()().BigInt(1):n+b-1;var x=xe({baseUrl:i,timescale:c,timeline:a,periodStart:p,presentationTime:f,number:g,duration:_,sourceDuration:s,indexRange:n+"-"+T,type:h})[0];r&&(x.map=r),d.push(x),n+="bigint"==typeof n?m()().BigInt(b):b,f+=_/c,g++}return e.segments=d,e},Se=["AUDIO","SUBTITLES"],ke=1/60,Ee=function(e){return(t=e,i=function(e){return e.timeline},le(t.reduce(function(e,t){return t.forEach(function(t){e[i(t)]=t}),e},{}))).sort(function(e,t){return e.timeline>t.timeline?1:-1});var t,i},Ce=function(e){var t,i,n=[];return t=e,i=function(e,t,i,r){n=n.concat(e.playlists||[])},Se.forEach(function(e){for(var n in t.mediaGroups[e])for(var r in t.mediaGroups[e][n]){var s=t.mediaGroups[e][n][r];i(s,e,n,r)}}),n},Ae=function(e){var t=e.playlist,i=e.mediaSequence;
2t.mediaSequence=i,t.segments.forEach(function(e,i){e.number=t.mediaSequence+i})},Le=function(e){var t=e.oldManifest,i=e.newManifest,n=t.playlists.concat(Ce(t)),r=i.playlists.concat(Ce(i));return i.timelineStarts=Ee([t.timelineStarts,i.timelineStarts]),function(e){var t=e.oldPlaylists,i=e.newPlaylists,n=e.timelineStarts;i.forEach(function(e){e.discontinuitySequence=de(n,function(t){return t.timeline===e.timeline});var i=function(e,t){for(var i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null}(t,e.attributes.NAME);if(i&&!e.sidx){var r=e.segments[0],s=de(i.segments,function(e){return Math.abs(e.presentationTime-r.presentationTime)<ke});if(-1===s)return Ae({playlist:e,mediaSequence:i.mediaSequence+i.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!i.segments.length&&e.timeline>i.timeline||i.segments.length&&e.timeline>i.segments[i.segments.length-1].timeline)&&e.discontinuitySequence--);i.segments[s].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),Ae({playlist:e,mediaSequence:i.segments[s].number})}})}({oldPlaylists:n,newPlaylists:r,timelineStarts:i.timelineStarts}),i},Ie=function(e){return e&&e.uri+"-"+(t=e.byterange,i="bigint"==typeof t.offset||"bigint"==typeof t.length?m()().BigInt(t.offset)+m()().BigInt(t.length)-m()().BigInt(1):t.offset+t.length-1,t.offset+"-"+i);var t,i},Pe=function(e){return le(e.reduce(function(e,t){var i=t.attributes.id+(t.attributes.lang||"");if(e[i]){var n;if(t.segments)t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments);t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)}else e[i]=t,e[i].attributes.timelineStarts=[];return e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{})).map(function(e){var t,i;return e.discontinuityStarts=(t=e.segments||[],i="discontinuity",t.reduce(function(e,t,n){return t[i]&&e.push(n),e},[])),e})},Oe=function(e,t){var i=Ie(e.sidx),n=i&&t[i]&&t[i].sidx;return n&&we(e,n,e.sidx.resolvedUri),e},De=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var i in e)e[i]=Oe(e[i],t);return e},Me=function(e){var t,i=e.attributes,n=e.segments,r=e.sidx,s=e.discontinuityStarts,a={attributes:(t={NAME:i.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:i.width,height:i.height},CODECS:i.codecs,BANDWIDTH:i.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuityStarts:s,timelineStarts:i.timelineStarts,segments:n};return i.frameRate&&(a.attributes["FRAME-RATE"]=i.frameRate),i.contentProtection&&(a.contentProtection=i.contentProtection),r&&(a.sidx=r),a},Ne=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},Re=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},Be=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},Fe=function(e){return e?Object.keys(e).reduce(function(t,i){var n=e[i];return t.concat(n.playlists)},[]):[]},Ue=function(e){var t,i=e.dashPlaylists,n=e.locations,r=e.sidxMapping,s=void 0===r?{}:r,a=e.previousManifest;if(!i.length)return{};var o=i[0].attributes,l=o.sourceDuration,c=o.type,u=o.suggestedPresentationDelay,d=o.minimumUpdatePeriod,h=Pe(i.filter(Ne)).map(Me),p=Pe(i.filter(Re)),f=Pe(i.filter(Be)),m=i.map(function(e){return e.attributes.captionServices}).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:l,playlists:De(h,s)};d>=0&&(g.minimumUpdatePeriod=1e3*d),n&&(g.locations=n),"dynamic"===c&&(g.suggestedPresentationDelay=u);var v,y,b=0===g.playlists.length,_=p.length?function(e,t,i){var n;void 0===t&&(t={}),void 0===i&&(i=!1);var r=e.reduce(function(e,r){var s=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"",o=r.attributes.label||"main";if(a&&!r.attributes.label){var l=s?" ("+s+")":"";o=""+r.attributes.lang+l}e[o]||(e[o]={language:a,autoselect:!0,default:"main"===s,playlists:[],uri:""});var c=Oe(function(e,t){var i,n=e.attributes,r=e.segments,s=e.sidx,a=e.mediaSequence,o=e.discontinuitySequence,l=e.discontinuityStarts,c={attributes:(i={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},i["PROGRAM-ID"]=1,i),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:o,discontinuityStarts:l,timelineStarts:n.timelineStarts,mediaSequence:a,segments:r};return n.contentProtection&&(c.contentProtection=n.contentProtection),s&&(c.sidx=s),t&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(r,i),t);return e[o].playlists.push(c),void 0===n&&"main"===s&&((n=r).default=!0),e},{});return n||(r[Object.keys(r)[0]].default=!0),r}(p,s,b):null,T=f.length?function(e,t){return void 0===t&&(t={}),e.reduce(function(e,i){var n=i.attributes.lang||"text";return e[n]||(e[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),e[n].playlists.push(Oe(function(e){var t,i=e.attributes,n=e.segments,r=e.mediaSequence,s=e.discontinuityStarts,a=e.discontinuitySequence;void 0===n&&(n=[{uri:i.baseUrl,timeline:i.periodStart,resolvedUri:i.baseUrl||"",duration:i.sourceDuration,number:0}],i.duration=i.sourceDuration);var o=((t={NAME:i.id,BANDWIDTH:i.bandwidth})["PROGRAM-ID"]=1,t);return i.codecs&&(o.CODECS=i.codecs),{attributes:o,uri:"",endList:"static"===i.t
2ype,timeline:i.periodStart,resolvedUri:i.baseUrl||"",targetDuration:i.duration,timelineStarts:i.timelineStarts,discontinuityStarts:s,discontinuitySequence:a,mediaSequence:r,segments:n}}(i),t)),e},{})}(f,s):null,x=h.concat(Fe(_),Fe(T)),w=x.map(function(e){return e.timelineStarts});return g.timelineStarts=Ee(w),v=x,y=g.timelineStarts,v.forEach(function(e){e.mediaSequence=0,e.discontinuitySequence=de(y,function(t){return t.timeline===e.timeline}),e.segments&&e.segments.forEach(function(e,t){e.number=t})}),_&&(g.mediaGroups.AUDIO.audio=_),T&&(g.mediaGroups.SUBTITLES.subs=T),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=m.reduce(function(e,t){return t?(t.forEach(function(t){var i=t.channel,n=t.language;e[n]={autoselect:!1,default:!1,instreamId:i,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])}),e):e},{})),a?Le({oldManifest:a,newManifest:g}):g},je=function(e,t,i){var n=e.NOW,r=e.clientOffset,s=e.availabilityStartTime,a=e.timescale,o=void 0===a?1:a,l=e.periodStart,c=void 0===l?0:l,u=e.minimumUpdatePeriod,d=(n+r)/1e3+(void 0===u?0:u)-(s+c);return Math.ceil((d*o-t)/i)},He=function(e,t){for(var i=e.type,n=e.minimumUpdatePeriod,r=void 0===n?0:n,s=e.media,a=void 0===s?"":s,o=e.sourceDuration,l=e.timescale,c=void 0===l?1:l,u=e.startNumber,d=void 0===u?1:u,h=e.periodStart,p=[],f=-1,m=0;m<t.length;m++){var g=t[m],v=g.d,y=g.r||0,b=g.t||0;f<0&&(f=b),b&&b>f&&(f=b);var _=void 0;if(y<0){var T=m+1;_=T===t.length?"dynamic"===i&&r>0&&a.indexOf("$Number$")>0?je(e,f,v):(o*c-f)/v:(t[T].t-f)/v}else _=y+1;for(var x=d+p.length+_,w=d+p.length;w<x;)p.push({number:w,duration:v/c,time:f,timeline:h}),f+=v,w++}return p},qe=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ze=function(e,t){return e.replace(qe,function(e){return function(t,i,n,r){if("$$"===t)return"$";if(void 0===e[i])return t;var s=""+e[i];return"RepresentationID"===i?s:(r=n?parseInt(r,10):1,s.length>=r?s:""+new Array(r-s.length+1).join("0")+s)}}(t))},We=function(e,t){var i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},n=e.initialization,r=void 0===n?{sourceURL:"",range:""}:n,s=ye({baseUrl:e.baseUrl,source:ze(r.sourceURL,i),range:r.range}),a=function(e,t){return e.duration||t?e.duration?Te(e):He(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]}(e,t);return a.map(function(t){i.Number=t.number,i.Time=t.time;var n=ze(e.media||"",i),r=e.timescale||1,a=e.presentationTimeOffset||0,o=e.periodStart+(t.time-a)/r;return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:D(e.baseUrl||"",n),map:s,number:t.number,presentationTime:o}})},Ve=function(e,t){var i=e.duration,n=e.segmentUrls,r=void 0===n?[]:n,s=e.periodStart;if(!i&&!t||i&&t)throw new Error(ge);var a,o=r.map(function(t){return function(e,t){var i=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,s=ye({baseUrl:i,source:r.sourceURL,range:r.range}),a=ye({baseUrl:i,source:t.media,range:t.mediaRange});return a.map=s,a}(e,t)});return i&&(a=Te(e)),t&&(a=He(e,t)),a.map(function(t,i){if(o[i]){var n=o[i],r=e.timescale||1,a=e.presentationTimeOffset||0;return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n.presentationTime=s+(t.time-a)/r,n}}).filter(function(e){return e})},Xe=function(e){var t,i,n=e.attributes,r=e.segmentInfo;r.template?(i=We,t=oe(n,r.template)):r.base?(i=xe,t=oe(n,r.base)):r.list&&(i=Ve,t=oe(n,r.list));var s={attributes:n};if(!i)return s;var a=i(t,r.segmentTimeline);if(t.duration){var o=t,l=o.duration,c=o.timescale,u=void 0===c?1:c;t.duration=l/u}else a.length?t.duration=a.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return s.attributes=t,s.segments=a,r.base&&t.indexRange&&(s.sidx=a[0],s.segments=[]),s},Ge=function(e,t){return ue(e.childNodes).filter(function(e){return e.tagName===t})},$e=function(e){return e.textContent.trim()},Ye=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var i=t.slice(1),n=i[0],r=i[1],s=i[2],a=i[3],o=i[4],l=i[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(r||0)+86400*parseFloat(s||0)+3600*parseFloat(a||0)+60*parseFloat(o||0)+parseFloat(l||0)},Ke={mediaPresentationDuration:function(e){return Ye(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return Ye(e)},suggestedPresentationDelay:function(e){return Ye(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Ye(e)},start:function(e){return Ye(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return function(e){return parseFloat(e.split("/").reduce(function(e,t){return e/t}))}(e)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?Ye(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},Qe=function(e){return e&&e.attributes?ue(e.attributes).reduce(function(e,t){var i=Ke[t.name]||Ke.DEFAULT;return e[t.name]=i(t.value),e},{}):{}},Ze={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Je=function(e,t){return t.length?ce(e.map(function(e){return t.map(function(t){return D(e,$e(t))})})):e},et=function(e){var t=Ge(e,"SegmentTemplate")[0],i=Ge(e,"SegmentList")[0],n=i&&Ge(i,"SegmentURL").map(function(e){return oe({tag:"SegmentURL"},Qe(e))}),r=Ge(e,"SegmentBase")[0],s=i||t,a=s&&Ge(s,"SegmentTimeline")[0],o=i||r||t,l=o&&Ge(o,"Initialization")[0],c=t&&Qe(t);c&&l?c.initialization=l&&Qe(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var u={template:c,segmentTimeline:a&&Ge(a,"S").map(function(e){return Qe(e)}),list:i&&oe(Qe(i),{segmentUrls:n,initialization:Qe(l)}),base:r&&oe(Qe(r),{initialization:Qe(l)})};return Object.keys(u).forEach(function(e){u[e]||delete u[e]}),u},tt=function(e,t,i){return function(n){var r,s=Qe(n),a=Je(t,Ge(n,"BaseURL")),o=Ge(n,"Role")[0],l={role:Qe(o)},c=oe(e,s,l),u=Ge(n,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2
2015"===(r=Qe(u)).schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map(function(e){var t,i;if(i=e,/^CC\d=/.test(e)){var n=e.split("=");t=n[0],i=n[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:i}}):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map(function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var i=e.split("="),n=i[0],r=i[1],s=void 0===r?"":r;t.channel=n,t.language=e,s.split(",").forEach(function(e){var i=e.split(":"),n=i[0],r=i[1];"lang"===n?t.language=r:"er"===n?t.easyReader=Number(r):"war"===n?t.aspectRatio=Number(r):"3D"===n&&(t["3D"]=Number(r))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0;d&&(c=oe(c,{captionServices:d}));var h=Ge(n,"Label")[0];if(h&&h.childNodes.length){var p=h.childNodes[0].nodeValue.trim();c=oe(c,{label:p})}var f=Ge(n,"ContentProtection").reduce(function(e,t){var i=Qe(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());var n=Ze[i.schemeIdUri];if(n){e[n]={attributes:i};var r=Ge(t,"cenc:pssh")[0];if(r){var s=$e(r);e[n].pssh=s&&N(s)}}return e},{});Object.keys(f).length&&(c=oe(c,{contentProtection:f}));var m=et(n),g=Ge(n,"Representation"),v=oe(i,m);return ce(g.map(function(e,t,i){return function(n){var r=Ge(n,"BaseURL"),s=Je(t,r),a=oe(e,Qe(n)),o=et(n);return s.map(function(e){return{segmentInfo:oe(i,o),attributes:oe(a,{baseUrl:e})}})}}(c,a,v)))}},it=function(e,t){return function(i,n){var r=Je(t,Ge(i.node,"BaseURL")),s=oe(e,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(s.periodDuration=i.attributes.duration);var a=Ge(i.node,"AdaptationSet"),o=et(i.node);return ce(a.map(tt(s,r,o)))}},nt=function(e){if(""===e)throw new Error(pe);var t,i,n=new(u().S4);try{i=(t=n.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(fe);return i},rt=function(e,t){void 0===t&&(t={});var i=function(e,t){void 0===t&&(t={});var i=t,n=i.manifestUri,r=void 0===n?"":n,s=i.NOW,a=void 0===s?Date.now():s,o=i.clientOffset,l=void 0===o?0:o,c=Ge(e,"Period");if(!c.length)throw new Error(he);var u=Ge(e,"Location"),d=Qe(e),h=Je([r],Ge(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=a,d.clientOffset=l,u.length&&(d.locations=u.map($e));var p=[];return c.forEach(function(e,t){var i=Qe(e),n=p[t-1];i.start=function(e){var t=e.attributes,i=e.priorPeriodAttributes,n=e.mpdType;return"number"==typeof t.start?t.start:i&&"number"==typeof i.start&&"number"==typeof i.duration?i.start+i.duration:i||"static"!==n?null:0}({attributes:i,priorPeriodAttributes:n?n.attributes:null,mpdType:d.type}),p.push({node:e,attributes:i})}),{locations:d.locations,representationInfo:ce(p.map(it(d,h)))}}(nt(e),t),n=i.representationInfo.map(Xe);return Ue({dashPlaylists:n,locations:i.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})},st=function(e){return function(e){var t=Ge(e,"UTCTiming")[0];if(!t)return null;var i=Qe(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;default:throw new Error(ve)}return i}(nt(e))},at=i(8962),ot=i.n(at),lt=function(e){return function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer}(e)},ct=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||lt(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},ut=m()().BigInt||Number,dt=[ut("0x1"),ut("0x100"),ut("0x10000"),ut("0x1000000"),ut("0x100000000"),ut("0x10000000000"),ut("0x1000000000000"),ut("0x100000000000000"),ut("0x10000000000000000")],ht=(ne=new
vendor: 4,542 bytes, line 2
2Uint16Array([65484]),255===(re=new Uint8Array(ne.buffer,ne.byteOffset,ne.byteLength))[0]||re[0],function(e,t){var i=void 0===t?{}:t,n=i.signed,r=void 0!==n&&n,s=i.le,a=void 0!==s&&s;e=ct(e);var o=a?"reduce":"reduceRight",l=(e[o]?e[o]:Array.prototype[o]).call(e,function(t,i,n){var r=a?n:Math.abs(n+1-e.length);return t+ut(i)*dt[r]},ut(0));if(r){var c=dt[e.length]/ut(2)-ut(1);(l=ut(l))>c&&(l-=c,l-=c,l-=ut(2))}return Number(l)}),pt=function(e,t){var i=(void 0===t?{}:t).le,n=void 0!==i&&i;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=ut(e);for(var r,s=(r=e,Math.ceil(function(e){return e.toString(2).length}(r)/8)),a=new Uint8Array(new ArrayBuffer(s)),o=0;o<s;o++){var l=n?o:Math.abs(o+1-a.length);a[l]=Number(e/dt[o]&ut(255)),e<0&&(a[l]=Math.abs(~a[l]),a[l]-=0===o?1:2)}return a},ft=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i},mt=function(e,t,i){var n=void 0===i?{}:i,r=n.offset,s=void 0===r?0:r,a=n.mask,o=void 0===a?[]:a;e=ct(e);var l=(t=ct(t)).every?t.every:Array.prototype.every;return t.length&&e.length-s>=t.length&&l.call(t,function(t,i){return t===(o[i]?o[i]&e[s+i]:e[s+i])})},gt=ct([73,68,51]),vt=function e(t,i){return void 0===i&&(i=0),(t=ct(t)).length-i<10||!mt(t,gt,{offset:i})?i:(i+=function(e,t){void 0===t&&(t=0);var i=(e=ct(e))[t+5],n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&i)>>4?n+20:n+10}(t,i),e(t,i))},yt=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?ft(e):e}),bt=function(e){e=ct(e);for(var t=[],i=0;e.length>i;){var n=e[i],r=0,s=0,a=e[++s];for(s++;128&a;)r=(127&a)<<7,a=e[s],s++;r+=127&a;for(var o=0;o<se.length;o++){var l=se[o],c=l.id,u=l.parser;if(n===c){t.push(u(e.subarray(s,s+r)));break}}i+=r+s}return t};se=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var i=e[t.size];t.url=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,ct(e));try{return decodeURIComponent(escape(t))}catch(e){}return t}(e.subarray(t.size+1,t.size+1+i)),t.size+=i}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=bt(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:bt(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var _t=function e(t,i,n){void 0===n&&(n=!1),i=function(e){return Array.isArray(e)?e.map(function(e){return yt(e)}):[yt(e)]}(i),t=ct(t);var r=[];if(!i.length)return r;for(var s=0;s<t.length;){var a=(t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3])>>>0,o=t.subarray(s+4,s+8);if(0===a)break;var l=s+a;if(l>t.length){if(n)break;l=t.length}var c=t.subarray(s+8,l);mt(o,i[0])&&(1===i.length?r.push(c):r.push.apply(r,e(c,i.slice(1),n))),s=l}return r},Tt={EBML:ct([26,69,223,163]),DocType:ct([66,130]),Segment:ct([24,83,128,103]),SegmentInfo:ct([21,73,169,102]),Tracks:ct([22,84,174,107]),Track:ct([174]),TrackNumber:ct([215]),DefaultDuration:ct([35,227,131]),TrackEntry:ct([174]),TrackType:ct([131]),FlagDefault:ct([136]),CodecID:ct([134]),CodecPrivate:ct([99,162]),VideoTrack:ct([224]),AudioTrack:ct([225]),Cluster:ct([31,67,182,117]),Timestamp:ct([231]),TimestampScale:ct([42,215,177]),BlockGroup:ct([160]),BlockDuration:ct([155]),Block:ct([161]),SimpleBlock:ct([163])},xt=[128,64,32,16,8,4,2,1],wt=function(e,t,i,n){void 0===i&&(i=!0),void 0===n&&(n=!1);var r=function(e){for(var t=1,i=0;i<xt.length&&!(e&xt[i]);i++)t++;return t}(e[t]),s=e.subarray(t,t+r);return i&&((s=Array.prototype.slice.call(e,t,t+r))[0]^=xt[r-1]),{length:r,value:ht(s,{signed:n}),bytes:s}},St=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?pt(t):t},kt=function e(t,i,n){if(n>=i.length)return i.length;var r=wt(i,n,!1);if(mt(t.bytes,r.bytes))return n;var s=wt(i,n+r.length);return e(t,i,n+s.length+s.value+r.length)},Et=function e(t,i){i=function(e){return Array.isArray(e)?e.map(function(e){return St(e)}):[St(e)]}(i),t=ct(t);var n=[];if(!i.length)return n;for(var r=0;r<t.length;){var s=wt(t,r,!1),a=wt(t,r+s.length),o=r+s.length+a.length;
2127===a.value&&(a.value=kt(s,t,o),a.value!==t.length&&(a.value-=o));var l=o+a.value>t.length?t.length:o+a.value,c=t.subarray(o,l);mt(i[0],s.bytes)&&(1===i.length?n.push(c):n=n.concat(e(c,i.slice(1)))),r+=s.length+a.length+c.length}return n},Ct=ct([0,0,0,1]),At=ct([0,0,1]),Lt=ct([0,0,3]),It=function(e){for(var t=[],i=1;i<e.length-2;)mt(e.subarray(i,i+3),Lt)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var n=e.length-t.length,r=new Uint8Array(n),s=0;for(i=0;i<n;s++,i++)s===t[0]&&(s++,t.shift()),r[i]=e[s];return r},Pt=function(e,t,i,n){void 0===n&&(n=1/0),e=ct(e),i=[].concat(i);for(var r,s=0,a=0;s<e.length&&(a<n||r);){var o=void 0;if(mt(e.subarray(s),Ct)?o=4:mt(e.subarray(s),At)&&(o=3),o){if(a++,r)return It(e.subarray(r,s));var l=void 0;"h264"===t?l=31&e[s+o]:"h265"===t&&(l=e[s+o]>>1&63),-1!==i.indexOf(l)&&(r=s+o),s+=o+("h264"===t?1:2)}else s++}return e.subarray(0,0)},Ot={webm:ct([119,101,98,109]),matroska:ct([109,97,116,114,111,115,107,97]),flac:ct([102,76,97,67]),ogg:ct([79,103,103,83]),ac3:ct([11,119]),riff:ct([82,73,70,70]),avi:ct([65,86,73]),wav:ct([87,65,86,69]),"3gp":ct([102,116,121,112,51,103]),mp4:ct([102,116,121,112]),fmp4:ct([115,116,121,112]),mov:ct([102,116,121,112,113,116]),moov:ct([109,111,111,118]),moof:ct([109,111,111,102])},Dt={aac:function(e){var t=vt(e);return mt(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=vt(e);return mt(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=Et(e,[Tt.EBML,Tt.DocType])[0];return mt(t,Ot.webm)},mkv:function(e){var t=Et(e,[Tt.EBML,Tt.DocType])[0];return mt(t,Ot.matroska)},mp4:function(e){return!Dt["3gp"](e)&&!Dt.mov(e)&&(!(!mt(e,Ot.mp4,{offset:4})&&!mt(e,Ot.fmp4,{offset:4}))||(!(!mt(e,Ot.moof,{offset:4})&&!mt(e,Ot.moov,{offset:4}))||void 0))},mov:function(e){return mt(e,Ot.mov,{offset:4})},"3gp":function(e){return mt(e,Ot["3gp"],{offset:4})},ac3:function(e){var t=vt(e);return mt(e,Ot.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=vt(e);return mt(e,Ot.flac,{offset:t})},ogg:function(e){return mt(e,Ot.ogg)},avi:function(e){return mt(e,Ot.riff)&&mt(e,Ot.avi,{offset:8})},wav:function(e){return mt(e,Ot.riff)&&mt(e,Ot.wav,{offset:8})},h264:function(e){return function(e,t,i){return Pt(e,"h264",t,i)}(e,7,3).length},h265:function(e){return function(e,t,i){return Pt(e,"h265",t,i)}(e,[32,33],3).length}},Mt=Object.keys(Dt).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);Mt.forEach(function(e){var t=Dt[e];Dt[e]=function(e){return t(ct(e))}});for(var Nt,Rt=Dt,Bt=function(e){e=ct(e);for(var t=0;t<Mt.length;t++){var i=Mt[t];if(Rt[i](e))return i}return""},Ft=i(9622),Ut="7.15.4",jt={},Ht=function(e,t){return jt[e]=jt[e]||[],t&&(jt[e]=jt[e].concat(t)),jt[e]},qt=function(e,t){var i=Ht(e).indexOf(t);return!(i<=-1)&&(jt[e]=jt[e].slice(),jt[e].splice(i,1),!0)},zt={prefixed:!0},Wt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Vt=Wt[0],Xt=0;Xt<Wt.length;Xt++)if(Wt[Xt][1]in v()){Nt=Wt[Xt];break}if(Nt){for(var Gt=0;Gt<Nt.length;Gt++)zt[Vt[Gt]]=Nt[Gt];zt.prefixed=Nt[0]!==Vt[0]}var $t=[];var Yt=function e(t){var i,n="info",r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i("log",n,t)};return i=function(e,t){return function(i,n,r){var s=t.levels[n],a=new RegExp("^("+s+")$");if("log"!==i&&r.unshift(i.toUpperCase()+":"),r.unshift(e+":"),$t){$t.push([].concat(r));var o=$t.length-1e3;$t.splice(0,o>0?o:0)}if(m()().console){var l=m()().console[i];l||"debug"!==i||(l=m()().console.info||m()().console.log),l&&s&&a.test(i)&&l[Array.isArray(r)?"apply":"call"](m()().console,r)}}}(t,r),r.createLogger=function(i){return e(t+": "+i)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},(r.history=function(){return $t?[].concat($t):[]}).filter=function(e){return($t||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},r.history.clear=function(){$t&&($t.length=0)},r.history.disable=function(){null!==$t&&($t.length=0,$t=null)},r.history.enable=function(){null===$t&&($t=[])},r.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("error",n,t)},r.warn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("warn",n,t)},r.debug=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("debug",n,t)},r}("VIDEOJS"),Kt=Yt.createLogger,Qt=Object.prototype.toString,Zt=function(e){return ti(e)?Object.keys(e):[]};function Jt(e,t){Zt(e).forEach(function(i){return t(e[i],i)})}function ei(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return Object.assign?y.apply(void 0,[e].concat(i)):(i.forEach(function(t){t&&Jt(t,function(t,i){e[i]=t})}),e)}function ti(e){return!!e&&"object"==typeof e}function ii(e){return ti(e)&&"[object Object]"===Qt.call(e)&&e.constructor===Object}function ni(e,t){if(!e||!t)return"";if("function"==typeof m()().getComputedStyle){var i;try{i=m()().getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}var ri,si,ai,oi=m()().navigator&&m()().navigator.userAgent||"",li=/AppleWeb
2Kit\/([\d.]+)/i.exec(oi),ci=li?parseFloat(li.pop()):null,ui=/iPod/i.test(oi),di=(ri=oi.match(/OS (\d+)_/i))&&ri[1]?ri[1]:null,hi=/Android/i.test(oi),pi=function(){var e=oi.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),fi=hi&&pi<5&&ci<537,mi=/Firefox/i.test(oi),gi=/Edg/i.test(oi),vi=!gi&&(/Chrome/i.test(oi)||/CriOS/i.test(oi)),yi=function(){var e=oi.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),bi=(si=/MSIE\s(\d+)\.\d/.exec(oi),!(ai=si&&parseFloat(si[1]))&&/Trident\/7.0/i.test(oi)&&/rv:11.0/.test(oi)&&(ai=11),ai),_i=/Safari/i.test(oi)&&!vi&&!hi&&!gi,Ti=/Windows/i.test(oi),xi=Boolean(Ii()&&("ontouchstart"in m()()||m()().navigator.maxTouchPoints||m()().DocumentTouch&&m()().document instanceof m()().DocumentTouch)),wi=/iPad/i.test(oi)||_i&&xi&&!/iPhone/i.test(oi),Si=/iPhone/i.test(oi)&&!wi,ki=Si||wi||ui,Ei=(_i||ki)&&!vi,Ci=Object.freeze({__proto__:null,IS_IPOD:ui,IOS_VERSION:di,IS_ANDROID:hi,ANDROID_VERSION:pi,IS_NATIVE_ANDROID:fi,IS_FIREFOX:mi,IS_EDGE:gi,IS_CHROME:vi,CHROME_VERSION:yi,IE_VERSION:bi,IS_SAFARI:_i,IS_WINDOWS:Ti,TOUCH_ENABLED:xi,IS_IPAD:wi,IS_IPHONE:Si,IS_IOS:ki,IS_ANY_SAFARI:Ei});function Ai(e){return"string"==typeof e&&Boolean(e.trim())}function Li(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Ii(){return v()===m()().document}function Pi(e){return ti(e)&&1===e.nodeType}function Oi(){try{return m()().parent!==m()().self}catch(e){return!0}}function Di(e){return function(t,i){if(!Ai(t))return v()[e](null);Ai(i)&&(i=v().querySelector(i));var n=Pi(i)?i:v();return n[e]&&n[e](t)}}function Mi(e,t,i,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={});var r=v().createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Yt.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+i+"."),r.setAttribute(e,i)):"textContent"===e?Ni(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)}),Object.getOwnPropertyNames(i).forEach(function(e){r.setAttribute(e,i[e])}),n&&en(r,n),r}function Ni(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function Ri(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Bi(e,t){return Li(t),e.classList?e.classList.contains(t):(i=t,new RegExp("(^|\\s)"+i+"($|\\s)")).test(e.className);var i}function Fi(e,t){return e.classList?e.classList.add(t):Bi(e,t)||(e.className=(e.className+" "+t).trim()),e}function Ui(e,t){return e?(e.classList?e.classList.remove(t):(Li(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):(Yt.warn("removeClass was called with an element that doesn't exist"),null)}function ji(e,t,i){var n=Bi(e,t);if("function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=!n),i!==n)return i?Fi(e,t):Ui(e,t),e}function Hi(e,t){Object.getOwnPropertyNames(t).forEach(function(i){var n=t[i];null==n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)})}function qi(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var s=n[r].name,a=n[r].value;"boolean"!=typeof e[s]&&-1===i.indexOf(","+s+",")||(a=null!==a),t[s]=a}return t}function zi(e,t){return e.getAttribute(t)}function Wi(e,t,i){e.setAttribute(t,i)}function Vi(e,t){e.removeAttribute(t)}function Xi(){v().body.focus(),v().onselectstart=function(){return!1}}function Gi(){v().onselectstart=function(){return!0}}function $i(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(ni(e,"height"))),i.width||(i.width=parseFloat(ni(e,"width"))),i}}function Yi(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==v()[zt.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function Ki(e,t){var i={x:0,y:0};if(ki)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r=ni(n,"transform");
2if(/^matrix/.test(r)){var s=r.slice(7,-1).split(/,\s/).map(Number);i.x+=s[4],i.y+=s[5]}else if(/^matrix3d/.test(r)){var a=r.slice(9,-1).split(/,\s/).map(Number);i.x+=a[12],i.y+=a[13]}n=n.parentNode}var o={},l=Yi(t.target),c=Yi(e),u=c.width,d=c.height,h=t.offsetY-(c.top-l.top),p=t.offsetX-(c.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-c.left,h=t.changedTouches[0].pageY+c.top,ki&&(p-=i.x,h-=i.y)),o.y=1-Math.max(0,Math.min(1,h/d)),o.x=Math.max(0,Math.min(1,p/u)),o}function Qi(e){return ti(e)&&3===e.nodeType}function Zi(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Ji(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),Pi(e)||Qi(e)?e:"string"==typeof e&&/\S/.test(e)?v().createTextNode(e):void 0}).filter(function(e){return e})}function en(e,t){return Ji(t).forEach(function(t){return e.appendChild(t)}),e}function tn(e,t){return en(Zi(e),t)}function nn(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var rn,sn=Di("querySelector"),an=Di("querySelectorAll"),on=Object.freeze({__proto__:null,isReal:Ii,isEl:Pi,isInFrame:Oi,createEl:Mi,textContent:Ni,prependTo:Ri,hasClass:Bi,addClass:Fi,removeClass:Ui,toggleClass:ji,setAttributes:Hi,getAttributes:qi,getAttribute:zi,setAttribute:Wi,removeAttribute:Vi,blockTextSelection:Xi,unblockTextSelection:Gi,getBoundingClientRect:$i,findPosition:Yi,getPointerPosition:Ki,isTextNode:Qi,emptyEl:Zi,normalizeContent:Ji,appendContent:en,insertContent:tn,isSingleLeftClick:nn,$:sn,$$:an}),ln=!1,cn=function(){if(!1!==rn.options.autoSetup){var e=Array.prototype.slice.call(v().getElementsByTagName("video")),t=Array.prototype.slice.call(v().getElementsByTagName("audio")),i=Array.prototype.slice.call(v().getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(var r=0,s=n.length;r<s;r++){var a=n[r];if(!a||!a.getAttribute){un(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&rn(a)}else ln||un(1)}};function un(e,t){Ii()&&(t&&(rn=t),m()().setTimeout(cn,e))}function dn(){ln=!0,m()().removeEventListener("load",dn)}Ii()&&("complete"===v().readyState?dn():m()().addEventListener("load",dn));var hn,pn=function(e){var t=v().createElement("style");return t.className=e,t},fn=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},mn=3;function gn(){return mn++}m()().WeakMap||(hn=function(){function e(){this.vdata="vdata"+Math.floor(m()().performance&&m()().performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var i=e[this.vdata]||gn();return e[this.vdata]||(e[this.vdata]=i),this.data[i]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];Yt("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var vn,yn=m()().WeakMap?new WeakMap:new hn;function bn(e,t){if(yn.has(e)){var i=yn.get(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&yn.delete(e)}}function _n(e,t,i,n){i.forEach(function(i){e(t,i,n)})}function Tn(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var n=e||m()().event;for(var r in e={},n)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&n.preventDefault||(e[r]=n[r]));if(e.target||(e.target=e.srcElement||v()),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){var s=v().documentElement,a=v().body;e.pageX=e.clientX+(s&&s.scrollLeft||a&&a.scrollLeft||0)-(s&&s.clientLeft||a&&a.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||a&&a.scrollTop||0)-(s&&s.clientTop||a&&a.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var xn=["touchstart","touchmove"];function wn(e,t,i){if(Array.isArray(t))return _n(wn,e,t,i);yn.has(e)||yn.set(e,{});var n=yn.get(e);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),i.guid||(i.guid=gn()),n.handlers[t].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(t,i){if(!n.disabled){t=Tn(t);var r=n.handlers[t.type];if(r)for(var s=r.slice(0),a=0,o=s.length;a<o&&!t.isImmediatePropagationStopped();a++)try{s[a].call(e,t,i)}catch(e){Yt.error(e)}}}),1===n.handlers[t].length)if(e.addEventListener){var r=!1;(function(){if("boolean"!=typeof vn){vn=!1;try{var e=Object.defineProperty({},"passive",{get:function(){vn=!0}});m()().addEventListener("test",null,e),m()().removeEventListener("test",null,e)}catch(e){}}return vn})()&&xn.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function Sn(e,t,i){if(yn.has(e)){var n=yn.get(e);if(n.handlers){if(Array.isArray(t))return _n(Sn,e,t,i);var r=function(e,t){n.handlers[t]=[],bn(e,t)};if(void 0!==t){var s=n.handlers[t];if(s)if(i){if(i.guid)for(var a=0;a<s.length;a++)s[a].guid===i.guid&&s.splice(a--,1);bn(e,t)}else r(e,t)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&r(e,o)}}}function kn(e,t,i){var n=yn.has(e)?yn.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Tn(t),n.dispatcher&&n.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)kn.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){yn.has(t.target)||yn.set(t.target,{});var s=yn.get(t.target);t.target[t.type]&&(s.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),s.disabled=!1)}return!t.defaultPrevented}function En(e,t,i){if(Array.isArray(t))return _n(En,e,t,i);var n=function n(){Sn(e,t,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||gn(),wn(e,t,n)}function Cn(e,t,i){var n=function n(){Sn(e,t,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||gn(),wn(e,t,n)}var An,Ln=Object.freeze({__proto__:null,fixEvent:Tn,on:wn,off:Sn,trigger:kn,one:En,any:Cn}),In=30,Pn=function(e,t,i){t.guid||(t.guid=gn());var n=t.bind(e);return n.guid=i?i+"_"+t.guid:t.guid,n},On=function(e,t){var i=m()().performance.now();return function(){var n=m()().performance.now();n-i>=t&&(e.apply(void 0,arguments),i=n)}},Dn=function(){};Dn.prototype.allowedEvents_={},Dn.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},wn(this,e,t),this.addEventListener=i},Dn.prototype.addEventListener=Dn.prototype.on,Dn.prototype.off=function(e,t){Sn(this,e,t)},Dn.prototype.removeEventListener=Dn.prototype.off,Dn.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},En(this,e,t),this.addEventListener=i},Dn.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Cn(this,e,t),this.addEventListener=i},Dn.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Tn(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),kn(this,e)},Dn.prototype.dispatchEvent=Dn.prototype.trigger,Dn.prototype.queueTrigger=function(e){var t=this;An||(An=new Map);var i=e.type||e,n=An.get(this);n||(n=new Map,An.set(this,n));var r=n.get(i);n.delete(i),m()().clearTimeout(r);var s=m()().setTimeout(function(){0===n.size&&(n=null,An.delete(t)),t.trigger(e)},0);n.set(i,s)};var Mn=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},Nn=function(e){return e instanceof Dn||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},Rn=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Bn=function(e,t,i){if(!e||!e.nodeName&&!Nn(e))throw new Error("Invalid target for "+Mn(t)+"#"+i+"; must be a DOM node or evented object.")},Fn=function(e,t,i){if(!Rn(e))throw new Error("Invalid event type for "+Mn(t)+"#"+i+"; must be a non-empty string or array.")},Un=function(e,t,i){if("function"!=typeof e)throw new Error("Invalid listener for "+Mn(t)+"#"+i+"; must be a function.")},jn=function(e,t,i){var n,r,s,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return a?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],s=t[1]):(n=t[0],r=t[1],s=t[2]),Bn(n,e,i),Fn(r,e,i),Un(s,e,i),{isTargetingSelf:a,target:n,type:r,listener:s=Pn(e,s)}},Hn=function(e,t,i,n){Bn(e,e,t),e.nodeName?Ln[t](e,i,n):e[t](i,n)},qn={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=jn(this,i,"on"),s=r.isTargetingSelf,a=r.target,o=r.type,l=r.listener;if(Hn(a,"on",o,l),!s){var c=function(){return e.off(a,o,l)};c.guid=l.guid;var u=function(){return e.off("dispose",c)};u.guid=l.guid,Hn(this,"on","dispose",c),Hn(a,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=jn(this,i,"one"),s=r.isTargetingSelf,a=r.target,o=r.type,l=r.listener;if(s)Hn(a,"one",o,l);else{var c=function t(){e.off(a,o,t);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];l.apply(null,n)};c.guid=l.guid,Hn(a,"one",o,c)}},any:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=jn(this,i,"any"),s=r.isTargetingSelf,a=r.target,o=r.type,l=r.listener;if(s)Hn(a,"any",o,l);else{var c=function t(){e.off(a,o,t);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];l.apply(null,n)};c.guid=l.guid,Hn(a,"any",o,c)}},off:function(e,t,i){if(!e||Rn(e))Sn(this.eventBusEl_,e,t);else{var n=e,r=t;Bn(n,this,"off"),Fn(r,this,"off"),Un(i,this,"off"),i=Pn(this,i),this.off("dispose",i),n.nodeName?(Sn(n,r,i),Sn(n,"dis
2pose",i)):Nn(n)&&(n.off(r,i),n.off("dispose",i))}},trigger:function(e,t){Bn(this.eventBusEl_,this,"trigger");var i=e&&"string"!=typeof e?e.type:e;if(!Rn(i)){var n="Invalid event type for "+Mn(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(n);(this.log||Yt).error(n)}return kn(this.eventBusEl_,e,t)}};function zn(e,t){void 0===t&&(t={});var i=t.eventBusKey;if(i){if(!e[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');e.eventBusEl_=e[i]}else e.eventBusEl_=Mi("span",{className:"vjs-event-bus"});return ei(e,qn),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&yn.has(e)&&yn.delete(e)}),m()().setTimeout(function(){e.eventBusEl_=null},0)}),e}var Wn={state:{},setState:function(e){var t,i=this;return"function"==typeof e&&(e=e()),Jt(e,function(e,n){i.state[n]!==e&&((t=t||{})[n]={from:i.state[n],to:e}),i.state[n]=e}),t&&Nn(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Vn(e,t){return ei(e,Wn),e.state=ei({},e.state,t),"function"==typeof e.handleStateChanged&&Nn(e)&&e.on("statechanged",e.handleStateChanged),e}var Xn=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},Gn=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})};function $n(){for(var e={},t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.forEach(function(t){t&&Jt(t,function(t,i){ii(t)?(ii(e[i])||(e[i]={}),e[i]=$n(e[i],t)):e[i]=t})}),e}var Yn=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var i in this.map_)e.call(t,this.map_[i],i,this)},e}(),Kn=m()().Map?m()().Map:Yn,Qn=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var i in this.set_)e.call(t,i,i,this)},e}(),Zn=m()().Set?m()().Set:Qn,Jn=function(){function e(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=$n({},this.options_),t=this.options_=$n(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var n=e&&e.id&&e.id()||"no_player";this.id_=n+"_component_"+gn()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(zn(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Vn(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Zn,this.setIntervalIds_=new Zn,this.rafIds_=new Zn,this.namedRafs_=new Kn,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=$n(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,i){return Mi(e,t,i)},t.localize=function(e,t,i){void 0===i&&(i=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[n],a=n&&n.split("-")[0],o=r&&r[a],l=i;return s&&s[e]?l=s[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,i){var n=t[i-1],r=n;return void 0===n&&(r=e),r})),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var n=this,r=0;r<t.length;r++)if(!(n=n.getChild(t[r]))||!n.getChild)return;return n},t.addChild=function(t,i,n){var r,s;if(void 0===i&&(i={}),void 0===n&&(n=this.children_.length),"string"==typeof t){s=Gn(t);var a=i.componentClass||s;i.name=s;var o=e.getComponent(a);if(!o)throw new Error("Component "+a+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,i)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(n,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(s=s||r.name&&Gn(r.name()))&&(this.childNameIndex_[s]=r,this.childNameIndex_[Xn(s)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[n+1]&&(this.children_[n+1].el_?l=this.children_[n+1].el_:Pi(this.children_[n+1])&&(l=this.children_[n+1])),this.contentEl().insertBefore(r.el(),l)}return r},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Gn(e.name())]=null,this.childNameIndex_[Xn(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,i=this.options_.children;if(i){var n,r=this.options_,s=e.getComponent("Tech");(n=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter(function(e){return!n.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var n,r;return"string"==typeof e?r=i[n=e]||t.options_[n]||{}:(n=e.name,r=e),{name:n,opts:r}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||Gn(t.name));return i&&!s.isTech(i)}
2).forEach(function(e){var i=e.name,n=e.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=t.options_.playerOptions;var s=t.addChild(i,n);s&&(t[i]=s)}})}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return sn(e,t||this.contentEl())},t.$$=function(e,t){return an(e,t||this.contentEl())},t.hasClass=function(e){return Bi(this.el_,e)},t.addClass=function(e){Fi(this.el_,e)},t.removeClass=function(e){Ui(this.el_,e)},t.toggleClass=function(e,t){ji(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return zi(this.el_,e)},t.setAttribute=function(e,t){Wi(this.el_,e,t)},t.removeAttribute=function(e){Vi(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,i){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+Gn(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=ni(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var i="offset"+Gn(e);t=this.el_[i]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,i=null;this.on("touchstart",function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=m()().performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(i){var n=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(e=!1)}});var n=function(){e=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){(i=null,!0===e)&&(m()().performance.now()-t<200&&(n.preventDefault(),this.trigger("tap")))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Pn(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.setTimeout=function(e,t){var i,n=this;return e=Pn(this,e),this.clearTimersOnDispose_(),i=m()().setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),m()().clearTimeout(e)),e},t.setInterval=function(e,t){e=Pn(this,e),this.clearTimersOnDispose_();var i=m()().setInterval(e,t);return this.setIntervalIds_.add(i),i},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),m()().clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Pn(this,e),t=m()().requestAnimationFrame(function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Pn(this,t);var n=this.requestAnimationFrame(function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),m()().cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
2h(function(t){var i=t[0],n=t[1];e[i].forEach(function(t,i){return e[n](i)})}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,i){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n,r=e.getComponent("Tech"),s=r&&r.isTech(i),a=e===i||e.prototype.isPrototypeOf(i.prototype);if(s||!a)throw n=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+n+".");t=Gn(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var l=o.players,c=Object.keys(l);if(l&&c.length>0&&c.map(function(e){return l[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=i,e.components_[Xn(t)]=i,i},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function er(e,t,i,n){return function(e,t,i){if("number"!=typeof t||t<0||t>i)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function tr(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:er.bind(null,"start",0,e),end:er.bind(null,"end",1,e)},m()().Symbol&&m()().Symbol.iterator&&(t[m()().Symbol.iterator]=function(){return(e||[]).values()}),t}function ir(e,t){return Array.isArray(e)?tr(e):void 0===e||void 0===t?tr():tr([[e,t]])}function nr(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=ir(0,0));for(var s=0;s<e.length;s++)i=e.start(s),(n=e.end(s))>t&&(n=t),r+=n-i;return r/t}function rr(e){if(e instanceof rr)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:ti(e)&&("number"==typeof e.code&&(this.code=e.code),ei(this,e)),this.message||(this.message=rr.defaultMessages[this.code]||"")}Jn.prototype.supportsRaf_="function"==typeof m()().requestAnimationFrame&&"function"==typeof m()().cancelAnimationFrame,Jn.registerComponent("Component",Jn),rr.prototype.code=0,rr.prototype.message="",rr.prototype.status=null,rr.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],rr.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 sr=0;sr<rr.errorTypes.length;sr++)rr[rr.errorTypes[sr]]=sr,rr.prototype[rr.errorTypes[sr]]=sr;function ar(e){return null!=e&&"function"==typeof e.then}function or(e){ar(e)&&e.then(null,function(e){})}var lr=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i,n){return e[i]&&(t[i]=e[i]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},cr=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=lr(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(lr))},ur=function(e,t){return e.forEach(function(e){var i=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return i.addCue(e)})}),t.textTracks()},dr="vjs-modal-dialog",hr=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleKeyDown_=function(e){return n.handleKeyDown(e)},n.close_=function(e){return n.close(e)},n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=!1,n.closeable(!n.options_.uncloseable),n.content(n.options_.content),n.contentEl_=Mi("div",{className:dr+"-content"},{role:"document"}),n.descEl_=Mi("p",{className:dr+"-description vjs-control-text",id:n.el().getAttribute("aria-describedby")}),Ni(n.descEl_,n.description()),n.el_.appendChild(n.descEl_),n.el_.appendChild(n.contentEl_),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},i.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},i.buildCSSClass=function(){return dr+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},i.label=function(){return this.localize(this.options_.label||"Modal Window")},i.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},i.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
2n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},i.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},i.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},i.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,i=this.getChild("closeButton");if(t&&!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_},i.fill=function(){this.fillWith(this.content())},i.fillWith=function(e){var t=this.contentEl(),i=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),tn(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);var r=this.getChild("closeButton");r&&i.appendChild(r.el_)},i.empty=function(){this.trigger("beforemodalempty"),Zi(this.contentEl()),this.trigger("modalempty")},i.content=function(e){return void 0!==e&&(this.content_=e),this.content_},i.conditionalFocus_=function(){var e=v().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},i.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},i.handleKeyDown=function(e){if(e.stopPropagation(),k().isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(k().isEventKey(e,"Tab")){for(var t,i=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=0;r<i.length;r++)if(n===i[r]){t=r;break}v().activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(i[i.length-1].focus(),e.preventDefault()):e.shiftKey||t!==i.length-1||(i[0].focus(),e.preventDefault())}},i.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof m()().HTMLAnchorElement||e instanceof m()().HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof m()().HTMLInputElement||e instanceof m()().HTMLSelectElement||e instanceof m()().HTMLTextAreaElement||e instanceof m()().HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof m()().HTMLIFrameElement||e instanceof m()().HTMLObjectElement||e instanceof m()().HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(Jn);hr.prototype.options_={pauseOnOpen:!0,temporary:!0},Jn.registerComponent("ModalDialog",hr);var pr=function(e){function t(t){var i;void 0===t&&(t=[]),(i=e.call(this)||this).tracks_=[],Object.defineProperty(b(i),"length",{get:function(){return this.tracks_.length}});for(var n=0;n<t.length;n++)i.addTrack(t[n]);return i}T(t,e);var i=t.prototype;return i.addTrack=function(e){var t=this,i=this.tracks_.length;""+i in this||Object.defineProperty(this,i,{get:function(){return this.tracks_[i]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},Nn(e)&&e.addEventListener("labelchange",e.labelchange_)},i.removeTrack=function(e){for(var t,i=0,n=this.length;i<n;i++)if(this[i]===e){(t=this[i]).off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},i.getTrackById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},t}(Dn);for(var fr in pr.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},pr.prototype.allowedEvents_)pr.prototype["on"+fr]=null;var mr=function(e,t){for(var i=0;i<e.length;
vendor: 5,204 bytes, line 2
2i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)},gr=function(e){function t(t){var i;void 0===t&&(t=[]);for(var n=t.length-1;n>=0;n--)if(t[n].enabled){mr(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,i}T(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;t.enabled&&mr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){i.changing_||(i.changing_=!0,mr(i,t),i.changing_=!1,i.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},i.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(pr),vr=function(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)},yr=function(e){function t(t){var i;void 0===t&&(t=[]);for(var n=t.length-1;n>=0;n--)if(t[n].selected){vr(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,Object.defineProperty(b(i),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),i}T(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;t.selected&&vr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){i.changing_||(i.changing_=!0,vr(i,t),i.changing_=!1,i.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},i.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(pr),br=function(e){function t(){return e.apply(this,arguments)||this}T(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return i.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return i.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},i.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(pr),_r=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t},t.removeTrackElement_=function(e){for(var t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Tr=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,i=0,n=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<n)for(i=t;i<n;i++)r.call(this,i)},t.getCueById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},e}(),xr={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},wr={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Sr={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},kr={disabled:"disabled",hidden:"hidden",showing:"showing"},Er=function(e){function t(t){var i;void 0===t&&(t={}),i=e.call(this)||this;var n={id:t.id||"vjs_track_"+gn(),kind:t.kind||"",language:t.language||""},r=t.label||"",s=function(e){Object.defineProperty(b(i),e,{get:function(){return n[e]},set:function(){}})};for(var a in n)s(a);return Object.defineProperty(b(i),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),i}return T(t,e),t}(Dn),Cr=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],i=v().createElement("a");i.href=e;for(var n={},r=0;r<t.length;r++)n[t[r]]=i[t[r]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),n.protocol||(n.protocol=m()().location.protocol),n.host||(n.host=m()().location.host),n}
2,Ar=function(e){if(!e.match(/^https?:\/\//)){var t=v().createElement("a");t.href=e,e=t.href}return e},Lr=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},Ir=function(e,t){void 0===t&&(t=m()().location);var i=Cr(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host},Pr=Object.freeze({__proto__:null,parseUrl:Cr,getAbsoluteURL:Ar,getFileExtension:Lr,isCrossOrigin:Ir}),Or=function(e,t){var i=new(m()().WebVTT.Parser)(m()(),m()().vttjs,m()().WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),n.length>0&&(m()().console&&m()().console.groupCollapsed&&m()().console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return Yt.error(e)}),m()().console&&m()().console.groupEnd&&m()().console.groupEnd()),i.flush()},Dr=function(e,t){var i={uri:e},n=Ir(e);n&&(i.cors=n);var r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),E()()(i,Pn(this,function(e,i,n){if(e)return Yt.error(e,i);t.loaded_=!0,"function"!=typeof m()().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return Or(n,t);Yt.error("vttjs failed to load, stopping trying to process "+t.src)}):Or(n,t)}))},Mr=function(e){function t(t){var i;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var n=$n(t,{kind:Sr[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=kr[n.mode]||"disabled",s=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden"),(i=e.call(this,n)||this).tech_=n.tech,i.cues_=[],i.activeCues_=[],i.preload_=!1!==i.tech_.preloadTextTracks;var a=new Tr(i.cues_),o=new Tr(i.activeCues_),l=!1,c=Pn(b(i),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1))});return i.tech_.one("dispose",function(){i.tech_.off("timeupdate",c)}),"disabled"!==r&&i.tech_.on("timeupdate",c),Object.defineProperties(b(i),{default:{get:function(){return s},set:function(){}},mode:{get:function(){return r},set:function(e){kr[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||Dr(this.src,this),this.tech_.off("timeupdate",c),"disabled"!==r&&this.tech_.on("timeupdate",c),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var s=0;s<t.length;s++)-1===this.activeCues_.indexOf(t[s])&&(l=!0);return this.activeCues_=t,o.setCues_(this.activeCues_),o},set:function(){}}}),n.src?(i.src=n.src,i.preload_||(i.loaded_=!0),(i.preload_||"subtitles"!==n.kind&&"captions"!==n.kind)&&Dr(i.src,b(i))):i.loaded_=!0,i}T(t,e);var i=t.prototype;return i.addCue=function(e){var t=e;if(m()().vttjs&&!(e instanceof m()().vttjs.VTTCue)){for(var i in t=new(m()().vttjs.VTTCue)(e.startTime,e.endTime,e.text),e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},i.removeCue=function(e){for(var t=this.cues_.length;t--;){var i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(Er);Mr.prototype.allowedEvents_={cuechange:"cuechange"};var Nr=function(e){function t(t){var i;void 0===t&&(t={});var n=$n(t,{kind:wr[t.kind]||""});i=e.call(this,n)||this;var r=!1;return Object.defineProperty(b(i),"enabled",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),n.enabled&&(i.enabled=n.enabled),i.loaded_=!0,i}return T(t,e),t}(Er),Rr=function(e){function t(t){var i;void 0===t&&(t={});var n=$n(t,{kind:xr[t.kind]||""});i=e.call(this,n)||this;var r=!1;return Object.defineProperty(b(i),"selected",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),n.selected&&(i.selected=n.selected),i}return T(t,e),t}(Er),Br=function(e){function t(t){var i,n;void 0===t&&(t={}),i=e.call(this)||this;var r=new Mr(t);return i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i.default=r.default,Object.defineProperties(b(i),{readyState:{get:function(){return n}},track:{get:function(){return r}}}),n=0,r.addEventListener("loadeddata",function(){n=2,i.trigger({type:"load",target:b(i)})}),i}return T(t,e),t}(Dn);Br.prototype.allowedEvents_={load:"load"},Br.NONE=0,Br.LOADING=1,Br.LOADED=2,Br.ERROR=3;
vendor: 3,898 bytes, line 2
2var Fr={audio:{ListClass:gr,TrackClass:Nr,capitalName:"Audio"},video:{ListClass:yr,TrackClass:Rr,capitalName:"Video"},text:{ListClass:br,TrackClass:Mr,capitalName:"Text"}};Object.keys(Fr).forEach(function(e){Fr[e].getterName=e+"Tracks",Fr[e].privateName=e+"Tracks_"});var Ur={remoteText:{ListClass:br,TrackClass:Mr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:_r,TrackClass:Br,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},jr=y({},Fr,Ur);Ur.names=Object.keys(Ur),Fr.names=Object.keys(Fr),jr.names=[].concat(Ur.names).concat(Fr.names);var Hr=function(e){function t(t,i){var n;return void 0===t&&(t={}),void 0===i&&(i=function(){}),t.reportTouchActivity=!1,(n=e.call(this,null,t,i)||this).onDurationChange_=function(e){return n.onDurationChange(e)},n.trackProgress_=function(e){return n.trackProgress(e)},n.trackCurrentTime_=function(e){return n.trackCurrentTime(e)},n.stopTrackingCurrentTime_=function(e){return n.stopTrackingCurrentTime(e)},n.disposeSourceHandler_=function(e){return n.disposeSourceHandler(e)},n.hasStarted_=!1,n.on("playing",function(){this.hasStarted_=!0}),n.on("loadstart",function(){this.hasStarted_=!1}),jr.names.forEach(function(e){var i=jr[e];t&&t[i.getterName]&&(n[i.privateName]=t[i.getterName])}),n.featuresProgressEvents||n.manualProgressOn(),n.featuresTimeupdateEvents||n.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(n["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?n.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(n.featuresNativeTextTracks=!0),n.featuresNativeTextTracks||n.emulateTextTracks(),n.preloadTextTracks=!1!==t.preloadTextTracks,n.autoRemoteTextTracks_=new jr.text.ListClass,n.initTrackListeners(),t.nativeControlsForTouch||n.emitTapEvents(),n.constructor&&(n.name_=n.constructor.name||"Unknown Tech"),n}T(t,e);var i=t.prototype;return i.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},i.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},i.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},i.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Pn(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},i.onDurationChange=function(e){this.duration_=this.duration()},i.buffered=function(){return ir(0,0)},i.bufferedPercent=function(){return nr(this.buffered(),this.duration_)},i.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},i.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},i.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},i.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},i.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.dispose=function(){this.clearTracks(Fr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},i.clearTracks=function(e){var t=this;
2(e=[].concat(e)).forEach(function(e){for(var i=t[e+"Tracks"]()||[],n=i.length;n--;){var r=i[n];"text"===e&&t.removeRemoteTextTrack(r),i.removeTrack(r)}})},i.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}},i.reset=function(){},i.crossOrigin=function(){},i.setCrossOrigin=function(){},i.error=function(e){return void 0!==e&&(this.error_=new rr(e),this.trigger("error")),this.error_},i.played=function(){return this.hasStarted_?ir(0,0):ir()},i.play=function(){},i.setScrubbing=function(){},i.scrubbing=function(){},i.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.initTrackListeners=function(){var e=this;Fr.names.forEach(function(t){var i=Fr[t],n=function(){e.trigger(t+"trackchange")},r=e[i.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),e.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},i.addWebVttScript_=function(){var e=this;if(!m()().WebVTT)if(v().body.contains(this.el())){if(!this.options_["vtt.js"]&&ii(A())&&Object.keys(A()).length>0)return void this.trigger("vttjsloaded");var t=v().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),m()().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},i.emulateTextTracks=function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var s=function(){return e.trigger("texttrackchange")},a=function(){s();for(var e=0;e<t.length;e++){var i=t[e];i.removeEventListener("cuechange",s),"showing"===i.mode&&i.addEventListener("cuechange",s)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",function(){i.off("addtrack",n),i.off("removetrack",r),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",s)}})},i.addTextTrack=function(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,n,r){void 0===r&&(r={});var s=e.textTracks();r.kind=t,i&&(r.label=i),n&&(r.language=n),r.tech=e;var a=new jr.text.TrackClass(r);return s.addTrack(a),a}(this,e,t,i)},i.createRemoteTextTrack=function(e){var t=$n(e,{tech:this});return new Ur.remoteTextEl.TrackClass(t)},i.addRemoteTextTrack=function(e,t){var i=this;void 0===e&&(e={});var n=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(Yt.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==t&&this.ready(function(){return i.autoRemoteTextTracks_.addTrack(n.track)}),n},i.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},i.getVideoPlaybackQuality=function(){return{}},i.requestPictureInPicture=function(){var e=this.options_.Promise||m()().Promise;if(e)return e.reject()},i.disablePictureInPicture=function(){return!0},i.setDisablePictureInPicture=function(){},i.setPoster=function(){},i.playsinline=function(){},i.setPlaysinline=function(){},i.overrideNativeAudioTracks=function(){},i.overrideNativeVideoTracks=function(){},i.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,i){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Gn(e),t.techs_[e]=i,t.techs_[Xn(e)]=i,"Tech"!==e&&t.defaultTechOrder_.push(e),i},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=Gn(e),m()()&&m()().videojs&&m()().videojs[e]?(Yt.warn("The "+e+" tech w
2as added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),m()().videojs[e]):void 0)},t}(Jn);jr.names.forEach(function(e){var t=jr[e];Hr.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Hr.prototype.featuresVolumeControl=!0,Hr.prototype.featuresMuteControl=!0,Hr.prototype.featuresFullscreenResize=!1,Hr.prototype.featuresPlaybackRate=!1,Hr.prototype.featuresProgressEvents=!1,Hr.prototype.featuresSourceset=!1,Hr.prototype.featuresTimeupdateEvents=!1,Hr.prototype.featuresNativeTextTracks=!1,Hr.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),void 0===i&&(i=n.length),n.splice(i,0,t)},e.canPlayType=function(t){for(var i,n=e.sourceHandlers||[],r=0;r<n.length;r++)if(i=n[r].canPlayType(t))return i;return""},e.selectSourceHandler=function(t,i){for(var n=e.sourceHandlers||[],r=0;r<n.length;r++)if(n[r].canHandleSource(t,i))return n[r];return null},e.canPlaySource=function(t,i){var n=e.selectSourceHandler(t,i);return n?n.canHandleSource(t,i):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var i=e.selectSourceHandler(t,this.options_);i||(e.nativeSourceHandler?i=e.nativeSourceHandler:Yt.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=i.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Jn.registerComponent("Tech",Hr),Hr.registerTech("Tech",Hr),Hr.defaultTechOrder_=[];var qr={},zr={},Wr={};function Vr(e,t,i){e.setTimeout(function(){return Qr(t,qr[t.type],i,e)},1)}function Xr(e,t,i,n){void 0===n&&(n=null);var r="call"+Gn(i),s=e.reduce(Kr(r),n),a=s===Wr,o=a?null:t[i](s);return function(e,t,i,n){for(var r=e.length-1;r>=0;r--){var s=e[r];s[t]&&s[t](n,i)}}(e,i,o,a),o}var Gr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},$r={setCurrentTime:1,setMuted:1,setVolume:1},Yr={play:1,pause:1};function Kr(e){return function(t,i){return t===Wr?Wr:i[e]?i[e](t):t}}function Qr(e,t,i,n,r,s){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===s&&(s=!1);var a=t,o=a[0],l=a.slice(1);if("string"==typeof o)Qr(e,qr[o],i,n,r,s);else if(o){var c=function(e,t){var i=zr[e.id()],n=null;if(null==i)return n=t(e),zr[e.id()]=[[t,n]],n;for(var r=0;r<i.length;r++){var s=i[r],a=s[0],o=s[1];a===t&&(n=o)}return null===n&&(n=t(e),i.push([t,n])),n}(n,o);if(!c.setSource)return r.push(c),Qr(e,l,i,n,r,s);c.setSource(ei({},e),function(t,a){if(t)return Qr(e,l,i,n,r,s);r.push(c),Qr(a,e.type===a.type?l:qr[a.type],i,n,r,s)})}else l.length?Qr(e,l,i,n,r,s):s?i(e,r):Qr(e,qr["*"],i,n,r,!0)}var Zr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Jr=function(e){void 0===e&&(e="");var t=Lr(e);return Zr[t.toLowerCase()]||""},es=function e(t){if(Array.isArray(t)){var i=[];t.forEach(function(t){t=e(t),Array.isArray(t)?i=i.concat(t):ti(t)&&i.push(t)}),t=i}else t="string"==typeof t&&t.trim()?[ts({src:t})]:ti(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[ts(t)]:[];return t};function ts(e){if(!e.type){var t=Jr(e.src);t&&(e.type=t)}return e}var is=function(e){function t(t,i,n){var r,s=$n({createEl:!1},i);if(r=e.call(this,t,s,n)||this,i.playerOptions.sources&&0!==i.playerOptions.sources.length)t.src(i.playerOptions.sources);else for(var a=0,o=i.playerOptions.techOrder;a<o.length;a++){var l=Gn(o[a]),c=Hr.getTech(l);if(l||(c=Jn.getComponent(l)),c&&c.isSupported()){t.loadTech_(l);break}}return r}return T(t,e),t}(Jn);Jn.registerComponent("MediaLoader",is);var ns=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseOver_=function(e){return n.handleMouseOver(e)},n.handleMouseOut_=function(e){return n.handleMouseOut(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.emitTapEvents(),n.enable(),n}T(t,e);var i=t.prototype;return i.createEl=function(e,t,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={}),t=ei({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&Yt.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=ei({role:"button"},i),this.tabIndex_=t.tabIndex;var n=Mi(e,t,i);return n.appendChild(Mi("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n},i.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},i.createControlTextEl=function(e){return this.controlTextEl_=Mi("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},i.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,Ni(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)},i.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},i.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},i.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},i.handleLanguagechange=function(){this.controlText(this.controlText_)},i.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},i.handleKeyDown=function(t){k().isEventKey(t,"Space")||k().isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Jn);Jn.registerComponent("ClickableComponent",ns);var rs=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update(),n.update_=function(e){return n.update(e)},t.on("posterchange",n.update_),n}T(t,e);var i=t.prototype;return i.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},i.createEl=function(){return Mi("div",{className:"vjs-poster",tabIndex:-1})},i.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},i.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},i.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(bi||gi)&&t||this.player_.tech(!0).focus(),this.player_.paused()?or(this.player_.play()):this.player_.pause()}},t}(ns);Jn.registerComponent("PosterImage",rs);var ss="#222",as={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',
vendor: 4,633 bytes, line 2
2script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function os(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function ls(e,t,i){try{e.style[t]=i}catch(e){return}}var cs=function(e){function t(t,i,n){var r;r=e.call(this,t,i,n)||this;var s=function(e){return r.updateDisplay(e)};return t.on("loadstart",function(e){return r.toggleDisplay(e)}),t.on("texttrackchange",s),t.on("loadedmetadata",function(e){return r.preselectTrack(e)}),t.ready(Pn(b(r),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",s),t.on("playerresize",s),m()().addEventListener("orientationchange",s),t.on("dispose",function(){return m()().removeEventListener("orientationchange",s)});for(var e=this.options_.playerOptions.tracks||[],i=0;i<e.length;i++)this.player_.addRemoteTextTrack(e[i],!0);this.preselectTrack()}})),r}T(t,e);var i=t.prototype;return i.preselectTrack=function(){for(var e,t,i,n={captions:1,subtitles:1},r=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=0;a<r.length;a++){var o=r[a];s&&s.enabled&&s.language&&s.language===o.language&&o.kind in n?o.kind===s.kind?i=o:i||(i=o):s&&!s.enabled?(i=null,e=null,t=null):o.default&&("descriptions"!==o.kind||e?o.kind in n&&!t&&(t=o):e=o)}i?i.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},i.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},i.clearDisplay=function(){"function"==typeof m()().WebVTT&&m()().WebVTT.processCues(m()(),[],this.el_)},i.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var i=[],n=0;n<e.length;++n){var r=e[n];"showing"===r.mode&&i.push(r)}this.updateForTrack(i)}else{for(var s=null,a=null,o=e.length;o--;){var l=e[o];"showing"===l.mode&&("descriptions"===l.kind?s=l:a=l)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):s&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}},i.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),i=e.activeCues,n=i.length;n--;){var r=i[n];if(r){var s=r.displayState;if(t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&ls(s.firstChild,"color",os(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&ls(s.firstChild,"backgroundColor",os(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?ls(s,"backgroundColor",os(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+ss:"raised"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+ss:"depressed"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+ss:"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+ss)),t.fontPercent&&1!==t.fontPercent){var a=m()().parseFloat(s.style.fontSize);s.style.fontSize=a*t.fontPercent+"px",s.style.height="auto",s.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=as[t.fontFamily])}}},i.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof m()().WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],i=0;i<e.length;++i)for(var n=e[i],r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r]);m()().WebVTT.processCues(m()(),t,this.el_);for(var s=0;s<e.length;++s){for(var a=e[s],o=0;o<a.activeCues.length;++o){var l=a.activeCues[o].displayState;Fi(l,"vjs-text-track-cue"),Fi(l,"vjs-text-track-cue-"+(a.language?a.language:s))}this.player_.textTrackSettings&&this.updateDisplayState(a)}}},t}(Jn);Jn.registerComponent("TextTrackDisplay",cs);var us=function(e){function t(){return e.apply(this,arguments)||this}return T(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),i=this.localize(t?"Audio Player":"
2Video Player"),n=Mi("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[i])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(n),r},t}(Jn);Jn.registerComponent("LoadingSpinner",us);var ds=function(e){function t(){return e.apply(this,arguments)||this}T(t,e);var i=t.prototype;return i.createEl=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i={});var n=Mi("button",t=ei({className:this.buildCSSClass()},t),i=ei({type:"button"},i));return n.appendChild(Mi("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n},i.addChild=function(e,t){void 0===t&&(t={});var i=this.constructor.name;return Yt.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),Jn.prototype.addChild.call(this,e,t)},i.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyDown=function(t){k().isEventKey(t,"Space")||k().isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(ns);Jn.registerComponent("Button",ds);var hs=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).mouseused_=!1,n.on("mousedown",function(e){return n.handleMouseDown(e)}),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-big-play-button"},i.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var i=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return or(t),void(!this.player_.tech(!0)||(bi||gi)&&i||this.player_.tech(!0).focus())}var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var s=function(){return r.focus()};ar(t)?t.then(s,function(){}):this.setTimeout(s,1)}else this.player_.tech(!0).focus()},i.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},i.handleMouseDown=function(e){this.mouseused_=!0},t}(ds);hs.prototype.controlText_="Play Video",Jn.registerComponent("BigPlayButton",hs);var ps=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).controlText(i&&i.controlText||n.localize("Close")),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},i.handleKeyDown=function(t){k().isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(ds);Jn.registerComponent("CloseButton",ps);var fs=function(e){function t(t,i){var n;return void 0===i&&(i={}),n=e.call(this,t,i)||this,i.replay=void 0===i.replay||i.replay,n.on(t,"play",function(e){return n.handlePlay(e)}),n.on(t,"pause",function(e){return n.handlePause(e)}),i.replay&&n.on(t,"ended",function(e){return n.handleEnded(e)}),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.player_.paused()?or(this.player_.play()):this.player_.pause()},i.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},i.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},i.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},t}(ds);fs.prototype.controlText_="Play",Jn.registerComponent("PlayToggle",fs);var ms=function(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),s=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=n=i="-"),(r=r>0||a>0?r+":":"")+(n=((r||s>=10)&&n<10?"0"+n:n)+":")+(i=i<10?"0"+i:i)},gs=ms;function vs(e,t){return void 0===t&&(t=e),gs(e,t)}var ys=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,["timeupdate","ended"],function(e){return n.updateContent(e)}),n.updateTextNode_(),n}T(t,e);var i=t.prototype;return i.createEl=function(){var t=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),n=Mi("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"Â "},{role:"presentation"});return i.appendChild(n),this.contentEl_=Mi("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),i.appendChild(this.contentEl_),i},i.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},i.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=vs(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,Yt.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=v().createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},i.updateContent=function(e){},t}(Jn);ys.prototype.labelText_="Time",ys.prototype.controlText_="Time",Jn.registerComponent("TimeDisplay",ys);var bs=function(e){function t(){return e.apply(this,arguments)||this}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(ys);bs.prototype.labelText_="Current Time",bs.prototype.controlText_="Current Time",Jn.registerComponent("CurrentTimeDisplay",bs);var _s=function(e){function t(t,i){var n,r=function(e){return n.updateContent(e)};return(n=e.call(this,t,i)||this).on(t,"durationchange",r),n.on(t,"loadstart",r),n.on(t,"loadedmetadata",r),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-duration"},i.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(ys);_s.prototype.labelText_="Duration",_s.prototype.controlText_="Duration",Jn.registerComponent("DurationDisplay",_s);var Ts=function(e){function t(){return e.apply(this,arguments)||this}return T(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=e.prototype.createEl.call(this,"div"),n=e.prototype.createEl.call(this,"span",{textContent:"/"});return i.appendChild(n),t.appendChild(i),t},t}(Jn);Jn.registerComponent("TimeDivider",Ts);var xs=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"durationchange",function(e){return n.updateContent(e)}),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-remaining-time"},i.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(Mi("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},i.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(ys);xs.prototype.labelText_="Remaining Time",xs.prototype.controlText_="Remaining Time",Jn.registerComponent("RemainingTimeDisplay",xs);var ws=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).updateShowing(),n.on(n.player(),"durationchange",function(e){return n.updateShowing(e)}),n}T(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Mi("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Mi("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"Â "})),this.contentEl_.appendChild(v().createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},i.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},i.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Jn);Jn.registerComponent("LiveDisplay",ws);var Ss=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).updateLiveEdgeStatus(),n.player_.liveTracker&&(n.updateLiveEdgeStatusHandler_=function(e){return n.updateLiveEdgeStatus(e)},n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)),n}T(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Mi("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},i.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},i.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},i.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(ds);Ss.prototype.controlText_="Seek to live, currently playing live",Jn.registerComponent("SeekToLive",Ss);var ks=function(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))},Es=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseDown_=function(e){return n.handleMouseDown(e)},n.handleMouseUp_=function(e){return n.handleMouseUp(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleMouseMove_=function(e){return n.handleMouseMove(e)},n.update_=function(e){return n.update(e)},n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}T(t,e);var i=t.prototype;return i.enabled=function(){return this.enabled_},i.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},i.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},i.createEl=function(t,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),i.className=i.className+" vjs-slider",i=ei({tabIndex:0},i),n=ei({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),e.prototype.createEl.call(this,t,i,n)},i.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||vi||e.preventDefault(),Xi(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e)},i.handleMouseMove=function(e){},i.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Gi(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},i.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var i=e.vertical()?"height":"width";e.bar.el().style[i]=(100*t).toFixed(2)+"%"})),t}},i.getProgress=function(){return Number(ks(this.getPercent(),0,1).toFixed(4))},i.calculateDistance=function(e){var t=Ki(this.el_,e);return this.vertical()?t.y:t.x},i.handleKeyDown=function(t){k().isEventKey(t,"Left")||k().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):k().isEventKey(t,"Right")||k().isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},i.handleClick=function(e){e.stopPropagation(),e.preventDefault()},i.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Jn);Jn.registerComponent("Slider",Es);
vendor: 5,247 bytes, line 2
2var Cs=function(e,t){return ks(e/t*100,0,100).toFixed(2)+"%"},As=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).partEls_=[],n.on(t,"progress",function(e){return n.update(e)}),n}T(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),i=Mi("span",{className:"vjs-control-text"}),n=Mi("span",{textContent:this.localize("Loaded")}),r=v().createTextNode(": ");return this.percentageEl_=Mi("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(i),i.appendChild(n),i.appendChild(r),i.appendChild(this.percentageEl_),t},i.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},i.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,i=t.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),s=t.partEls_,a=Cs(r,n);t.percent_!==a&&(t.el_.style.width=a,Ni(t.percentageEl_,a),t.percent_=a);for(var o=0;o<i.length;o++){var l=i.start(o),c=i.end(o),u=s[o];u||(u=t.el_.appendChild(Mi()),s[o]=u),u.dataset.start===l&&u.dataset.end===c||(u.dataset.start=l,u.dataset.end=c,u.style.left=Cs(l,r),u.style.width=Cs(c-l,r))}for(var d=s.length;d>i.length;d--)t.el_.removeChild(s[d-1]);s.length=i.length})},t}(Jn);Jn.registerComponent("LoadProgressBar",As);var Ls=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=On(Pn(b(n),n.update),In),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},i.update=function(e,t,i){var n=Yi(this.el_),r=$i(this.player_.el()),s=e.width*t;if(r&&n){var a=e.left-r.left+s,o=e.width-s+(r.right-e.right),l=n.width/2;a<l?l+=l-a:o<l&&(l=o),l<0?l=0:l>n.width&&(l=n.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(i)}},i.write=function(e){Ni(this.el_,e)},i.updateTime=function(e,t,i,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var s,a=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),l=o-t*o;s=(l<1?"":"-")+vs(l,o)}else s=vs(i,a);r.update(e,t,s),n&&n()})},t}(Jn);Jn.registerComponent("TimeTooltip",Ls);var Is=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=On(Pn(b(n),n.update),In),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},i.update=function(e,t){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}},t}(Jn);Is.prototype.options_={children:[]},ki||hi||Is.prototype.options_.children.push("timeTooltip"),Jn.registerComponent("PlayProgressBar",Is);var Ps=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=On(Pn(b(n),n.update),In),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})},t}(Jn);Ps.prototype.options_={children:["timeTooltip"]},Jn.registerComponent("MouseTimeDisplay",Ps);var Os=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).setEventHandlers_(),n}T(t,e);var i=t.prototype;return i.setEventHandlers_=function(){var e=this;this.update_=Pn(this,this.update),this.update=On(this.update_,In),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in v()&&"visibilityState"in v()&&this.on(v(),"visibilitychange",this.toggleVisibility_)},i.toggleVisibility_=function(e){"hidden"===v().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},i.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,In))},i.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.update=function(t){var i=this;if("hidden"!==v().visibilityState){var n=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),t=i.player_.liveTracker,r=i.player_.duration();
2t&&t.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),i.currentTime_===e&&i.duration_===r||(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[vs(e,r),vs(r,r)],"{1} of {2}")),i.currentTime_=e,i.duration_=r),i.bar&&i.bar.update($i(i.el()),i.getProgress())}),n}},i.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},i.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},i.handleMouseDown=function(t){nn(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},i.handleMouseMove=function(e){if(nn(e)){var t,i=this.calculateDistance(e),n=this.player_.liveTracker;if(n&&n.isLive()){if(i>=.99)return void n.seekToLiveEdge();var r=n.seekableStart(),s=n.liveCurrentTime();if((t=r+i*n.liveWindow())>=s&&(t=s),t<=r&&(t=r+.1),t===1/0)return}else(t=i*this.player_.duration())===this.player_.duration()&&(t-=.1);this.userSeek_(t)}},i.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},i.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},i.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?or(this.player_.play()):this.update_()},i.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},i.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},i.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},i.handleKeyDown=function(t){var i=this.player_.liveTracker;if(k().isEventKey(t,"Space")||k().isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(k().isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(k().isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(k()(t))){t.preventDefault(),t.stopPropagation();var n=10*(k().codes[k()(t)]-k().codes[0])/100;i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else k().isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):k().isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},i.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in v()&&"visibilityState"in v()&&this.off(v(),"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(Es);Os.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},ki||hi||Os.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Jn.registerComponent("SeekBar",Os);var Ds=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseMove=On(Pn(b(n),n.handleMouseMove),In),n.throttledHandleMouseSeek=On(Pn(b(n),n.handleMouseSeek),In),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.handleMouseDownHandler_=function(e){return n.handleMouseDown(e)},n.enable(),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(i||n){var r=t.el(),s=Yi(r),a=Ki(r,e).x;a=ks(a,0,1),n&&n.update(s,a),i&&i.update(s,t.getProgress())}}},i.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},i.enabled=function(){return this.enabled_}
2,i.disable=function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&or(this.player_.play())}},i.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},i.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},i.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Jn);Ds.prototype.options_={children:["seekBar"]},Jn.registerComponent("ProgressControl",Ds);var Ms=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],function(e){return n.handlePictureInPictureChange(e)}),n.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(e){return n.handlePictureInPictureEnabledChange(e)}),n.disable(),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},i.handlePictureInPictureEnabledChange=function(){v().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},i.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},i.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(ds);Ms.prototype.controlText_="Picture-in-Picture",Jn.registerComponent("PictureInPictureToggle",Ms);var Ns=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"fullscreenchange",function(e){return n.handleFullscreenChange(e)}),!1===v()[t.fsApi_.fullscreenEnabled]&&n.disable(),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ds);Ns.prototype.controlText_="Fullscreen",Jn.registerComponent("FullscreenToggle",Ns);var Rs=function(e){function t(){return e.apply(this,arguments)||this}return T(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Jn);Jn.registerComponent("VolumeLevel",Rs);var Bs=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=On(Pn(b(n),n.update),In),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},i.update=function(e,t,i,n){if(!i){var r=$i(this.el_),s=$i(this.player_.el()),a=e.width*t;if(!s||!r)return;var o=e.left-s.left+a,l=e.width-a+(s.right-e.right),c=r.width/2;o<c?c+=c-o:l<c&&(c=l),c<0?c=0:c>r.width&&(c=r.width),this.el_.style.right="-"+c+"px"}this.write(n+"%")},i.write=function(e){Ni(this.el_,e)},i.updateVolume=function(e,t,i,n,r){var s=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){s.update(e,t,i,n.toFixed(0)),r&&r()})},t}(Jn);
2Jn.registerComponent("VolumeLevelTooltip",Bs);var Fs=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=On(Pn(b(n),n.update),In),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(e,t,i){var n=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,r,function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"})},t}(Jn);Fs.prototype.options_={children:["volumeLevelTooltip"]},Jn.registerComponent("MouseVolumeLevelDisplay",Fs);var Us=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on("slideractive",function(e){return n.updateLastVolume_(e)}),n.on(t,"volumechange",function(e){return n.updateARIAAttributes(e)}),t.ready(function(){return n.updateARIAAttributes()}),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},i.handleMouseDown=function(t){nn(t)&&e.prototype.handleMouseDown.call(this,t)},i.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var i=this.el(),n=$i(i),r=this.vertical(),s=Ki(i,e);s=r?s.y:s.x,s=ks(s,0,1),t.update(n,s,r)}nn(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},i.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},i.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},i.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},i.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},i.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},i.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},i.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(Es);Us.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},ki||hi||Us.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Us.prototype.playerEvent="volumechange",Jn.registerComponent("VolumeBar",Us);var js=function(e){function t(t,i){var n;return void 0===i&&(i={}),i.vertical=i.vertical||!1,(void 0===i.volumeBar||ii(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(b(n=e.call(this,t,i)||this),t),n.throttledHandleMouseMove=On(Pn(b(n),n.handleMouseMove),In),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.on("mousedown",function(e){return n.handleMouseDown(e)}),n.on("touchstart",function(e){return n.handleMouseDown(e)}),n.on("mousemove",function(e){return n.handleMouseMove(e)}),n.on(n.volumeBar,["focus","slideractive"],function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")}),n.on(n.volumeBar,["blur","sliderinactive"],function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")}),n}T(t,e);var i=t.prototype;return i.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},i.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Jn);js.prototype.options_={children:["volumeBar"]}
2,Jn.registerComponent("VolumeControl",js);var Hs=function(e){function t(t,i){var n;return function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(b(n=e.call(this,t,i)||this),t),n.on(t,["loadstart","volumechange"],function(e){return n.update(e)}),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){var n=i<.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},i.update=function(e){this.updateIcon_(),this.updateControlText_()},i.updateIcon_=function(){var e=this.player_.volume(),t=3;ki&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)Ui(this.el_,"vjs-vol-"+i);Fi(this.el_,"vjs-vol-"+t)},i.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(ds);Hs.prototype.controlText_="Mute",Jn.registerComponent("MuteToggle",Hs);var qs=function(e){function t(t,i){var n;return void 0===i&&(i={}),void 0!==i.inline?i.inline=i.inline:i.inline=!0,(void 0===i.volumeControl||ii(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline),(n=e.call(this,t,i)||this).handleKeyPressHandler_=function(e){return n.handleKeyPress(e)},n.on(t,["loadstart"],function(e){return n.volumePanelState_(e)}),n.on(n.muteToggle,"keyup",function(e){return n.handleKeyPress(e)}),n.on(n.volumeControl,"keyup",function(e){return n.handleVolumeControlKeyUp(e)}),n.on("keydown",function(e){return n.handleKeyPress(e)}),n.on("mouseover",function(e){return n.handleMouseOver(e)}),n.on("mouseout",function(e){return n.handleMouseOut(e)}),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}T(t,e);var i=t.prototype;return i.sliderActive_=function(){this.addClass("vjs-slider-active")},i.sliderInactive_=function(){this.removeClass("vjs-slider-active")},i.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},i.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},i.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},i.handleVolumeControlKeyUp=function(e){k().isEventKey(e,"Esc")&&this.muteToggle.focus()},i.handleMouseOver=function(e){this.addClass("vjs-hover"),wn(v(),"keyup",this.handleKeyPressHandler_)},i.handleMouseOut=function(e){this.removeClass("vjs-hover"),Sn(v(),"keyup",this.handleKeyPressHandler_)},i.handleKeyPress=function(e){k().isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Jn);qs.prototype.options_={children:["muteToggle","volumeControl"]},Jn.registerComponent("VolumePanel",qs);var zs=function(e){function t(t,i){var n;return n=e.call(this,t,i)||this,i&&(n.menuButton_=i.menuButton),n.focusedChild_=-1,n.on("keydown",function(e){return n.handleKeyDown(e)}),n.boundHandleBlur_=function(e){return n.handleBlur(e)},n.boundHandleTapClick_=function(e){return n.handleTapClick(e)},n}T(t,e);var i=t.prototype;return i.addEventListenerForItem=function(e){e instanceof Jn&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},i.removeEventListenerForItem=function(e){e instanceof Jn&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},i.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},i.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},i.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=Mi(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),wn(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i},i.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},i.handleBlur=function(e){var t=e.relatedTarget||v().activeElement;if(!this.children().some(function(e){return e.el()===t})){var i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}},i.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var i=t.filter(function(t){return t.el()===e.target})[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}},i.handleKeyDown=function(e){k().isEventKey(e,"Left")||k().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(k().isEventKey(e,"Right")||k().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},i.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},i.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},i.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Jn);Jn.registerComponent("Menu",zs);var Ws=function(e){function t(t,i){var n;void 0===i&&(i={}),(n=e.call(this,t,i)||this).menuButton_=new ds(t,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=ds.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;var s=function(e){return n.handleClick(e)};return n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",s),n.on(n.menuButton_,"click",s),n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)}),n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover"),n.menu.show(),wn(v(),"keyup",
vendor: 4,052 bytes, line 2
2n.handleMenuKeyUp_)}),n.on("mouseleave",function(e){return n.handleMouseLeave(e)}),n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)}),n}T(t,e);var i=t.prototype;return i.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},i.createMenu=function(){var e=new zs(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=Mi("li",{className:"vjs-menu-title",textContent:Gn(this.options_.title),tabIndex:-1}),i=new Jn(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},i.createItems=function(){},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},i.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+ds.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},i.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},i.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},i.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},i.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},i.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Sn(v(),"keyup",this.handleMenuKeyUp_)},i.focus=function(){this.menuButton_.focus()},i.blur=function(){this.menuButton_.blur()},i.handleKeyDown=function(e){k().isEventKey(e,"Esc")||k().isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),k().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(k().isEventKey(e,"Up")||k().isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},i.handleMenuKeyUp=function(e){(k().isEventKey(e,"Esc")||k().isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},i.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},i.handleSubmenuKeyDown=function(e){(k().isEventKey(e,"Esc")||k().isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),k().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},i.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),ki&&Oi())return;this.menu.focus()}},i.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},i.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},i.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Jn);Jn.registerComponent("MenuButton",Ws);var Vs=function(e){function t(t,i){var n,r=i.tracks;if((n=e.call(this,t,i)||this).items.length<=1&&n.hide(),!r)return b(n);var s=Pn(b(n),n.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),r.addEventListener("labelchange",s),n.player_.on("ready",s),n.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s),r.removeEventListener("labelchange",s)}),n}return T(t,e),t}(Ws);Jn.registerComponent("TrackButton",Vs);var Xs=["Tab","Esc","Up","Down","Right","Left"],Gs=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).selectable=i.selectable,n.isSelected_=i.selected||!1,n.multiSelectable=i.multiSelectable,n.selected(n.isSelected_),n.selectable?n.multiSelectable?n.el_.setAttribute("role","menuitemcheckbox"):n.el_.setAttribute("role","menuitemradio"):n.el_.setAttribute("role","menuitem"),n}T(t,e);var i=t.prototype;
2return i.createEl=function(t,i,n){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",ei({className:"vjs-menu-item",tabIndex:-1},i),n);return r.replaceChild(Mi("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},i.handleKeyDown=function(t){Xs.some(function(e){return k().isEventKey(t,e)})||e.prototype.handleKeyDown.call(this,t)},i.handleClick=function(e){this.selected(!0)},i.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(ns);Jn.registerComponent("MenuItem",Gs);var $s=function(e){function t(t,i){var n,r=i.track,s=t.textTracks();i.label=r.label||r.language||"Unknown",i.selected="showing"===r.mode,(n=e.call(this,t,i)||this).track=r,n.kinds=(i.kinds||[i.kind||n.track.kind]).filter(Boolean);var a,o=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(b(n),t)},l=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleSelectedLanguageChange.apply(b(n),t)};(t.on(["loadstart","texttrackchange"],o),s.addEventListener("change",o),s.addEventListener("selectedlanguagechange",l),n.on("dispose",function(){t.off(["loadstart","texttrackchange"],o),s.removeEventListener("change",o),s.removeEventListener("selectedlanguagechange",l)}),void 0===s.onchange)&&n.on(["tap","click"],function(){if("object"!=typeof m()().Event)try{a=new(m()().Event)("change")}catch(e){}a||(a=v().createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(a)});return n.handleTracksChange(),n}T(t,e);var i=t.prototype;return i.handleClick=function(t){var i=this.track,n=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),n)for(var r=0;r<n.length;r++){var s=n[r];-1!==this.kinds.indexOf(s.kind)&&(s===i?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled"))}},i.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},i.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},i.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Gs);Jn.registerComponent("TextTrackMenuItem",$s);var Ys=function(e){function t(t,i){return i.track={player:t,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,e.call(this,t,i)||this}T(t,e);var i=t.prototype;return i.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var s=t[n];if(this.options_.kinds.indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},i.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var s=t[n];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}($s);Jn.registerComponent("OffTextTrackMenuItem",Ys);var Ks=function(e){function t(t,i){return void 0===i&&(i={}),i.tracks=t.textTracks(),e.call(this,t,i)||this}return T(t,e),t.prototype.createItems=function(e,t){var i;void 0===e&&(e=[]),void 0===t&&(t=$s),this.label_&&(i=this.label_+" off"),e.push(new Ys(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var s=n[r];if(this.kinds_.indexOf(s.kind)>-1){var a=new t(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+s.kind+"-menu-item"),e.push(a)}}return e},t}(Vs);Jn.registerComponent("TextTrackButton",Ks);var Qs=function(e){function t(t,i){var n,r=i.track,s=i.cue,a=t.currentTime();return i.selectable=!0,i.multiSelectable=!1,i.label=s.text,i.selected=s.startTime<=a&&a<s.endTime,(n=e.call(this,t,i)||this).track=r,n.cue=s,r.addEventListener("cuechange",Pn(b(n),n.update)),n}T(t,e);var i=t.prototype;return i.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},i.update=function(e){var t=this.cue,i=this.player_.currentTime();this.selected(t.startTime<=i&&i<t.endTime)},t}(Gs);Jn.registerComponent("ChaptersTrackMenuItem",Qs);var Zs=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},i.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChapter
vendor: 7,478 bytes, line 2
2sTrack()),e.prototype.update.call(this)},i.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&&i.addEventListener("load",this.updateHandler_)}}},i.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var i=e[t];if(i.kind===this.kind_)return i}},i.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Gn(this.kind_))},i.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},i.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i<n;i++){var r=t[i],s=new Qs(this.player_,{track:this.track_,cue:r});e.push(s)}return e},t}(Ks);Zs.prototype.kind_="chapters",Zs.prototype.controlText_="Chapters",Jn.registerComponent("ChaptersButton",Zs);var Js=function(e){function t(t,i,n){var r;r=e.call(this,t,i,n)||this;var s=t.textTracks(),a=Pn(b(r),r.handleTracksChange);return s.addEventListener("change",a),r.on("dispose",function(){s.removeEventListener("change",a)}),r}T(t,e);var i=t.prototype;return i.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!1,n=0,r=t.length;n<r;n++){var s=t[n];if(s.kind!==this.kind_&&"showing"===s.mode){i=!0;break}}i?this.disable():this.enable()},i.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ks);Js.prototype.kind_="descriptions",Js.prototype.controlText_="Descriptions",Jn.registerComponent("DescriptionsButton",Js);var ea=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ks);ea.prototype.kind_="subtitles",ea.prototype.controlText_="Subtitles",Jn.registerComponent("SubtitlesButton",ea);var ta=function(e){function t(t,i){var n;return i.track={player:t,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem",(n=e.call(this,t,i)||this).addClass("vjs-texttrack-settings"),n.controlText(", opens "+i.kind+" settings dialog"),n}return T(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}($s);Jn.registerComponent("CaptionSettingsMenuItem",ta);var ia=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new ta(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Ks);ia.prototype.kind_="captions",ia.prototype.controlText_="Captions",Jn.registerComponent("CaptionsButton",ia);var na=function(e){function t(){return e.apply(this,arguments)||this}return T(t,e),t.prototype.createEl=function(t,i,n){var r=e.prototype.createEl.call(this,t,i,n),s=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(s.appendChild(Mi("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(Mi("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}($s);Jn.registerComponent("SubsCapsMenuItem",na);var ra=function(e){function t(t,i){var n;return void 0===i&&(i={}),(n=e.call(this,t,i)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(n.player_.language_)>-1&&(n.label_="captions"),n.menuButton_.controlText(Gn(n.label_)),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new ta(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,na)},t}(Ks);ra.prototype.kinds_=["captions","subtitles"],ra.prototype.controlText_="Subtitles",Jn.registerComponent("SubsCapsButton",ra);var sa=function(e){function t(t,i){var n,r=i.track,s=t.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled,(n=e.call(this,t,i)||this).track=r,n.addClass("vjs-"+r.kind+"-menu-item");var a=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(b(n),t)};return s.addEventListener("change",a),n.on("dispose",function(){s.removeEventListener("change",a)}),n}T(t,e);var i=t.prototype;return i.createEl=function(t,i,n){var r=e.prototype.createEl.call(this,t,i,n),s=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(s.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text",textContent:this.localize("Descriptions")}))),r},i.handleClick=function(t){e.prototype.handleClick.call(this,t),this.track.enabled=!0},i.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Gs);Jn.registerComponent("AudioTrackMenuItem",sa);var aa=function(e){function t(t,i){return void 0===i&&(i={}),i.tracks=t.audioTracks(),e.call(this,t,i)||this}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];e.push(new sa(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e},t}(Vs);aa.prototype.controlText_="Audio Track",Jn.registerComponent("AudioTrackButton",aa);var oa=function(e){function t(t,i){var n,r=i.rate,s=parseFloat(r,10);return i.label=r,i.selected=s===t.playbackRate(),i.selectable=!0,i.multiSelectable=!1,(n=e.call(this,t,i)||this).label=r,n.rate=s,n.on(t,"ratechange",function(e){return n.update(e)}),n}T(t,e);var i=t.prototype;return i.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},i.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Gs);oa.prototype.contentElType="button",Jn.registerComponent("PlaybackRateMenuItem",oa);var la=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).menuButton_.el_.setAttribute("aria-describedby",n.labelElId_),n.updateVisibility(),n.updateLabel(),n.on(t,"loadstart",function(e){return n.updateVisibility(e)}),n.on(t,"ratechange",function(e){return n.updateLabel(e)}
2),n.on(t,"playbackrateschange",function(e){return n.handlePlaybackRateschange(e)}),n}T(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Mi("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},i.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},i.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){for(var e=this.playbackRates(),t=[],i=e.length-1;i>=0;i--)t.push(new oa(this.player(),{rate:e[i]+"x"}));return t},i.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},i.handleClick=function(e){for(var t=this.player().playbackRate(),i=this.playbackRates(),n=i[0],r=0;r<i.length;r++)if(i[r]>t){n=i[r];break}this.player().playbackRate(n)},i.handlePlaybackRateschange=function(e){this.update()},i.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},i.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},i.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},i.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(Ws);la.prototype.controlText_="Playback Rate",Jn.registerComponent("PlaybackRateMenuButton",la);var ca=function(e){function t(){return e.apply(this,arguments)||this}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(t,i,n){return void 0===t&&(t="div"),void 0===i&&(i={}),void 0===n&&(n={}),i.className||(i.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,i,n)},t}(Jn);Jn.registerComponent("Spacer",ca);var ua=function(e){function t(){return e.apply(this,arguments)||this}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"Â "})},t}(ca);Jn.registerComponent("CustomControlSpacer",ua);var da=function(e){function t(){return e.apply(this,arguments)||this}return T(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Jn);da.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in v()&&da.prototype.options_.children.splice(da.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Jn.registerComponent("ControlBar",da);var ha=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"error",function(e){return n.open(e)}),n}T(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},i.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(hr);ha.prototype.options_=y({},hr.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Jn.registerComponent("ErrorDisplay",ha);var pa="vjs-text-track-settings",fa=["#000","Black"],ma=["#00F","Blue"],ga=["#0FF","Cyan"],va=["#0F0","Green"],ya=["#F0F","Magenta"],ba=["#F00","Red"],_a=["#FFF","White"],Ta=["#FF0","Yellow"],xa=["1","Opaque"],wa=["0.5","Semi-Transparent"],Sa=["0","Transparent"],ka={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[fa,_a,ba,va,ma,Ta,ya,ga]},backgroundOpacity:{selector:".vjs-bg-opacity >
2 select",id:"captions-background-opacity-%s",label:"Transparency",options:[xa,wa,Sa]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[_a,fa,ba,va,ma,Ta,ya,ga]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[xa,wa]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Sa,wa,xa]}};function Ea(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}ka.windowColor.options=ka.backgroundColor.options;var Ca=function(e){function t(t,i){var n;return i.temporary=!1,(n=e.call(this,t,i)||this).updateDisplay=n.updateDisplay.bind(b(n)),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.endDialog=Mi("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===i.persistTextTrackSettings&&(n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings),n.on(n.$(".vjs-done-button"),"click",function(){n.saveSettings(),n.close()}),n.on(n.$(".vjs-default-button"),"click",function(){n.setDefaults(),n.updateDisplay()}),Jt(ka,function(e){n.on(n.$(e.selector),"change",n.updateDisplay)}),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}T(t,e);var i=t.prototype;return i.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},i.createElSelect_=function(e,t,i){var n=this;void 0===t&&(t=""),void 0===i&&(i="label");var r=ka[e],s=r.id.replace("%s",this.id_),a=[t,s].join(" ").trim();return["<"+i+' id="'+s+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"</"+i+">",'<select aria-labelledby="'+a+'">'].concat(r.options.map(function(e){var t=s+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',n.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},i.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},i.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},i.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},i.createElColors_=function(){return Mi("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},i.createElFont_=function(){return Mi("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},i.createElControls_=function(){var e=this.localize("restore all settings to the default values");return Mi("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},i.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},i.label=function(){return this.localize("Caption Settings Dialog")},i.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},i.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},i.getValues=function(){var e,t,i,n=this;
2return t=function(e,t,i){var r,s,a=(r=n.$(t.selector),s=t.parser,Ea(r.options[r.options.selectedIndex].value,s));return void 0!==a&&(e[i]=a),e},void 0===(i={})&&(i=0),Zt(e=ka).reduce(function(i,n){return t(i,e[n],n)},i)},i.setValues=function(e){var t=this;Jt(ka,function(i,n){!function(e,t,i){if(t)for(var n=0;n<e.options.length;n++)if(Ea(e.options[n].value,i)===t){e.selectedIndex=n;break}}(t.$(i.selector),e[n],i.parser)})},i.setDefaults=function(){var e=this;Jt(ka,function(t){var i=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=i})},i.restoreSettings=function(){var e;try{e=JSON.parse(m()().localStorage.getItem(pa))}catch(e){Yt.warn(e)}e&&this.setValues(e)},i.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?m()().localStorage.setItem(pa,JSON.stringify(e)):m()().localStorage.removeItem(pa)}catch(e){Yt.warn(e)}}},i.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},i.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,i=e&&e.captionsButton;t?t.focus():i&&i.focus()},t}(hr);Jn.registerComponent("TextTrackSettings",Ca);var Aa=function(e){function t(t,i){var n,r=i.ResizeObserver||m()().ResizeObserver;null===i.ResizeObserver&&(r=!1);var s=$n({createEl:!r,reportTouchActivity:!1},i);return(n=e.call(this,t,s)||this).ResizeObserver=i.ResizeObserver||m()().ResizeObserver,n.loadListener_=null,n.resizeObserver_=null,n.debouncedHandler_=function(e,t,i,n){var r;void 0===n&&(n=m()());var s=function(){var s=this,a=arguments,o=function(){r=null,o=null,i||e.apply(s,a)};!r&&i&&e.apply(s,a),n.clearTimeout(r),r=n.setTimeout(o,t)};return s.cancel=function(){n.clearTimeout(r),r=null},s}(function(){n.resizeHandler()},100,!1,b(n)),r?(n.resizeObserver_=new n.ResizeObserver(n.debouncedHandler_),n.resizeObserver_.observe(t.el())):(n.loadListener_=function(){if(n.el_&&n.el_.contentWindow){var e=n.debouncedHandler_,t=n.unloadListener_=function(){Sn(this,"resize",e),Sn(this,"unload",t),t=null};wn(n.el_.contentWindow,"unload",t),wn(n.el_.contentWindow,"resize",e)}},n.one("load",n.loadListener_)),n}T(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},i.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},i.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(Jn);Jn.registerComponent("ResizeManager",Aa);var La={trackingThreshold:30,liveTolerance:15},Ia=function(e){function t(t,i){var n,r=$n(La,i,{createEl:!1});return(n=e.call(this,t,r)||this).handleVisibilityChange_=function(e){return n.handleVisibilityChange(e)},n.trackLiveHandler_=function(){return n.trackLive_()},n.handlePlay_=function(e){return n.handlePlay(e)},n.handleFirstTimeupdate_=function(e){return n.handleFirstTimeupdate(e)},n.handleSeeked_=function(e){return n.handleSeeked(e)},n.seekToLiveEdge_=function(e){return n.seekToLiveEdge(e)},n.reset_(),n.on(n.player_,"durationchange",function(e){return n.handleDurationchange(e)}),n.one(n.player_,"canplay",function(){return n.toggleTracking()}),bi&&"hidden"in v()&&"visibilityState"in v()&&n.on(v(),"visibilitychange",n.handleVisibilityChange_),n}T(t,e);var i=t.prototype;return i.handleVisibilityChange=function(){this.player_.duration()===1/0&&(v().hidden?this.stopTracking():this.startTracking())},i.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(m()().performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;var n=this.liveCurrentTime(),r=this.player_.currentTime(),s=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-r)>this.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(s=!1),s!==this.behindLiveEdge_&&(this.behindLiveEdge_=s,this.trigger("liveedgechange"))}},i.handleDurationchange=function(){this.toggleTracking()},i.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},i.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,In),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},i.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},i.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},i.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},i.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},i.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},i.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},i.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},i.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}
2,i.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},i.isLive=function(){return this.isTracking()},i.atLiveEdge=function(){return!this.behindLiveEdge()},i.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},i.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},i.behindLiveEdge=function(){return this.behindLiveEdge_},i.isTracking=function(){return"number"==typeof this.trackingInterval_},i.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},i.dispose=function(){this.off(v(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Jn);Jn.registerComponent("LiveTracker",Ia);var Pa,Oa=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var i=e.$$("source"),n=[],r="";if(!i.length)return!1;for(var s=0;s<i.length;s++){var a=i[s].src;a&&-1===n.indexOf(a)&&n.push(a)}return!!n.length&&(1===n.length&&(r=n[0]),e.triggerSourceset(r),!0)},Da=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=v().createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var i=v().createDocumentFragment();t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",m()().Element.prototype.appendChild.call(this,i),this.innerHTML}}),Ma=function(e,t){for(var i={},n=0;n<e.length&&!((i=Object.getOwnPropertyDescriptor(e[n],t))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i},Na=function(e){var t=e.el();if(!t.resetSourceWatch_){var i={},n=function(e){return Ma([e.el(),m()().HTMLMediaElement.prototype,m()().Element.prototype,Da],"innerHTML")}(e),r=function(i){return function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];var a=i.apply(t,r);return Oa(e),a}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(i[e]=t[e],t[e]=r(i[e]))}),Object.defineProperty(t,"innerHTML",$n(n,{set:r(n.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(i).forEac
2h(function(e){t[e]=i[e]}),Object.defineProperty(t,"innerHTML",n)},e.one("sourceset",t.resetSourceWatch_)}},Ra=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Ar(m()().Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return m()().Element.prototype.setAttribute.call(this,"src",e),e}}),Ba=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var i=function(e){return Ma([e.el(),m()().HTMLMediaElement.prototype,Ra],"src")}(e),n=t.setAttribute,r=t.load;Object.defineProperty(t,"src",$n(i,{set:function(n){var r=i.set.call(t,n);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(i,r){var s=n.call(t,i,r);return/src/i.test(i)&&e.triggerSourceset(t.src),s},t.load=function(){var i=r.call(t);return Oa(e)||(e.triggerSourceset(""),Na(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):Oa(e)||Na(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=n,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Fa=function(e,t,i,n){void 0===n&&(n=!0);var r=function(i){return Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0})},s={configurable:!0,enumerable:!0,get:function(){var e=i();return r(e),e}};return n&&(s.set=r),Object.defineProperty(e,t,s)},Ua=function(e){function t(t,i){var n;n=e.call(this,t,i)||this;var r=t.source,s=!1;if(r&&(n.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?n.setSource(r):n.handleLateInit_(n.el_),t.enableSourceset&&n.setupSourcesetHandling_(),n.isScrubbing_=!1,n.el_.hasChildNodes()){for(var a=n.el_.childNodes,o=a.length,l=[];o--;){var c=a[o];"track"===c.nodeName.toLowerCase()&&(n.featuresNativeTextTracks?(n.remoteTextTrackEls().addTrackElement_(c),n.remoteTextTracks().addTrack(c.track),n.textTracks().addTrack(c.track),s||n.el_.hasAttribute("crossorigin")||!Ir(c.src)||(s=!0)):l.push(c))}for(var u=0;u<l.length;u++)n.el_.removeChild(l[u])}return n.proxyNativeTracks_(),n.featuresNativeTextTracks&&s&&Yt.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),n.restoreMetadataTracksInIOSNativePlayer_(),(xi||Si||fi)&&!0===t.nativeControlsForTouch&&n.setControls(!0),n.proxyWebkitFullscreen_(),n.triggerReady(),n}T(t,e);var i=t.prototype;return i.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
2poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},i.setupSourcesetHandling_=function(){Ba(this)},i.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),i=function(){e=[];for(var i=0;i<t.length;i++){var n=t[i];"metadata"===n.kind&&e.push({track:n,storedMode:n.mode})}};i(),t.addEventListener("change",i),this.on("dispose",function(){return t.removeEventListener("change",i)});var n=function i(){for(var n=0;n<e.length;n++){var r=e[n];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",i),t.removeEventListener("change",n),t.addEventListener("change",n)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",i),t.addEventListener("change",i),t.removeEventListener("change",n)})},i.overrideNative_=function(e,t){var i=this;if(t===this["featuresNative"+e+"Tracks"]){var n=e.toLowerCase();this[n+"TracksListeners_"]&&Object.keys(this[n+"TracksListeners_"]).forEach(function(e){i.el()[n+"Tracks"].removeEventListener(e,i[n+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[n+"TracksListeners_"]=null,this.proxyNativeTracksForType_(n)}},i.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},i.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},i.proxyNativeTracksForType_=function(e){var t=this,i=Fr[e],n=this.el()[i.getterName],r=this[i.getterName]();if(this["featuresNative"+i.capitalName+"Tracks"]&&n&&n.addEventListener){var s={change:function(i){var n={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(n),"text"===e&&t[Ur.remoteText.getterName]().trigger(n)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},a=function(){for(var e=[],t=0;t<r.length;t++){for(var i=!1,s=0;s<n.length;s++)if(n[s]===r[t]){i=!0;break}i||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[i.getterName+"Listeners_"]=s,Object.keys(s).forEach(function(e){var i=s[e];n.addEventListener(e,i),t.on("dispose",function(t){return n.removeEventListener(e,i)})}),this.on("loadstart",a),this.on("dispose",function(e){return t.off("loadstart",a)})}},i.proxyNativeTracks_=function(){var e=this;Fr.names.forEach(function(t){e.proxyNativeTracksForType_(t)})},i.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),t.disposeMediaElement(e),e=i}else{e=v().createElement("video");var n=$n({},this.options_.tag&&qi(this.options_.tag));xi&&!0===this.options_.nativeControlsForTouch||delete n.controls,Hi(e,ei(n,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Wi(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],s=0;s<r.length;s++){var a=r[s],o=this.options_[a];void 0!==o&&(o?Wi(e,a,a):Vi(e,a),e[a]=o)}return e},i.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var n=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},i.setScrubbing=function(e){this.isScrubbing_=e},i.scrubbing=function(){return this.isScrubbing_},i.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&Ei?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){Yt(e,"Video is not ready. (Video.js)")}},i.duration=function(){var e=this;if(this.el_.duration===1/0&&hi&&vi&&0===this.el_.currentTime){return this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN}return this.el_.duration||NaN},i.width=function(){return this.el_.offsetWidth},i.height=function(){return this.el_.offsetHeight},i.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}},i.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=m()().navigator&&m()().navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},i.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)or(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},i.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},i.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},i.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},i.reset=function(){t.resetMediaElement(this.el_)},i.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},i.setControls=function(e){this.el_.controls=!!e},i.addTextTrack=function(t,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,n):e.prototype.addTextTrack.call(this,t,i,n)},i.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var i=v().createElement("track");return t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t.default&&(i.default=t.default),t.id&&(i.id=t.id),t.src&&(i.src=t.src),i},i.addRemoteTextTrack=function(t,i){var n=e.prototype.addRemoteTextTrack.call(this,t,i);return this.featuresNativeTextTracks&&this.el().appendChild(n),n},i.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)t!==i[n]&&t!==i[n].track||this.el().removeChild(i[n])},i.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),m()().performance&&"function"==typeof m()().performance.now?e.creationTime=m()().performance.now():m()().performance&&m()().performance.timing&&"number"==typeof m()().performance.timing.navigationStart&&(e.creationTime=m()().Date.now()-m()().performance.timing.navigationStart),e},t}(Hr);Fa(Ua,"TEST_VID",function(){if(Ii()){var e=v().createElement("video"),t=v().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),Ua.isSupported=function(){try{Ua.TEST_VID.volume=.5}catch(e){return!1}return!(!Ua.TEST_VID||!Ua.TEST_VID.canPlayType)},Ua.canPlayType=function(e){return Ua.TEST_VID.canPlayType(e)},Ua.canPlaySource=function(e,t){return Ua.canPlayType(e.type)},Ua.canControlVolume=function(){try{var e=Ua.TEST_VID.volume;return Ua.TEST_VID.volume=e/2+.1,e!==Ua.TEST_VID.volume}catch(e){return!1}},Ua.canMuteVolume=function(){try{var e=Ua.TEST_VID.muted;return Ua.TEST_VID.muted=!e,Ua.TEST_VID.muted?Wi(Ua.TEST_VID,"muted","muted"):Vi(Ua.TEST_VID,"muted"),e!==Ua.TEST_VID.muted}catch(e){return!1}},Ua.canControlPlaybackRate=function(){if(hi&&vi&&yi<58)return!1;try{var e=Ua.TEST_VID.playbackRate;return Ua.TEST_VID.playbackRate=e/2+.1,e!==Ua.TEST_VID.playbackRate}catch(e){return!1}},Ua.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(v().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(v().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(v().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(v().createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Ua.supportsNativeTextTracks=function(){return Ei||ki&&vi},Ua.supportsNativeVideoTracks=function(){return!(!Ua.TEST_VID||!Ua.TEST_VID.videoTracks)},Ua.supportsNativeAudioTracks=function(){return!(!Ua.TEST_VID||!Ua.TEST_VID.audioTracks)},Ua.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
vendor: 15,402 bytes, line 2
2h(function(e){var t=e[0],i=e[1];Fa(Ua.prototype,t,function(){return Ua[i]()},!0)}),Ua.prototype.movingMediaElementInDOM=!ki,Ua.prototype.featuresFullscreenResize=!0,Ua.prototype.featuresProgressEvents=!0,Ua.prototype.featuresTimeupdateEvents=!0,Ua.patchCanPlayType=function(){pi>=4&&!mi&&!vi&&(Pa=Ua.TEST_VID&&Ua.TEST_VID.constructor.prototype.canPlayType,Ua.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Pa.call(this,e)})},Ua.unpatchCanPlayType=function(){var e=Ua.TEST_VID.constructor.prototype.canPlayType;return Pa&&(Ua.TEST_VID.constructor.prototype.canPlayType=Pa),e},Ua.patchCanPlayType(),Ua.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Ua.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Ua.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Ua.prototype["set"+Gn(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Ua.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){Ua.prototype["set"+Gn(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Ua.prototype[e]=function(){return this.el_[e]()}}),Hr.withSourceHandlers(Ua),Ua.nativeSourceHandler={},Ua.nativeSourceHandler.canPlayType=function(e){try{return Ua.TEST_VID.canPlayType(e)}catch(e){return""}},Ua.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Ua.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=Lr(e.src);return Ua.nativeSourceHandler.canPlayType("video/"+i)}return""},Ua.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Ua.nativeSourceHandler.dispose=function(){},Ua.registerSourceHandler(Ua.nativeSourceHandler),Hr.registerTech("Html5",Ua);var ja=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ha={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},qa=["tiny","xsmall","small","medium","large","xlarge","huge"],za={};qa.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;za[e]="vjs-layout-"+t});var Wa={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Va=function(e){function t(i,n,r){var s;if(i.id=i.id||n.id||"vjs_video_"+gn(),(n=ei(t.getTagSettings(i),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if("function"==typeof i.closest){var a=i.closest("[lang]");a&&a.getAttribute&&(n.language=a.getAttribute("lang"))}else for(var o=i;o&&1===o.nodeType;){if(qi(o).hasOwnProperty("lang")){n.language=o.getAttribute("lang");break}o=o.parentNode}if((s=e.call(this,null,n,r)||this).boundDocumentFullscreenChange_=function(e){return s.documentFullscreenChange_(e)},s.boundFullWindowOnEscKey_=function(e){return s.fullWindowOnEscKey(e)},s.boundUpdateStyleEl_=function(e){return s.updateStyleEl_(e)},s.boundApplyInitTime_=function(e){return s.applyInitTime_(e)},s.boundUpdateCurrentBreakpoint_=function(e){return s.updateCurrentBreakpoint_(e)},s.boundHandleTechClick_=function(e){return s.handleTechClick_(e)},s.boundHandleTechDoubleClick_=function(e){return s.handleTechDoubleClick_(e)},s.boundHandleTechTouchStart_=function(e){return s.handleTechTouchStart_(e)},s.boundHandleTechTouchMove_=function(e){return s.handleTechTouchMove_(e)},s.boundHandleTechTouchEnd_=function(e){return s.handleTechTouchEnd_(e)},s.boundHandleTechTap_=function(e){return s.handleTechTap_(e)},s.isFullscreen_=!1,s.log=Kt(s.id_),s.fsApi_=zt,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=i,s.tagAttributes=i&&qi(i),s.language(s.options_.language),n.languages){var l={};Object.getOwnPropertyNames(n.languages).forEach(function(e){l[e.toLowerCase()]=n.languages[e]}),s.languages_=l}else s.languages_=t.prototype.options_.languages;s.resetCache_(),s.poster_=n.poster||"",s.controls_=!!n.controls,i.controls=!1,i.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],i.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach(function(e){if("function"!=typeof s[e])throw new Error('plugin "'+e+'" does not exist')}),s.scrubbing_=!1,s.el_=s.createEl(),zn(b(s),{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(wn(v(),s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var c=$n(s.options_);n.plugins&&Object.keys(n.plugins).forEach(function(e){s[e](n.plugins[e])}),n.debug&&s.debug(!0),s.options_.playerOptions=c,s.middleware_=[],s.playbackRates(n.playbackRates),s.initChildren(),s.isAudio("audio"===i.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),xi&&s.addClass("vjs-touch-enabled"),ki||s.addClass("vjs-workinghover"),t.players[s.id_]=b(s);var u=Ut.split(".")[0];return s.addClass("vjs-v"+u),s.userActive(!0),s.reportUserActivity(),s.one("play",function(e){return s.listenForUserActivity_(e)}),s.on("stageclick",function(e){return s.handleStageClick_(e)}),s.on("keydown",function(e){return s.handleKeyDown(e)}),s.on("languagechange",function(e){return s.handleLanguagechange(e)}),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s}T(t,e);var i=t.prototype;return i.dispose=function(){var i=this;this.trigger("dispose"),this.off("dispose"),Sn(v(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Sn(v(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.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(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),zr[this.id()]=null,jr.names.forEach(function(e){var t=jr[e],n=i[t.getterName]();n&&n.off&&n.off()}),e.prototype.dispose.call(this)},i.createEl=function(){var t,i=this.tag,n=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?t=this.el_=i.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=qi(i);if(r){for(t=this.el_=i,i=this.tag=v().createElement("video");t.children.length;)i.appendChild(t.firstChild);Bi(t,"video-js")||Fi(t,"video-js"),t.appendChild(i),n=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{i[e]=t[e]}catch(e){}})}if(i.setAttribute("tabindex","-1"),s.tabindex="-1",(bi||vi&&Ti)&&(i.setAttribute("role","application"),s.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(e){r&&"class"===e||t.setAttribute(e,s[e]),r&&i.setAttribute(e,s[e])}),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",i.player=t.player=this,this.addClass("vjs-paused"),!0!==m()().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=pn("vjs-styles-dimensions");var a=sn(".vjs-styles-defaults"),o=sn("head");o.insertBefore(this.styleEl_,a?a.nextSibling:o.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=i.getElementsByTagName("a"),c=0;c<l.length;c++){var u=l.item(c);Fi(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return i.initNetworkState_=i.networkState,i.parentNode&&!n&&i.parentNode.insertBefore(t,i),Ri(i,t),this.children_.unshift(i),this.el_.setAttribute("lang",this.language_),this.el_=t,t},i.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):Yt.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},i.width=function(e){return this.dimension("width",e)},i.height=function(e){return this.dimension("height",e)},i.dimension=function(e,t){var i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(t);isNaN(n)?Yt.error('Improper value "'+t+'" supplied for for '+e):(this[i]=n,this.updateStyleEl_())},i.fluid=function(e){var t,i,n=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Nn(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),i=function(){n.on(["playerreset","resize"],n.boundUpdateStyleEl_)},Nn(t=this)?i():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(i))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},i.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},i.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},i.updateStyleEl_=function(){if(!0!==m()().VIDEOJS_NO_DYNAMIC_STYLE){var e,t,i,n=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=n[1]/n[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),fn(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*r+"%;\n }\n ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,o=this.tech_&&this.tech_.el();o&&(s>=0&&(o.width=s),a>=0&&(o.height=a))}},i.loadTech_=function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=Gn(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(Hr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var s=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(s=!1);var a={source:t,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};jr.names.forEach(function(e){var t=jr[e];a[t.getterName]=i[t.privateName]}),ei(a,this.options_[n]),ei(a,this.options_[r]),ei(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);var o=Hr.getTech(e);if(!o)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new o(a),this.tech_.ready(Pn(this,this.handleTechReady_),!0),ur(this.textTracksJson_||[],this.tech_),ja.forEach(function(e){i.on(i.tech_,e,function(t){return i["handleTech"+Gn(e)+"_"](t)})}),Object.keys(Ha).forEach(function(e){i.on(i.tech_,e,function(t){0===i.tech_.playbackRate()&&i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+Ha[e]+"_"].bind(i),event:t}):i["handleTech"+Ha[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return i.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return i.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return i.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return i.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return i.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return i.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return i.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return i.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return i.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return i.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return i.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return i.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return i.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return i.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return i.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return i.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return i.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||Ri(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},i.unloadTech_=function(){var e=this;jr.names.forEach(function(t){var i=jr[t];e[i.privateName]=e[i.getterName]()}),this.textTracksJson_=cr(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},i.tech=function(e){return void 0===e&&Yt.warn("Using the tech directly can be dangerous. I hope you know
2what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},i.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},i.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},i.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},i.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},i.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var i,n=function(){var e=t.muted();t.muted(!0);var i=function(){t.muted(e)};t.playTerminatedQueue_.push(i);var n=t.play();if(ar(n))return n.catch(function(e){throw i(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():n():ar(i=this.play())&&(i=i.catch(n)),ar(i))return i.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){t.trigger({type:"autoplay-failure",autoplay:e})})}},i.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r<n.length;r++){var s=n[r];if(s.type&&s.src&&s.src===t)return s.type}return Jr(t)}(this,t)),this.cache_.source=$n({},e,{src:t,type:i});for(var n=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],s=this.$$("source"),a=[],o=0;o<s.length;o++){var l=qi(s[o]);r.push(l),l.src&&l.src===t&&a.push(l.src)}a.length&&!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},i.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var i=function(e){return t.updateSourceCaches_(e)},n=this.currentSource().src,r=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==n)&&(i=function(){}),i(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var i=t.techGet("currentSrc");t.lastSource_.tech=i,t.updateSourceCaches_(i)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},i.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},i.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},i.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},i.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",function i(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",i))})},i.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},i.handleTechFirstPlay_=function(){this.options_.starttime&&(Yt.warn("Passing the `starttime` option to the player will be deprecated
2in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},i.handleTechClick_=function(e){this.controls_&&(this.paused()?or(this.play()):this.pause())},i.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},i.handleTechTap_=function(){this.userActive(!this.userActive())},i.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},i.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},i.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},i.handleStageClick_=function(){this.reportUserActivity()},i.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var i=this.el(),n=v()[this.fsApi_.fullscreenElement]===i;!n&&i.matches?n=i.matches(":"+this.fsApi_.fullscreen):!n&&i.msMatchesSelector&&(n=i.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}},i.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},i.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},i.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},i.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},i.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},i.handleTechError_=function(){var e=this.tech_.error();this.error(e)},i.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},i.getCache=function(){return this.cache_},i.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},i.techCall_=function(e,t){this.ready(function(){if(e in $r)return function(e,t,i,n){return t[i](e.reduce(Kr(i),n))}(this.middleware_,this.tech_,e,t);if(e in Yr)return Xr(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Yt(e),e}},!0)},i.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Gr)return function(e,t,i){return e.reduceRight(Kr(i),t[i]())}(this.middleware_,this.tech_,e);if(e in Yr)return Xr(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Yt("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Yt("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Yt(t),t}}},i.play=function(){var e=this,t=this.options_.Promise||m()().Promise;return t?new t(function(t){e.play_(t)}):this.play_()},i.play_=function(e){var t=this;void 0===e&&(e=or),this.playCallbacks_.push(e);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(i||!Ei&&!ki||this.load());var n=this.techGet_("play");null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)},i.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},i.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},i.pause=function(){this.techCall_("pause")},i.paused=function(){return!1!==this.techGet_("paused")},i.played=function(){return this.techGet_("played")||ir(0,0)},i.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},i.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},i.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},i.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},i.remainingTime=function(){return this.duration()-this.currentTime()},i.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},i.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=ir(0,0)),e},i.bufferedPercent=function(){return nr(this.buffered(),this.duration())},i.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return i>t&&(i=t),i},i.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},i.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},i.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},i.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},i.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},i.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},i.requestFullscreen=function(e){var t=this.options_.Promise||m()().Promise;if(t){var i=this;return new t(function(t,n){function r(){i.off("fullscreenerror",a),i.off("fullscreenchange",s)}function s(){r(),t()}function a(e,t){r(),n(t)}i.one("fullscreenchange",s),i.one("fullscreenerror",a);var o=i.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(t,n))})}return this.requestFullscreenHelper_()},i.requestFullscreenHelper_=function(e){var t,i=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](t);return n&&n.then(function(){return i.isFullscreen(!0)},function(){return i.isFullscreen(!1)}),n}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},i.exitFullscreen=function(){var e=this.options_.Promise||m()().Promise;if(e){var t=this;return new e(function(e,i){function n(){t.off("fullscreenerror",s),t.off("fullscreenchange",r)}function r(){n(),e()}function s(e,t){n(),i(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",s);var a=t.exitFullscreenHelper_();a&&(a.then(n,n),a.then(e,i))})}return this.exitFullscreenHelper_()},i.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=v()[this.fsApi_.exitFullscreen]();return t&&or(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},i.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=v().documentElement.style.overflow,wn(v(),"keydown",this.boundFullWindowOnEscKey_),v().documentElement.style.overflow="hidden",Fi(v().body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(e){k().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},i.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Sn(v(),"keydown",this.boundFullWindowOnEscKey_),v().documentElement.style.overflow=this.docOrigOverflow,Ui(v().body,"vjs-full-window"),this.trigger("exitFullWindow")},i.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},i.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},i.requestPictureInPicture=function(){if("pictureInPictureEnabled"in v()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},i.exitPictureInPicture=function(){if("pictureInPictureEnabled"in v())return v().exitPictureInPicture()},i.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;
2if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},i.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=void 0===i?function(e){return k().isEventKey(e,"f")}:i,r=t.muteKey,s=void 0===r?function(e){return k().isEventKey(e,"m")}:r,a=t.playPauseKey,o=void 0===a?function(e){return k().isEventKey(e,"k")||k().isEventKey(e,"Space")}:a;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();var l=Jn.getComponent("FullscreenToggle");!1!==v()[this.fsApi_.fullscreenEnabled]&&l.prototype.handleClick.call(this,e)}else if(s.call(this,e)){e.preventDefault(),e.stopPropagation(),Jn.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation(),Jn.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},i.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],s=Hr.getTech(r);if(s||(s=Jn.getComponent(r)),s){if(s.isSupported()&&(t=s.canPlayType(e)))return t}else Yt.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},i.selectSource=function(e){var t,i,n=this,r=this.options_.techOrder.map(function(e){return[e,Hr.getTech(e)]}).filter(function(e){var t=e[0],i=e[1];return i?i.isSupported():(Yt.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),s=function(e,t,i){var n;return e.some(function(e){return t.some(function(t){if(n=i(e,t))return!0})}),n},a=function(e,t){var i=e[0];if(e[1].canPlaySource(t,n.options_[i.toLowerCase()]))return{source:t,tech:i}};return t=this.options_.sourceOrder?s(e,r,(i=a,function(e,t){return i(t,e)})):s(r,e,a),t||!1},i.handleSrc_=function(e,t){var i=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var n=es(e);if(n.length){if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),Vr(this,n[0],function(e,r){var s,a;if(i.middleware_=r,t||(i.cache_.sources=n),i.updateSourceCaches_(e),i.src_(e))return n.length>1?i.handleSrc_(n.slice(1)):(i.changingSrc_=!1,i.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void i.triggerReady());s=r,a=i.tech_,s.forEach(function(e){return e.setTech&&e.setTech(a)})}),this.options_.retryOnError&&n.length>1){var r=function(){i.error(null),i.handleSrc_(n.slice(1),!0)},s=function(){i.off("error",r)};this.one("error",r),this.one("playing",s),this.resetRetryOnError_=function(){i.off("error",r),i.off("playing",s)}}}else this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},i.src=function(e){return this.handleSrc_(e,!1)},i.src_=function(e){var t,i,n=this,r=this.selectSource([e]);return!r||(t=r.tech,i=this.techName_,Gn(t)!==Gn(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},i.load=function(){this.techCall_("load")},i.reset=function(){var e=this,t=this.options_.Promise||m()().Promise;this.paused()||!t?this.doReset_():or(this.play().then(function(){return e.doReset_()}))},i.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Nn(this)&&this.trigger("playerreset")},i.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},i.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,i=e.remainingTimeDisplay;t&&t.updateContent(),i&&i.updateContent()},i.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},i.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},i.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},i.currentSource=function(){return this.cache_.source||{}},i.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},i.currentType=function(){return this.currentSource()&&this.currentSource().type||""},i.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},i.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},i.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},i.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},i.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},i.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},i.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
vendor: 11,749 bytes, line 2
2sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},i.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},i.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(Ht("beforeerror").forEach(function(i){var n=i(t,e);ti(n)&&!Array.isArray(n)||"string"==typeof n||"number"==typeof n||null===n?e=n:t.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){var i=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],i),void this.one("loadstart",function(){this.off(["click","touchstart"],i)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new rr(e),this.addClass("vjs-error"),Yt.error("(CODE:"+this.error_.code+" "+rr.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),Ht("error").forEach(function(e){return e(t,t.error_)})},i.reportUserActivity=function(e){this.userActivity_=!0},i.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},i.listenForUserActivity_=function(){var e,t,i,n=Pn(this,this.reportUserActivity),r=function(t){n(),this.clearInterval(e)};this.on("mousedown",function(){n(),this.clearInterval(e),e=this.setInterval(n,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,n())}),this.on("mouseup",r),this.on("mouseleave",r);var s,a=this.getChild("controlBar");!a||ki||hi||(a.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),a.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",n),this.on("keyup",n),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var e=this.options_.inactivityTimeout;e<=0||(s=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},i.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},i.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},i.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},i.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},i.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},i.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},i.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},i.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},i.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},i.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Nn(this)&&this.trigger("languagechange"))},i.languages=function(){return $n(t.prototype.options_.languages,this.languages_)},i.toJSON=function(){var e=$n(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var n=t[i];(n=$n(n)).player=void 0,e.tracks[i]=n}return e},i.createModal=function(e,t){var i=this;(t=t||{}).content=e||"";var n=new hr(this,t);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},i.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<qa.length;i++){var n=qa[i];if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(za[e]),this.addClass(za[n]),this.breakpoint_=n;break}}},i.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},i.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=ei({},Wa,e),this.updateCurrentBreakpoint_()),ei(this.breakpoints_)},i.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},i.currentBreakpoint=function(){return this.breakpoint_},i.currentBreakpointClass=function(){return za[this.breakpoint_]||""},i.loadMedia=function(e,t){var i=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=$n(e);var n=this.cache_.media,r=n.artwork,s=n.poster,a=n.src,o=n.textTracks;!r&&s&&(this.cache_.media.artwork=[{src:s,type:Jr(s)}]),a&&this.src(a),s&&this.poster(s),Array.isArray(o)&&o.forEach(function(e){return i.addRemoteTextTrack(e,!1)}),this.ready(t)}},i.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Jr(t.poster)}]),t}return $n(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},i=qi(e),n=i["data-setup"];if(Bi(e,"vjs-fill")&&(i.fill=!0),Bi(e,"vjs-fluid")&&(i.fluid=!0),null!==n){var r=w()(n||"{}"),s=r[0],a=r[1];s&&Yt.error(s),ei(i,a)}if(ei(t,i),e.hasChildNodes())for(var o=e.childNodes,l=0,c=o.length;l<c;l++){var u=o[l],d=u.nodeName.toLowerCase();"source"===d?t.sources.push(qi(u)):"track"===d&&t.tracks.push(qi(u))}return t},i.flexNotSupported_=function(){var e=v().createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},i.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},i.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(Jn);jr.names.forEach(function(e){var t=jr[e];Va.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Va.prototype.crossorigin=Va.prototype.crossOrigin,Va.players={};var Xa=m()().navigator;Va.prototype.options_={techOrder:Hr.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Xa&&(Xa.languages&&Xa.languages[0]||Xa.userLanguage||Xa.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Va.prototype[e]=function(){return this.techGet_(e)}}),ja.forEach(function(e){Va.prototype["handleTech"+Gn(e)+"_"]=function(){return this.trigger(e)}}),Jn.registerComponent("Player",Va);var Ga="plugin",$a="activePlugins_",Ya={},Ka=function(e){return Ya.hasOwnProperty(e)},Qa=function(e){return Ka(e)?Ya[e]:void 0},Za=function(e,t){e[$a]=e[$a]||{},e[$a][t]=!0},Ja=function(e,t,i){var n=(i?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)},eo=function(e,t){return t.prototype.name=e,function(){Ja(this,{name:e,plugin:t,instance:null},!0);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var s=function(e,t,i){if(L())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var r=new(e.bind.apply(e,n));return i&&_(r,i.prototype),r}(t,[this].concat(n));return this[e]=function(){return s},Ja(this,s.getEventHash()),s}},to=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),zn(this),delete this.trigger,Vn(this,this.constructor.defaultState),Za(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),kn(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[$a][e]=!1,this.player=this.state=null,t[e]=eo(e,Ya[e])},e.isBasic=function(t){var i="string"==typeof t?Qa(t):t;return"function"==typeof i&&!e.prototype.isPrototypeOf(i.prototype)},e.registerPlugin=function(t,i){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(Ka(t))Yt.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Va.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof i)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof i+".");return Ya[t]=i,t!==Ga&&(e.isBasic(i)?Va.prototype[t]=function(e,t){var i=function(){Ja(this,{name:e,plugin:t,instance:null},!0);var i=t.apply(this,arguments);return Za(this,e),Ja(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach(function(e){i[e]=t[e]}),i}(t,i):Va.prototype[t]=eo(t,i)),i},e.deregisterPlugin=function(e){if(e===Ga)throw new Error("Cannot de-register base plugin.");Ka(e)&&(delete Ya[e],delete Va.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(Ya)),e.forEach(function(e){var i=Qa(e);i&&((t=t||{})[e]=i)}),t},e.getPluginVersion=function(e){var t=Qa(e);return t&&t.VERSION||""},e}();to.getPlugin=Qa,to.BASE_PLUGIN_NAME=Ga,to.registerPlugin(Ga,to),Va.prototype.usingPlugin=function(e){return!!this[$a]&&!0===this[$a][e]},Va.prototype.hasPlugin=function(e){return!!Ka(e)};var io=function(e){return 0===e.indexOf("#")?e.slice(1):e};function no(e,t,i){var n=no.getPlayer(e);if(n)return t&&Yt.warn('Player "'+e+'" is already initialised. Options will not be applied.'),i&&n.ready(i),n;var r="string"==typeof e?sn("#"+io(e)):e;if(!Pi(r))throw new TypeError("The element or ID supplied is not val
2id. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||Yt.warn("The element supplied is not included in the DOM"),t=t||{},Ht("beforesetup").forEach(function(e){var i=e(r,$n(t));ti(i)&&!Array.isArray(i)?t=$n(t,i):Yt.error("please return an object in beforesetup hooks")});var s=Jn.getComponent("Player");return n=new s(r,t,i),Ht("setup").forEach(function(e){return e(n)}),n}if(no.hooks_=jt,no.hooks=Ht,no.hook=function(e,t){Ht(e,t)},no.hookOnce=function(e,t){Ht(e,[].concat(t).map(function(t){return function i(){return qt(e,i),t.apply(void 0,arguments)}}))},no.removeHook=qt,!0!==m()().VIDEOJS_NO_DYNAMIC_STYLE&&Ii()){var ro=sn(".vjs-styles-defaults");if(!ro){ro=pn("vjs-styles-defaults");var so=sn("head");so&&so.insertBefore(ro,so.firstChild),fn(ro,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}un(1,no),no.VERSION=Ut,no.options=Va.prototype.options_,no.getPlayers=function(){return Va.players},no.getPlayer=function(e){var t,i=Va.players;if("string"==typeof e){var n=io(e),r=i[n];if(r)return r;t=sn("#"+n)}else t=e;if(Pi(t)){var s=t,a=s.player,o=s.playerId;if(a||i[o])return a||i[o]}},no.getAllPlayers=function(){return Object.keys(Va.players).map(function(e){return Va.players[e]}).filter(Boolean)},no.players=Va.players,no.getComponent=Jn.getComponent,no.registerComponent=function(e,t){Hr.isTech(t)&&Yt.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Jn.registerComponent.call(Jn,e,t)},no.getTech=Hr.getTech,no.registerTech=Hr.registerTech,no.use=function(e,t){qr[e]=qr[e]||[],qr[e].push(t)},Object.defineProperty(no,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(no.middleware,"TERMINATOR",{value:Wr,writeable:!1,enumerable:!0}),no.browser=Ci,no.TOUCH_ENABLED=xi,no.extend=function(e,t){void 0===t&&(t={});var i=function(){e.apply(this,arguments)},n={};for(var r in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(i=t.constructor),n=t):"function"==typeof t&&(i=t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(i,e),e&&(i.super_=e),n)n.hasOwnProperty(r)&&(i.prototype[r]=n[r]);return i},no.mergeOptions=$n,no.bind=Pn,no.registerPlugin=to.registerPlugin,no.deregisterPlugin=to.deregisterPlugin,no.plugin=function(e,t){return Yt.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),to.registerPlugin(e,t)},no.getPlugins=to.getPlugins,no.getPlugin=to.getPlugin,no.getPluginVersion=to.getPluginVersion,no.addLanguage=function(e,t){var i;return e=(""+e).toLowerCase(),no.options.languages=$n(no.options.languages,((i={})[e]=t,i)),no.options.languages[e]},no.log=Yt,no.createLogger=Kt,no.createTimeRange=no.createTimeRanges=ir,no.formatTime=vs,no.setFormatTime=function(e){gs=e},no.resetFormatTime=function(){gs=ms},no.parseUrl=Cr,no.isCrossOrigin=Ir,no.EventTarget=Dn,no.on=wn,no.one=En,no.off=Sn,no.trigger=kn,no.xhr=E()(),no.TextTrack=Mr,no.AudioTrack=Nr,no.VideoTrack=Rr,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){no[e]=function(){return Yt.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),on[e].apply(null,arguments)}}),no.computedStyle=ni,no.dom=on,no.url=Pr,no.defineLazyProperty=Fa,no.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var ao=function(e,t){return D(e,t).replaceAll("http://","https://")},oo=function(e,t,i){return e&&i&&i.responseURL&&t!==i.responseURL?i.responseURL:t},lo=function(e){return no.log.debug?no.log.debug.bind(no,"VHS:",e+" >"):function(){}},co=1/30,uo=.1,ho=function(e,t){var i,n=[];if(e&&e.length)for(i=0;i<e.length;i++)t(e.start(i),e.end(i))&&n.push([e.start(i),e.end(i)]);return no.createTimeRanges(n)},po=function(e,t){return ho(e,function(e,i){return e-uo<=t&&i+uo>=t})},fo=function(e,t){return ho(e,function(e){return e-co>=t})},mo=function(e){var t=[];if(!e||!e.length)return"";for(var i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")},go=function(e){for(var t=[],i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t},vo=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},yo=no.createTimeRange,bo=function(e){return(e.segments||[]).reduce(function(e,t,i){return t.parts?t.parts.forEac
2h(function(n,r){e.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e},[])},_o=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},To=function(e){var t=e.preloadSegment;if(t){var i=t.parts,n=(t.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0);return n+=i&&i.length?i.length:0}},xo=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var i=_o(t).length>0;return i&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:i&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},wo=function(e,t,i){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var n=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(void 0!==(r=e.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=r.duration,void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(e,t);if(n.precise)return n.result;var r=function(e,t){for(var i,n=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(i=e.segments[r]).start)return{result:i.start-n,precise:!0};if(n+=i.duration,void 0!==i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}}(e,t);return r.precise?r.result:n.result+i},So=function(e,t,i){if(!e)return 0;if("number"!=typeof i&&(i=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return m()()[1/0]}return wo(e,t,i)},ko=function(e){var t=e.defaultDuration,i=e.durationList,n=e.startIndex,r=e.endIndex,s=0;if(n>r){var a=[r,n];n=a[0],r=a[1]}if(n<0){for(var o=n;o<Math.min(0,r);o++)s+=t;n=0}for(var l=n;l<r;l++)s+=i[l].duration;return s},Eo=function(e,t,i,n){if(!e||!e.segments)return null;if(e.endList)return So(e);if(null===t)return null;t=t||0;var r=wo(e,e.mediaSequence+e.segments.length,t);return i&&(r-=n="number"==typeof n?n:xo(null,e)),Math.max(0,r)},Co=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Ao=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Lo=function(e){var t=Co(e);return!e.disabled&&!t},Io=function(e,t){return t.attributes&&t.attributes[e]},Po=function(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!Lo(e)&&(e.attributes.BANDWIDTH||0)<i}).length},Oo=function(e,t){return!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))))},Do=function(e,t){var i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},n=!1;for(var r in i){for(var s in i[r])if(n=t(i[r][s]))break;if(n)break}return!!n},Mo=function(e){if(!e||!e.playlists||!e.playlists.length)return Do(e,function(e){return e.playlists&&e.playlists.length||e.uri});for(var t=function(t){var i=e.playlists[t],n=i.attributes&&i.attributes.CODECS;return n&&n.split(",").every(function(e){return Y(e)})||Do(e,function(e){return Oo(i,e)})?"continue":{v:!1}},i=0;i<e.playlists.length;i++){var n=t(i);if("continue"!==n&&"object"==typeof n)return n.v}return!0},No={liveEdgeDelay:xo,duration:So,seekable:function(e,t,i){var n=t||0,r=Eo(e,t,!0,i);return null===r?yo():yo(n,r)},getMediaInfoForTime:function(e){for(var t=e.playlist,i=e.currentTime,n=e.startingSegmentIndex,r=e.startingPartIndex,s=e.startTime,a=e.experimentalExactManifestTimings,o=i-s,l=bo(t),c=0,u=0;u<l.length;u++){var d=l[u];if(n===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){c=u;break}}if(o<0){if(c>0)for(var h=c-1;h>=0;h--){var p=l[h];if(o+=p.duration,a){if(o<0)continue}else if(o+co<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:s-ko({defaultDuration:t.targetDuration,durationList:l,startIndex:c,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i}}if(c<0){for(var f=c;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i};c=0}for(var m=c;m<l.length;m++){var g=l[m];if(o-=g.duration,a){if(o>0)continue}else if(o-co>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:s+ko({defaultDuration:t.targetDuration,durationList:l,startIndex:c,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:i}},isEnabled:Lo,isDisabled:function(e){return e.disabled},isBlacklisted:Co,isIncompatible:Ao,playlistEnd:Eo,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:Io,estimateSegmentRequestTime:function(e,t,i,n){return void 0===n&&(n=0),Io("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*n)/t:NaN},isLowestEnabledRendition:Po,isAudioOnly:Mo,playlistMatch:Oo},Ro=no.log,Bo=function(e,t){return e+"-"+t},Fo=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(i){if(e.mediaGroups[i])for(var n in e.mediaGroups[i])for(var r in e.mediaGroups[i][n]){var s=e.mediaGroups[i][n][r];t(s,i,n,r)}})}
2,Uo=function(e){var t=e.playlist,i=e.uri,n=e.id;t.id=n,t.playlistErrors_=0,i&&(t.uri=i),t.attributes=t.attributes||{}},jo=function(e,t){e.uri=t;for(var i=0;i<e.playlists.length;i++)if(!e.playlists[i].uri){var n="placeholder-uri-"+i;e.playlists[i].uri=n}var r=Mo(e);Fo(e,function(t,i,n,s){var a="placeholder-uri-"+i+"-"+n+"-"+s;if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===i&&!t.uri)for(var o=0;o<e.playlists.length;o++){var l=e.playlists[o];if(l.attributes&&l.attributes.AUDIO&&l.attributes.AUDIO===n)return}t.playlists=[y({},t)]}t.playlists.forEach(function(t,i){var n=Bo(i,a);t.uri?t.resolvedUri=t.resolvedUri||ao(e.uri,t.uri):(t.uri=0===i?a:n,t.resolvedUri=t.uri),t.id=t.id||n,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),function(e){for(var t=e.playlists.length;t--;){var i=e.playlists[t];Uo({playlist:i,id:Bo(t,i.uri)}),i.resolvedUri=ao(e.uri,i.uri),e.playlists[i.id]=i,e.playlists[i.uri]=i,i.attributes.BANDWIDTH||Ro.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(e),function(e){Fo(e,function(t){t.uri&&(t.resolvedUri=ao(e.uri,t.uri))})}(e)},Ho=no.mergeOptions,qo=no.EventTarget,zo=function(e,t){if(!e)return t;var i=Ho(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(var n=0;n<t.parts.length;n++)e.parts&&e.parts[n]&&(i.parts[n]=Ho(e.parts[n],t.parts[n]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},Wo=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=ao(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=ao(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=ao(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=ao(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=ao(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=ao(t,e.uri))})},Vo=function(e){var t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(var n=0;n<i.preloadHints.length;n++)if("MAP"===i.preloadHints[n].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t},Xo=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence},Go=function(e,t,i){void 0===i&&(i=Xo);var n=Ho(e,{}),r=n.playlists[t.id];if(!r)return null;if(i(r,t))return null;t.segments=Vo(t);var s=Ho(r,t);if(s.preloadSegment&&!t.preloadSegment&&delete s.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var a=0;a<t.skip.skippedSegments;a++)t.segments.unshift({skipped:!0})}s.segments=function(e,t,i){var n=e.slice(),r=t.slice();i=i||0;for(var s,a=[],o=0;o<r.length;o++){var l=n[o+i],c=r[o];l?(s=l.map||s,a.push(zo(l,c))):(s&&!c.map&&(c.map=s),a.push(c))}return a}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}s.segments.forEach(function(e){Wo(e,s.resolvedUri)});for(var o=0;o<n.playlists.length;o++)n.playlists[o].id===t.id&&(n.playlists[o]=s);return n.playlists[t.id]=s,n.playlists[t.uri]=s,Fo(e,function(e,i,n,r){if(e.playlists)for(var s=0;s<e.playlists.length;s++)t.id===e.playlists[s].id&&(e.playlists[s]=t)}),n},$o=function(e,t){var i=e.segments[e.segments.length-1],n=i&&i.parts&&i.parts[i.parts.length-1],r=n&&n.duration||i&&i.duration;return t&&r?1e3*r:500*(e.partTargetDuration||e.targetDuration||10)},Yo=function(e){function t(t,i,n){var r;if(void 0===n&&(n={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=lo("PlaylistLoader");var s=n,a=s.withCredentials,o=void 0!==a&&a,l=s.handleManifestRedirects,c=void 0!==l&&l;r.src=t,r.vhs_=i,r.withCredentials=o,r.handleManifestRedirects=c;var u=i.options_;return r.customTagParsers=u&&u.customTagParsers||[],r.customTagMappers=u&&u.customTagMappers||[],r.experimentalLLHLS=u&&u.experimentalLLHLS||!1,r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(b(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}T(t,e);var i=t.prototype;return i.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),i=ao(this.master.uri,t.uri);this.experimentalLLHLS&&(i=function(e,t){if(t.endList)return e;var i=[];if(t.serverControl&&t.serverControl.canBlockReload){var n=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(n){var s=n.parts||[],a=To(t)-1;a>
2-1&&a!==s.length-1&&i.push("_HLS_part="+a),(a>-1||s.length)&&r--}i.unshift("_HLS_msn="+r)}return t.serverControl&&t.serverControl.canSkipUntil&&i.unshift("_HLS_skip="+(t.serverControl.canSkipDateranges?"v2":"YES")),i.forEach(function(t,i){e+=(0===i?"?":"&")+t}),e}(i,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:i,withCredentials:this.withCredentials},function(t,i){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})})}},i.playlistRequestError=function(e,t,i){var n=t.uri,r=t.id;this.request=null,i&&(this.state=i),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+n+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},i.parseManifest_=function(e){var t=this,i=e.url;return function(e){var t=e.onwarn,i=e.oninfo,n=e.manifestString,r=e.customTagParsers,s=void 0===r?[]:r,a=e.customTagMappers,o=void 0===a?[]:a,l=e.experimentalLLHLS,c=new z;t&&c.on("warn",t),i&&c.on("info",i),s.forEach(function(e){return c.addParser(e)}),o.forEach(function(e){return c.addTagMapper(e)}),c.push(n),c.end();var u=c.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){u.hasOwnProperty(e)&&delete u[e]}),u.segments&&u.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!u.targetDuration){var d=10;u.segments&&u.segments.length&&(d=u.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t("manifest has no targetDuration defaulting to "+d),u.targetDuration=d}var h=_o(u);if(h.length&&!u.partTargetDuration){var p=h.reduce(function(e,t){return Math.max(e,t.duration)},0);t&&(t("manifest has no partTargetDuration defaulting to "+p),Ro.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),u.partTargetDuration=p}return u}({onwarn:function(e){var n=e.message;return t.logger_("m3u8-parser warn for "+i+": "+n)},oninfo:function(e){var n=e.message;return t.logger_("m3u8-parser info for "+i+": "+n)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},i.haveMetadata=function(e){var t=e.playlistString,i=e.playlistObject,n=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var s=i||this.parseManifest_({url:n,manifestString:t});s.lastRequest=Date.now(),Uo({playlist:s,uri:n,id:r});var a=Go(this.master,s);this.targetDuration=s.partTargetDuration||s.targetDuration,a?(this.master=a,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_($o(this.media(),!!a)),this.trigger("loadedplaylist")},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),m()().clearTimeout(this.mediaUpdateTimeout),m()().clearTimeout(this.finalRenditionTimeout),this.off()},i.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},i.media=function(e,t){var i=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(m()().clearTimeout(this.finalRenditionTimeout),t){var n=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=m()().setTimeout(this.media.bind(this,e,!1),n)}else{var r=this.state,s=!this.media_||e.id!==this.media_.id,a=this.master.playlists[e.id];if(a&&a.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(s&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_($o(e,!0)),s){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,n){if(i.request){if(e.lastRequest=Date.now(),e.resolvedUri=oo(i.handleManifestRedirects,e.resolvedUri,n),t)return i.playlistRequestError(i.request,e,r);i.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?i.trigger("loadedmetadata"):i.trigger("mediachange")}})}}},i.pause=function(){this.mediaUpdateTimeout&&(m()().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},i.load=function(e){var t=this;this.mediaUpdateTimeout&&(m()().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var i=this.media();if(e){var n=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=m()().setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},n)}else this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},i.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(m()().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=m()().setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))},i.start=function(){var e=this;
2if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=m()().location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){e.setupInitialPlaylist(e.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,i){if(e.request){if(e.request=null,t)return e.error={status:i.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:i.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=oo(e.handleManifestRedirects,e.src,i);var n=e.parseManifest_({manifestString:i.responseText,url:e.src});e.setupInitialPlaylist(n)}})},i.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},i.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,jo(this.master,this.srcUri()),e.playlists.forEach(function(e){e.segments=Vo(e),e.segments.forEach(function(t){Wo(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||m()().location.href;this.master=function(e,t){var i=Bo(0,t),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:m()().location.href,resolvedUri:m()().location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return n.playlists[i]=n.playlists[0],n.playlists[t]=n.playlists[0],n}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(qo),Ko=no.xhr,Qo=no.mergeOptions,Zo=function(e,t,i,n){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),n(t,e)},Jo=function(){var e=function e(t,i){t=Qo({timeout:45e3},t);var n=e.beforeRequest||no.Vhs.xhr.beforeRequest;if(n&&"function"==typeof n){var r=n(t);r&&(t=r)}var s=(!0===no.Vhs.xhr.original?Ko:no.Vhs.xhr)(t,function(e,t){return Zo(s,e,t,i)}),a=s.abort;return s.abort=function(){return s.aborted=!0,a.apply(s,arguments)},s.uri=t.uri,s.requestTime=Date.now(),s};return e.original=!0,e},el=function(e){var t,i,n={};return e.byterange&&(n.Range=(t=e.byterange,i=t.offset+t.length-1,"bytes="+t.offset+"-"+i)),n},tl=function(e,t){return e.start(t)+"-"+e.end(t)},il=function(e,t){var i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},nl=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},rl=function(e){var t={};return Object.keys(e).forEach(function(i){var n=e[i];ArrayBuffer.isView(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n}),t},sl=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},al=function(e){return e.resolvedUri},ol=function(e){for(var t=Array.prototype.slice.call(e),i=16,n="",r=0;r<t.length/i;r++)n+=t.slice(r*i,r*i+i).map(il).join("")+" "+t.slice(r*i,r*i+i).map(nl).join("")+"\n";return n},ll=Object.freeze({__proto__:null,createTransferableMessage:rl,initSegmentId:sl,segmentKeyId:al,hexDump:ol,tagDump:function(e){var t=e.bytes;return ol(t)},textRanges:function(e){var t,i="";for(t=0;t<e.length;t++)i+=tl(e,t)+" ";return i}}),cl=function(e){var t=e.playlist,i=e.time,n=void 0===i?void 0:i,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===n)return r({message:"getProgramTime: playlist and time must be provided"});var s=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i,n=0,r=0;r<t.segments.length&&!(e<=(n=(i=t.segments[r]).videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration));r++);var s=t.segments[t.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>n){if(e>n+.25*s.duration)return null;i=s}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}}(n,t);if(!s)return r({message:"valid programTime was not found"});if("estimate"===s.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var a={mediaSeconds:n},o=function(e,t){if(!t.dateTimeObject)return null;var i=t.videoTimingInfo.transmuxerPrependedSeconds,n=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*n)}(n,s.segment);return o&&(a.programDateTime=o.toISOString()),r(null,a)},ul=function e(t){var i=t.programTime,n=t.playlist,r=t.retryCount,s=void 0===r?2:r,a=t.seekTo,o=t.pauseAfterSeek,l=void 0===o||o,c=t.tech,u=t.callback;if(!u)throw new Error("seekToProgramTime: callback must be provided");
2if(void 0===i||!n||!a)return u({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!c.hasStarted_)return u({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(n))return u({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri});var d=function(e,t){var i;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var n=t.segments[0];if(i<n.dateTimeObject)return null;for(var r=0;r<t.segments.length-1&&(n=t.segments[r],!(i<t.segments[r+1].dateTimeObject));r++);var s,a=t.segments[t.segments.length-1],o=a.dateTimeObject,l=a.videoTimingInfo?(s=a.videoTimingInfo).transmuxedPresentationEnd-s.transmuxedPresentationStart-s.transmuxerPrependedSeconds:a.duration+.25*a.duration;return i>new Date(o.getTime()+1e3*l)?null:(i>o&&(n=a),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:No.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})}(i,n);if(!d)return u({message:i+" was not found in the stream"});var h=d.segment,p=function(e,t){var i,n;try{i=new Date(e),n=new Date(t)}catch(e){}var r=i.getTime();return(n.getTime()-r)/1e3}(h.dateTimeObject,i);if("estimate"===d.type)return 0===s?u({message:i+" is not buffered yet. Try again"}):(a(d.estimatedStart+p),void c.one("seeked",function(){e({programTime:i,playlist:n,retryCount:s-1,seekTo:a,pauseAfterSeek:l,tech:c,callback:u})}));var f=h.start+p;c.one("seeked",function(){return u(null,c.currentTime())}),l&&c.pause(),a(f)},dl=function(e,t){if(4===e.readyState)return t()},hl=function(e,t,i){var n,r=[],s=!1,a=function(e,t,n,r){return t.abort(),s=!0,i(e,t,n,r)},o=function(e,t){if(!s){if(e)return a(e,t,"",r);var i=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e}),t.length<=1)return ct(t[0]);var n=t.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0),r=new Uint8Array(n),s=0;return t.forEach(function(e){e=ct(e),r.set(e,s),s+=e.byteLength}),r}(r,ft(i,!0)),n=n||vt(r),r.length<10||n&&r.length<n+2)return dl(t,function(){return a(e,t,"",r)});var o=Bt(r);return"ts"===o&&r.length<188||!o&&r.length<376?dl(t,function(){return a(e,t,"",r)}):a(null,t,o,r)}},l={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function(t){return t.total,t.loaded,Zo(e,null,{statusCode:e.status},o)})}},c=t(l,function(e,t){return Zo(c,e,t,o)});return c},pl=no.EventTarget,fl=no.mergeOptions,ml=function(e,t){if(!Xo(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var i=0;i<e.segments.length;i++){var n=e.segments[i],r=t.segments[i];if(n.uri!==r.uri)return!1;if(n.byterange||r.byterange){var s=n.byterange,a=r.byterange;if(s&&!a||!s&&a)return!1;if(s.offset!==a.offset||s.length!==a.length)return!1}}return!0},gl=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},vl=function(e,t){var i={};for(var n in e){var r=e[n].sidx;if(r){var s=Ie(r);if(!t[s])break;var a=t[s].sidxInfo;gl(a,r)&&(i[s]=t[s])}}return i},yl=function(e){function t(t,i,n,r){var s;void 0===n&&(n={}),(s=e.call(this)||this).masterPlaylistLoader_=r||b(s),r||(s.isMaster_=!0);var a=n,o=a.withCredentials,l=void 0!==o&&o,c=a.handleManifestRedirects,u=void 0!==c&&c;if(s.vhs_=i,s.withCredentials=l,s.handleManifestRedirects=u,!t)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",function(){s.refreshXml_()}),s.on("mediaupdatetimeout",function(){s.refreshMedia_(s.media().id)}),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=lo("DashPlaylistLoader"),s.isMaster_?(s.masterPlaylistLoader_.srcUrl=t,s.masterPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=t,s}T(t,e);var i=t.prototype;return i.requestErrored_=function(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)},i.addSidxSegments_=function(e,t,i){var n=this,r=e.sidx&&Ie(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var s=oo(this.handleManifestRedirects,e.sidx.resolvedUri),a=function(s,a){if(!n.requestErrored_(s,a,t)){var o,l=n.masterPlaylistLoader_.sidxMapping_;try{o=ot()(ct(a.response).subarray(8))}catch(e){return void n.requestErrored_(e,a,t)}return l[r]={sidxInfo:e.sidx,sidx:o},we(e,o,e.sidx.resolvedUri),i(!0)}};this.request=hl(s,this.vhs_.xhr,function(t,i,r,o){if(t)return a(t,i);if(!r||"mp4"!==r)return a({status:i.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:e,internal:!0,blackl
2istDuration:1/0,code:2},i);var l=e.sidx.byterange,c=l.offset,u=l.length;if(o.length>=u+c)return a(t,{response:o.subarray(c,c+u),status:i.status,uri:i.uri});n.request=n.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:el({byterange:e.sidx.byterange})},a)})}else this.mediaRequest_=m()().setTimeout(function(){return i(!1)},0)},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},m()().clearTimeout(this.minimumUpdatePeriodTimeout_),m()().clearTimeout(this.mediaRequest_),m()().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},i.hasPendingRequest=function(){return this.request||this.mediaRequest_},i.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},i.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,i,function(n){t.haveMetadata({startingState:i,playlist:e})}))},i.haveMetadata=function(e){var t=e.startingState,i=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.id]=i,this.mediaRequest_=null,this.refreshMedia_(i.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},i.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),m()().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(m()().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},i.load=function(e){var t=this;m()().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=m()().setTimeout(function(){return t.load()},n)}else this.started?i&&!i.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},i.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_(function(t,i){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=m()().setTimeout(function(){return e.haveMaster_()},0)},i.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(i,n){if(!t.requestErrored_(i,n)){var r=n.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?t.masterLoaded_=Date.parse(n.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=oo(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,n),r?(t.handleMaster_(),void t.syncClientServerClock_(function(){return e(n,r)})):e(n,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)})},i.syncClientServerClock_=function(e){var t=this,i=st(this.masterPlaylistLoader_.masterXml_);return null===i?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===i.method?(this.masterPlaylistLoader_.clientOffset_=i.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:ao(this.masterPlaylistLoader_.srcUrl,i.value),method:i.method,withCredentials:this.withCredentials},function(n,r){if(t.request){if(n)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var s;s="HEAD"===i.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=s-Date.now(),e()}}))},i.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},i.handleMaster_=function(){this.mediaRequest_=null;var e,t,i,n,r,s,a=(e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_},t=e.masterXml,i=e.srcUrl,n=e.clientOffset,r=e.sidxMapping,s=rt(t,{manifestUri:i,clientOffset:n,sidxMapping:r}),jo(s,i),s),o=this.masterPlaylistLoader_.master;o&&(a=function(e,t,i){for(var n=!0,r=fl(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),s=0;s<t.playlists.length;s++){var a=t.playlists[s];if(a.sidx){var o=Ie(a.sidx);i&&i[o]&&i[o].sidx&&we(a,i[o].sidx,a.sidx.resolvedUri)}var l=Go(r,a,ml);l&&(r=l,n=!1)}return Fo(t,function(e,t,i,s){if(e.playlists&&e.playlists.length){var a=e.playlists[0].id,o=Go(r,e.playlists[0],ml);o&&((r=o).mediaGroups[t][i][s].playlists[0]=r.playlists[a],n=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(n=!1),n?null:r}(o,a,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=a||o;var l=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return l&&l!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=l),(!o||a&&a.minimumUpdatePeriod!==o.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(a)},i.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(m()().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;
20===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},i.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=m()().setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},i.refreshXml_=function(){var e=this;this.requestMaster_(function(t,i){var n,r,s;i&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(n=e.masterPlaylistLoader_.master,r=e.masterPlaylistLoader_.sidxMapping_,s=vl(n.playlists,r),Fo(n,function(e,t,i,n){if(e.playlists&&e.playlists.length){var a=e.playlists;s=fl(s,vl(a,r))}}),s),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})},i.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var i=this.masterPlaylistLoader_.master.playlists,n=!this.media_||this.media_!==i[e];if(n?this.media_=i[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function e(){t.media().endList||(t.mediaUpdateTimeout=m()().setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},$o(t.media(),Boolean(n))))}()}this.trigger("loadedplaylist")},t}(pl),bl={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},_l=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},Tl=function(e){return function(){var t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(i){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),i=_l(new Worker(t));i.objURL=t;var n=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),n.call(this)},i}},xl=function(e){return"var browserWorkerPolyFill = "+_l.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},wl=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Sl=xl(wl(function(){var e=function(){this.init=function(){var e={};this.on=function(t,i){e[t]||(e[t]=[]),e[t]=e[t].concat(i)},this.off=function(t,i){var n;return!!e[t]&&(n=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(n,1),n>-1)},this.trigger=function(t){var i,n,r,s;if(i=e[t])if(2===arguments.length)for(r=i.length,n=0;n<r;++n)i[n].call(this,arguments[1]);else{for(s=[],n=arguments.length,n=1;n<arguments.length;++n)s.push(arguments[n]);for(r=i.length,n=0;n<r;++n)i[n].apply(this,s)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,i,n,r,s,a,o,l,c,u,d,h,p,f,m,g,v,y,b,_,T,x,w,S,k,E,C,A,L,I,P,O,D,M,N,R,B,F,U,j,H=e,q=Math.pow(2,32)-1;!function(){var e;if(x={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in x)x.hasOwnProperty(e)&&(x[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);w=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),k=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),S=new Uint8Array([0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),C=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:E,audio:C},P=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),O=new
vendor: 13,530 bytes, line 2
2Uint8Array([0,0,0,0,0,0,0,0]),D=O,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=O,L=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,i,n=[],r=0;for(t=1;t<arguments.length;t++)n.push(arguments[t]);for(t=n.length;t--;)r+=n[t].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(e,4),t=0,r=8;t<n.length;t++)i.set(n[t],r),r+=n[t].byteLength;return i},i=function(){return t(x.dinf,t(x.dref,P))},n=function(e){return t(x.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},m=function(e){return t(x.hdlr,A[e])},f=function(e){var i=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(i[12]=e.samplerate>>>24&255,i[13]=e.samplerate>>>16&255,i[14]=e.samplerate>>>8&255,i[15]=255&e.samplerate),t(x.mdhd,i)},p=function(e){return t(x.mdia,f(e),m(e.type),a(e))},s=function(e){return t(x.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},a=function(e){return t(x.minf,"video"===e.type?t(x.vmhd,L):t(x.smhd,I),i(),v(e))},o=function(e,i){for(var n=[],r=i.length;r--;)n[r]=b(i[r]);return t.apply(null,[x.moof,s(e)].concat(n))},l=function(e){for(var i=e.length,n=[];i--;)n[i]=d(e[i]);return t.apply(null,[x.moov,u(4294967295)].concat(n).concat(c(e)))},c=function(e){for(var i=e.length,n=[];i--;)n[i]=_(e[i]);return t.apply(null,[x.mvex].concat(n))},u=function(e){var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(x.mvhd,i)},g=function(e){var i,n,r=e.samples||[],s=new Uint8Array(4+r.length);for(n=0;n<r.length;n++)i=r[n].flags,s[n+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return t(x.sdtp,s)},v=function(e){return t(x.stbl,y(e),t(x.stts,N),t(x.stsc,D),t(x.stsz,M),t(x.stco,O))},y=function(e){return t(x.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?R(e):B(e))},R=function(e){var i,n,r=e.sps||[],s=e.pps||[],a=[],o=[];for(i=0;i<r.length;i++)a.push((65280&r[i].byteLength)>>>8),a.push(255&r[i].byteLength),a=a.concat(Array.prototype.slice.call(r[i]));for(i=0;i<s.length;i++)o.push((65280&s[i].byteLength)>>>8),o.push(255&s[i].byteLength),o=o.concat(Array.prototype.slice.call(s[i]));if(n=[x.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(x.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],a,[s.length],o))),t(x.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],c=e.sarRatio[1];n.push(t(x.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return t.apply(null,n)},B=function(e){return t(x.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),n(e))},h=function(e){var i=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(x.tkhd,i)},b=function(e){var i,n,r,s,a,o;return i=t(x.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/(q+1)),o=Math.floor(e.baseMediaDecodeTime%(q+1)),n=t(x.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),"audio"===e.type?(r=T(e,92),t(x.traf,i,n,r)):(s=g(e),r=T(e,s.length+92),t(x.traf,i,n,r,s))},d=function(e){return e.duration=e.duration||4294967295,t(x.trak,h(e),p(e))},_=function(e){var i=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(i[i.length-1]=0),t(x.trex,i)},j=function(e,t){var i=0,n=0,r=0,s=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(s=8)),[0,0,i|n|r|s,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},U=function(e,i){var n,r,s,a,o,l;for(i+=20+16*(a=e.samples||[]).length,s=j(a,i),(r=new Uint8Array(s.length+16*a.length)).set(s),n=s.length,l=0;l<a.length;l++)o=a[l],r[n++]=(4278190080&o.duration)>>>24,r[n++]=(16711680&o.duration)>>>16,r[n++]=(65280&o.duration)>>>8,r[n++]=255&o.duration,r[n++]=(4278190080&o.size)>>>24,r[n++]=(16711680&o.size)>>>16,r[n++]=(65280&o.size)>>>8,r[n++]=255&o.size,r[n++]=o.flags.isLeading<<2|o.flags.dependsOn,r[n++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,r[n++]=61440&o.flags.degradationPriority,r[n++]=15&o.flags.degradationPriority,r[n++]=(4278190080&o.compositionTimeOffset)>>>24,r[n++]=(16711680&o.compositionTimeOffset)>>>16,r[n++]=(65280&o.compositionTimeOffset)>>>8,r[n++]=255&o.compositionTimeOffset;return t(x.trun,r)},F=function(e,i){var n,r,s,a,o,l;for(i+=20+8*(a=e.samples||[]).length,s=j(a,i),(n=new Uint8Array(s.length+8*a.length)).set(s),r=s.length,l=0;l<a.length;l++)o=a[l],n[r++]=(4278190080&o.duration)>>>24,n[r++]=(16711680&o.duration)>>>16,n[r++]=(65280&o.duration)>>>8,n[r++]=255&o.duration,n[r++]=(4278190080&o.size)>>>24,n[r++]=(16711680&o.size)>>>16,n[r++]=(65280&o.size)>>>8,n[r++]=255&o.size;return t(x.trun,n)},T=function(e,t){return"audio"===e.type?F(e,t):U(e,t)};r=function(){return t(x.ftyp,w,S,w,k)};var z,W,V,X,G,$,Y,K,Q=function(e){return t(x.mdat,e)},Z=o,J=function(e){var t,i=r(),n=l(e);return(t=new Uint8Array(i.byteLength+n.byteLength)).set(i),t.set(n,i.byteLength),t},ee=function(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},te=function(e){var t,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(n.length&&(n.duration=i.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r},ie=function(e){var t,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},ne=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},re=function(e,t){var i,n,r,s,a,o=t||0,l=[];for(i=0;i<e.length;i++)for(s=e[i],n=0;n<s.length;n++)a=s[n],o+=(r=ee(a,o)).size,l.push(r);return l},se=function(e){var t,i,n,r,s,a,o=0,l=e.byteLength,c=e.nalCount,u=new Uint8Array(l+4*c),d=new DataView(u.buffer);for(t=0;t<e.length;t++)for(r=e[t],i=0;i<r.length;i++)for(s=r[i],n=0;n<s.length;n++)a=s[n],d.setUint32(o,a.data.byteLength),o+=4,u.set(a.data,o),o+=a.data.byteLength;return u},ae=[33,16,5,32,164,27],oe=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],le=function(e){for(var t=[];e--;)t.push(0);return t},ce=function(){if(!z){var e={96e3:[ae,[227,64],le(154),[56]],88200:[ae,[231],le(170),[56]],64e3:[ae,[248,192],le(240),[56]],48e3:[ae,[255,192],le(268),[55,148,128],le(54),[112]],44100:[ae,[255,192],le(268),[55,163,128],le(84),[112]],32e3:[ae,[255,192],le(268),[55,234],le(226),[112]],24e3:[ae,[255,192],le(268),[55,255,128],le(268),[111,112],le(126),[224]],16e3:[ae,[255,192],le(268),[55,255,128],le(268),[111,255],le(269),[223,108],le(195),[1,192]],12e3:[oe,le(268),[3,127,248],le(268),[6,255,240],le(268),[13,255,224],le(268),[27,253,128],le(259),[56]],11025:[oe,le(268),[3,127,248],le(268),[6,255,240],le(268),[13,255,224],le(268),[27,255,192],le(268),[55,175,128],le(108),[112]],8e3:[oe,le(268),[3,121,16],le(47),[7]]};t=e,z=Object.keys(t).reduce(function(e,i){return e[i]=new Uint8Array(t[i].reduce(function(e,t){return e.concat(t)},[])),e},{})}var t;return z},ue=9e4;$=function(e,t){return W(G(e,t))},Y=function(e,t){return V(X(e),t)},K=function(e,t,i){return X(i?e:e-t)};var de=ue,he=W=function(e){return e*ue},pe=(V=function(e,t){return e*t},X=function(e){return e/ue}),fe=(G=function(e,t){return e/t},$),me=Y,ge=K,ve=function(e,t,i,n){var r,s,a,o,l,c=0,u=0,d=0;if(t.length&&(r=fe(e.baseMediaDecodeTime,e.samplerate),s=Math.ceil(de/(e.samplerate/1024)),i&&n&&(c=r-Math.max(i,n),d=(u=Math.floor(c/s))*s),!(u<1||d>de/2))){for((a=ce()[e.samplerate])||(a=t[0].data),o=0;o<u;o++)l=t[0],t.splice(0,0,{data:a,dts:l.dts-s,pts:l.pts-s});return e.baseMediaDecodeTime-=Math.floor(me(d,e.samplerate)),d}},ye=function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},be=function(e){var t,i,n=[];for(t=0;t<e.length;t++)i=e[t],n.push({size:i.data.byteLength,duration:1024});return n},_e=function(e){var t,i,n=0,r=new Uint8Array(function(e){var t,i=0;for(t=0;t<e.length;t++)i+=e[t].data.byteLength;return i}(e));for(t=0;t<e.length;t++)i=e[t],r.set(i.data,n),n+=i.data.byteLength;return r},Te=de,xe=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},we=function(e,t){var i,n=e.minSegmentDts;return t||(n-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===e.type&&(i*=e.samplerate/Te,i=Math.floor(i)),i},Se=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},ke=function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===n){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=n,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,n=0,r=0}return i},Ee=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Ce=function(e,t){var i,n,r,s,a=[];if(!(64&t[0]))return a;for(n=31&t[0],i=0;i<n;i++)s={type:3&t[(r=3*i)+2],pts:e},4&t[r+2]&&(s.ccData=t[r+3]<<8|t[r+4],a.push(s));return a},Ae=function(e){for(var t,i,n=e.byteLength,r=[],s=1;s<n-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return e;t=n-r.length,i=new Uint8Array(t);var a=0;for(s=0;s<t;a++,s++)a===r[0]&&(a++,r.shift()),i[s]=e[a];return i},Le=4,Ie=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new je(0,0),new je(0,1),new je(1,0),new je(1,1)],this.parse708captions_&&(this.cc708Stream_=new Ne),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(Ie.prototype=new H).push=function(e){var t,i,n;
vendor: 6,599 bytes, line 2
2if("sei_rbsp"===e.nalUnitType&&(t=ke(e.escapedRBSP)).payload&&t.payloadType===Le&&(i=Ee(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=Ce(e.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ie.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},Ie.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Ie.prototype.flush=function(){return this.flushStream("flush")},Ie.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ie.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Ie.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Ie.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Ie.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Ie.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Ie.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Pe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Oe=function(e){return 32<=e&&e<=127||160<=e&&e<=255},De=function(e){this.windowNum=e,this.reset()};De.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},De.prototype.getText=function(){return this.rows.join("\n")},De.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},De.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},De.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},De.prototype.addText=function(e){this.rows[this.rowIdx]+=e},De.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Me=function(e){this.serviceNum=e,this.text="",this.currentWindow=new De(-1),this.windows=[]};Me.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new De(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},Me.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};var Ne=function e(){e.prototype.init.call(this);var t=this;this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(t.new708Packet(),t.add708Bytes(e)):(null===t.current708Packet&&t.new708Packet(),t.add708Bytes(e))}};Ne.prototype=new H,Ne.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Ne.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,n=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(n)},Ne.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,n=null,r=0,s=t[r++];for(e.seq=s>>6,e.sizeCode=63&s;r<t.length;r++)n=31&(s=t[r++]),7===(i=s>>5)&&n>0&&(i=s=t[r++]),this.pushServiceBlock(i,r,n),n>0&&(r+=n-1)},Ne.prototype.pushServiceBlock=function(e,t,i){var n,r=t,s=this.current708Packet.data,a=this.services[e];for(a||(a=this.initService(e,r));r<t+i&&r<s.length;r++)n=s[r],Oe(n)?r=this.handleText(r,a):16===n?r=this.extendedCommands(r,a):128<=n&&n<=135?r=this.setCurrentWindow(r,a):152<=n&&n<=159?r=this.defineWindow(r,a):136===n?r=this.clearWindows(r,a):140===n?r=this.deleteWindows(r,a):137===n?r=this.displayWindows(r,a):138===n?r=this.hideWindows(r,a):139===n?r=this.toggleWindows(r,a):151===n?r=this.setWindowAttributes(r,a):144===n?r=this.setPenAttributes(r,a):145===n?r=this.setPenColor(r,a):146===n?r=this.setPenLocation(r,a):143===n?a=this.reset(r,a):8===n?a.currentWindow.backspace():12===n?a.currentWindow.clearText():13===n?a.currentWindow.pendingNewLine=!0:14===n?a.currentWindow.clearText():141===n&&r++},Ne.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data[++e];return Oe(i)&&(e=this.handleText(e,t,!0)),e},Ne.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Ne.prototype.initService=function(e,t){var i=this;return this.services[e]=new Me(e),this.services[e].init(this.getPts(t),function(t){i.flushDisplayed(t,i.services[e])}),this.services[e]},Ne.prototype.handleText=function(e,t,i){var n,r,s=this.current708Packet.data[e],a=(r=Pe[n=(i?4096:0)|s]||n,4096&n&&n===r?"":String.fromCharCode(r)),o=t.currentWindow;return o.pendingNewLine&&!o.isEmpty()&&o.newLine(this.getPts(e)),o.pendingNewLine=!1,o.addText(a),e},Ne.prototype.setCurrentWindow=function(e,t){var i=7&this.current708Packet.data[e];return t.setCurrentWindow(i),e},Ne.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,n=i[e],r=7&n;t.setCurrentWindow(r);var s=t.currentWindow;return n=i[++e],s.visible=(32&n)>>5,s.rowLock=(16&n)>>4,s.columnLock=(8&n)>>3,s.priority=7&n,n=i[++e],s.relativePositioning=(128&n)>>7,s.anchorVertical=127&n,n=i[++e],s.anchorHorizontal=n,n=i[++e],s.anchorPoint=(240&n)>>
vendor: 6,785 bytes, line 2
24,s.rowCount=15&n,n=i[++e],s.columnCount=63&n,n=i[++e],s.windowStyle=(56&n)>>3,s.penStyle=7&n,s.virtualRowCount=s.rowCount+1,e},Ne.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.winAttr;return n=i[++e],r.fillOpacity=(192&n)>>6,r.fillRed=(48&n)>>4,r.fillGreen=(12&n)>>2,r.fillBlue=3&n,n=i[++e],r.borderType=(192&n)>>6,r.borderRed=(48&n)>>4,r.borderGreen=(12&n)>>2,r.borderBlue=3&n,n=i[++e],r.borderType+=(128&n)>>5,r.wordWrap=(64&n)>>6,r.printDirection=(48&n)>>4,r.scrollDirection=(12&n)>>2,r.justify=3&n,n=i[++e],r.effectSpeed=(240&n)>>4,r.effectDirection=(12&n)>>2,r.displayEffect=3&n,e},Ne.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},Ne.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Ne.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=1);return e},Ne.prototype.hideWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=0);return e},Ne.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible^=1);return e},Ne.prototype.clearWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].clearText();return e},Ne.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].reset();return e},Ne.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penAttr;return n=i[++e],r.textTag=(240&n)>>4,r.offset=(12&n)>>2,r.penSize=3&n,n=i[++e],r.italics=(128&n)>>7,r.underline=(64&n)>>6,r.edgeType=(56&n)>>3,r.fontStyle=7&n,e},Ne.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penColor;return n=i[++e],r.fgOpacity=(192&n)>>6,r.fgRed=(48&n)>>4,r.fgGreen=(12&n)>>2,r.fgBlue=3&n,n=i[++e],r.bgOpacity=(192&n)>>6,r.bgRed=(48&n)>>4,r.bgGreen=(12&n)>>2,r.bgBlue=3&n,n=i[++e],r.edgeRed=(48&n)>>4,r.edgeGreen=(12&n)>>2,r.edgeBlue=3&n,e},Ne.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},Ne.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var Re={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Be=function(e){return null===e?"":(e=Re[e]||e,String.fromCharCode(e))},Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ue=function(){for(var e=[],t=15;t--;)e.push("");return e},je=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,s;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ue();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ue();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ue()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))s=Be((n=(3&n)<<8)|r),this[this.mode_](e.pts,s),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),s=Be((n=(3&n)<<8)|r),this[this.mode_](e.pts,s),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~r||this.addFormatting(e.pts,["i"]),1&~r||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var a=Fe.indexOf(7968&t);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16&~t||(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&(14&~r||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(n)&&(0===r&&(r=null),s=Be(n),s+=Be(r),this[this.mode_](e.pts,s),this.column_+=s.length)}else this.lastControlCode_=null}};je.prototype=new H,je.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream
vendor: 4,137 bytes, line 2
2:this.name_})},je.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ue(),this.nonDisplayed_=Ue(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},je.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},je.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},je.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},je.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},je.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},je.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},je.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},je.prototype.isNormalChar=function(e){return e>=32&&e<=127},je.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ue(),this.displayed_=Ue()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},je.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)},je.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},je.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t,this.nonDisplayed_[this.row_]=i},je.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},je.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},je.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i};var He={CaptionStream:Ie,Cea608Stream:je,Cea708Stream:Ne},qe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},ze="shared",We=function(e,t){var i=1;for(e>t&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},Ve=function e(t){var i,n;e.prototype.init.call(this),this.type_=t||ze,this.push=function(e){this.type_!==ze&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=We(e.dts,n),e.pts=We(e.pts,n),i=e.dts,this.trigger("data",e))},this.flush=function(){n=i,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Ve.prototype=new H;var Xe,Ge=Ve,$e=We,Ye=function(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r},Ke=function(e,t,i){return decodeURIComponent(Ye(e,t,i))},Qe=function(e,t,i){return unescape(Ye(e,t,i))},Ze=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Je={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ke(e.data,1,t),e.value=Ke(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ke(e.data,1,t),e.url=Ke(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;
vendor: 4,282 bytes, line 2
2t++)if(0===e.data[t]){e.owner=Qe(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(Xe=function(e){var t,i={descriptor:e&&e.descriptor},n=0,r=[],s=0;if(Xe.prototype.init.call(this),this.dispatchType=qe.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(t=0;t<i.descriptor.length;t++)this.dispatchType+=("00"+i.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,a,o,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(s=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),s+=e.data.byteLength,1===r.length&&(n=Ze(e.data.subarray(6,10)),n+=10),!(s<n)){for(t={data:new Uint8Array(n),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<n;)t.data.set(r[0].data.subarray(0,n-l),l),l+=r[0].data.byteLength,s-=r[0].data.byteLength,r.shift();i=10,64&t.data[5]&&(i+=4,i+=Ze(t.data.subarray(10,14)),n-=Ze(t.data.subarray(16,20)));do{if((a=Ze(t.data.subarray(i+4,i+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((o={id:String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),data:t.data.subarray(i+10,i+a+10)}).key=o.id,Je[o.id]&&(Je[o.id](o),"com.apple.streaming.transportStreamTimestamp"===o.owner)){var c=o.data,u=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;u*=4,u+=3&c[7],o.timeStamp=u,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),i+=10,i+=a}while(i<n);this.trigger("data",t)}}}).prototype=new H;var et,tt,it,nt=Xe,rt=Ge,st=188;(et=function(){var e=new Uint8Array(st),t=0;et.prototype.init.call(this),this.push=function(i){var n,r=0,s=st;for(t?((n=new Uint8Array(i.byteLength+t)).set(e.subarray(0,t)),n.set(i,t),t=0):n=i;s<n.byteLength;)71!==n[r]||71!==n[s]?(r++,s++):(this.trigger("data",n.subarray(r,s)),r+=st,s+=st);r<n.byteLength&&(e.set(n.subarray(r),0),t=n.byteLength-r)},this.flush=function(){t===st&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new H,tt=function(){var e,t,i,n;tt.prototype.init.call(this),n=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,n){var r=0;n.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===n.type?t(e.subarray(r),n):i(e.subarray(r),n)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],n.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=n.pmtPid},i=function(e,t){var i,r;if(1&e[5]){for(n.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<i;){var s=e[r],a=(31&e[r+1])<<8|e[r+2];s===qe.H264_STREAM_TYPE&&null===n.programMapTable.video?n.programMapTable.video=a:s===qe.ADTS_STREAM_TYPE&&null===n.programMapTable.audio?n.programMapTable.audio=a:s===qe.METADATA_STREAM_TYPE&&(n.programMapTable["timed-metadata"][a]=s),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=n.programMapTable}},this.push=function(t){var i={},n=4;if(i.payloadUnitStartIndicator=!!(64&t[1]),i.pid=31&t[1],i.pid<<=8,i.pid|=t[2],(48&t[3])>>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=qe.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=qe.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},tt.prototype=new H,tt.STREAM_TYPES={h264:27,adts:15},it=function(){var e,t=this,i=!1,n={data:[],size:0},r={data:[],size:0},s={data:[],size:0},a=function(e,i,n){var r,s,a=new Uint8Array(e.size),o={type:i},l=0,c=0;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,l=0;l<e.data.length;l++)s=e.data[l],a.set(s.data,c),c+=s.data.byteLength;var u,d,h,p;
vendor: 4,622 bytes, line 2
2d=o,p=(u=a)[0]<<16|u[1]<<8|u[2],d.data=new Uint8Array,1===p&&(d.packetLength=6+(u[4]<<8|u[5]),d.dataAlignmentIndicator=!!(4&u[6]),192&(h=u[7])&&(d.pts=(14&u[9])<<27|(255&u[10])<<20|(254&u[11])<<12|(255&u[12])<<5|(254&u[13])>>>3,d.pts*=4,d.pts+=(6&u[13])>>>1,d.dts=d.pts,64&h&&(d.dts=(14&u[14])<<27|(255&u[15])<<20|(254&u[16])<<12|(255&u[17])<<5|(254&u[18])>>>3,d.dts*=4,d.dts+=(6&u[18])>>>1)),d.data=u.subarray(9+u[8])),r="video"===i||o.packetLength<=e.size,(n||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",o)}};it.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case qe.H264_STREAM_TYPE:e=n,t="video";break;case qe.ADTS_STREAM_TYPE:e=r,t="audio";break;case qe.METADATA_STREAM_TYPE:e=s,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&a(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};null!==(e=o.programMapTable).video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",n)}})[o.type]()},this.reset=function(){n.size=0,n.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){a(n,"video"),a(r,"audio"),a(s,"timed-metadata")},this.flush=function(){if(!i&&e){var n={type:"metadata",tracks:[]};null!==e.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}i=!1,this.flushStreams_(),this.trigger("done")}},it.prototype=new H;var at={PAT_PID:0,MP2T_PACKET_LENGTH:st,TransportPacketStream:et,TransportParseStream:tt,ElementaryStream:it,TimestampRolloverStream:rt,CaptionStream:He.CaptionStream,Cea608Stream:He.Cea608Stream,Cea708Stream:He.Cea708Stream,MetadataStream:nt};for(var ot in qe)qe.hasOwnProperty(ot)&&(at[ot]=qe[ot]);var lt,ct=at,ut=de,dt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(lt=function(e){var t,i=0;lt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+i+" outside syncword"})},this.push=function(n){var r,s,a,o,l,c=0;if(e||(i=0),"audio"===n.type){var u;for(t&&t.length?(a=t,(t=new Uint8Array(a.byteLength+n.data.byteLength)).set(a),t.set(n.data,a.byteLength)):t=n.data;c+7<t.length;)if(255===t[c]&&240==(246&t[c+1])){if("number"==typeof u&&(this.skipWarn_(u,c),u=null),s=2*(1&~t[c+1]),r=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,l=(o=1024*(1+(3&t[c+6])))*ut/dt[(60&t[c+2])>>>2],t.byteLength-c<r)break;this.trigger("data",{pts:n.pts+i*l,dts:n.dts+i*l,sampleCount:o,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:dt[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+s,c+r)}),i++,c+=r}else"number"!=typeof u&&(u=c),c++;"number"==typeof u&&(this.skipWarn_(u,c),u=null),t=t.subarray(c)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new H;var ht,pt,ft,mt=lt,gt=function(e){var t=e.byteLength,i=0,n=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+n},this.loadWord=function(){var r=e.byteLength-t,s=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");s.set(e.subarray(r,r+a)),i=new DataView(s.buffer).getUint32(0),n=8*a,t-=a},this.skipBits=function(e){var r;n>e?(i<<=e,n-=e):(e-=n,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),i<<=e,n-=e)},this.readBits=function(e){var r=Math.min(n,e),s=i>>>32-r;return(n-=r)>0?i<<=r:t>0&&this.loadWord(),(r=e-r)>0?s<<r|this.readBits(r):s},this.skipLeadingZeros=function(){var e;for(e=0;e<n;++e)if(i&2147483648>>>e)return i<<=e,n-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(pt=function(){var e,t,i=0;pt.prototype.init.call(this),this.push=function(n){var r;
vendor: 4,096 bytes, line 2
2t?((r=new Uint8Array(t.byteLength+n.data.byteLength)).set(t),r.set(n.data,t.byteLength),t=r):t=n.data;for(var s=t.byteLength;i<s-3;i++)if(1===t[i+2]){e=i+5;break}for(;e<s;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}i+3!==e-2&&this.trigger("data",t.subarray(i+3,e-2));do{e++}while(1!==t[e]&&e<s);i=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(i+3,e-2)),i=e-2,e+=3;break;default:e+=3}t=t.subarray(i),e-=i,i=0},this.reset=function(){t=null,i=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(i+3)),t=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new H,ft={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},ht=function(){var e,t,i,n,r,s,a,o=new pt;ht.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,n=e.dts,o.push(e))},o.on("data",function(a){var o={trackId:t,pts:i,dts:n,data:a,nalUnitTypeCode:31&a[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(a.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(a.subarray(1)),o.config=s(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)}),o.on("done",function(){e.trigger("done")}),o.on("partialdone",function(){e.trigger("partialdone")}),o.on("reset",function(){e.trigger("reset")}),o.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},a=function(e,t){var i,n=8,r=8;for(i=0;i<e;i++)0!==r&&(r=(n+t.readExpGolomb()+256)%256),n=0===r?n:r},r=function(e){for(var t,i,n=e.byteLength,r=[],s=1;s<n-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return e;t=n-r.length,i=new Uint8Array(t);var a=0;for(s=0;s<t;a++,s++)a===r[0]&&(a++,r.shift()),i[s]=e[a];return i},s=function(e){var t,i,n,r,s,o,l,c,u,d,h,p,f=0,m=0,g=0,v=0,y=[1,1];if(i=(t=new gt(e)).readUnsignedByte(),r=t.readUnsignedByte(),n=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),ft[i]&&(3===(s=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==s?8:12,p=0;p<h;p++)t.readBoolean()&&a(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}y&&(y[0],y[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:16*(c+1)-2*f-2*m,height:(2-d)*(u+1)*16-2*g-2*v,sarRatio:y}}},ht.prototype=new H;var vt,yt={H264Stream:ht,NalByteStream:pt},bt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],_t=function(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return i=i>=0?i:0,(16&e[t+5])>>4?i+20:i+10},Tt=function e(t,i){return t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)?i:e(t,i+=_t(t,
vendor: 4,057 bytes, line 2
2i))},xt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},wt=function(e,t,i){return unescape(function(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r}(e,t,i))},St={isLikelyAacData:function(e){var t=Tt(e,0);return e.length>=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:_t,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return bt[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i,n;t=10,64&e[5]&&(t+=4,t+=xt(e.subarray(10,14)));do{if((i=xt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var r=0;r<n.byteLength;r++)if(0===n[r]){if("com.apple.streaming.transportStreamTimestamp"===wt(n,0,r)){var s=n.subarray(r+1),a=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return a*=4,a+=3&s[7]}break}}t+=10,t+=i}while(t<e.byteLength);return null}};(vt=function(){var e=new Uint8Array,t=0;vt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(i){var n,r,s,a,o=0,l=0;for(e.length?(a=e.length,(e=new Uint8Array(i.byteLength+a)).set(e.subarray(0,a)),e.set(i,a)):e=i;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255&~e[l]||240&~e[l+1])l++;else{if(e.length-l<7)break;if(l+(o=St.parseAdtsSize(e,l))>e.length)break;s={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",s),l+=o}else{if(e.length-l<10)break;if(l+(o=St.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}n=e.length-l,e=n>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new H;var kt,Et,Ct,At,Lt=vt,It=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Pt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ot=yt.H264Stream,Dt=St.isLikelyAacData,Mt=de,Nt=function(e,t){var i;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},Rt=function(e,t,i,n,r,s){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(r-i)},prependedContentDuration:s,baseMediaDecodeTime:e}};Et=function(e,t){var i,n=[],r=0,s=0,a=1/0;i=(t=t||{}).firstSequenceNumber||0,Et.prototype.init.call(this),this.push=function(t){Se(e,t),e&&It.forEach(function(i){e[i]=t[i]}),n.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){s=e},this.flush=function(){var o,l,c,u,d,h,p;0!==n.length?(o=ye(n,e,r),e.baseMediaDecodeTime=we(e,t.keepOriginalTimestamps),p=ve(e,o,s,a),e.samples=be(o),c=Q(_e(o)),n=[],l=Z(i,[e]),u=new Uint8Array(l.byteLength+c.byteLength),i++,u.set(l),u.set(c,l.byteLength),xe(e),d=Math.ceil(1024*Mt/e.samplerate),o.length&&(h=o.length*d,this.trigger("segmentTimingInfo",Rt(fe(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,p||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+h})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){xe(e),n=[],this.trigger("reset")}},Et.prototype=new H,kt=function(e,t){var i,n,r,s=[],a=[];i=(t=t||{}).firstSequenceNumber||0,kt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Se(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],Pt.forEach(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),s.push(t)},this.flush=function(){for(var n,r,o,l,c,u,d,h,p=0;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();
vendor: 4,845 bytes, line 2
2if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=te(s),(o=ie(n))[0][0].keyFrame||((r=this.getGopForFusion_(s[0],e))?(p=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=ne(o)),a.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");xe(e),o=f}Se(e,o),e.samples=re(o),c=Q(se(o)),e.baseMediaDecodeTime=we(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),d=o[0],h=o[o.length-1],this.trigger("segmentTimingInfo",Rt(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=Z(i,[e]),u=new Uint8Array(l.byteLength+c.byteLength),i++,u.set(l),u.set(c,l.byteLength),this.trigger("data",{track:e,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),s=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){xe(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var i,n,r,s,a,o=1/0;for(a=0;a<this.gopCache_.length;a++)r=(s=this.gopCache_[a]).gop,e.pps&&Nt(e.pps[0],s.pps[0])&&e.sps&&Nt(e.sps[0],s.sps[0])&&(r.dts<e.timelineStartInfo.dts||(i=t.dts-r.dts-r.duration)>=-1e4&&i<=45e3&&(!n||o>i)&&(n=s,o=i));return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,r,s,o,l,c;for(s=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;t<a.length&&i<e.length&&(n=a[t],r=e[i],n.pts!==r.pts);)r.pts>n.pts?t++:(i++,s-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===i?e:i===e.length?null:((c=e.slice(i)).byteLength=s,c.duration=l,c.nalCount=o,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,i,n,r,s,o,l;for(t=a.length-1,i=e.length-1,s=null,o=!1;t>=0&&i>=0;){if(n=a[t],r=e[i],n.pts===r.pts){o=!0;break}n.pts>r.pts?t--:(t===a.length-1&&(s=i),i--)}if(!o&&null===s)return null;if(0===(l=o?i:s))return e;var c=e.slice(l),u=c.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){a=e}},kt.prototype=new H,At=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,At.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},At.prototype=new H,At.prototype.flush=function(e){var t,i,n,r,s=0,a={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Pt.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,It.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,n=J(this.pendingTracks),a.initSegment=new Uint8Array(n.byteLength),a.initSegment.set(n),a.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)a.data.set(this.pendingBoxes[r],s),s+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=ge(t.startPts,o,this.keepOriginalTimestamps),t.endTime=ge(t.endPts,o,this.keepOriginalTimestamps),a.captionStream
vendor: 5,709 bytes, line 2
2s[t.stream]=!0,a.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=ge(i.pts,o,this.keepOriginalTimestamps),a.metadata.push(i);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),r=0;r<a.captions.length;r++)t=a.captions[r],this.trigger("caption",t);for(r=0;r<a.metadata.length;r++)i=a.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},At.prototype.setRemux=function(e){this.remuxTracks=e},(Ct=function(e){var t,i,n=this,r=!0;Ct.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new ct.MetadataStream,r.aacStream=new Lt,r.audioTimestampRolloverStream=new ct.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ct.TimestampRolloverStream("timed-metadata"),r.adtsStream=new mt,r.coalesceStream=new At(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",function(e){r.aacStream.setTimestamp(e.timeStamp)}),r.aacStream.on("data",function(s){"timed-metadata"!==s.type&&"audio"!==s.type||r.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Et(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ct.MetadataStream,r.packetStream=new ct.TransportPacketStream,r.parseStream=new ct.TransportParseStream,r.elementaryStream=new ct.ElementaryStream,r.timestampRolloverStream=new ct.TimestampRolloverStream,r.adtsStream=new mt,r.h264Stream=new Ot,r.captionStream=new ct.CaptionStream(e),r.coalesceStream=new At(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(s){var a;if("metadata"===s.type){for(a=s.tracks.length;a--;)t||"video"!==s.tracks[a].type?i||"audio"!==s.tracks[a].type||((i=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(t=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new kt(t,e),r.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Et(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,n.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(n){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,xe(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,xe(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(r){var t=Dt(e);
2if(t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),this.transmuxPipeline_)for(var i=Object.keys(this.transmuxPipeline_),n=0;n<i.length;n++){var s=i[n];"headOfPipeline"!==s&&this.transmuxPipeline_[s].on&&this.transmuxPipeline_[s].on("log",this.getLogTrigger_(s))}r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new H;var Bt,Ft,Ut,jt={Transmuxer:Ct,VideoSegmentStream:kt,AudioSegmentStream:Et,AUDIO_PROPERTIES:It,VIDEO_PROPERTIES:Pt,generateSegmentTimingInfo:Rt},Ht=function(e){return e>>>0},qt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},zt=Ht,Wt=function e(t,i){var n,r,s,a,o,l=[];
vendor: 4,500 bytes, line 2
2if(!i.length)return null;for(n=0;n<t.byteLength;)r=zt(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),s=qt(t.subarray(n+4,n+8)),a=r>1?n+r:t.byteLength,s===i[0]&&(1===i.length?l.push(t.subarray(n+8,a)):(o=e(t.subarray(n+8,a),i.slice(1))).length&&(l=l.concat(o))),n=a;return l},Vt=Ht,Xt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:Vt(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=Vt(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},Gt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},$t=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],s=4&i.flags[2],a=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],c=8&i.flags[1],u=n.getUint32(4),d=8;for(r&&(i.dataOffset=n.getInt32(d),d+=4),s&&u&&(t={flags:Gt(e.subarray(d,d+4))},d+=4,a&&(t.duration=n.getUint32(d),d+=4),o&&(t.size=n.getUint32(d),d+=4),c&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t),u--);u--;)t={},a&&(t.duration=n.getUint32(d),d+=4),o&&(t.size=n.getUint32(d),d+=4),l&&(t.flags=Gt(e.subarray(d,d+4)),d+=4),c&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t);return i},Yt=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],s=2&n.flags[2],a=8&n.flags[2],o=16&n.flags[2],l=32&n.flags[2],c=65536&n.flags[0],u=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),s&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),a&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),l&&(n.defaultSampleFlags=i.getUint32(t)),c&&(n.durationIsEmpty=!0),!r&&u&&(n.baseDataOffsetIsMoof=!0),n},Kt=Ae,Qt=He.CaptionStream,Zt=function(e,t){for(var i=e,n=0;n<t.length;n++){var r=t[n];if(i<r.size)return r;i-=r.size}return null},Jt=function(e,t){var i=Wt(e,["moof","traf"]),n=Wt(e,["mdat"]),r={},s=[];return n.forEach(function(e,t){var n=i[t];s.push({mdat:e,traf:n})}),s.forEach(function(e){var i,n,s=e.mdat,a=e.traf,o=Wt(a,["tfhd"]),l=Yt(o[0]),c=l.trackId,u=Wt(a,["tfdt"]),d=u.length>0?Xt(u[0]).baseMediaDecodeTime:0,h=Wt(a,["trun"]);t===c&&h.length>0&&(i=function(e,t,i){var n=t,r=i.defaultSampleDuration||0,s=i.defaultSampleSize||0,a=i.trackId,o=[];return e.forEach(function(e){var t=$t(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=s),e.trackId=a,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=n+e.compositionTimeOffset,n+=e.duration}),o=o.concat(t)}),o}(h,d,l),n=function(e,t,i){var n,r,s,a,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=s)if(s=o.getUint32(r),r+=4,!(s<=0))switch(31&e[r]){case 6:var c=e.subarray(r+1,r+1+s),u=Zt(r,t);if(n={nalUnitType:"sei_rbsp",size:s,data:c,escapedRBSP:Kt(c),trackId:i},u)n.pts=u.pts,n.dts=u.dts,a=u;else{if(!a){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+i+". See mux.js#223."});break}n.pts=a.pts,n.dts=a.dts}l.seiNals.push(n)}return l}(s,i,c),r[c]||(r[c]={seiNals:[],logs:[]}),r[c].seiNals=r[c].seiNals.concat(n.seiNals),r[c].logs=r[c].logs.concat(n.logs))}),r},ei=function(){var e,t,i,n,r,s,a=!1;this.isInitialized=function(){return a},this.init=function(t){e=new Qt,a=!0,s=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/n,e.endTime=e.endPts/n,r.captions.push(e),r.captionStreams[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(i!==e[0]||n!==t[i])},this.parse=function(e,s,a){var o;if(!this.isInitialized())return null;if(!s||!a)return null;if(this.isNewInit(s,a))i=s[0],n=a[i];else if(null===i||!n)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,s,a)}return o=function(e,t,i){if(null===t)return null;var n=Jt(e,t)[t]||{};return{seiNals:n.seiNals,logs:n.logs,timescale:i}}(e,i,n),o&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStream
vendor: 6,564 bytes, line 2
2s:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;s?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},ti=Ht,ii=function(e){return("00"+e.toString(16)).slice(-2)};Bt=function(e,t){var i,n,r;return i=Wt(t,["moof","traf"]),n=[].concat.apply([],i.map(function(t){return Wt(t,["tfhd"]).map(function(i){var n,r,s;return n=ti(i[4]<<24|i[5]<<16|i[6]<<8|i[7]),r=e[n]||9e4,s=Wt(t,["tfdt"]).map(function(e){var t,i;return t=e[0],i=ti(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(i*=Math.pow(2,32),i+=ti(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),i})[0],(s="number"!=typeof s||isNaN(s)?1/0:s)/r})})),r=Math.min.apply(null,n),isFinite(r)?r:0},Ut=function(e){var t=0===e[0]?12:20;return ti(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Ft=function(e){var t=Wt(e,["moov","trak"]),i=[];return t.forEach(function(e){var t,n,r={},s=Wt(e,["tkhd"])[0];s&&(n=(t=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),r.id=0===n?t.getUint32(12):t.getUint32(20));var a=Wt(e,["mdia","hdlr"])[0];if(a){var o=qt(a.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=Wt(e,["mdia","minf","stbl","stsd"])[0];if(l){var c=l.subarray(8);r.codec=qt(c.subarray(4,8));var u,d=Wt(c,[r.codec])[0];d&&(/^[a-z]vc[1-9]$/i.test(r.codec)?(u=d.subarray(78),"avcC"===qt(u.subarray(4,8))&&u.length>11?(r.codec+=".",r.codec+=ii(u[9]),r.codec+=ii(u[10]),r.codec+=ii(u[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(u=d.subarray(28),"esds"===qt(u.subarray(4,8))&&u.length>20&&0!==u[19]?(r.codec+="."+ii(u[19]),r.codec+="."+ii(u[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=Wt(e,["mdia","mdhd"])[0];h&&(r.timescale=Ut(h)),i.push(r)}),i};var ni=Bt,ri=Ft,si=function(e){var t=31&e[1];return t<<=8,t|=e[2]},ai=function(e){return!!(64&e[1])},oi=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},li=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},ci={parseType:function(e,t){var i=si(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=ai(e),i=4+oi(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=ai(e),n=4+oi(e);if(i&&(n+=e[n]+1),1&e[n+5]){var r;r=3+((15&e[n+1])<<8|e[n+2])-4;for(var s=12+((15&e[n+10])<<8|e[n+11]);s<r;){var a=n+s;t[(31&e[a+1])<<8|e[a+2]]=e[a],s+=5+((15&e[a+3])<<8|e[a+4])}return t}},parsePayloadUnitStartIndicator:ai,parsePesType:function(e,t){switch(t[si(e)]){case qe.H264_STREAM_TYPE:return"video";case qe.ADTS_STREAM_TYPE:return"audio";case qe.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!ai(e))return null;var t=4+oi(e);if(t>=e.byteLength)return null;var i,n=null;return 192&(i=e[t+7])&&((n={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+oi(e),i=e.subarray(t),n=0,r=0,s=!1;r<i.byteLength-3;r++)if(1===i[r+2]){n=r+5;break}for(;n<i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}r+3!==n-2&&"slice_layer_without_partitioning_rbsp_idr"===li(31&i[r+3])&&(s=!0);do{n++}while(1!==i[n]&&n<i.length);r=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===li(31&i[r+3])&&(s=!0),r=n-2,n+=3;break;default:n+=3}return i=i.subarray(r),n-=r,r=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===li(31&i[r+3])&&(s=!0),s}},ui=$e,di={};di.ts=ci,di.aac=St;var hi=de,pi=188,fi=71,mi=function(e,t,i){for(var n,r,s,a,o=0,l=pi,c=!1;l<=e.byteLength;)if(e[o]!==fi||e[l]!==fi&&l!==e.byteLength)o++,l++;else{if(n=e.subarray(o,l),"pes"===di.ts.parseType(n,t.pid))r=di.ts.parsePesType(n,t.table),s=di.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&s&&(a=di.ts.parsePesTime(n))&&(a.type="audio",i.audio.push(a),c=!0);if(c)break;o+=pi,l+=pi}for(o=(l=e.byteLength)-pi,c=!1;o>=0;)if(e[o]!==fi||e[l]!==fi&&l!==e.byteLength)o--,l--;else{if(n=e.subarray(o,l),"pes"===di.ts.parseType(n,t.pid))r=di.ts.parsePesType(n,t.table),s=di.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&s&&(a=di.ts.parsePesTime(n))&&(a.type="audio",i.audio.push(a),c=!0);if(c)break;o-=pi,l-=pi}},gi=function(e,t,i){for(var n,r,s,a,o,l,c,u=0,d=pi,h=!1,p={data:[],size:0};d<e.byteLength;)if(e[u]!==fi||e[d]!==fi)u++,d++;else{if(n=e.subarray(u,d),"pes"===di.ts.parseType(n,t.pid))if(r=di.ts.parsePesType(n,t.table),s=di.ts.parsePayloadUnitStartIndicator(n),"video"===r&&(s&&!h&&(a=di.ts.parsePesTime(n))&&(a.type="video",i.video.push(a),h=!0),!i.firstKeyFrame)){if(s&&0!==p.size){for(o=new Uint8Array(p.size),l=0;p.data.length;)c=p.data.shift(),o.set(c,l),l+=c.byteLength;if(di.ts.videoPacketContainsKeyFrame(o)){var f=di.ts.parsePesTime(o);f?(i.firstKeyFrame=f,i.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(n),p.size+=n.byteLength}if(h&&i.firstKeyFrame)break;u+=pi,d+=pi}for(u=(d=e.byteLength)-pi,h=!1;u>=0;)if(e[u]!==fi||e[d]!==fi)u--,d--;else{if(n=e.subarray(u,d),"pes"===di.ts.parseType(n,t.pid))r=di.ts.parsePesType(n,t.table),s=di.ts.parsePayloadUnitStartIndicator(n),"video"===r&&s&&(a=di.ts.parsePesTime(n))&&(a.type="video",i.video.push(a),h=!0);if(h)break;u-=pi,d-=pi}},vi=function(e){var t={pid:null,table:null},i={};for(var n in function(e,t){for(var i,n=0,r=pi;r<e.byteLength;)if(e[n]!==fi||e[r]!==fi)n++,r++;else{switch(i=e.subarray(n,r),di.ts.parseType(i,t.pid)){case"pat":t.pid=di.ts.parsePat(i);break;case"pmt":var s=di.ts.parsePmt(i);t.table=t.table||{}
2,Object.keys(s).forEach(function(e){t.table[e]=s[e]})}n+=pi,r+=pi}}(e,t),t.table){if(t.table.hasOwnProperty(n))switch(t.table[n]){case qe.H264_STREAM_TYPE:i.video=[],gi(e,t,i),0===i.video.length&&delete i.video;break;case qe.ADTS_STREAM_TYPE:i.audio=[],mi(e,t,i),0===i.audio.length&&delete i.audio}}return i},yi=function(e,t){var i;return i=di.aac.isLikelyAacData(e)?function(e){for(var t,i=!1,n=0,r=null,s=null,a=0,o=0;e.length-o>=3;){switch(di.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((a=di.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===s&&(t=e.subarray(o,o+a),s=di.aac.parseAacTimestamp(t)),o+=a;break;case"audio":if(e.length-o<7){i=!0;break}if((a=di.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+a),r=di.aac.parseSampleRate(t)),n++,o+=a;break;default:o++}if(i)return null}if(null===r||null===s)return null;var l=hi/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*n*l,pts:s+1024*n*l}]}}(e):vi(e),i&&(i.audio||i.video)?(function(e,t){if(e.audio&&e.audio.length){var i=t;(void 0===i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=ui(e.dts,i),e.pts=ui(e.pts,i),e.dtsTime=e.dts/hi,e.ptsTime=e.pts/hi})}if(e.video&&e.video.length){var n=t;if((void 0===n||isNaN(n))&&(n=e.video[0].dts),e.video.forEach(function(e){e.dts=ui(e.dts,n),e.pts=ui(e.pts,n),e.dtsTime=e.dts/hi,e.ptsTime=e.pts/hi}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=ui(r.dts,n),r.pts=ui(r.pts,n),r.dtsTime=r.dts/hi,r.ptsTime=r.pts/hi}}}(i,t),i):null},bi=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new jt.Transmuxer(this.options),function(e,t){t.on("data",function(t){var i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){var i={start:{decode:pe(t.start.dts),presentation:pe(t.start.pts)},end:{decode:pe(t.end.dts),presentation:pe(t.end.pts)},baseMediaDecodeTime:pe(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=pe(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})}),t.on("audioSegmentTimingInfo",function(t){var i={start:{decode:pe(t.start.dts),presentation:pe(t.start.pts)},end:{decode:pe(t.end.dts),presentation:pe(t.end.pts)},baseMediaDecodeTime:pe(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=pe(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:pe(t.start),end:pe(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:pe(t.start),end:pe(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new ei,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,i=e.data,n=ni(t,i);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:i},[i.buffer])},t.probeMp4Tracks=function(e){var t=e.data,i=ri(t);this.self.postMessage({action:"probeMp4Tracks",tracks:i,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,i=e.baseStartTime,n="number"!=typeof i||isNaN(i)?void 0:i*de,r=yi(t,n),s=null;r&&((s={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(s.videoStart=r.video[0].ptsTime),s.hasAudio&&(s.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:s,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(he(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(he(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();
2self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new bi(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new bi(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})),kl=Tl(Sl),El=function(e){var t=e.transmuxer,i=e.bytes,n=e.audioAppendStart,r=e.gopsToAlignWith,s=e.remux,a=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,c=e.onVideoTimingInfo,u=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,v=e.isEndOfTimeline,y={buffer:[]},b=v;if(t.onmessage=function(i){t.currentTransmux===e&&("data"===i.data.action&&function(e,t,i){var n=e.data.segment,r=n.type,s=n.initSegment,a=n.captions,o=n.captionStreams,l=n.metadata,c=n.videoFrameDtsTime,u=n.videoFramePtsTime;t.buffer.push({captions:a,captionStreams:o,metadata:l});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};void 0!==c&&(h.videoFrameDtsTime=c),void 0!==u&&(h.videoFramePtsTime=u),i(h)}(i,y,a),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(i,y),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&c(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&u(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&d(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&h([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&p(i.data.caption),"endedtimeline"===i.data.action&&(b=!1,m()),"log"===i.data.action&&g(i.data.log),"transmuxed"===i.data.type&&(b||(t.onmessage=null,function(e){var t=e.transmuxedData,i=e.callback;t.buffer=[],i(t)}({transmuxedData:y,callback:f}),Cl(t))))},n&&t.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==s&&t.postMessage({action:"setRemux",remux:s}),i.byteLength){var _=i instanceof ArrayBuffer?i:i.buffer,T=i instanceof ArrayBuffer?0:i.byteOffset;t.postMessage({action:"push",data:_,byteOffset:T,byteLength:i.byteLength},[_])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Cl=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():El(e.currentTransmux))},Al=function(e,t){e.postMessage({action:t}),Cl(e)},Ll=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void Al(t,e);t.transmuxQueue.push(Al.bind(null,t,e))},Il=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void El(e);e.transmuxer.transmuxQueue.push(e)},Pl=function(e){Ll("reset",e)},Ol=function(e){var t=new kl;t.currentTransmux=null,t.transmuxQueue=[];var i=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t},Dl=function(e){var t=e.transmuxer,i=e.endAction||e.action,n=e.callback,r=y({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",function r(s){s.data.action===i&&(t.removeEventListener("message",r),s.data.data&&(s.data.data=new Uint8Array(s.data.data,e.byteOffset||0,e.byteLength||s.data.data.byteLength),e.data&&(e.data=s.data.data)),n(s.data))}),e.data){var s=e.data instanceof ArrayBuffer;r.byteOffset=s?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var a=[s?e.data:e.data.buffer];t.postMessage(r,a)}else t.postMessage(r)},Ml=2,Nl=-101,Rl=-102,Bl=function(e){e.forEach(function(e){e.abort()})},Fl=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Nl,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Rl,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Ml,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Ml,xhr:t}:null},Ul=function(e,t,i){return function(n,r){var s=r.response,a=Fl(n,r);if(a)return i(a,e);if(16!==s.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Ml,xhr:r},e);for(var o=new DataView(s),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),c=0;c<t.length;c++)t[c].bytes=l;return i(null,e)}},jl=function(e,t){var i=Bt(e.map.bytes);if("mp4"!==i){var n=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(i||"unknown")+" container for initialization segment at URL: "+n,code:Ml})}Dl({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(i){var n=i.tracks,r=i.data;
2return e.map.bytes=r,n.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))}),t(null)}})},Hl=function(e){var t=e.segment,i=e.finishProcessingFn,n=e.responseType;return function(e,r){var s=Fl(e,r);if(s)return i(s,t);var a="arraybuffer"!==n&&r.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer}(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(r),t.key?t.encryptedBytes=new Uint8Array(a):t.bytes=new Uint8Array(a),i(null,t)}},ql=function(e){var t=e.segment,i=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,a=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=t.map&&t.map.tracks||{},m=Boolean(f.audio&&f.video),g=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),b=r.bind(null,t,"video","end");Dl({action:"probeTs",transmuxer:t.transmuxer,data:i,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=i=e.data;var r=e.result;r&&(n(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),n=null,r.hasAudio&&!m&&g(r.audioStart),r.hasVideo&&y(r.videoStart),g=null,y=null),Il({bytes:i,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){n&&(m&&(e.isMuxed=!0),n(t,e))},onAudioTimingInfo:function(e){g&&void 0!==e.start&&(g(e.start),g=null),v&&void 0!==e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&void 0!==e.start&&(y(e.start),y=null),b&&void 0!==e.end&&b(e.end)},onVideoSegmentTimingInfo:function(e){s(e)},onAudioSegmentTimingInfo:function(e){a(e)},onId3:function(e,i){o(t,e,i)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:c,onEndedTimeline:function(){u()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})}})},zl=function(e){var t=e.segment,i=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,a=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=new Uint8Array(i);if(function(e){return _t(e,["moof"]).length>0}(f)){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),n(t,g);var v=function(e){d(t,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};Dl({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var n=e.data,s=e.startTime;i=n.buffer,t.bytes=f=n,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",s),g.hasVideo&&r(t,"video","start",s),m.video&&n.byteLength&&t.transmuxer?Dl({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){i=e.data.buffer,t.bytes=f=e.data,e.logs.forEach(function(e){p(no.mergeOptions(e,{stream:"mp4CaptionParser"}))}),v(e.captions)}}):v()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=Bt(f)),"ts"!==t.container&&"aac"!==t.container)return n(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});ql({segment:t,bytes:i,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,t,{})},Wl=function(e,t){var i,n=e.id,r=e.key,s=e.encryptedBytes,a=e.decryptionWorker;a.addEventListener("message",function e(i){if(i.data.source===n){a.removeEventListener("message",e);var r=i.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}}),i=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),a.postMessage(rl({source:n,encrypted:s,key:i,iv:r.iv}),[s.buffer,i.buffer])},Vl=function(e){var t=e.activeXhrs,i=e.decryptionWorker,n=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,a=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,Bl(t),h(e,g);if((f+=1)===t.length){var v=function(){if(g.encryptedBytes)return function(e){var t=e.decryptionWorker,i=e.segment,n=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,a=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;Wl({id:i.requestId,key:i.key,encryptedBytes:i.encryptedBytes,decryptionWorker:t},function(e){i.bytes=e,zl({segment:i,bytes:i.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:p})})}({decryptionWorker:i,segment:g,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:p});zl({segment:g,bytes:g.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:p})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return Wl({decryptionWorker:i,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},function(e){g.map.bytes=e,jl(g,function(e){if(e)return Bl(t),h(e,g);v()})});v()}}}},Xl=function(e){var t=e.segment,i=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedT
2imelineFn,e.dataFn,function(e){if(!e.target.aborted)return t.stats=no.mergeOptions(t.stats,function(e){var t=e.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i}(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),i(e,t)}},Gl=function(e){var t=e.xhr,i=e.xhrOptions,n=e.decryptionWorker,r=e.segment,s=e.abortFn,a=e.progressFn,o=e.trackInfoFn,l=e.timingInfoFn,c=e.videoSegmentTimingInfoFn,u=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,p=e.isEndOfTimeline,f=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,y=[],b=Vl({activeXhrs:y,decryptionWorker:n,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var _=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&_.push(r.map.key);var T=t(no.mergeOptions(i,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),Ul(r,_,b));y.push(T)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var x=t(no.mergeOptions(i,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),Ul(r,[r.map.key],b));y.push(x)}var w=no.mergeOptions(i,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:el(r.map)}),S=function(e){var t=e.segment,i=e.finishProcessingFn;return function(e,n){var r=Fl(e,n);if(r)return i(r,t);var s=new Uint8Array(n.response);if(t.map.key)return t.map.encryptedBytes=s,i(null,t);t.map.bytes=s,jl(t,function(e){if(e)return e.xhr=n,e.status=n.status,i(e,t);i(null,t)})}}({segment:r,finishProcessingFn:b}),k=t(w,S);y.push(k)}var E=no.mergeOptions(i,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:el(r)}
2),C=t(E,Hl({segment:r,finishProcessingFn:b,responseType:E.responseType}));C.addEventListener("progress",Xl({segment:r,progressFn:a,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m})),y.push(C);var A={};return y.forEach(function(e){e.addEventListener("loadend",function(e){var t=e.loadendState,i=e.abortFn;return function(e){e.target.aborted&&i&&!t.calledAbortFn&&(i(),t.calledAbortFn=!0)}}({loadendState:A,abortFn:s}))}),function(){return Bl(y)}},$l=lo("CodecUtils"),Yl=function(e,t){var i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]},Kl=function(e){var t={};return e.forEach(function(e){var i=e.mediaType,n=e.type,r=e.details;t[i]=t[i]||[],t[i].push(G(""+n+r))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return $l("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]}),t},Ql=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Zl=function(e,t){var i=t.attributes||{},n=Kl(function(e){var t=e.attributes||{};if(t.CODECS)return $(t.CODECS)}(t)||[]);if(Yl(e,t)&&!n.audio&&!function(e,t){if(!Yl(e,t))return!0;var i=t.attributes||{},n=e.mediaGroups.AUDIO[i.AUDIO];for(var r in n)if(!n[r].uri&&!n[r].playlists)return!0;return!1}(e,t)){var r=Kl(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var r=i[n];if(r.default&&r.playlists)return $(r.playlists[0].attributes.CODECS)}return null}(e,i.AUDIO)||[]);r.audio&&(n.audio=r.audio)}return n},Jl=lo("PlaylistSelector"),ec=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},tc=function(e,t){if(!e)return"";var i=m()().getComputedStyle(e);return i?i[t]:""},ic=function(e,t){var i=e.slice();e.sort(function(e,n){var r=t(e,n);return 0===r?i.indexOf(e)-i.indexOf(n):r})},nc=function(e,t){var i,n;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||m()().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),i-(n=n||m()().Number.MAX_VALUE)},rc=function(e,t,i,n,r,s){if(e){var a={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},o=e.playlists;No.isAudioOnly(e)&&(o=s.getAudioTrackPlaylists_(),a.audioOnly=!0);var l=o.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||m()().Number.MAX_VALUE,width:t,height:i,playlist:e}});ic(l,function(e,t){return e.bandwidth-t.bandwidth});var c=(l=l.filter(function(e){return!No.isIncompatible(e.playlist)})).filter(function(e){return No.isEnabled(e.playlist)});c.length||(c=l.filter(function(e){return!No.isDisabled(e.playlist)}));var u=c.filter(function(e){return e.bandwidth*bl.BANDWIDTH_VARIANCE<t}),d=u[u.length-1],h=u.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(!1===r){var p=h||c[0]||l[0];if(p&&p.playlist){var f="sortedPlaylistReps";return h&&(f="bandwidthBestRep"),c[0]&&(f="enabledPlaylistReps"),Jl("choosing "+ec(p)+" using "+f+" with options",a),p.playlist}return Jl("could not choose a playlist with options",a),null}var g=u.filter(function(e){return e.width&&e.height});ic(g,function(e,t){return e.width-t.width});var v=g.filter(function(e){return e.width===i&&e.height===n});d=v[v.length-1];var y,b,_,T,x=v.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(x||(b=(y=g.filter(function(e){return e.width>i||e.height>n})).filter(function(e){return e.width===y[0].width&&e.height===y[0].height}),d=b[b.length-1],_=b.filter(function(e){return e.bandwidth===d.bandwidth})[0]),s.experimentalLeastPixelDiffSelector){var w=g.map(function(e){return e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e});ic(w,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),T=w[0]}var S=T||_||x||h||c[0]||l[0];if(S&&S.playlist){var k="sortedPlaylistReps";return T?k="leastPixelDiffRep":_?k="resolutionPlusOneRep":x?k="resolutionBestRep":h?k="bandwidthBestRep":c[0]&&(k="enabledPlaylistReps"),Jl("choosing "+ec(S)+" using "+k+" with options",a),S.playlist}return Jl("could not choose a playlist with options",a),null}},sc=function(){var e=this.useDevicePixelRatio&&m()().devicePixelRatio||1;return rc(this.playlists.master,this.systemBandwidth,parseInt(tc(this.tech_.el(),"width"),10)*e,parseInt(tc(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},ac=function(e){var t=e.inbandTextTracks,i=e.metadataArray,n=e.timestampOffset,r=e.videoDuration;if(i){var s=m()().WebKitDataCue||m()().VTTCue,a=t.metadataTrack_;if(a&&(i.forEach(function(e){var t=e.cueTime+n;!("number"!=typeof t||m()().isNaN(t)||t<0)&&t<1/0&&e.frames.forEac
2h(function(e){var i=new s(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return no.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return no.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return no.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(i),a.addCue(i)})}),a.cues&&a.cues.length)){for(var o=a.cues,l=[],c=0;c<o.length;c++)o[c]&&l.push(o[c]);var u=l.reduce(function(e,t){var i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),d=Object.keys(u).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var i=u[e],n=Number(d[t+1])||r;i.forEach(function(e){e.endTime=n})})}}},oc=function(e,t,i){var n,r;if(i&&i.cues)for(n=i.cues.length;n--;)(r=i.cues[n]).startTime>=e&&r.endTime<=t&&i.removeCue(r)},lc=function(e){return"number"==typeof e&&isFinite(e)},cc=1/60,uc=function(e){var t=e.startOfSegment,i=e.duration,n=e.segment,r=e.part,s=e.playlist,a=s.mediaSequence,o=s.id,l=s.segments,c=void 0===l?[]:l,u=e.mediaIndex,d=e.partIndex,h=e.timeline,p=c.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)");var m="number"==typeof d,g=e.segment.uri?"segment":"pre-segment",v=m?To({preloadSegment:n})-1:0;return g+" ["+(a+u)+"/"+(a+p)+"]"+(m?" part ["+d+"/"+v+"]":"")+" segment start/end ["+n.start+" => "+n.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+i+"] timeline ["+h+"] selected by ["+f+"] playlist ["+o+"]"},dc=function(e){return e+"TimingInfo"},hc=function(e){var t=e.timelineChangeController,i=e.currentTimeline,n=e.segmentTimeline,r=e.loaderType,s=e.audioDisabled;if(i===n)return!1;if("audio"===r){var a=t.lastTimelineChange({type:"main"});return!a||a.to!==n}if("main"===r&&s){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==n}return!1},pc=function(e){var t=e.segmentDuration,i=e.maxDuration;return!!t&&Math.round(t)>i+co},fc=function(e,t){if("hls"!==t)return null;var i,n,r,s,a=(i=e.audioTimingInfo,n=e.videoTimingInfo,r=i&&"number"==typeof i.start&&"number"==typeof i.end?i.end-i.start:0,s=n&&"number"==typeof n.start&&"number"==typeof n.end?n.end-n.start:0,Math.max(r,s));if(!a)return null;var o=e.playlist.targetDuration,l=pc({segmentDuration:a,maxDuration:2*o}),c=pc({segmentDuration:a,maxDuration:o}),u="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+a+" when the reported duration is "+e.duration+" and the target duration is "+o+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return l||c?{severity:l?"warn":"info",message:u}:null},mc=function(e){function t(t,i){var n;if(n=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return n.bandwidth=t.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.partIndex=null,n.hasPlayed_=t.hasPlayed,n.currentTime_=t.currentTime,n.seekable_=t.seekable,n.seeking_=t.seeking,n.duration_=t.duration,n.mediaSource_=t.mediaSource,n.vhs_=t.vhs,n.loaderType_=t.loaderType,n.currentMediaInfo_=void 0,n.startingMediaInfo_=void 0,n.segmentMetadataTrack_=t.segmentMetadataTrack,n.goalBufferLength_=t.goalBufferLength,n.sourceType_=t.sourceType,n.sourceUpdater_=t.sourceUpdater,n.inbandTextTracks_=t.inbandTextTracks,n.state_="INIT",n.timelineChangeController_=t.timelineChangeController,n.shouldSaveSegmentTimingInfo_=!0,n.parse708captions_=t.parse708captions,n.experimentalExactManifestTimings=t.experimentalExactManifestTimings,n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.xhrOptions_=null,n.pendingSegments_=[],n.audioDisabled_=!1,n.isPendingTimestampOffset_=!1,n.gopBuffer_=[],n.timeMapping_=0,n.safeAppend_=no.browser.IE_VERSION>=11,n.appendInitSegment_={audio:!0,video:!0},n.playlistOfLastInitSegment_={audio:null,video:null},n.callQueue_=[],n.loadQueue_=[],n.metadataQueue_={id3:[],caption:[]},n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=t.cacheEncryptionKeys,n.keyCache_={},n.decrypter_=t.decrypter,n.syncController_=t.syncController,n.syncPoint_={segmentIndex:0,time:0},n.transmuxer_=n.createTransmuxer_(),n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")},n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_),n.mediaSource_.addEventListener("sourceopen",function(){n.isEndOfStream_
2()||(n.ended_=!1)}),n.fetchAtBuffer_=!1,n.logger_=lo("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty(b(n),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),n.sourceUpdater_.on("ready",function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),"main"===n.loaderType_&&n.timelineChangeController_.on("pendingtimelinechange",function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),"audio"===n.loaderType_&&n.timelineChangeController_.on("timelinechange",function(){n.hasEnoughInfoToLoad_()&&n.processLoadQueue_(),n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),n}T(t,e);var i=t.prototype;return i.createTransmuxer_=function(){return Ol({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_})},i.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},i.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&m()().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},i.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},i.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},i.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,m()().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},i.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},i.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},i.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Pl(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},i.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return no.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,i=e.hasVideo,n=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},i.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=sl(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e},i.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=al(e),n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(n||e).resolvedUri};return n&&(r.bytes=n.bytes),r},i.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},i.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},i.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},i.playlist=function(e,t){if(void 0===t&&(t={}),e){var i=this.playlist_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r
2+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null!==this.mediaIndex&&this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var s=e.mediaSequence-i.mediaSequence;if(this.logger_("live window shift ["+s+"]"),null!==this.mediaIndex)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var a=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!a.parts||!a.parts.length||!a.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}n&&(n.mediaIndex-=s,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}},i.pause=function(){this.checkBufferTimeout_&&(m()().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},i.paused=function(){return null===this.checkBufferTimeout_},i.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},i.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},i.resyncLoader=function(){this.transmuxer_&&Pl(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},i.remove=function(e,t,i,n){if(void 0===i&&(i=function(){}),void 0===n&&(n=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,s=function(){0===--r&&i()};for(var a in!n&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,s)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,i,n){for(var r=Math.ceil((t-n)*Ft.WZ),s=Math.ceil((i-n)*Ft.WZ),a=e.slice(),o=e.length;o--&&!(e[o].pts<=s););if(-1===o)return a;for(var l=o+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a}(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,s)),this.inbandTextTracks_)oc(e,t,this.inbandTextTracks_[a]);oc(e,t,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},i.monitorBuffer_=function(){this.checkBufferTimeout_&&m()().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=m()().setTimeout(this.monitorBufferTick_.bind(this),1)},i.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&m()().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=m()().setTimeout(this.monitorBufferTick_.bind(this),500)},i.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},i.isEndOfStream_=function(e,t,i){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===i&&(i=this.partIndex),!t||!this.mediaSource_)return!1;var n="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,s=!n||!n.parts||i+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&s},i.chooseNextRequest_=function(){var e=vo(this.buffered_())||0,t=Math.max(0,e-this.currentTime_()),i=!this.hasPlayed_()&&t>=1,n=t>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||i||n)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=function(e,t,i){t=t||[];for(var n=[],r=0,s=0;s<t.length;s++){var a=t[s];if(e===a.timeline&&(n.push(s),(r+=a.duration)>i))return s}return 0===n.length?0:n[n.length-1]}(this.currentTimeline_,r,e);else if(null!==this.mediaIndex){var a=r[this.mediaIndex],o="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=a.end?a.end:e,a.parts&&a.parts[o+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=o+1):s.mediaIndex=this.mediaIndex+1}else{var l=No.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?e:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=l.segmentIndex,u=l.startTime,d=l.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd":"currentTime",s.mediaIndex=c,s.startOfSegment=u,s.partIndex=d}var h=r[s.mediaIndex],p=h&&"number"==typeof s.partIndex&&h.parts&&h.parts[s.partIndex];if(!h||"number"==typeof s.partIndex&&!p)return null;"number"!=typeof s.partIndex&&h.parts&&(s.partIndex=0);var f=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=r.length-1&&f&&!this.seeking_()?null:this.generateSegmentInfo_(s)},i.generateSegmentInfo_=function(e){var t=e.playlist,i=e.mediaIndex,n=e.startOfSegment,r=e.isSyncRequest,s=e.partIndex,a=e.forceTimestampOffset,o=e.getMediaInfoForTime,l=t.segments[i],c="number"==typeof s&&l.parts[s],u={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||l.resolvedUri,mediaIndex:i,partIndex:c?s:null,isSyncRequest:r,startOfSegment:n,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:l.timeline,duration:c&&c.duration||l.duration,segment:l,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:o},d=void 0!==a?a:this.isPendingTimestampOffset_;u.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:l.timeline,currentTimeline:this.currentTimeline_,startOfSegment:n,buffered:this.buffered_(),overrideCheck:d});
2var h=vo(this.sourceUpdater_.audioBuffered());return"number"==typeof h&&(u.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(u.gopsToAlignWith=function(e,t,i){if(null==t||!e.length)return[];var n,r=Math.ceil((t-i+3)*Ft.WZ);for(n=0;n<e.length&&!(e[n].pts>r);n++);return e.slice(n)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),u},i.timestampOffsetForSegment_=function(e){return i=(t=e).segmentTimeline,n=t.currentTimeline,r=t.startOfSegment,s=t.buffered,t.overrideCheck||i!==n?i<n?r:s.length?s.end(s.length-1):r:null;var t,i,n,r,s},i.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),i=e.bandwidth,n=this.pendingSegment_.duration,r=No.estimateSegmentRequestTime(n,i,this.playlist_,e.bytesReceived),s=function(e,t,i){return void 0===i&&(i=1),((e.length?e.end(e.length-1):0)-t)/i}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=s)){var a=function(e){var t=e.master,i=e.currentTime,n=e.bandwidth,r=e.duration,s=e.segmentDuration,a=e.timeUntilRebuffer,o=e.currentTimeline,l=e.syncController,c=t.playlists.filter(function(e){return!No.isIncompatible(e)}),u=c.filter(No.isEnabled);u.length||(u=c.filter(function(e){return!No.isDisabled(e)}));var d=u.filter(No.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=l.getSyncPoint(e,r,o,i)?1:2;return{playlist:e,rebufferingImpact:No.estimateSegmentRequestTime(s,n,e)*t-a}}),h=d.filter(function(e){return e.rebufferingImpact<=0});return ic(h,function(e,t){return nc(t.playlist,e.playlist)}),h.length?h[0]:(ic(d,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),d[0]||null)}({master:this.vhs_.playlists.master,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(a){var o=r-s-a.rebufferingImpact,l=.5;s<=co&&(l=1),!a.playlist||a.playlist.uri===this.playlist_.uri||o<l||(this.bandwidth=a.playlist.attributes.BANDWIDTH*bl.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},i.handleAbort_=function(e){this.logger_("Aborting "+uc(e)),this.mediaRequestsAborted+=1},i.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},i.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var s=i[r];if(s!==n[r])return!1;if(e[s]!==t[s])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},i.handleTimingInfo_=function(e,t,i,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,s=dc(t);r[s]=r[s]||{},r[s][i]=n,this.logger_("timinginfo: "+t+" - "+i+" - "+n),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},i.handleCaptions_=function(e,t){var i=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(function(e){r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+n),t.endTime=Math.max(t.endTime,e.endTime+n),t.captions.push(e)}),Object.keys(r).forEach(function(e){var t=r[e],s=t.startTime,a=t.endTime,o=t.captions,l=i.inbandTextTracks_;i.logger_("adding cues from "+s+" -> "+a+" for "+e),function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var n=i;/^cc708_/.test(i)&&(n="SERVICE"+i.split("_")[1]);var r=t.textTracks().getTrackById(n);if(r)e[i]=r;else{var s=i,a=i,o=!1,l=(t.options_.vhs&&t.options_.vhs.captionServices||{})[n];l&&(s=l.label,a=l.language,o=l.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:n,default:o,label:s,language:a},!1).track}}}(l,i.vhs_.tech_,e),oc(s,a,l[e]),function(e){var t=e.inbandTextTracks,i=e.captionArray,n=e.timestampOffset;if(i){var r=m()().WebKitDataCue||m()().VTTCue;
2i.forEach(function(e){var i=e.stream;t[i].addCue(new r(e.startTime+n,e.endTime+n,e.text))})}}({captionArray:o,inbandTextTracks:l,timestampOffset:n})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},i.handleId3_=function(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,i){e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,i,this.vhs_.tech_),ac({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i))},i.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},i.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},i.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},i.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!hc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},i.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},i.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed;return!(n&&!e.videoTimingInfo)&&(!(i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!hc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[dc(t.type)].start;else{var n,r=this.getCurrentMediaInfo_(),s="main"===this.loaderType_&&r&&r.hasVideo;s&&(n=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:s,firstVideoFrameTimeForData:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});var a=this.chooseNextRequest_();if(a.mediaIndex!==i.mediaIndex||a.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},i.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},i.getInitSegmentAndUpdateState_=function(e){var t=e.type,i=e.initSegment,n=e.map,r=e.playlist;if(n){var s=sl(n);if(this.activeInitSegmentId_===s)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=s}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,i):null},i.handleQuotaExceededError_=function(e,t){var i=this,n=e.segmentInfo,r=e.type,s=e.bytes,a=this.sourceUpdater_.audio
2Buffered(),o=this.sourceUpdater_.videoBuffered();a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+go(a).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+go(o).join(", "));var l=a.length?a.start(0):0,c=a.length?a.end(a.length-1):0,u=o.length?o.start(0):0,d=o.length?o.end(o.length-1):0;if(c-l<=1&&d-u<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+s.byteLength+", audio buffer: "+go(a).join(", ")+", video buffer: "+go(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:r,bytes:s}));var h=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h),this.remove(0,h,function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=m()().setTimeout(function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()},1e3)},!0)},i.handleAppendError_=function(e,t){var i=e.segmentInfo,n=e.type,r=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(n+" append of "+r.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:r}))},i.appendToSourceBuffer_=function(e){var t,i,n,r=e.segmentInfo,s=e.type,a=e.initSegment,o=e.data,l=e.bytes;if(!l){var c=[o],u=o.byteLength;a&&(c.unshift(a),u+=a.byteLength),n=0,(t={bytes:u,segments:c}).bytes&&(i=new Uint8Array(t.bytes),t.segments.forEach(function(e){i.set(e,n),n+=e.byteLength})),l=i}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:s,bytes:l},this.handleAppendError_.bind(this,{segmentInfo:r,type:s,bytes:l}))},i.handleSegmentTimingInfo_=function(e,t,i){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment,r=e+"TimingInfo";n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}},i.appendData_=function(e,t){var i=t.type,n=t.data;if(n&&n.byteLength&&("audio"!==i||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:n})}},i.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push(function(){var i=y({},e,{forceTimestampOffset:!0});y(e,t.generateSegmentInfo_(i)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)})},i.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var i=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,s=e.timeline!==this.currentTimeline_&&e.timeline>0,a=n||r&&s;this.logger_("Requesting "+uc(e)),i.map&&!i.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Gl({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.b
2ind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(i){var n=i.message,r=i.level,s=i.stream;t.logger_(uc(e)+" logged from transmuxer stream "+s+" as a "+r+": "+n)}})},i.trimBackBuffer_=function(e){var t=function(e,t,i){var n=t-bl.BACK_BUFFER_LENGTH;e.length&&(n=Math.max(n,e.start(0)));var r=t-i;return Math.min(r,n)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},i.createSimplifiedSegmentObj_=function(e){var t=e.segment,i=e.part,n={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?n.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(n.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var s=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=s}return t.map&&(n.map=this.initSegmentForMap(t.map)),n},i.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},i.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<cc?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+cc):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},i.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},i.segmentRequestFinished_=function(e,t,i){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Rl)return;return this.pause(),e.code===Nl?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),n.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=function(e,t,i){if(!t.length)return e;if(i)return t.slice();for(var n=t[0].pts,r=0;r<e.length&&!(e[r].pts>=n);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}},i.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},i.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},i.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},i.trueSegmentStart_=function(e){var t=e.currentStart,i=e.playlist,n=e.mediaIndex,r=e.firstVideoFrameTimeForData,s=e.currentVideoTimestampOffset,a=e.useVideoTimingInfo,o=e.videoTimingInfo,l=e.audioTimingInfo;if(void 0!==t)return t;if(!a)return l.start;var c=i.segments[n-1];return 0!==n&&c&&void 0!==c.start&&c.end===r+s?o.start:r},i.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed,s="main"===this.loaderType_&&n,a=!this.audioDisabled_&&i&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);s&&e.waitingOnAppends++,a&&e.waitingOnAppends++,s&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},i.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||
2(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},i.checkForIllegalMediaSwitch=function(e){var t=function(e,t,i){return"main"===e&&t&&i?i.hasAudio||i.hasVideo?t.hasVideo&&!i.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&i.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},i.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=e.timingInfo.start,e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},i.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),i="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end="number"==typeof i.end?i.end:i.start+e.duration)},i.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=fc(e,this.sourceType_);if(t&&("warn"===t.severity?no.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+uc(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var i=e.segment;if(i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration)this.resetEverything();else null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+uc(e))},i.recordThroughput_=function(e){if(e.duration<cc)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+cc);else{var t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,n=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(n-t)/++this.throughput.count}},i.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,i=t.start,n=t.end;if(lc(i)&&lc(n)){oc(i,n,this.segmentMetadataTrack_);var r=m()().WebKitDataCue||m()().VTTCue,s={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:n},a=new r(i,n,JSON.stringify(s));a.value=s,this.segmentMetadataTrack_.addCue(a)}}},t}(no.EventTarget);function gc(){}var vc,yc=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},bc=["video","audio"],_c=function(e,t){var i=t[e+"Buffer"];return i&&i.updating||t.queuePending[e]},Tc=function e(t,i){if(0!==i.queue.length){var n=0,r=i.queue[n];if("mediaSource"!==r.type){if("mediaSource"!==t&&i.ready()&&"closed"!==i.mediaSource.readyState&&!_c(t,i)){if(r.type!==t){if(n=function(e,t){for(var i=0;i<t.length;i++){var n=t[i];if("mediaSource"===n.type)return null;if(n.type===e)return i}return null}(t,i.queue),null===n)return;r=i.queue[n]}return i.queue.splice(n,1),i.queuePending[t]=r,r.action(t,i),r.doneFn?void 0:(i.queuePending[t]=null,void e(t,i))}}else i.updating()||"closed"===i.mediaSource.readyState||(i.queue.shift(),r.action(i),r.doneFn&&r.doneFn(),e("audio",i),e("video",i))}},xc=function(e,t){var i=t[e+"Buffer"],n=yc(e);i&&(i.removeEventListener("updateend",t["on"+n+"UpdateEnd_"]),i.removeEventListener("error",t["on"+n+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},wc=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},Sc=function(e,t,i){return function(n,r){var s=r[n+"Buffer"];if(wc(r.mediaSource,s)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" b
2ytes to "+n+"Buffer");try{s.appendBuffer(e)}catch(e){r.logger_("Error with code "+e.code+" "+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+n+"Buffer"),r.queuePending[n]=null,i(e)}}}},kc=function(e,t){return function(i,n){var r=n[i+"Buffer"];if(wc(n.mediaSource,r)){n.logger_("Removing "+e+" to "+t+" from "+i+"Buffer");try{r.remove(e,t)}catch(r){n.logger_("Remove "+e+" to "+t+" from "+i+"Buffer failed")}}}},Ec=function(e){return function(t,i){var n=i[t+"Buffer"];wc(i.mediaSource,n)&&(i.logger_("Setting "+t+"timestampOffset to "+e),n.timestampOffset=e)}},Cc=function(e){return function(t,i){e()}},Ac=function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(e){no.log.warn("Failed to call media source endOfStream",e)}}}},Lc=function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(e){no.log.warn("Failed to set media source duration",e)}}},Ic=function(){return function(e,t){if("open"===t.mediaSource.readyState){var i=t[e+"Buffer"];if(wc(t.mediaSource,i)){t.logger_("calling abort on "+e+"Buffer");try{i.abort()}catch(t){no.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},Pc=function(e,t){return function(i){var n=yc(e),r=K(t);i.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var s=i.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",i["on"+n+"UpdateEnd_"]),s.addEventListener("error",i["on"+n+"Error_"]),i.codecs[e]=t,i[e+"Buffer"]=s}},Oc=function(e){return function(t){var i=t[e+"Buffer"];if(xc(e,t),wc(t.mediaSource,i)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(i)}catch(t){no.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},Dc=function(e){return function(t,i){var n=i[t+"Buffer"],r=K(e);wc(i.mediaSource,n)&&i.codecs[t]!==e&&(i.logger_("changing "+t+"Buffer codec from "+i.codecs[t]+" to "+e),n.changeType(r),i.codecs[t]=e)}},Mc=function(e){var t=e.type,i=e.sourceUpdater,n=e.action,r=e.doneFn,s=e.name;i.queue.push({type:t,action:n,doneFn:r,name:s}),Tc(t,i)},Nc=function(e,t){return function(i){if(t.queuePending[e]){var n=t.queuePending[e].doneFn;t.queuePending[e]=null,n&&n(t[e+"Error_"])}Tc(e,t)}},Rc=function(e){function t(t){var i;return(i=e.call(this)||this).mediaSource=t,i.sourceopenListener_=function(){return Tc("mediaSource",b(i))},i.mediaSource.addEventListener("sourceopen",i.sourceopenListener_),i.logger_=lo("SourceUpdater"),i.audioTimestampOffset_=0,i.videoTimestampOffset_=0,i.queue=[],i.queuePending={audio:null,video:null},i.delayedAudioAppendQueue_=[],i.videoAppendQueued_=!1,i.codecs={},i.onVideoUpdateEnd_=Nc("video",b(i)),i.onAudioUpdateEnd_=Nc("audio",b(i)),i.onVideoError_=function(e){i.videoError_=e},i.onAudioError_=function(e){i.audioError_=e},i.createdSourceBuffers_=!1,i.initializedEme_=!1,i.triggeredReady_=!1,i}T(t,e);var i=t.prototype;return i.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},i.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},i.hasInitializedAnyEme=function(){return this.initializedEme_},i.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},i.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
2,i.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},i.addSourceBuffer=function(e,t){Mc({type:"mediaSource",sourceUpdater:this,action:Pc(e,t),name:"addSourceBuffer"})},i.abort=function(e){Mc({type:e,sourceUpdater:this,action:Ic(e),name:"abort"})},i.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Mc({type:"mediaSource",sourceUpdater:this,action:Oc(e),name:"removeSourceBuffer"}):no.log.error("removeSourceBuffer is not supported!")},i.canRemoveSourceBuffer=function(){return!no.browser.IE_VERSION&&!no.browser.IS_FIREFOX&&m()().MediaSource&&m()().MediaSource.prototype&&"function"==typeof m()().MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return m()().SourceBuffer&&m()().SourceBuffer.prototype&&"function"==typeof m()().SourceBuffer.prototype.changeType},i.canChangeType=function(){return this.constructor.canChangeType()},i.changeType=function(e,t){this.canChangeType()?Mc({type:e,sourceUpdater:this,action:Dc(t),name:"changeType"}):no.log.error("changeType is not supported!")},i.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(function(i){var n=e[i];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(i,n);t.canChangeType()&&t.changeType(i,n)})},i.appendBuffer=function(e,t){var i=this,n=e.segmentInfo,r=e.type,s=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+s.length+" until video append");if(Mc({type:r,sourceUpdater:this,action:Sc(s,n||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var a=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+a.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,a.forEach(function(e){i.appendBuffer.apply(i,e)})}},i.audioBuffered=function(){return wc(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:no.createTimeRange()},i.videoBuffered=function(){return wc(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:no.createTimeRange()},i.buffered=function(){var e=wc(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=wc(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var i=null,n=null,r=0,s=[],a=[];if(!(e&&e.length&&t&&t.length))return no.createTimeRange();for(var o=e.length;o--;)s.push({time:e.start(o),type:"start"}),s.push({time:e.end(o),type:"end"});for(o=t.length;o--;)s.push({time:t.start(o),type:"start"}),s.push({time:t.end(o),type:"end"});for(s.sort(function(e,t){return e.time-t.time}),o=0;o<s.length;o++)"start"===s[o].type?2===++r&&(i=s[o].time):"end"===s[o].type&&1===--r&&(n=s[o].time),null!==i&&null!==n&&(a.push([i,n]),i=null,n=null);return no.createTimeRanges(a)}(this.audioBuffered(),this.videoBuffered())},i.setDuration=function(e,t){void 0===t&&(t=gc),Mc({type:"mediaSource",sourceUpdater:this,action:Lc(e),name:"duration",doneFn:t})},i.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=gc),"string"!=typeof e&&(e=void 0),Mc({type:"mediaSource",sourceUpdater:this,action:Ac(e),name:"endOfStream",doneFn:t})},i.removeAudio=function(e,t,i){void 0===i&&(i=gc),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Mc({type:"audio",sourceUpdater:this,action:kc(e,t),doneFn:i,name:"remove"}):i()},i.removeVideo=function(e,t,i){void 0===i&&(i=gc),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Mc({type:"video",sourceUpdater:this,action:kc(e,t),doneFn:i,name:"remove"}):i()},i.updating=function(){return!(!_c("audio",this)&&!_c("video",this))},i.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Mc({type:"audio",sourceUpdater:this,action:Ec(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},i.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Mc({type:"video",sourceUpdater:this,action:Ec(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},i.audioQueueCallback=function(e){this.audioBuffer&&Mc({type:"audio",sourceUpdater:this,action:Cc(e),name:"callback"})},i.videoQueueCallback=function(e){this.videoBuffer&&Mc({type:"video",sourceUpdater:this,action:Cc(e),name:"callback"})},i.dispose=function(){var e=this;
2this.trigger("dispose"),bc.forEach(function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"](function(){return xc(t,e)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(no.EventTarget),Bc=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Fc=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),Uc=function(e){function t(t,i){var n;return void 0===i&&(i={}),(n=e.call(this,t,i)||this).mediaSource_=null,n.subtitlesTrack_=null,n.loaderType_="subtitle",n.featuresNativeTextTracks_=t.featuresNativeTextTracks,n.shouldSaveSegmentTimingInfo_=!1,n}T(t,e);var i=t.prototype;return i.createTransmuxer_=function(){return null},i.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return no.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,i=e[e.length-1].startTime;return no.createTimeRanges([[t,i]])},i.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=sl(e),n=this.initSegments_[i];if(t&&!n&&e.bytes){var r=Fc.byteLength+e.bytes.byteLength,s=new Uint8Array(r);s.set(e.bytes),s.set(Fc,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:s}}return n||e},i.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},i.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},i.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},i.remove=function(e,t){oc(e,t,this.subtitlesTrack_)},i.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){return this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},i.timestampOffsetForSegment_=function(){return null},i.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},i.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},i.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},i.segmentRequestFinished_=function(e,t,i){var n=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Nl&&this.handleTimeout_(),e.code===Rl?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),this.state="APPENDING",this.trigger("appending");var s=r.segment;if(s.map&&(s.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof m()().WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var a,o=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",a),n.stopForError({message:"Error loading vtt.js"})};return a=function(){n.subtitlesTrack_.tech_.off("vttjserror",o),n.segmentRequestFinished_(e,t,i)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",a),void this.subtitlesTrack_.tech_.one("vttjserror",o)}s.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEac
2h(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new(m()().VTTCue)(e.startTime,e.endTime,e.text):e)}),function(e){var t=e.cues;if(t)for(var i=0;i<t.length;i++){for(var n=[],r=0,s=0;s<t.length;s++)t[i].startTime===t[s].startTime&&t[i].endTime===t[s].endTime&&t[i].text===t[s].text&&++r>1&&n.push(t[s]);n.length&&n.forEach(function(t){return e.removeCue(t)})}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},i.handleData_=function(){},i.updateTimingInfoEnd_=function(){},i.parseVTTCues_=function(e){var t,i=!1;"function"==typeof m()().TextDecoder?t=new(m()().TextDecoder)("utf8"):(t=m()().WebVTT.StringDecoder(),i=!0);var n=new(m()().WebVTT.Parser)(m()(),m()().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=function(t){e.timestampmap=t},n.onparsingerror=function(e){no.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;i&&(r=Bc(r)),n.parse(r)}var s=e.bytes;i&&(s=Bc(s)),n.parse(s),n.flush()},i.updateTimeMapping_=function(e,t,i){var n=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,s=r.MPEGTS/Ft.WZ-r.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=s,e.endTime+=s}),!i.syncInfo){var a=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(a,o-n.duration)}}}else n.empty=!0},t}(mc),jc=function(e,t){for(var i=e.cues,n=0;n<i.length;n++){var r=i[n];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},Hc=[{name:"VOD",run:function(e,t,i,n,r){if(i!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var s=null,a=null,o=bo(t);r=r||0;for(var l=0;l<o.length;l++){var c=o[t.endList||0===r?l:o.length-(l+1)],u=c.segment,d=e.timelineToDatetimeMappings[u.timeline];if(d&&u.dateTimeObject){var h=u.dateTimeObject.getTime()/1e3+d;if(u.parts&&"number"==typeof c.partIndex)for(var p=0;p<c.partIndex;p++)h+=u.parts[p].duration;var f=Math.abs(r-h);if(null!==a&&(0===f||a<f))break;a=f,s={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}}return s}},{name:"Segment",run:function(e,t,i,n,r){var s=null,a=null;r=r||0;for(var o=bo(t),l=0;l<o.length;l++){var c=o[t.endList||0===r?l:o.length-(l+1)],u=c.segment,d=c.part&&c.part.start||u&&u.start;if(u.timeline===n&&void 0!==d){var h=Math.abs(r-d);if(null!==a&&a<h)break;(!s||null===a||a>=h)&&(a=h,s={time:d,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return s}},{name:"Discontinuity",run:function(e,t,i,n,r){var s=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var a=null,o=0;o<t.discontinuityStarts.length;o++){var l=t.discontinuityStarts[o],c=t.discontinuitySequence+o+1,u=e.discontinuities[c];if(u){var d=Math.abs(r-u.time);if(null!==a&&a<d)break;(!s||null===a||a>=d)&&(a=d,s={time:u.time,segmentIndex:l,partIndex:null})}}return s}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],qc=function(e){function t(t){var i;return(i=e.call(this)||this).timelines=[],i.discontinuities=[],i.timelineToDatetimeMappings={},i.logger_=lo("SyncController"),i}T(t,e);var i=t.prototype;return i.getSyncPoint=function(e,t,i,n){var r=this.runStrategies_(e,t,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null},i.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+ko({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))},i.runStrategies_=function(e,t,i,n){for(var r=[],s=0;s<Hc.length;s++){var a=Hc[s],o=a.run(this,e,t,i,n);o&&(o.strategy=a.name,r.push({strategy:a.name,syncPoint:o}))}return r},i.selectSyncPoint_=function(e,t){for(var i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,s=1;s<e.length;s++){var a=Math.abs(e[s].syncPoint[t.key]-t.value);a<n&&(n=a,i=e[s].syncPoint,r=e[s].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+("number"==typeof i.partIndex?",partIndex:"+i.partIndex:"")+"]"),i},i.saveExpiredSegmentInfo=function(e,t){for(var i=t.mediaSequence-e.mediaSequence-1;i>=0;i--){var n=e.segments[i];if(n&&void 0!==n.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:n.start}
2,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},i.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}},i.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),r=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var s=r.dateTimeObject;r.discontinuity&&i&&s&&(this.timelineToDatetimeMappings[r.timeline]=-s.getTime()/1e3)},i.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},i.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},i.calculateSegmentTimeMapping_=function(e,t,i){var n,r,s=e.segment,a=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),n=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;n=t.start+o.mapping,r=t.end+o.mapping}return a&&(a.start=n,a.end=r),(!s.start||n<s.start)&&(s.start=n),s.end=r,!0},i.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var n=0;n<t.discontinuityStarts.length;n++){var r=t.discontinuityStarts[n],s=t.discontinuitySequence+n+1,a=r-e.mediaIndex,o=Math.abs(a);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>o){var l=void 0;l=a<0?i.start-ko({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+ko({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[s]={time:l,accuracy:o}}}},i.dispose=function(){this.trigger("dispose"),this.off()},t}(no.EventTarget),zc=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}T(t,e);var i=t.prototype;return i.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},i.pendingTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},i.lastTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.lastTimelineChanges_[t]={type:t,from:i,to:n},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},i.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(no.EventTarget),Wc=xl(wl(function(){function e(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&i.path)}},i.exports),i.exports}var t=e(function(e){function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e},e.exports.default=e.exports,e.exports.__esModule=!0}),i=e(function(e){function t(i,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(i,n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),n=e(function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0}),r=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);
vendor: 6,805 bytes, line 2
2else for(var r=Array.prototype.slice.call(arguments,1),s=t.length,a=0;a<s;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();var s=null,a=function(){function e(e){var t,i,n;s||(s=function(){var e,t,i,n,r,s,a,o,l=[[[],[],[],[],[]],[[],[],[],[],[]]],c=l[0],u=l[1],d=c[4],h=u[4],p=[],f=[];for(e=0;e<256;e++)f[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=i=0;!d[t];t^=n||1,i=f[i]||1)for(s=(s=i^i<<1^i<<2^i<<3^i<<4)>>8^255&s^99,d[t]=s,h[s]=t,o=16843009*p[r=p[n=p[t]]]^65537*r^257*n^16843008*t,a=257*p[s]^16843008*s,e=0;e<4;e++)c[e][t]=a=a<<24^a>>>8,u[e][s]=o=o<<24^o>>>8;for(e=0;e<5;e++)c[e]=c[e].slice(0),u[e]=u[e].slice(0);return l}()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],o=e.length,l=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var c=e.slice(0),u=[];for(this._key=[c,u],t=o;t<4*o+28;t++)n=c[t-1],(t%o===0||8===o&&t%o===4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],t%o===0&&(n=n<<8^n>>>24^l<<24,l=l<<1^283*(l>>7))),c[t]=c[t-o]^n;for(i=0;t;i++,t--)n=c[3&i?t:t-4],u[i]=t<=4||i<4?n:a[0][r[n>>>24]]^a[1][r[n>>16&255]]^a[2][r[n>>8&255]]^a[3][r[255&n]]}return e.prototype.decrypt=function(e,t,i,n,r,s){var a,o,l,c,u=this._key[1],d=e^u[0],h=n^u[1],p=i^u[2],f=t^u[3],m=u.length/4-2,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],T=v[3],x=v[4];for(c=0;c<m;c++)a=y[d>>>24]^b[h>>16&255]^_[p>>8&255]^T[255&f]^u[g],o=y[h>>>24]^b[p>>16&255]^_[f>>8&255]^T[255&d]^u[g+1],l=y[p>>>24]^b[f>>16&255]^_[d>>8&255]^T[255&h]^u[g+2],f=y[f>>>24]^b[d>>16&255]^_[h>>8&255]^T[255&p]^u[g+3],g+=4,d=a,h=o,p=l;for(c=0;c<4;c++)r[(3&-c)+s]=x[d>>>24]<<24^x[h>>16&255]<<16^x[p>>8&255]<<8^x[255&f]^u[g++],a=d,d=h,h=p,p=f,f=a},e}(),o=function(e){function t(){var t;return(t=e.call(this,r)||this).jobs=[],t.delay=1,t.timeout_=null,t}n(t,e);var i=t.prototype;return i.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},i.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(r),l=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},c=function(){function e(t,i,n,r){var s=e.STEP,a=new Int32Array(t.buffer),c=new Uint8Array(t.byteLength),u=0;for(this.asyncStream_=new o,this.asyncStream_.push(this.decryptChunk_(a.subarray(u,u+s),i,n,c)),u=s;u<a.length;u+=s)n=new Uint32Array([l(a[u-4]),l(a[u-3]),l(a[u-2]),l(a[u-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(u,u+s),i,n,c));this.asyncStream_.push(function(){var e;r(null,(e=c).subarray(0,e.byteLength-e[e.byteLength-1]))})}return e.prototype.decryptChunk_=function(e,t,i,n){return function(){var r=function(e,t,i){var n,r,s,o,c,u,d,h,p,f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new a(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),v=new Int32Array(g.buffer);for(n=i[0],r=i[1],s=i[2],o=i[3],p=0;p<f.length;p+=4)c=l(f[p]),u=l(f[p+1]),d=l(f[p+2]),h=l(f[p+3]),m.decrypt(c,u,d,h,v,p),v[p]=l(v[p]^n),v[p+1]=l(v[p+1]^r),v[p+2]=l(v[p+2]^s),v[p+3]=l(v[p+3]^o),n=c,r=u,s=d,o=h;return g}(e,t,i);n.set(r,e.byteOffset)}},t(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();self.onmessage=function(e){var t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),n=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new c(i,n,r,function(e,i){var n,r;self.postMessage((n={source:t.source,decrypted:i},r={},Object.keys(n).forEach(function(e){var t=n[e];ArrayBuffer.isView(t)?r[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:r[e]=t}),r),[i.buffer])})}})),Vc=Tl(Wc),Xc=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Gc=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},$c=function(e,t){t.activePlaylistLoader=e,e.load()},Yc={AUDIO:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;Gc(i,n);var s=n.activeTrack(),a=n.activeGroup(),o=(a.filter(function(e){return e.default})[0]||a[0]).id,l=n.tracks[o];if(s!==l){for(var c in no.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[c].enabled=n.tracks[c]===l;n.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e];no.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Gc(i,n);var r=n.activeTrack();r&&(r.mode="disabled"),n.onTrackChanged()}}},Kc={AUDIO:function(e,t,i){if(t){var n=i.tech,r=i.requestOptions,s=i.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();s.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&s.load()}),t.on("loadedplaylist",function(){s.playlist(t.media(),r),n.paused()||s.load()}),t.on("error",Yc[e](e,i))}},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,s=i.segmentLoaders[e],a=i.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();s.playlist(e,r),s.track(a.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&s.load()}),t.on("loadedplaylist",function(){s.playlist(t.media(),r),n.paused()||s.load()}),t.on("error",Yc[e](e,i))}},Qc={AUDIO:function(e,t){var i=t.vhs,n=t.sourceType,r=t.segmentLoaders[e],s=t.requestOptions,a=t.master.mediaGroups,o=t.mediaTypes[e],l=o.groups,c=o.tracks,u=o.logger_,d=t.masterPlaylistLoader,h=Mo(d.master);for(var p in a[e]&&0!==Object.keys(a[e]).length||(a[e]={main:{default:{default:!0}}},h&&(a[e].main.default.playlists=d.master.playlists)),a[e])for(var f in l[p]||(l[p]=[]),a[e][p]){var m=a[e][p][f],g=void 0;if(h?(u("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===n&&m.playlists?new Yo(m.playlists[0],i,s):m.resolvedUri?new Yo(m.resolvedUri,i,s):m.playlists&&"dash"===n?new yl(m.playlists[0],i,s,d):null,m=no.mergeOptions({id:f,playlistLoader:g},m),Kc[e](e,m.playlistLoader,t),l[p].push(m),void 0===c[f]){var v=new no.AudioTrack({id:f,kind:Xc(m),enabled:!1,language:m.language,default:m.default,label:f});c[f]=v}}r.on("error",Yc[e](e,t))},SUBTITLES:function(e,t){var i=t.tech,n=t.vhs,r=t.sourceType,s=t.segmentLoaders[e],a=t.requestOptions,o=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,u=l.tracks,d=t.masterPlaylistLoader;for(var h in o[e])for(var p in c[h]||(c[h]=[]),o[e][h])if(!o[e][h][p
2].forced){var f=o[e][h][p],m=void 0;if("hls"===r)m=new Yo(f.resolvedUri,n,a);else if("dash"===r){if(!f.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;m=new yl(f.playlists[0],n,a,d)}else"vhs-json"===r&&(m=new Yo(f.playlists?f.playlists[0]:f.resolvedUri,n,a));if(f=no.mergeOptions({id:p,playlistLoader:m},f),Kc[e](e,f.playlistLoader,t),c[h].push(f),void 0===u[p]){var g=i.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;u[p]=g}}s.on("error",Yc[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i=t.tech,n=t.master.mediaGroups,r=t.mediaTypes[e],s=r.groups,a=r.tracks;for(var o in n[e])for(var l in s[o]||(s[o]=[]),n[e][o]){var c=n[e][o][l];if(/^(?:CC|SERVICE)/.test(c.instreamId)){var u=i.options_.vhs&&i.options_.vhs.captionServices||{},d={label:l,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect};if(u[d.instreamId]&&(d=no.mergeOptions(d,u[d.instreamId])),void 0===d.default&&delete d.default,s[o].push(no.mergeOptions({id:l},c)),void 0===a[l]){var h=i.addRemoteTextTrack({id:d.instreamId,
2kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;a[l]=h}}}}},Zc=function e(t,i){for(var n=0;n<t.length;n++){if(Oo(i,t[n]))return!0;if(t[n].playlists&&e(t[n].playlists,i))return!0}return!1},Jc={AUDIO:function(e,t){return function(){var i=t.mediaTypes[e].tracks;for(var n in i)if(i[n].enabled)return i[n];return null}},SUBTITLES:function(e,t){return function(){var i=t.mediaTypes[e].tracks;for(var n in i)if("showing"===i[n].mode||"hidden"===i[n].mode)return i[n];return null}}},eu=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){Qc[t](t,e)});var t=e.mediaTypes,i=e.masterPlaylistLoader,n=e.tech,r=e.vhs,s=e.segmentLoaders,a=s.AUDIO,o=s.main;["AUDIO","SUBTITLES"].forEach(function(i){t[i].activeGroup=function(e,t){return function(i){var n=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,s=n.media();if(!s)return null;var a=null;s.attributes[e]&&(a=r[s.attributes[e]]);var o=Object.keys(r);if(!a)if("AUDIO"===e&&o.length>1&&Mo(t.master))for(var l=0;l<o.length;l++){var c=r[o[l]];if(Zc(c,s)){a=c;break}}else r.main?a=r.main:1===o.length&&(a=r[o[0]]);return void 0===i?a:null!==i&&a&&a.filter(function(e){return e.id===i.id})[0]||null}}(i,e),t[i].activeTrack=Jc[i](i,e),t[i].onGroupChanged=function(e,t){return function(){var i=t.segmentLoaders,n=i[e],r=i.main,s=t.mediaTypes[e],a=s.activeTrack(),o=s.getActiveGroup(),l=s.activePlaylistLoader,c=s.lastGroup_;o&&c&&o.id===c.id||(s.lastGroup_=o,s.lastTrack_=a,Gc(n,s),o&&!o.isMasterPlaylist&&(o.playlistLoader?(n.resyncLoader(),$c(o.playlistLoader,s)):l&&r.resetEverything()))}}(i,e),t[i].onGroupChanging=function(e,t){return function(){var i=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,i.abort(),i.pause()}}(i,e),t[i].onTrackChanged=function(e,t){return function(){var i=t.masterPlaylistLoader,n=t.segmentLoaders,r=n[e],s=n.main,a=t.mediaTypes[e],o=a.activeTrack(),l=a.getActiveGroup(),c=a.activePlaylistLoader,u=a.lastTrack_;if((!u||!o||u.id!==o.id)&&(a.lastGroup_=l,a.lastTrack_=o,Gc(r,a),l)){if(l.isMasterPlaylist){if(!o||!u||o.id===u.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return a.logger_("track change. Switching master audio from "+u.id+" to "+o.id),i.pause(),s.resetEverything(),void d.fastQualityChange_(h)}if("AUDIO"===e){if(!l.playlistLoader)return s.setAudio(!0),void s.resetEverything();r.setAudio(!0),s.setAudio(!1)}c!==l.playlistLoader?(r.track&&r.track(o),r.resetEverything(),$c(l.playlistLoader,a)):$c(l.playlistLoader,a)}}}(i,e),t[i].getActiveGroup=function(e,t){var i=t.mediaTypes;return function(){var t=i[e].activeTrack();return t?i[e].activeGroup(t):null}}(i,e)});var l=t.AUDIO.activeGroup();if(l){var c=(l.filter(function(e){return e.default})[0]||l[0]).id;t.AUDIO.tracks[c].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),a.setAudio(!0)):o.setAudio(!0)}i.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})}),i.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanging()})});var u=function(){t.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"}),n.trigger({type:"usage",name:"hls-audio-change"})};for(var d in n.audioTracks().addEventListener("change",u),n.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",function(){n.audioTracks().removeEventListener("change",u),n.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),n.clearTracks("audio"),t.AUDIO.tracks)n.audioTracks().addTrack(t.AUDIO.tracks[d])},tu=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],iu=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},nu=function(e){function t(t){var i;i=e.call(this)||this;var n=t.src,r=t.handleManifestRedirects,s=t.withCredentials,a=t.tech,o=t.bandwidth,l=t.externVhs,c=t.useCueTags,u=t.blacklistDuration,d=t.enableLowInitialPlaylist,h=t.sourceType,p=t.cacheEncryptionKeys,f=t.experimentalBufferBasedABR,g=t.experimentalLeastPixelDiffSelector;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");var v=t.maxPlaylistRetries;null==v&&(v=1/0),vc=l,i.experimentalBufferBasedABR=Boolean(f),i.experimentalLeastPixelDiffSelector=Boolean(g),i.withCredentials=s,i.tech_=a,i.vhs_=a.vhs,i.sourceType_=h,i.useCueTags_=c,i.blacklistDuration=u,i.maxPlaylistRetries=v,i.enableLowInitialPlaylist=d,i.useCueTags_&&(i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues"),i.cueTagsTrack_.inBandMetadataTrackDispatchType=""),i.requestOptions_={withCredentials:s,handleManifestRedirects:r,maxPlaylistRetries:v,timeout:null},i.on("error",i.pauseLoading),i.mediaTypes_=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:gc,activeTrack:gc,getActiveGroup:gc,onGroupChanged:gc,onTrackChanged:gc,lastTrack_:null,logger_:lo("MediaGroups["+t+"]")}}),e}(),i.mediaSource=new(m()().MediaSource),i.handleDurationChange_=i.handleDurationChange_.bind(b(i)),i.handleSourceOpen_=i.handleSourceOpen_.bind(b(i)),i.handleSourceEnded_=i.handleSourceEnded_.bind(b(i)),i.mediaSource.addEventListener("durationchange",i.handleDurationChange_),i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_),i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_),i.seekable_=no.createTimeRanges(),i.hasPlayed_=!1,i.syncController_=new qc(t),i.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,i.decrypter_=new Vc,i.sourceUpdater_=new Rc(i.mediaSource),i.inbandTextTracks_={},i.timelineChangeController_=new zc;var y={vhs:i.vhs_,parse708captions:t.parse708captions,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},duration:function(){return i.duration()},hasPlayed:function(){return i.hasPlayed_},goalBufferLength:function(){return i.goalBufferLength()},bandwidth:o,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:p,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};i.masterPlaylistLoader_="dash"===i.sourceType_?new yl(n,i.vhs_,i.requestOptions_):new Yo(n,i.vhs_,i.requestOptions_),i.setupMasterPlaylistLoaderListeners_(),i.mainSegmentLoader_=new mc(no.mergeOptions(y,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),t),i.audioSegmentLoader_=new mc(no.mergeOptions(y,{loaderType:"audio"}),t),i.subtitleSegmentLoader_=new Uc(no.mergeOptions(y,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks}),t),i.setupSegmentLoaderListeners_(),i.experimentalBufferBasedABR&&(i.masterPlaylistLoader_.one("loadedplaylist",function(){return i.startABRTimer_()}),i.tech_.on("pause",function(){return i.stopABRTimer_()}),i.tech_.on("play",function(){return i.startABRTimer_()})),tu.forEach(function(e){i[e+"_"]=iu.bind(b(i),e)}),i.logger_=lo("MPC"),i.triggeredFmp4Usage=!1,"none"===i.tech_.preload()?(i.loadOnPlay_=function(){i.loadOnPlay_=null,i.masterPlaylistLoader_.load()},i.tech_.one("play",i.loadOnPlay_)):i.masterPlaylistLoader_.load(),i.timeToLoadedData__=-1,i.mainAppendsToLoadedData__=-1,i.audioAppendsToLoadedData__=-1;var _="none"===i.tech_.preload()?"play":"loadstart";return i.tech_.one(_,function(){var e=Date.now();i.tech_.one("loadeddata",function(){i.timeToLoadedData__=Date.now()-e,i.mainAppendsToLoadedData__=i.mainSegmentLoader_.mediaAppends,i.audioAppendsToLoadedData__=i.audioSegmentLoader_.mediaAppends})}),i}T(t,e);var i=t.prototype;return i.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},i.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},i.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},i.timeToLoadedData_=function(){return this.timeToLoadedData__},i.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},i.switchMedia_=function(e,t,i){var n=this.media(),r=n&&(n.id||n.uri),s=e.id||e.uri;r&&r!==s&&(this.logger_("switch media "+r+" -> "+s+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,i)},i.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=m()().setInterval(function(){return e.checkABR_()},250)},i.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(m()().clearInterval(this.abrTimer_),this.abrTimer_=null)},i.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var i,n=e.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{var s=n.main||r.length&&n[r[0]];for(var a in s)if(s[a].default){i={label:a};break}}if(!i)return t;var o=[];for(var l in n)if(n[l][i.label]){var c=n[l][i.label];if(c.playlists&&c.playlists.length)o.push.apply(o,c.playlists);else if(c.uri)o.push(c);else if(e.playlists.length)for(var u=0;u<e.playlists.length;u++){var d=e.playlists[u];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===l&&o.push(d)}}return o.length?o:t},i.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=e.masterPlaylistLoader_.media(),i=1.5*t.targetDuration*1e3;Po(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=i,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),eu({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var i;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(i=e.selectInitialPlaylist()),i||(i=e.selectPlaylist()),!i||!e.shouldSwitchToMedia_(i))return;if(e.initialMedia_=i,e.switchMedia_(e.initialMedia_,"initial"),!("vhs-json"===e.sourceType_&&e.initialMedia_.segments))return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)}
2),this.masterPlaylistLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var t=e.masterPlaylistLoader_.media(),i=1.5*t.targetDuration*1e3;Po(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=i,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var t=e.masterPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&(e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck")))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},i.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},i.triggerPresenceUsage_=function(e,t){var i=e.mediaGroups||{},n=!0,r=Object.keys(i.AUDIO);for(var s in i.AUDIO)for(var a in i.AUDIO[s]){i.AUDIO[s][a].uri||(n=!1)}n&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(i.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),vc.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(i.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},i.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media(),i=this.tech_.buffered();return function(e){var t=e.currentPlaylist,i=e.nextPlaylist,n=e.forwardBuffer,r=e.bufferLowWaterLine,s=e.bufferHighWaterLine,a=e.duration,o=e.experimentalBufferBasedABR,l=e.log;if(!i)return no.log.warn("We received no playlist to switch to. Please check your stream."),!1;var c="allowing switch "+(t&&t.id||"null")+" -> "+i.id;if(!t)return l(c+" as current playlist is not set"),!0;if(i.id===t.id)return!1;if(!t.endList)return l(c+" as current playlist is live"),!0;var u=o?bl.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:bl.MAX_BUFFER_LOW_WATER_LINE;if(a<u)return l(c+" as duration < max low water line ("+a+" < "+u+")"),!0;var d=i.attributes.BANDWIDTH,h=t.attributes.BANDWIDTH;if(d<h&&(!o||n<s)){var p=c+" as next bandwidth < current bandwidth ("+d+" < "+h+")";return o&&(p+=" and forwardBuffer < bufferHighWaterLine ("+n+" < "+s+")"),l(p),!0}if((!o||d>h)&&n>=r){var f=c+" as forwardBuffer >= bufferLowWaterLine ("+n+" >= "+r+")";return o&&(f+=" and next bandwidth > current bandwidth ("+d+" > "+h+")"),l(f),!0}return l("not "+c+" as no switching criteria met"),!1}({currentPlaylist:t,nextPlaylist:e,forwardBuffer:i.length?i.end(i.length-1)-this.tech_.currentTime():0,bufferLowWaterLine:this.bufferLowWaterLine(),bufferHighWaterLine:this.bufferHighWaterLine(),duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},i.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})},i.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},i.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},i.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},i.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){no.browser.IE_VERSION||no.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})):this.logger_("skipping fastQualityChange because new media is same as old")},i.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},i.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var i=this.seekable();if(!i.length)return!1;if(no.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(i.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(i.end(0))}return this.hasPlayed_=!0,this.load(),!0},i.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")},i.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},i.handleDurationChange_=function(){this.tech_.trigger("durationchange")}
2,i.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},i.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var i=vc.Playlist.playlistEnd(e,t),n=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-n<=uo;var s=r.end(r.length-1);return s-n<=uo&&i-s<=uo},i.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var i=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!i)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));i.playlistErrors_++;var n,r=this.masterPlaylistLoader_.master.playlists,s=r.filter(Lo),a=1===s.length&&s[0]===i;if(1===r.length&&t!==1/0)return no.log.warn("Problem encountered with playlist "+i.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(a);if(a){var o=!1;r.forEach(function(e){if(e!==i){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(o=!0,delete e.excludeUntil)}}),o&&(no.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}n=i.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,i.excludeUntil=n,e.reason&&(i.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var c=e.internal?this.logger_:no.log.warn,u=e.message?" "+e.message:"";c((e.internal?"Internal problem":"Problem")+" encountered with playlist "+i.id+"."+u+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==i.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==i.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=l.targetDuration/2*1e3||5e3,h="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=d;return this.switchMedia_(l,"exclude",a||h)},i.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},i.delegateLoaders_=function(e,t){var i=this,n=[],r="all"===e;(r||"main"===e)&&n.push(this.masterPlaylistLoader_);var s=[];(r||"audio"===e)&&s.push("AUDIO"),(r||"subtitle"===e)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach(function(e){var t=i.mediaTypes_[e]&&i.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=i[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||n.push(r)}),n.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})},i.setCurrentTime=function(e){var t=po(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},i.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:vc.Playlist.duration(e):1/0:0},i.seekable=function(){return this.seekable_},i.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var i=this.syncController_.getExpiredTime(t,this.duration());if(null!==i){var n=this.masterPlaylistLoader_.master,r=vc.Playlist.seekable(t,i,vc.Playlist.liveEdgeDelay(n,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=vc.Playlist.seekable(t,i,vc.Playlist.liveEdgeDelay(n,t))).length)return}var s,a;this.seekable_&&this.seekable_.length&&(s=this.seekable_.end(0),a=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=no.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===s&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+mo(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},i.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var i=this.tech_.buffered(),n=vc.Playlist.duration(this.masterPlaylistLoader_.media());i.length>0&&(n=Math.max(n,i.end(i.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}},i.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var i=e.mediaTypes_[t].groups;
2for(var n in i)i[n].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},i.master=function(){return this.masterPlaylistLoader_.master},i.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},i.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)},i.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var i=Zl(this.master(),this.media()),n={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(n.video=i.video||t.main.videoCodec||"avc1.4d400d"),t.main.isMuxed&&(n.video+=","+(i.audio||t.main.audioCodec||J)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(n.audio=i.audio||t.main.audioCodec||t.audio.audioCodec||J,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),n.audio||n.video){var s,a={};if(["video","audio"].forEach(function(e){if(n.hasOwnProperty(e)&&(r=t[e].isFmp4,o=n[e],!(r?Q(o):Z(o)))){var i=t[e].isFmp4?"browser":"muxer";a[i]=a[i]||[],a[i].push(n[e]),"audio"===e&&(s=i)}var r,o}),r&&s&&this.media().attributes.AUDIO){var o=this.media().attributes.AUDIO;
2this.master().playlists.forEach(function(t){(t.attributes&&t.attributes.AUDIO)===o&&t!==e.media()&&(t.excludeUntil=1/0)}),this.logger_("excluding audio group "+o+" as "+s+' does not support codec(s): "'+n.audio+'"')}if(!Object.keys(a).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var l=[];if(["video","audio"].forEach(function(t){var i=($(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=($(n[t]||"")[0]||{}).type;i&&r&&i.toLowerCase()!==r.toLowerCase()&&l.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+n[t]+'"')}),l.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return n}var c=Object.keys(a).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+a[t].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:c,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},i.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},i.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,i=[];Object.keys(t).forEach(function(n){var r=t[n];if(-1===i.indexOf(r.id)){i.push(r.id);var s=Zl(e.master,r),a=[];!s.audio||Z(s.audio)||Q(s.audio)||a.push("audio codec "+s.audio),!s.video||Z(s.video)||Q(s.video)||a.push("video codec "+s.video),s.text&&"stpp.ttml.im1t"===s.text&&a.push("text codec "+s.text),a.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+a.join(", ")))}})},i.excludeIncompatibleVariants_=function(e){var t=this,i=[],n=this.master().playlists,r=Kl($(e)),s=Ql(r),a=r.video&&$(r.video)[0]||null,o=r.audio&&$(r.audio)[0]||null;Object.keys(n).forEach(function(e){var r=n[e];if(-1===i.indexOf(r.id)&&r.excludeUntil!==1/0){i.push(r.id);var l=[],c=Zl(t.masterPlaylistLoader_.master,r),u=Ql(c);if(c.audio||c.video){if(u!==s&&l.push('codec count "'+u+'" !== "'+s+'"'),!t.sourceUpdater_.canChangeType()){var d=c.video&&$(c.video)[0]||null,h=c.audio&&$(c.audio)[0]||null;d&&a&&d.type.toLowerCase()!==a.type.toLowerCase()&&l.push('video codec "'+d.type+'" !== "'+a.type+'"'),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}})},i.updateAdCues_=function(e){var t=0,i=this.seekable();i.length&&(t=i.start(0)),function(e,t,i){if(void 0===i&&(i=0),e.segments)for(var n,r=i,s=0;s<e.segments.length;s++){var a=e.segments[s];if(n||(n=jc(t,r+a.duration/2)),n){if("cueIn"in a){n.endTime=r,n.adEndTime=r,r+=a.duration,n=null;continue}if(r<n.endTime){r+=a.duration;continue}n.endTime+=a.duration}else if("cueOut"in a&&((n=new(m()().VTTCue)(r,r+a.duration,a.cueOut)).adStartTime=r,n.adEndTime=r+parseFloat(a.cueOut),t.addCue(n)),"cueOutCont"in a){var o=a.cueOutCont.split("/").map(parseFloat),l=o[0],c=o[1];(n=new(m()().VTTCue)(r,r+a.duration,"")).adStartTime=r-l,n.adEndTime=n.adStartTime+c,t.addCue(n)}r+=a.duration}}(e,this.cueTagsTrack_,t)},i.goalBufferLength=function(){var e=this.tech_.currentTime(),t=bl.GOAL_BUFFER_LENGTH,i=bl.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,bl.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)},i.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=bl.BUFFER_LOW_WATER_LINE,i=bl.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,bl.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,bl.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.experimentalBufferBasedABR?r:n)},i.bufferHighWaterLine=function(){return bl.BUFFER_HIGH_WATER_LINE},t}(no.EventTarget),ru=function(e,t,i){var n,r,s,a=e.masterPlaylistController_,o=a[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(a);if(t.attributes){var l=t.attributes.RESOLUTION;this.width=l&&l.width,this.height=l&&l.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=Zl(a.master(),t),this.playlist=t,this.id=i,this.enabled=(n=e.playlists,r=t.id,s=o,function(e){var t=n.master.playlists[r],i=Ao(t),a=Lo(t);return void 0===e?a:(e?delete t.disabled:t.disabled=!0,e===a||i||(s(),e?n.trigger("renditionenabled"):n.trigger("renditiondisabled")),e)})},su=["seeking","seeked","pause","playing","error"],au=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=lo("PlaybackWatcher"),this.logger_("initialize");var i=function(){return t.monitorCurrentTime_()},n=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},s=function(){return t.cancelTimer_()},a=function(){return t.fixesBadSeeks_()},o=this.masterPlaylistController_,l=["main","subtitle","audio"],c={};l.forEach(function(e){c[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},o[e+"SegmentLoader_"].on("appendsdone",c[e].updateend),o[e+"SegmentLoader_"].on("playlistupdate",c[e].reset),t.tech_.on(["seeked","seeking"],c[e].reset)}),this.tech_.on("seekablechanged",a),this.tech_.on("waiting",r),this.tech_.on(su,s),this.tech_.on("canplay",n),this.tech_.one("play",i),this.dispose=function(){t.logger_("dispose"),t.tech_.off("seekablechanged",a),t.tech_.off("waiting",r),t.tech_.off(su,s),t.tech_.off("canplay",n),t.tech_.off("play",i),l.forEach(function(e){o[e+"SegmentLoader_"].off("appendsdone",c[e].updateend),o[e+"SegmentLoader_"].off("playlistupdate",c[e].reset),t.tech_.off(["seeked","seeking"],c[e].reset)}),t.checkCurrentTimeTimeout_&&m()().clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&m()().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=m()().setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,i=t[e+"SegmentLoader_"],n=i.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;
2if(e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e.start(i)!==t.start(i)||e.end(i)!==t.end(i))return!0;return!1}(this[e+"Buffered_"],n);this[e+"Buffered_"]=n,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:i.playlist_&&i.playlist_.id,buffered:go(n)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+uo>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),i=this.tech_.currentTime();this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1));if(this.beforeSeekableWindow_(t,i)){var n=t.start(0);e=n+(n===t.end(0)?0:uo)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+mo(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;var r=this.tech_.buffered();return!!function(e){var t=e.buffered,i=e.targetDuration,n=e.currentTime;return!(!t.length||t.end(0)-t.start(0)<2*i||n>t.start(0)||!(t.start(0)-n<i))}({buffered:r,targetDuration:this.media().targetDuration,currentTime:i})&&(e=r.start(0)+uo,this.logger_("Buffered region starts ("+r.start(0)+") just beyond seek point ("+i+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),i=po(t,e);return i.length&&e+3<=i.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+i.start(0)+" -> "+i.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var i=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var n=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var s=fo(r,t);if(s.length>0){var a=s.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+a+", seeking to "+s.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,t),!0}return!1},t.afterSeekableWindow_=function(e,t,i,n){if(void 0===n&&(n=!1),!e.length)return!1;var r=e.end(e.length-1)+uo;return!i.endList&&n&&(r=e.end(e.length-1)+3*i.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,i=e.audioBuffered,n=e.currentTime;if(t){var r;
2if(t.length&&i.length){var s=po(t,n-3),a=po(t,n),o=po(i,n);o.length&&!a.length&&s.length&&(r={start:s.end(0),end:o.end(0)})}else{fo(t,n).length||(r=this.gapFromVideoUnderflow_(t,n))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+n),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),i=this.tech_.currentTime(),n=fo(t,i);this.cancelTimer_(),0!==n.length&&i===e&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",n.start(0)),this.tech_.setCurrentTime(n.start(0)+co),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var i=function(e){if(e.length<2)return no.createTimeRanges();for(var t=[],i=1;i<e.length;i++){var n=e.end(i-1),r=e.start(i);t.push([n,r])}return no.createTimeRanges(t)}(e),n=0;n<i.length;n++){var r=i.start(n),s=i.end(n);if(t-r<4&&t-r>2)return{start:r,end:s}}return null},e}(),ou={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},lu=function e(t,i){var n=0,r=0,s=no.mergeOptions(ou,i);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var a=function(){r&&t.currentTime(r)},o=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",a),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-n<1e3*s.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):s.getSource&&"function"==typeof s.getSource?(n=Date.now(),s.getSource.call(t,o)):void no.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},c=function e(){t.off("loadedmetadata",a),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",c),t.reloadSourceOnError=function(i){c(),e(t,i)}},cu=function(e){lu(this,e)},uu="2.10.2",du={PlaylistLoader:Yo,Playlist:No,utils:ll,STANDARD_PLAYLIST_SELECTOR:sc,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(No.isEnabled);return ic(t,function(e,t){return nc(e,t)}),t.filter(function(t){return!!Zl(e.playlists.master,t).video})[0]||null},lastBandwidthSelector:sc,movingAverageBandwidthSelector:function(e){var t=-1,i=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var n=this.useDevicePixelRatio&&m()().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),rc(this.playlists.master,t,parseInt(tc(this.tech_.el(),"width"),10)*n,parseInt(tc(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:nc,comparePlaylistResolution:function(e,t){var i,n;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||m()().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),i===(n=n||m()().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},xhr:Jo()};Object.keys(bl).forEach(function(e){Object.defineProperty(du,e,{get:function(){return no.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),bl[e]},set:function(t){no.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?no.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):bl[e]=t}})});var hu="videojs-vhs",pu=function(e,t){for(var i=t.media(),n=-1,r=0;r<e.length;r++)if(e[r].id===i.id){n=r;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})};du.canPlaySource=function(){return no.log.warn("HLS is no longer a tech. Please remove it from your player'
2s techOrder.")};var fu=function(e){var t=e.player,i=e.sourceKeySystems,n=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var s=function(e,t){return e.reduce(function(e,i){if(!i.contentProtection)return e;var n=t.reduce(function(e,t){var n=i.contentProtection[t];return n&&n.pssh&&(e[t]={pssh:n.pssh}),e},{});return Object.keys(n).length&&e.push(n),e},[])}(n?r.concat([n]):r,Object.keys(i)),a=[],o=[];return s.forEach(function(e){o.push(new Promise(function(e,i){t.tech_.one("keysessioncreated",e)})),a.push(new Promise(function(i,n){t.eme.initializeMediaKeys({keySystems:e},function(e){e?n(e):i()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},mu=function(e){var t=e.player,i=function(e,t,i){if(!e)return e;var n={};t&&t.attributes&&t.attributes.CODECS&&(n=Kl($(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(n.audio=i.attributes.CODECS);var r=K(n.video),s=K(n.audio),a={};for(var o in e)a[o]={},s&&(a[o].audioContentType=s),r&&(a[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(a[o].pssh=t.contentProtection[o].pssh),"string"==typeof e[o]&&(a[o].url=e[o]);return no.mergeOptions(e,a)}(e.sourceKeySystems,e.media,e.audioMedia);return!!i&&(t.currentSource().keySystems=i,!(i&&!t.eme)||(no.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},gu=function(){if(!m()().localStorage)return null;var e=m()().localStorage.getItem(hu);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}};du.supportsNativeHls=function(){if(!v()||!v().createElement)return!1;var e=v().createElement("video");if(!no.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),du.supportsNativeDash=!!(v()&&v().createElement&&no.getTech("Html5").isSupported())&&/maybe|probably/i.test(v().createElement("video").canPlayType("application/dash+xml")),du.supportsTypeNatively=function(e){return"hls"===e?du.supportsNativeHls:"dash"===e&&du.supportsNativeDash},du.isSupported=function(){return no.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var vu=function(e){function t(t,i,n){var r;if(r=e.call(this,i,no.mergeOptions(n.hls,n.vhs))||this,n.hls&&Object.keys(n.hls).length&&no.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof n.initialBandwidth&&(r.options_.bandwidth=n.initialBandwidth),r.logger_=lo("VhsHandler"),i.options_&&i.options_.playerId){var s=no(i.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return no.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),i.trigger({type:"usage",name:"hls-player-access"}),b(r)},configurable:!0}),s.hasOwnProperty("vhs")||Object.defineProperty(s,"vhs",{get:function(){return no.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),i.trigger({type:"usage",name:"vhs-player-access"}),b(r)},configurable:!0}),s.hasOwnProperty("dash")||Object.defineProperty(s,"dash",{get:function(){return no.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),b(r)},configurable:!0}),r.player_=s}if(r.tech_=i,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&i.overrideNativeAudioTracks&&i.overrideNativeVideoTracks)i.overrideNativeAudioTracks(!0),i.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(v(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=v().fullscreenElement||v().webkitFullscreenElement||v().mozFullScreenElement||v().msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()}),r.on(r.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),r.on(r.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}T(t,e);var i=t.prototype;return i.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=gu();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=bl.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===bl.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},i.src=function(e,t){var i=this;if(e){var n;this.setOptions_(),this.options_.src=0===(n=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(n.substring(n.indexOf(",")+1)):n,this.options_.tech=this.tech_,this.options_.externVhs=du,this.options_.sourceType=ie(t),this.options_.seekTo=function(e){i.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&no.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new nu(this.options_);var r=no.mergeOptions({liveRangeSafeTimeDelta:uo},this.options_,{seekable:function(){return i.seekable()},media:function(){return i.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new au(r),this.masterPlaylistController_.on("error",function(){var e=no.players[i.tech_.options_.playerId],t=i.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});var s=this.options_.experimentalBufferBasedABR?du.movingAverageBandwidthSelector(.55):du.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.masterPlaylistController_.selectInitialPlaylist=du.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth}
2,set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){no.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return i.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return i.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return i.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return i.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return i.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return i.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return i.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return i.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return i.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return i.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return i.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return i.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return i.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return go(i.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return i.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return i.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return i.tech_.name_},enumerable:!0},duration:{get:function(){return i.tech_.duration()},enumerable:!0},master:{get:function(){return i.playlists.master},enumerable:!0},playerDimensions:{get:function(){return i.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return go(i.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return i.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){i.options_.useBandwidthFromLocalStorage&&function(e){if(!m()().localStorage)return!1;var t=gu();t=t?no.mergeOptions(t,e):e;try{m()().localStorage.setItem(hu,JSON.stringify(t))}catch(e){return!1}}({bandwidth:i.bandwidth,throughput:Math.round(i.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e;(e=i).representations=function(){var t=e.masterPlaylistController_.master(),i=Mo(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(function(e){return!Ao(e)}).map(function(t,i){return new ru(e,t,t.id)}):[]}}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){i.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=m()().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},i.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=mu({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",function(t){"output-restricted"===t.status&&e.masterPlaylistController_.blacklistCurrentPlaylist({playlist:e.masterPlaylistController_.media(),message:"DRM keystatus changed to "+t.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:1/0})}),11!==no.browser.IE_VERSION&&i?(this.logger_("waiting for EME key session creation"),fu({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media ke
2ys for EME",code:3})})):this.masterPlaylistController_.sourceUpdater_.initializedEme()},i.setupQualityLevels_=function(){var e=this,t=no.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,i;t=e.qualityLevels_,(i=e).representations().forEach(function(e){t.addQualityLevel(e)}),pu(t,i.playlists)}),this.playlists.on("mediachange",function(){pu(e.qualityLevels_,e.playlists)}))},t.version=function(){return{"@videojs/http-streaming":uu,"mux.js":"5.13.0","mpd-parser":"0.19.0","m3u8-parser":"4.7.0","aes-decrypter":"3.1.2"}},i.version=function(){return this.constructor.version()},i.canChangeType=function(){return Rc.canChangeType()},i.play=function(){this.masterPlaylistController_.play()},i.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},i.duration=function(){return this.masterPlaylistController_.duration()},i.seekable=function(){return this.masterPlaylistController_.seekable()},i.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&m()().URL.revokeObjectURL&&(m()().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),e.prototype.dispose.call(this)},i.convertToProgramTime=function(e,t){return cl({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},i.seekToProgramTime=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=2),ul({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(no.getComponent("Component")),yu={name:"videojs-http-streaming",VERSION:uu,canHandleSource:function(e,t){void 0===t&&(t={});var i=no.mergeOptions(no.options,t);return yu.canPlayType(e.type,i)},handleSource:function(e,t,i){void 0===i&&(i={});var n=no.mergeOptions(no.options,i);return t.vhs=new vu(e,t,n),no.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return no.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Jo(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var i=no.mergeOptions(no.options,t).vhs.overrideNative,n=void 0===i?!no.browser.IS_ANY_SAFARI:i,r=ie(e);return r&&(!du.supportsTypeNatively(r)||n)?"maybe":""}};Q("avc1.4d400d,mp4a.40.2")&&no.getTech("Html5").registerSourceHandler(yu,0),no.VhsHandler=vu,Object.defineProperty(no,"HlsHandler",{get:function(){return no.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),vu},configurable:!0}),no.VhsSourceHandler=yu,Object.defineProperty(no,"HlsSourceHandler",{get:function(){return no.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),yu},configurable:!0}),no.Vhs=du,Object.defineProperty(no,"Hls",{get:function(){return no.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),du},configurable:!0}),no.use||(no.registerComponent("Hls",du),no.registerComponent("Vhs",du)),no.options.vhs=no.options.vhs||{},no.options.hls=no.options.hls||{},no.registerPlugin?no.registerPlugin("reloadSourceOnError",cu):no.plugin("reloadSourceOnError",cu);var bu=no},542:function(){},4634:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6175:function(e){"use strict";e.exports=JSON.parse('{"Audio Player":"Lecteur audio","Video Player":"Lecteur vidéo","Play":"Lecture","Pause":"Pause","Replay":"Revoir","Current Time":"Temps actuel","Duration":"Durée","Remaining Time":"Temps restant","Stream Type":"Type de flux","LIVE":"EN DIRECT","Loaded":"Chargé","Progress":"Progression","Progress Bar":"Barre de progression","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Plein écran","Non-Fullscreen":"Fenêtré","Mute":"Sourdine","Unmute":"Son activé","Playback Rate":"Vitesse de lecture","Subtitles":"Sous-titres","subtitles off":"Sous-titres désactivés","Captions":"Sous-titres transcrits","captions off":"Sous-titres transcrits désactivés","Chapters":"Chapitres","Descriptions":"Descriptions","descriptions off":"descriptions désactivées","Audio Track":"Piste audio","Volume Level":"Niveau de volume","You aborted the media playback":"Vous avez interrompu la lecture de la vidéo.","A network error caused the media download to fail part-way.":"Une erreur de réseau a interrompu le téléchargement de la vidéo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Cette vidéo
vendor: 12,593 bytes, line 2
2n\'a pas pu être chargée, soit parce que le serveur ou le réseau a échoué ou parce que le format n\'est pas reconnu.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La lecture de la vidéo a été interrompue à cause d\'un problème de corruption ou parce que la vidéo utilise des fonctionnalités non prises en charge par votre navigateur.","No compatible source was found for this media.":"Aucune source compatible n\'a été trouvée pour cette vidéo.","The media is encrypted and we do not have the keys to decrypt it.":"Le média est chiffré et nous n\'avons pas les clés pour le déchiffrer.","Play Video":"Lire la vidéo","Close":"Fermer","Close Modal Dialog":"Fermer la boîte de dialogue modale","Modal Window":"Fenêtre modale","This is a modal window":"Ceci est une fenêtre modale","This modal can be closed by pressing the Escape key or activating the close button.":"Ce modal peut être fermé en appuyant sur la touche Ãchap ou activer le bouton de fermeture.",", opens captions settings dialog":", ouvrir les paramètres des sous-titres transcrits",", opens subtitles settings dialog":", ouvrir les paramètres des sous-titres",", opens descriptions settings dialog":", ouvrir les paramètres des descriptions",", selected":", sélectionné","captions settings":"Paramètres des sous-titres transcrits","subtitles settings":"Paramètres des sous-titres","descriptions settings":"Paramètres des descriptions","Text":"Texte","White":"Blanc","Black":"Noir","Red":"Rouge","Green":"Vert","Blue":"Bleu","Yellow":"Jaune","Magenta":"Magenta","Cyan":"Cyan","Background":"Arrière-plan","Window":"Fenêtre","Transparent":"Transparent","Semi-Transparent":"Semi-transparent","Opaque":"Opaque","Font Size":"Taille des caractères","Text Edge Style":"Style des contours du texte","None":"Aucun","Raised":"Ãlevé","Depressed":"Enfoncé","Uniform":"Uniforme","Dropshadow":"Ombre portée","Font Family":"Famille de polices","Proportional Sans-Serif":"Polices à chasse variable sans empattement (Proportional Sans-Serif)","Monospace Sans-Serif":"Polices à chasse fixe sans empattement (Monospace Sans-Serif)","Proportional Serif":"Polices à chasse variable avec empattement (Proportional Serif)","Monospace Serif":"Polices à chasse fixe avec empattement (Monospace Serif)","Casual":"Manuscrite","Script":"Scripte","Small Caps":"Petites capitales","Reset":"Réinitialiser","restore all settings to the default values":"Restaurer tous les paramètres aux valeurs par défaut","Done":"Terminé","Caption Settings Dialog":"Boîte de dialogue des paramètres des sous-titres transcrits","Beginning of dialog window. Escape will cancel and close the window.":"Début de la fenêtre de dialogue. La touche d\'échappement annulera et fermera la fenêtre.","End of dialog window.":"Fin de la fenêtre de dialogue."}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.cw=function(e){var t;return function(){if(e){var i=e;e=0,t={exports:{}},i.call(t.exports,t,t.exports)}return t.exports}},__webpack_require__.d=function(e,t){for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};!function(){"use strict";__webpack_require__(4796),__webpack_require__(2754),__webpack_require__(7334),__webpack_require__(5660),__webpack_require__(738),__webpack_require__(6718),__webpack_require__(7946),__webpack_require__(9120),__webpack_require__(4737),__webpack_require__(834);var e=window,t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)},i=window,n=i.cancelAnimationFrame||i.mozCancelAnimationFrame||function(e){clearTimeout(e)};function r(){for(var e,t,i,n=arguments[0]||{},r=1,s=arguments.length;r<s;r++)if(null!==(e=arguments[r]))for(t in e)n!==(i=e[t])&&void 0!==i&&(n[t]=i);return n}function s(e){return["true","false"].indexOf(e)>=0?JSON.parse(e):e}function a(e,t,i,n){if(n)try{e.setItem(t,i)}catch(e){}return i}function o(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}var l=document.documentElement;function c(e){var t="";return e.fake&&(t=l.style.overflow,e.style.background="",e.style.overflow=l.style.overflow="hidden",l.appendChild(e)),t}function u(e,t){e.fake&&(e.remove(),l.style.overflow=t,l.offsetHeight)}function d(e,t,i,n){"insertRule"in e?e.insertRule(t+"{"+i+"}",n):e.addRule(t,i,n)}function h(e){return("insertRule"in e?e.cssRules:e.rules).length}function p(e,t,i){for(var n=0,r=e.length;n<r;n++)t.call(i,e[n],n)}var f="classList"in document.createElement("_"),m=f?function(e,t){return e.classList.contains(t)}:function(e,t){return e.className.indexOf(t)>=0},g=f?function(e,t){m(e,t)||e.classList.add(t)}:function(e,t){m(e,t)||(e.className+=" "+t)},v=f?function(e,t){m(e,t)&&e.classList.remove(t)}:function(e,t){m(e,t)&&(e.className=e.className.replace(t,""))};function y(e,t){return e.hasAttribute(t)}function b(e,t){return e.getAttribute(t)}function _(e){return void 0!==e.item}function T(e,t){if(e=_(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var i=e.length;i--;)for(var n in t)e[i].setAttribute(n,t[n])}function x(e,t){e=_(e)||e instanceof Array?e:[e];for(var i=(t=t instanceof Array?t:[t]).length,n=e.length;n--;)for(var r=i;r--;)e[n].removeAttribute(t[r])}function w(e){for(var t=[],i=0,n=e.length;i<n;i++)t.push(e[i]);return t}function S(e,t){"none"!==e.style.display&&(e.style.display="none")}function k(e,t){"none"===e.style.display&&(e.style.display="")}function E(e){return"none"!==window.getComputedStyle(e).display}function C(e){if("string"==typeof e){var t=[e],i=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach(function(n){"ms"===n&&"transform"!==e||t.push(n+i)}),e=t}for(var n=document.createElement("fakeelement"),r=(e.length,0);r<e.length;r++){var s=e[r];if(void 0!==n.style[s])return s}return!1}function A(e,t){var i=!1;return/^Webkit/.test(e)?i="webkit"+t+"End":/^O/.test(e)?i="o"+t+"End":e&&(i=t.toLowerCase()+"end"),i}var L=!1;try{var I=Object.defineProperty({},"passive",{get:function(){L=!0}});window.addEventListener("test",null,I)}catch(e){}var P=!!L&&{passive:!0};function O(e,t,i){for(var n in t){var r=["touchstart","touchmove"].indexOf(n)>=0&&!i&&P;e.addEventListener(n,t[n],r)}}function D(e,t){for(var i in t){var n=["touchstart","touchmove"].indexOf(i)>=0&&P;e.removeEventListener(i,t[i],n)}}function M(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var i=0;i<this.topics[e].length;i++)if(this.topics[e][i]===t){this.topics[e].splice(i,1);break}},emit:function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach(function(i){i(t,e)})}}}Object.keys||(Object.keys=function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var N=function(e){e=r({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},e||{});var i=document,l=window,f={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},_={},L=e.useLocalStorage;if(L){var I=navigator.userAgent,P=new Date;try{(_=l.localStorage)?(_.setItem(P,P),L=_.getItem(P)==P,_.removeItem(P)):L=!1,L||(_={})}catch(e){L=!1}L&&(_.tnsApp&&_.tnsApp!==I&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(e){_.removeItem(e)}),localStorage.tnsApp=I)}var R=_.tC?s(_.tC):a(_,"tC",function(){var e=document,t=o(),i=c(t),n=e.createElement("div"),r=!1;t.appendChild(n);try{for(var s,a="(10px * 10)",l=["calc"+a,"-moz-calc"+a,"-webkit-calc"+a],d=0;d<3;d++)if(s=l[d],n.style.width=s,100===n.offsetWidth){r=s.replace(a,"");break}}catch(e){}return t.fake?u(t,i):n.remove(),r}(),L),B=_.tPL?s(_.tPL):a(_,"tPL",function(){var e,t=document,i=o(),n=c(i),r=t.createElement("div"),s=t.createElement("div"),a="";r.className="tns-t-subp2",s.className="tns-t-ct";for(var l=0;l<70;l++)a+="<div></div>";return s.innerHTML=a,r.appendChild(s),i.appendChild(r),e=Math.abs(r.getBoundingClientRect().left-s.children[67].getBoundingClientRect().left)<2,i.fake?u(i,n):r.remove(),e}(),L),F=_.tMQ?s(_.tMQ):a(_,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var e,t=document,i=o(),n=c(i),r=t.createElement("div"),s=t.createElement("style"),a="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return s.type="text/css",r.className="tns-mq-test",i.appendChild(s),i.appendChild(r),s.styleSheet?s.styleSheet.cssText=a:s.appendChild(t.createTextNode(a)),e=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,i.fake?u(i,n):r.remove(),"absolute"===e}(),L),U=_.tTf?s(_.tTf):a(_,"tTf",C("transform"),L),j=_.t3D?s(_.t3D):a(_,"t3D",function(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,i=document,n=o(),r=c(n),s=i.createElement("p"),a=e.length>9?"-"+e.slice(0,-9).toLowerCase()+"-":"";return a+="transform",n.insertBefore(s,null),s.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(s).getPropertyValue(a),n.fake?u(n,r):s.remove(),void 0!==t&&t.length>0&&"none"!==t}(U),L),H=_.tTDu?s(_.tTDu):a(_,"tTDu",C("transitionDuration"),L),q=_.tTDe?s(_.tTDe):a(_,"tTDe",C("transitionDelay"),L),z=_.tADu?s(_.tADu):a(_,"tADu",C("animationDuration"),L),W=_.tADe?s(_.tADe):a(_,"tADe",C("animationDelay"),L),V=_.tTE?s(_.tTE):a(_,"tTE",A(H,"Transition"),L),X=_.tAE?s(_.tAE):a(_,"tAE",A(z,"Animation"),L),G=l.console&&"function"==typeof l.console.warn,$=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],Y={};if($.forEach(function(t){if("string"==typeof e[t]){var n=e[t],r=i.querySelector(n);if(Y[t]=n,!r||!r.nodeName)return void(G&&console.warn("Can't find",e[t]));e[t]=r}}),!(e.container.children.length<1)){var K=e.responsive,Q=e.nested,Z="carousel"===e.mode;if(K){0 in K&&(e=r(e,K[0]),delete K[0]);var J={};for(var ee in K){var te=K[ee];te="number"==typeof te?{items:te}:te,J[ee]=te}K=J,J=null}if(Z||function e(t){for(var i in t)Z||("slideBy"===i&&(t[i]="page"),"edgePadding"===i&&(t[i]=!1),"autoHeight"===i&&(t[i]=!1)),"responsive"===i&&e(t[i])}(e),!Z){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var ie=e.animateIn,ne=e.animateOut,re=e.animateDelay,se=e.animateNormal}var ae,oe,le="horizontal"===e.axis,ce=i.createElement("div"),ue=i.createElement("div"),de=e.container,he=de.parentNode,pe=de.outerHTML,fe=de.children,me=fe.length,ge=Oi(),ve=!1;K&&Ji(),Z&&(de.className+=" tns-vpfix");var ye,be,_e,Te,xe,we,Se,ke,Ee,Ce=e.autoWidth,Ae=Bi("fixedWidth"),Le=Bi("edgePadding"),Ie=Bi("gutter"),Pe=Ni(),Oe=Bi("center"),De=Ce?1:Math.floor(Bi("items")),Me=Bi("slideBy"),Ne=e.viewportMax||e.fixedWidthViewportWidth,Re=Bi("arrowKeys"),Be=Bi("speed"),Fe=e.rewind,Ue=!Fe&&e.loop,je=Bi("autoHeight"),He=Bi("controls"),qe=Bi("c
2ontrolsText"),ze=Bi("nav"),We=Bi("touch"),Ve=Bi("mouseDrag"),Xe=Bi("autoplay"),Ge=Bi("autoplayTimeout"),$e=Bi("autoplayText"),Ye=Bi("autoplayHoverPause"),Ke=Bi("autoplayResetOnVisibility"),Qe=(Se=null,ke=Bi("nonce"),Ee=document.createElement("style"),Se&&Ee.setAttribute("media",Se),ke&&Ee.setAttribute("nonce",ke),document.querySelector("head").appendChild(Ee),Ee.sheet?Ee.sheet:Ee.styleSheet),Ze=e.lazyload,Je=e.lazyloadSelector,et=[],tt=Ue?(xe=function(){if(Ce||Ae&&!Ne)return me-1;var t=Ae?"fixedWidth":"items",i=[];if((Ae||e[t]<me)&&i.push(e[t]),K)for(var n in K){var r=K[n][t];r&&(Ae||r<me)&&i.push(r)}return i.length||i.push(0),Math.ceil(Ae?Ne/Math.min.apply(null,i):Math.max.apply(null,i))}(),we=Z?Math.ceil((5*xe-me)/2):4*xe-me,we=Math.max(xe,we),Ri("edgePadding")?we+1:we):0,it=Z?me+2*tt:me+tt,nt=!(!Ae&&!Ce||Ue),rt=Ae?En():null,st=!Z||!Ue,at=le?"left":"top",ot="",lt="",ct=Ae?function(){return Oe&&!Ue?me-1:Math.ceil(-rt/(Ae+Ie))}:Ce?function(){for(var e=0;e<it;e++)if(ye[e]>=-rt)return e}:function(){return Oe&&Z&&!Ue?me-1:Ue||Z?Math.max(0,it-Math.ceil(De)):it-1}
vendor: 12,509 bytes, line 2
2,ut=Li(Bi("startIndex")),dt=ut,ht=(Ai(),0),pt=Ce?null:ct(),ft=e.preventActionWhenRunning,mt=e.swipeAngle,gt=!mt||"?",vt=!1,yt=e.onInit,bt=new M,_t=" tns-slider tns-"+e.mode,Tt=de.id||(Te=window.tnsId,window.tnsId=Te?Te+1:1,"tns"+window.tnsId),xt=Bi("disable"),wt=!1,St=e.freezable,kt=!(!St||Ce)&&Zi(),Et=!1,Ct={click:Nn,keydown:function(e){e=zn(e);var t=[f.LEFT,f.RIGHT].indexOf(e.keyCode);t>=0&&(0===t?Yt.disabled||Nn(e,-1):Kt.disabled||Nn(e,1))}},At={click:function(e){if(vt){if(ft)return;Dn()}var t=Wn(e=zn(e));for(;t!==ei&&!y(t,"data-nav");)t=t.parentNode;if(y(t,"data-nav")){var i=ri=Number(b(t,"data-nav")),n=Ae||Ce?i*me/ii:i*De;Mn(Rt?i:Math.min(Math.ceil(n),me-1),e),si===i&&(di&&jn(),ri=-1)}},keydown:function(e){e=zn(e);var t=i.activeElement;if(!y(t,"data-nav"))return;var n=[f.LEFT,f.RIGHT,f.ENTER,f.SPACE].indexOf(e.keyCode),r=Number(b(t,"data-nav"));n>=0&&(0===n?r>0&&qn(Jt[r-1]):1===n?r<ii-1&&qn(Jt[r+1]):(ri=r,Mn(r,e)))}},Lt={mouseover:function(){di&&(Bn(),hi=!0)},mouseout:function(){hi&&(Rn(),hi=!1)}},It={visibilitychange:function(){i.hidden?di&&(Bn(),fi=!0):fi&&(Rn(),fi=!1)}},Pt={keydown:function(e){e=zn(e);var t=[f.LEFT,f.RIGHT].indexOf(e.keyCode);t>=0&&Nn(e,0===t?-1:1)}},Ot={touchstart:$n,touchmove:Yn,touchend:Qn,touchcancel:Qn},Dt={mousedown:$n,mousemove:Yn,mouseup:Qn,mouseleave:Qn},Mt=Ri("controls"),Nt=Ri("nav"),Rt=!!Ce||e.navAsThumbnails,Bt=Ri("autoplay"),Ft=Ri("touch"),Ut=Ri("mouseDrag"),jt="tns-slide-active",Ht="tns-slide-cloned",qt="tns-complete",zt={load:function(e){cn(Wn(e))},error:function(e){t=Wn(e),g(t,"failed"),un(t);var t}},Wt="force"===e.preventScrollOnTouch;if(Mt)var Vt,Xt,Gt=e.controlsContainer,$t=e.controlsContainer?e.controlsContainer.outerHTML:"",Yt=e.prevButton,Kt=e.nextButton,Qt=e.prevButton?e.prevButton.outerHTML:"",Zt=e.nextButton?e.nextButton.outerHTML:"";if(Nt)var Jt,ei=e.navContainer,ti=e.navContainer?e.navContainer.outerHTML:"",ii=Ce?me:Jn(),ni=0,ri=-1,si=Pi(),ai=si,oi="tns-nav-active",li="Carousel Page ",ci=" (Current Slide)";if(Bt)var ui,di,hi,pi,fi,mi="forward"===e.autoplayDirection?1:-1,gi=e.autoplayButton,vi=e.autoplayButton?e.autoplayButton.outerHTML:"",yi=["<span class='tns-visually-hidden'>"," animation</span>"];if(Ft||Ut)var bi,_i,Ti={},xi={},wi=!1,Si=le?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};Ce||Ci(xt||kt),U&&(at=U,ot="translate",j?(ot+=le?"3d(":"3d(0px, ",lt=le?", 0px, 0px)":", 0px)"):(ot+=le?"X(":"Y(",lt=")")),Z&&(de.className=de.className.replace("tns-vpfix","")),function(){Ri("gutter");ce.className="tns-outer",ue.className="tns-inner",ce.id=Tt+"-ow",ue.id=Tt+"-iw",""===de.id&&(de.id=Tt);_t+=B||Ce?" tns-subpixel":" tns-no-subpixel",_t+=R?" tns-calc":" tns-no-calc",Ce&&(_t+=" tns-autowidth");_t+=" tns-"+e.axis,de.className+=_t,Z?((ae=i.createElement("div")).id=Tt+"-mw",ae.className="tns-ovh",ce.appendChild(ae),ae.appendChild(ue)):ce.appendChild(ue);if(je){(ae||ue).className+=" tns-ah"}if(he.insertBefore(ce,de),ue.appendChild(de),p(fe,function(e,t){g(e,"tns-item"),e.id||(e.id=Tt+"-item"+t),!Z&&se&&g(e,se),T(e,{"aria-hidden":"true",tabindex:"-1"})}),tt){for(var t=i.createDocumentFragment(),n=i.createDocumentFragment(),r=tt;r--;){var s=r%me,a=fe[s].cloneNode(!0);if(g(a,Ht),x(a,"id"),n.insertBefore(a,n.firstChild),Z){var o=fe[me-1-s].cloneNode(!0);g(o,Ht),x(o,"id"),t.appendChild(o)}}de.insertBefore(t,de.firstChild),de.appendChild(n),fe=de.children}}(),function(){if(!Z)for(var t=ut,i=ut+Math.min(me,De);t<i;t++){var n=fe[t];n.style.left=100*(t-ut)/De+"%",g(n,ie),v(n,se)}le&&(B||Ce?(d(Qe,"#"+Tt+" > .tns-item","font-size:"+l.getComputedStyle(fe[0]).fontSize+";",h(Qe)),d(Qe,"#"+Tt,"font-size:0;",h(Qe))):Z&&p(fe,function(e,t){e.style.marginLeft=function(e){return R?R+"("+100*e+"% / "+it+")":100*e/it+"%"}(t)}));if(F){if(H){var r=ae&&e.autoHeight?zi(e.speed):"";d(Qe,"#"+Tt+"-mw",r,h(Qe))}r=Fi(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),d(Qe,"#"+Tt+"-iw",r,h(Qe)),Z&&(r=le&&!Ce?"width:"+Ui(e.fixedWidth,e.gutter,e.items)+";":"",H&&(r+=zi(Be)),d(Qe,"#"+Tt,r,h(Qe))),r=le&&!Ce?ji(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(r+=Hi(e.gutter)),Z||(H&&(r+=zi(Be)),z&&(r+=Wi(Be))),r&&d(Qe,"#"+Tt+" > .tns-item",r,h(Qe))}else{Z&&je&&(ae.style[H]=Be/1e3+"s"),ue.style.cssText=Fi(Le,Ie,Ae,je),Z&&le&&!Ce&&(de.style.width=Ui(Ae,Ie,De));r=le&&!Ce?ji(Ae,Ie,De):"";Ie&&(r+=Hi(Ie)),r&&d(Qe,"#"+Tt+" > .tns-item",r,h(Qe))}if(K&&F)for(var s in K){s=parseInt(s);var a=K[s],o=(r="",""),c="",u="",f="",m=Ce?null:Bi("items",s),y=Bi("fixedWidth",s),b=Bi("speed",s),_=Bi("edgePadding",s),T=Bi("autoHeight",s),x=Bi("gutter",s);H&&ae&&Bi("autoHeight",s)&&"speed"in a&&(o="#"+Tt+"-mw{"+zi(b)+"}"),("edgePadding"in a||"gutter"in a)&&(c="#"+Tt+"-iw{"+Fi(_,x,y,b,T)+"}"),Z&&le&&!Ce&&("fixedWidth"in a||"items"in a||Ae&&"gutter"in a)&&(u="width:"+Ui(y,x,m)+";"),H&&"speed"in a&&(u+=zi(b)),u&&(u="#"+Tt+"{"+u+"}"),("fixedWidth"in a||Ae&&"gutter"in a||!Z&&"items"in a)&&(f+=ji(y,x,m)),"gutter"in a&&(f+=Hi(x)),!Z&&"speed"in a&&(H&&(f+=zi(b)),z&&(f+=Wi(b))),f&&(f="#"+Tt+" > .tns-item{"+f+"}"),(r=o+c+u+f)&&Qe.insertRule("@media (min-width: "+s/16+"em) {"+r+"}",Qe.cssRules.length)}}(),Vi();var ki=Ue?Z?function(){var e=ht,t=pt;e+=Me,t-=Me,Le?(e+=1,t-=1):Ae&&(Pe+Ie)%(Ae+Ie)&&(t-=1),tt&&(ut>t?ut-=me:ut<e&&(ut+=me))}:function(){if(ut>pt)for(;ut>=ht+me;)ut-=me;else if(ut<ht)for(;ut<=pt-me;)ut+=me}:function(){ut=Math.max(ht,Math.min(pt,ut))},Ei=Z?function(){var e,t,i,n,r,s,a,o,l,c,u;Sn(de,""),H||!Be?(Ln(),Be&&E(de)||Dn()):(e=de,t=at,i=ot,n=lt,r=Cn(),s=Be,a=Dn,o=Math.min(s,10),l=r.indexOf("%")>=0?"%":"px",r=r.replace(l,""),c=Number(e.style[t].replace(i,"").replace(n,"").replace(l,"")),u=(r-c)/s*o,setTimeout(function r(){s-=o,c+=u,e.style[t]=i+c+l+n,s>0?setTimeout(r,o):a()},o)),le||Zn()}:function(){et=[];var e={};e[V]=e[X]=Dn,D(fe[dt],e),O(fe[ut],e),In(dt,ie,ne,!0),In(ut,se,ie),V&&X&&Be&&E(de)||Dn()};return{version:"2.9.4",getInfo:tr,events:bt,goTo:Mn,play:function(){Xe&&!di&&(Un(),pi=!1)},pause:function(){di&&(jn(),pi=!0)},isOn:ve,updateSliderHeight:gn,refresh:Vi,destroy:function(){if(Qe.disabled=!0,Qe.ownerNode&&Qe.ownerNode.remove(),D(l,{resize:Ki}),Re&&D(i,Pt),Gt&&D(Gt,Ct),ei&&D(ei,At),D(de,Lt),D(de,It),gi&&D(gi,{click:Hn}),Xe&&clearInterval(ui),Z&&V){var t={};t[V]=Dn,D(de,t)}We&&D(de,Ot),Ve&&D(de,Dt);var n=[pe,$t,Qt,Zt,ti,vi];for(var r in $.forEach(function(t,i){var r="container"===t?ce:e[t];if("object"==typeof r&&r){var s=!!r.previousElementSibling&&r.previousElementSibling,a=r.parentNode;r.outerHTML=n[i],e[t]=s?s.nextElementSibling:a.firstElementChild}}),$=ie=ne=re=se=le=ce=ue=de=he=pe=fe=me=oe=ge=Ce=Ae=Le=Ie=Pe=De=Me=Ne=Re=Be=Fe=Ue=je=Qe=Ze=ye=et=tt=it=nt=rt=st=at=ot=lt=ct=ut=dt=ht=pt=mt=gt=vt=yt=bt=_t=Tt=xt=wt=St=kt=Et=Ct=At=Lt=It=Pt=Ot=Dt=Mt=Nt=Rt=Bt=Ft=Ut=jt=qt=zt=be=He=qe=Gt=$t=Yt=Kt=Vt=Xt=ze=ei=ti=Jt=ii=ni=ri=si=ai=oi=li=ci=Xe=Ge=mi=$e=Ye=gi=vi=Ke=yi=ui=di=hi=pi=fi=Ti=xi=bi=wi=_i=Si=We=Ve=null,this)"rebuild"!==r&&(this[r]=null);ve=!1},rebuild:function(){return N(r(e,Y))}}}function Ci(e){e&&(He=ze=We=Ve=Re=Xe=Ye=Ke=!1)}function Ai(){for(var e=Z?ut-tt:ut;e<0;)e+=me;return e%me+1}function Li(e){return e=e?Math.max(0,Math.min(Ue?me-1:me-De,e)):0,Z?e+tt:e}function Ii(e){for(null==e&&(e=ut),Z&&(e-=tt);e<0;)e+=me;return Math.floor(e%me)}function Pi(){var e,t=Ii();return e=Rt?t:Ae||Ce?Math.ceil((t+1)*ii/me-1):Math.floor(t/De),!Ue&&Z&&ut===pt&&(e=ii-1),e}function Oi(){return l.innerWidth||i.documentElement.clientWidth||i.body.clientWidth}function Di(e){return"top"===e?"afterbegin":"beforeend"}function Mi(e){if(null!=e){var t,n,r=i.createElement("div");return e.appendChild(r),n=(t=r.getBoundingClientRect()).right-t.left,r.remove(),n||Mi(e.parentNode)}}function Ni(){var e=Le?2*Le-Ie:0;return Mi(he)-e}function Ri(t){if(e[t])return!0;if(K)for(var i in K)if(K[i][t])return!0;return!1}function Bi(t,i){if(null==i&&(i=ge),"items"===t&&Ae)return Math.floor((Pe+Ie)/(Ae+Ie))||1;var n=e[t];if(K)for(var r in K)i>=parseInt(r)&&t in K[r]&&(n=K[r][t]);return"slideBy"===t&&"page"===n&&(n=Bi("items")),Z||"slideBy"!==t&&"items"!==t||(n=Math.floor(n)),n}function Fi(e,t,i,n,r){var s="";if(void 0!==e){var a=e;t&&(a-=t),s=le?"margin: 0 "+a+"px 0 "+e+"px;":"margin: "+e+"px 0 "+a+"px 0;"}else if(t&&!i){var o="-"+t+"px";s="margin: 0 "+(le?o+" 0 0":"0 "+o+" 0")+";"}return!Z&&r&&H&&n&&(s+=zi(n)),s}function Ui(e,t,i){return e?(e+t)*it+"px":R?R+"("+100*it+"% / "+i+")":100*it/i+"%"}function ji(e,t,i){var n;if(e)n=e+t+"px";else{Z||(i=Math.floor(i));var r=Z?it:i;n=R?R+"(100% / "+r+")":100/r+"%"}return n="width:"+n,"inner"!==Q?n+";":n+" !important;"}function Hi(e){var t="";!1!==e&&(t=(le?"padding-":"margin-")+(le?"right":"bottom")+": "+e+"px;");return t}function qi(e,t){var i=e.substring(0,e.length-t).toLowerCase();return i&&(i="-"+i+"-"),i}function zi(e){return qi(H,18)+"transition-duration:"+e/1e3+"s;"}function Wi(e){return qi(z,17)+"animation-duration:"+e/1e3+"s;"}function Vi(){if(Ri("autoHeight")||Ce||!le){var e=de.querySelectorAll("img");p(e,function(e){var t=e.src;Ze||(t&&t.indexOf("data:image")<0?(e.src="",O(e,zt),g(e,"loading"),e.src=t):cn(e))}),t(function(){pn(w(e),function(){be=!0})}),Ri("autoHeight")&&(e=dn(ut,Math.min(ut+De-1,it-1))),Ze?Xi():t(function(){pn(w(e),Xi)})}else Z&&An(),$i(),Yi()}function Xi(){if(Ce&&me>1){var e=Ue?ut:me-1;!function t(){var i=fe[e].getBoundingClientRect().left,n=fe[e-1].getBoundingClientRect().right;Math.abs(i-n)<=1?Gi():setTimeout(function(){t()},16)}()}else Gi()}function Gi(){le&&!Ce||(vn(),Ce?(rt=En(),St&&(kt=Zi()),pt=ct(),Ci(xt||kt)):Zn()),Z&&An(),$i(),Yi()}function $i(){if(yn(),ce.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+an()+"</span> of "+me+"</div>"),_e=ce.querySelector(".tns-liveregion .current"),Bt){var t=Xe?"stop":"start";gi?T(gi,{"data-action":t}):e.autoplayButtonOutput&&(ce.insertAdjacentHTML(Di(e.autoplayPosition),'<button type="button" data-action="'+t+'">'+yi[0]+t+yi[1]+$e[0]+"</button>"),gi=ce.querySelector("[data-action]")),gi&&O(gi,{click:Hn}),Xe&&(Un(),Ye&&O(de,Lt),Ke&&O(de,It))}if(Nt){if(ei)T(ei,{"aria-label":"Carousel Pagination"}),p(Jt=ei.children,function(e,t){T(e,{"data-nav":t,tabindex:"-1","aria-label":li+(t+1),"aria-controls":Tt})});else{for(var i="",n=Rt?"":'style="display:none"',r=0;r<me;r++)i+='<button type="button" data-nav="'+r+'" tabindex="-1" aria-controls="'+Tt+'" '+n+' aria-label="'+li+(r+1)+'"></button>';i='<div class="tns-nav" aria-label="Carousel Pagination">'+i+"</div>",ce.insertAdjacentHTML(Di(e.navPosition),i),ei=ce.querySelector(".tns-nav"),Jt=ei.children}if(er(),H){var s=H.substring(0,H.length-18).toLowerCase(),a="transition: all "+Be/1e3+"s";s&&(a="-"+s+"-"+a),d(Qe,"[aria-controls^="+Tt+"-item]",a,h(Qe))}T(Jt[si],{"aria-label":li+(si+1)+ci}),x(Jt[si],"tabindex"),g(Jt[si],oi),O(ei,At)}Mt&&(Gt||Yt&&Kt||(ce.insertAdjacentHTML(Di(e.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+Tt+'">'+qe[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+Tt+'">'+qe[1]+"</button></div>"),Gt=ce.querySelector(".tns-controls")),Yt&&Kt||(Yt=Gt.children[0],Kt=Gt.children[1]),e.controlsContainer&&T(Gt,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&T([Yt,Kt],{"aria-controls":Tt,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(T(Yt,{"data-controls":"prev"}),T(Kt,{"data-controls":"next"})),Vt=_n(Yt),Xt=_n(Kt),wn(),Gt?O(Gt,Ct):(O(Yt,Ct),O(Kt,Ct))),en()}function Yi(){if(Z&&V){var t={};t[V]=Dn,O(de,t)}We&&O(de,Ot,e.preventScrollOnTouch),Ve&&O(de,Dt),Re&&O(i,Pt),"inner"===Q?bt.on("outerResized",function(){Qi(),bt.emit("innerLoaded",tr())}):(K||Ae||Ce||je||!le)&&O(l,{resize:Ki}),je&&("outer"===Q?bt.on("innerLoaded",hn):xt||hn()),ln(),xt?rn():kt&&nn(),bt.on("indexChanged",fn),"inner"===Q&&bt.emit("innerLoaded",tr()),"function"==typeof yt&&yt(tr()),ve=!0}function Ki(e){t(function(){Qi(zn(e))})}function Qi(t){if(ve){"outer"===Q&&bt.emit("outerResized",tr(t)),ge=Oi();var n,r=oe,s=!1;K&&(Ji(),(n=r!==oe)&&bt.emit("newBreakpointStart",tr(t)));var a,o,l=De,c=xt,u=kt,f=Re,m=He,y=ze,b=We,_=Ve,T=Xe,x=Ye,w=Ke,E=ut;if(n){var C=Ae,A=je,L=qe,I=Oe,P=$e;if(!F)var M=Ie,N=Le}if(Re=Bi("arrowKeys"),He=Bi("controls"),ze=Bi("nav"),We=Bi("touch"),Oe=Bi("center"),Ve=Bi("mouseDrag"),Xe=Bi("autoplay"),Ye=Bi("autoplayHoverPause"),Ke=Bi("autoplayResetOnVisibility"),n&&(xt=Bi("disable"),Ae=Bi("fixedWidth"),Be=Bi("speed"),je=Bi("autoHeight"),qe=Bi("c
2ontrolsText"),$e=Bi("autoplayText"),Ge=Bi("autoplayTimeout"),F||(Le=Bi("edgePadding"),Ie=Bi("gutter"))),Ci(xt),Pe=Ni(),le&&!Ce||xt||(vn(),le||(Zn(),s=!0)),(Ae||Ce)&&(rt=En(),pt=ct()),(n||Ae)&&(De=Bi("items"),Me=Bi("slideBy"),(o=De!==l)&&(Ae||Ce||(pt=ct()),ki())),n&&xt!==c&&(xt?rn():function(){if(!wt)return;if(Qe.disabled=!1,de.className+=_t,An(),Ue)for(var e=tt;e--;)Z&&k(fe[e]),k(fe[it-e-1]);if(!Z)for(var t=ut,i=ut+me;t<i;t++){var n=fe[t],r=t<ut+De?ie:se;n.style.left=100*(t-ut)/De+"%",g(n,r)}tn(),wt=!1}()),St&&(n||Ae||Ce)&&(kt=Zi())!==u&&(kt?(Ln(Cn(Li(0))),nn()):(!function(){if(!Et)return;Le&&F&&(ue.style.margin="");if(tt)for(var e="tns-transparent",t=tt;t--;)Z&&v(fe[t],e),v(fe[it-t-1],e);tn(),Et=!1}(),s=!0)),Ci(xt||kt),Xe||(Ye=Ke=!1),Re!==f&&(Re?O(i,Pt):D(i,Pt)),He!==m&&(He?Gt?k(Gt):(Yt&&k(Yt),Kt&&k(Kt)):Gt?S(Gt):(Yt&&S(Yt),Kt&&S(Kt))),ze!==y&&(ze?(k(ei),er()):S(ei)),We!==b&&(We?O(de,Ot,e.preventScrollOnTouch):D(de,Ot)),Ve!==_&&(Ve?O(de,Dt):D(de,Dt)),Xe!==T&&(Xe?(gi&&k(gi),di||pi||Un()):(gi&&S(gi),di&&jn())),Ye!==x&&(Ye?O(de,Lt):D(de,Lt)),Ke!==w&&(Ke?O(i,It):D(i,It)),n){if(Ae===C&&Oe===I||(s=!0),je!==A&&(je||(ue.style.height="")),He&&qe!==L&&(Yt.innerHTML=qe[0],Kt.innerHTML=qe[1]),gi&&$e!==P){var R=Xe?1:0,B=gi.innerHTML,U=B.length-P[R].length;B.substring(U)===P[R]&&(gi.innerHTML=B.substring(0,U)+$e[R])}}else Oe&&(Ae||Ce)&&(s=!0);if((o||Ae&&!Ce)&&(ii=Jn(),er()),(a=ut!==E)?(bt.emit("indexChanged",tr()),s=!0):o?a||fn():(Ae||Ce)&&(ln(),yn(),sn()),o&&!Z&&function(){for(var e=ut+Math.min(me,De),t=it;t--;){var i=fe[t];t>=ut&&t<e?(g(i,"tns-moving"),i.style.left=100*(t-ut)/De+"%",g(i,ie),v(i,se)):i.style.left&&(i.style.left="",g(i,se),v(i,ie)),v(i,ne)}setTimeout(function(){p(fe,function(e){v(e,"tns-moving")})},300)}(),!xt&&!kt){if(n&&!F&&(Le===N&&Ie===M||(ue.style.cssText=Fi(Le,Ie,Ae,Be,je)),le)){Z&&(de.style.width=Ui(Ae,Ie,De));var j=ji(Ae,Ie,De)+Hi(Ie);!function(e,t){"deleteRule"in e?e.deleteRule(t):e.removeRule(t)}(Qe,h(Qe)-1),d(Qe,"#"+Tt+" > .tns-item",j,h(Qe))}je&&hn(),s&&(An(),dt=ut)}n&&bt.emit("newBreakpointEnd",tr(t))}}function Zi(){if(!Ae&&!Ce)return me<=(Oe?De-(De-1)/2:De);var e=Ae?(Ae+Ie)*me:ye[me],t=Le?Pe+2*Le:Pe+Ie;return Oe&&(t-=Ae?(Pe-Ae)/2:(Pe-(ye[ut+1]-ye[ut]-Ie))/2),e<=t}function Ji(){for(var e in oe=0,K)e=parseInt(e),ge>=e&&(oe=e)}function en(){!Xe&&gi&&S(gi),!ze&&ei&&S(ei),He||(Gt?S(Gt):(Yt&&S(Yt),Kt&&S(Kt)))}function tn(){Xe&&gi&&k(gi),ze&&ei&&k(ei),He&&(Gt?k(Gt):(Yt&&k(Yt),Kt&&k(Kt)))}function nn(){if(!Et){if(Le&&(ue.style.margin="0px"),tt)for(var e="tns-transparent",t=tt;t--;)Z&&g(fe[t],e),g(fe[it-t-1],e);en(),Et=!0}}function rn(){if(!wt){if(Qe.disabled=!0,de.className=de.className.replace(_t.substring(1),""),x(de,["style"]),Ue)for(var e=tt;e--;)Z&&S(fe[e]),S(fe[it-e-1]);if(le&&Z||x(ue,["style"]),!Z)for(var t=ut,i=ut+me;t<i;t++){var n=fe[t];x(n,["style"]),v(n,ie),v(n,se)}en(),wt=!0}}function sn(){var e=an();_e.innerHTML!==e&&(_e.innerHTML=e)}function an(){var e=on(),t=e[0]+1,i=e[1]+1;return t===i?t+"":t+" to "+i}function on(e){null==e&&(e=Cn());var t,i,n,r=ut;if(Oe||Le?(Ce||Ae)&&(i=-(parseFloat(e)+Le),n=i+Pe+2*Le):Ce&&(i=ye[ut],n=i+Pe),Ce)ye.forEach(function(e,s){s<it&&((Oe||Le)&&e<=i+.5&&(r=s),n-e>=.5&&(t=s))});else{if(Ae){var s=Ae+Ie;Oe||Le?(r=Math.floor(i/s),t=Math.ceil(n/s-1)):t=r+Math.ceil(Pe/s)-1}else if(Oe||Le){var a=De-1;if(Oe?(r-=a/2,t=ut+a/2):t=ut+a,Le){var o=Le*De/Pe;r-=o,t+=o}r=Math.floor(r),t=Math.ceil(t)}else t=r+De-1;r=Math.max(r,0),t=Math.min(t,it-1)}return[r,t]}function ln(){if(Ze&&!xt){var e=on();e.push(Je),dn.apply(null,e).forEach(function(e){if(!m(e,qt)){var t={};t[V]=function(e){e.stopPropagation()},O(e,t),O(e,zt),e.src=b(e,"data-src");var i=b(e,"data-srcset");i&&(e.srcset=i),g(e,"loading")}})}}function cn(e){g(e,"loaded"),un(e)}function un(e){g(e,qt),v(e,"loading"),D(e,zt)}function dn(e,t,i){var n=[];for(i||(i="img");e<=t;)p(fe[e].querySelectorAll(i),function(e){n.push(e)}),e++;return n}function hn(){var e=dn.apply(null,on());t(function(){pn(e,gn)})}function pn(e,i){return be?i():(e.forEach(function(t,i){!Ze&&t.complete&&un(t),m(t,qt)&&e.splice(i,1)}),e.length?void t(function(){pn(e,i)}):i())}function fn(){ln(),yn(),sn(),wn(),function(){if(ze&&(si=ri>=0?ri:Pi(),ri=-1,si!==ai)){var e=Jt[ai],t=Jt[si];T(e,{tabindex:"-1","aria-label":li+(ai+1)}),v(e,oi),T(t,{"aria-label":li+(si+1)+ci}),x(t,"tabindex"),g(t,oi),ai=si}}()}function mn(e,t){for(var i=[],n=e,r=Math.min(e+t,it);n<r;n++)i.push(fe[n].offsetHeight);return Math.max.apply(null,i)}function gn(){var e=je?mn(ut,De):mn(tt,me),t=ae||ue;t.style.height!==e&&(t.style.height=e+"px")}function vn(){ye=[0];var e=le?"left":"top",t=le?"right":"bottom",i=fe[0].getBoundingClientRect()[e];
vendor: 4,296 bytes, line 2
2p(fe,function(n,r){r&&ye.push(n.getBoundingClientRect()[e]-i),r===it-1&&ye.push(n.getBoundingClientRect()[t]-i)})}function yn(){var e=on(),t=e[0],i=e[1];p(fe,function(e,n){n>=t&&n<=i?y(e,"aria-hidden")&&(x(e,["aria-hidden","tabindex"]),g(e,jt)):y(e,"aria-hidden")||(T(e,{"aria-hidden":"true",tabindex:"-1"}),v(e,jt))})}function bn(e){return e.nodeName.toLowerCase()}function _n(e){return"button"===bn(e)}function Tn(e){return"true"===e.getAttribute("aria-disabled")}function xn(e,t,i){e?t.disabled=i:t.setAttribute("aria-disabled",i.toString())}function wn(){if(He&&!Fe&&!Ue){var e=Vt?Yt.disabled:Tn(Yt),t=Xt?Kt.disabled:Tn(Kt),i=ut<=ht,n=!Fe&&ut>=pt;i&&!e&&xn(Vt,Yt,!0),!i&&e&&xn(Vt,Yt,!1),n&&!t&&xn(Xt,Kt,!0),!n&&t&&xn(Xt,Kt,!1)}}function Sn(e,t){H&&(e.style[H]=t)}function kn(e){return null==e&&(e=ut),Ce?(Pe-(Le?Ie:0)-(ye[e+1]-ye[e]-Ie))/2:Ae?(Pe-Ae)/2:(De-1)/2}function En(){var e=Pe+(Le?Ie:0)-(Ae?(Ae+Ie)*it:ye[it]);return Oe&&!Ue&&(e=Ae?-(Ae+Ie)*(it-1)-kn():kn(it-1)-ye[it-1]),e>0&&(e=0),e}function Cn(e){var t;if(null==e&&(e=ut),le&&!Ce)if(Ae)t=-(Ae+Ie)*e,Oe&&(t+=kn());else{var i=U?it:De;Oe&&(e-=kn()),t=100*-e/i}else t=-ye[e],Oe&&Ce&&(t+=kn());return nt&&(t=Math.max(t,rt)),t+=!le||Ce||Ae?"px":"%"}function An(e){Sn(de,"0s"),Ln(e)}function Ln(e){null==e&&(e=Cn()),de.style[at]=ot+e+lt}function In(e,t,i,n){var r=e+De;Ue||(r=Math.min(r,it));for(var s=e;s<r;s++){var a=fe[s];n||(a.style.left=100*(s-ut)/De+"%"),re&&q&&(a.style[q]=a.style[W]=re*(s-e)/1e3+"s"),v(a,t),g(a,i),n&&et.push(a)}}function Pn(e,t){st&&ki(),(ut!==dt||t)&&(bt.emit("indexChanged",tr()),bt.emit("transitionStart",tr()),je&&hn(),di&&e&&["click","keydown"].indexOf(e.type)>=0&&jn(),vt=!0,Ei())}function On(e){return e.toLowerCase().replace(/-/g,"")}function Dn(e){if(Z||vt){if(bt.emit("transitionEnd",tr(e)),!Z&&et.length>0)for(var t=0;t<et.length;t++){var i=et[t];i.style.left="",W&&q&&(i.style[W]="",i.style[q]=""),v(i,ne),g(i,se)}if(!e||!Z&&e.target.parentNode===de||e.target===de&&On(e.propertyName)===On(at)){if(!st){var n=ut;ki(),ut!==n&&(bt.emit("indexChanged",tr()),An())}"inner"===Q&&bt.emit("innerLoaded",tr()),vt=!1,dt=ut}}}function Mn(e,t){if(!kt)if("prev"===e)Nn(t,-1);else if("next"===e)Nn(t,1);else{if(vt){if(ft)return;Dn()}var i=Ii(),n=0;if("first"===e?n=-i:"last"===e?n=Z?me-De-i:me-1-i:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(me-1,e))),n=e-i)),!Z&&n&&Math.abs(n)<De){var r=n>0?1:-1;n+=ut+n-me>=ht?me*r:2*me*r*-1}ut+=n,Z&&Ue&&(ut<ht&&(ut+=me),ut>pt&&(ut-=me)),Ii(ut)!==Ii(dt)&&Pn(t)}}function Nn(e,t){if(vt){if(ft)return;Dn()}var i;if(!t){for(var n=Wn(e=zn(e));n!==Gt&&[Yt,Kt].indexOf(n)<0;)n=n.parentNode;var r=[Yt,Kt].indexOf(n);r>=0&&(i=!0,t=0===r?-1:1)}if(Fe){if(ut===ht&&-1===t)return void Mn("last",e);if(ut===pt&&1===t)return void Mn("first",e)}t&&(ut+=Me*t,Ce&&(ut=Math.floor(ut)),Pn(i||e&&"keydown"===e.type?e:null))}function Rn(){ui=setInterval(function(){Nn(null,mi)},Ge),di=!0}function Bn(){clearInterval(ui),di=!1}function Fn(e,t){T(gi,{"data-action":e}),gi.innerHTML=yi[0]+e+yi[1]+t}function Un(){Rn(),gi&&Fn("stop",$e[1])}function jn(){Bn(),gi&&Fn("start",$e[0])}function Hn(){di?(jn(),pi=!0):(Un(),pi=!1)}function qn(e){e.focus()}function zn(e){return Vn(e=e||l.event)?e.changedTouches[0]:e}function Wn(e){return e.target||l.event.srcElement}function Vn(e){return e.type.indexOf("touch")>=0}function Xn(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Gn(){return s=xi.y-Ti.y,a=xi.x-Ti.x,t=Math.atan2(s,a)*(180/Math.PI),i=mt,n=!1,(r=Math.abs(90-Math.abs(t)))>=90-i?n="horizontal":r<=i&&(n="vertical"),n===e.axis;var t,i,n,r,s,a}function $n(e){if(vt){if(ft)return;Dn()}Xe&&di&&Bn(),wi=!0,_i&&(n(_i),_i=null);var t=zn(e);bt.emit(Vn(e)?"touchStart":"dragStart",tr(e)),!Vn(e)&&["img","a"].indexOf(bn(Wn(e)))>=0&&Xn(e),xi.x=Ti.x=t.clientX,xi.y=Ti.y=t.clientY,Z&&(bi=parseFloat(de.style[at].replace(ot,"")),Sn(de,"0s"))}function Yn(e){if(wi){var i=zn(e);xi.x=i.clientX,xi.y=i.clientY,Z?_i||(_i=t(function(){Kn(e)})):("?"===gt&&(gt=Gn()),gt&&(Wt=!0)),("boolean"!=typeof e.cancelable||e.cancelable)&&Wt&&e.preventDefault()}}function Kn(e){if(gt){if(n(_i),wi&&(_i=t(function(){Kn(e)})),"?"===gt&&(gt=Gn()),gt){!Wt&&Vn(e)&&(Wt=!0);try{e.type&&bt.emit(Vn(e)?"touchMove":"dragMove",tr(e))}catch(e){}var i=bi,r=Si(xi,Ti);if(!le||Ae||Ce)i+=r,i+="px";
2else i+=U?r*De*100/((Pe+Ie)*it):100*r/(Pe+Ie),i+="%";de.style[at]=ot+i+lt}}else wi=!1}function Qn(i){if(wi){_i&&(n(_i),_i=null),Z&&Sn(de,""),wi=!1;var r=zn(i);xi.x=r.clientX,xi.y=r.clientY;var s=Si(xi,Ti);if(Math.abs(s)){if(!Vn(i)){var a=Wn(i);O(a,{click:function e(t){Xn(t),D(a,{click:e})}})}Z?_i=t(function(){if(le&&!Ce){var e=-s*De/(Pe+Ie);e=s>0?Math.floor(e):Math.ceil(e),ut+=e}else{var t=-(bi+s);if(t<=0)ut=ht;else if(t>=ye[it-1])ut=pt;else for(var n=0;n<it&&t>=ye[n];)ut=n,t>ye[n]&&s<0&&(ut+=1),n++}Pn(i,s),bt.emit(Vn(i)?"touchEnd":"dragEnd",tr(i))}):gt&&Nn(i,s>0?-1:1)}}"auto"===e.preventScrollOnTouch&&(Wt=!1),mt&&(gt="?"),Xe&&!di&&Rn()}function Zn(){(ae||ue).style.height=ye[ut+De]-ye[ut]+"px"}function Jn(){var e=Ae?(Ae+Ie)*me/Pe:me/De;return Math.min(Math.ceil(e),me)}function er(){if(ze&&!Rt&&ii!==ni){var e=ni,t=ii,i=k;for(ni>ii&&(e=ii,t=ni,i=S);e<t;)i(Jt[e]),e++;ni=ii}}function tr(e){return{container:de,slideItems:fe,navContainer:ei,navItems:Jt,controlsContainer:Gt,hasControls:Mt,prevButton:Yt,nextButton:Kt,items:De,slideBy:Me,cloneCount:tt,slideCount:me,slideCountNew:it,index:ut,indexCached:dt,displayIndex:Ai(),navCurrentIndex:si,navCurrentIndexCached:ai,pages:ii,pagesCached:ni,sheet:Qe,isOn:ve,event:e||{}}}G&&console.warn("No slides found in",e.container)},R=__webpack_require__(4796);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function F(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?U(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function j(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function H(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?j(Object(i),!0).forEach(function(t){q(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function q(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var z={arrowKeys:!0,slideBy:1,autoplayButtonOutput:!1,loop:!1,gutter:20,mouseDrag:!0,lazyload:!0,responsive:{768:{items:2.5},320:{items:1,fixedWidth:!1}}};function W(e,t){var i=e.getBoundingClientRect(),n=t.getBoundingClientRect();return Math.round(i.left)>=Math.round(n.left)-5&&Math.round(i.left)<=Math.round(n.right)-5}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".op-carousel__list").forEach(function(e,t){var i=e.id||e.dataset.name,n=H(H(H({},z),{container:"#"+i,navContainer:"#op-carousel-nav__"+i,prevButton:".op-carousel-prev__"+i,nextButton:".op-carousel-next__"+i}),JSON.parse(e.getAttribute("data-tiny-slider")||"{}")),r=N(n);function s(){var e=r.getInfo(),t=e.pages;if(Array.from(r.getInfo().navContainer.children).forEach(function(i,n){R(window).width()>768?(i.style.display="block",n>=t&&(i.style.display="none")):t/e.slideBy>4&&(n>
2=4&&e.index>=e.indexCached&&i.classList.add("d-none"),n>=t&&(i.style.display="none"))}),R(window).width()<768&&t/e.slideBy>4){if(e.index>=4&&e.index>=e.indexCached){for(var i=0;i<4;i++)document.querySelector('[data-nav="'.concat(e.index-i,'"]')).style.display="block",document.querySelector('[data-nav="'.concat(e.index-i,'"]')).classList.remove("d-none");document.querySelector('[data-nav="'.concat(e.index-4,'"]')).classList.add("d-none")}if(e.index<t-4&&e.index<e.indexCached){for(var n=0;n<4;n++)document.querySelector('[data-nav="'.concat(e.index+n,'"]')).style.display="block";document.querySelector('[data-nav="'.concat(e.index+4,'"]')).classList.add("d-none")}document.querySelector('[data-nav="'.concat(e.index,'"]')).style.display="block",document.querySelector('[data-nav="'.concat(e.index,'"]')).classList.remove("d-none")}}s(),r.events.on("indexChanged",s);var a=e.closest(".op-carousel").querySelector(".op-carousel-controls"),o=a.querySelector(".op-carousel-nav");document.querySelector(".op-carousel-prev__"+i).onclick=function(){var e=parseInt(o.querySelector(".tns-nav-active").getAttribute("data-nav"));r.goTo(e)};var l=R(e),c=R().add(l.find("button, input, select, textarea")).add(l.find("[href]")).add(l.find("[tabindex]:not([tabindex='-1'])"));l.keydown(function(e){if("tab"===e.key.toLowerCase()){var t=R(e.target);if(e.shiftKey){if(!t.is(c.first())){var i=c[c.index(e.target)-1],n=W(i,i.closest(".op-carousel"));i&&!n&&(e.preventDefault(),l.closest(".op-carousel").find(".tns-nav-active").prev().find("button").focus())}}else if(!t.is(c.last())){var r=c[c.index(e.target)+1],s=W(r,r.closest(".op-carousel"));r&&!s&&(e.preventDefault(),l.closest(".op-carousel").find(".tns-nav-active").next().find("button").focus())}}});var u=R(a).find(".op-carousel-nav").keydown(function(e){if("tab"===e.key.toLowerCase()){var t=R().add(u.find("button")),i=R(e.target);if(e.shiftKey&&i.is(t.first())){var n=F(c).findLast(function(e){return W(e,e.closest(".op-carousel"))});e.preventDefault(),null==n||n.focus()}}})})}),R(document).ready(function(){R(".op-carousel").each(function(){R(this).find(".op-carousel__list .op-carousel__item").each(function(){R(this).removeAttr("aria-hidden")})})});__webpack_require__(9056),__webpack_require__(6086),__webpack_require__(8423);var V=function(){return V=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},V.apply(this,arguments)},X=function(){function e(e,t,i){var n=this;this.endVal=t,this.options=i,this.version="2.10.1",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",autoAnimate:!1,autoAnimateDelay:200,autoAnimateOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){n.startTime||(n.startTime=e);var t=e-n.startTime;n.remaining=n.duration-t,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(t,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(t,n.startVal,n.endVal-n.startVal,n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(t/n.duration);var i=n.countDown?n.frameVal<n.endVal:n.frameVal>n.endVal;n.frameVal=i?n.endVal:n.frameVal,n.frameVal=Number(n.frameVal.toFixed(n.options.decimalPlaces)),n.printValue(n.frameVal),t<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.options.onCompleteCallback&&n.options.onCompleteCallback()},this.formatNumber=function(e){var t,i,r,s,a=e<0?"-":"";t=Math.abs(e).toFixed(n.options.decimalPlaces);var o=(t+="").split(".");if(i=o[0],r=o.length>1?n.options.decimal+o[1]:"",n.options.useGrouping){s="";for(var l=3,c=0,u=0,d=i.length;u<d;++u)n.options.useIndianSeparators&&4===u&&(l=2,c=1),0!==u&&c%l==0&&(s=n.options.separator+s),c++,s=i[d-u-1]+s;i=s}return n.options.numerals&&n.options.numerals.length&&(i=i.replace(/[0-9]/g,function(e){return n.options.numerals[+e]}),r=r.replace(/[0-9]/g,function(e){return n.options.numerals[+e]})),a+n.options.prefix+i+r+n.options.suffix},this.easeOutExpo=function(e,t,i,n){return i*(1-Math.pow(2,-10*e/n))*1024/1023+t},this.options=V(V({},this.defaults),i),this.options.enableScrollSpy&&(this.options.autoAnimate=!0),void 0!==this.options.scrollSpyDelay&&(this.options.autoAnimateDelay=this.options.scrollSpyDelay),this.options.scrollSpyOnce&&(this.options.autoAnimateOnce=!0),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof e?document.getElementById(e):e,t=null==t?this.parse(this.el.
2innerHTML):t,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(t),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.autoAnimate&&(this.error||"undefined"==typeof IntersectionObserver?this.error?console.error(this.error,e):console.error("IntersectionObserver is not supported by this browser"):this.setupObserver())}return e.prototype.setupObserver=function(){var t=this,i=e.observedElements.get(this.el);i&&i.unobserve(),e.observedElements.set(this.el,this),this.observer=new IntersectionObserver(function(e){for(var i=0,n=e;i<n.length;i++){var r=n[i];r.isIntersecting&&t.paused&&!t.once?(t.paused=!1,t.autoAnimateTimeout=setTimeout(function(){return t.start()},t.options.autoAnimateDelay),t.options.autoAnimateOnce&&(t.once=!0,t.observer.disconnect())):r.isIntersecting||t.paused||(clearTimeout(t.autoAnimateTimeout),t.reset())}},{threshold:0}),this.observer.observe(this.el)},e.prototype.unobserve=function(){var t;clearTimeout(this.autoAnimateTimeout),null===(t=this.observer)||void 0===t||t.disconnect(),e.observedElements.delete(this.el)},e.prototype.onDestroy=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.unobserve(),this.options.onCompleteCallback=null,this.options.onStartCallback=null},e.prototype.determineDirectionAndSmartEasing=function(){var e=null!==this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var i=this.countDown?1:-1;this.endVal=e+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){if(this.paused)this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count);else{cancelAnimationFrame(this.rAF);var e=null!==this.finalEndVal?this.duration+this.remaining:this.remaining;this.remaining=e}this.paused=!this.paused},e.prototype.reset=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.once=!1,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var i=this.formattingFn(e);(null===(t=this.options.plugin)||void 0===t?void 0:t.render)?this.options.plugin.render(this.el,i):"INPUT"===this.el.tagName?this.el.value=i:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=i:this.el.innerHTML=i}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e.prototype.parse=function(e){var t=function(e){return e.replace(/([.,'Â ])/g,"\\$1")},i=t(this.options.separator),n=t(this.options.decimal),r=e.replace(new RegExp(i,"g"),"").replace(new RegExp(n,"g"),".");return parseFloat(r)},e.observedElements=new WeakMap,e}(),G=(__webpack_require__(9406),__webpack_require__(4796));document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".targetCounter"),t=document.querySelectorAll(".op-text-card-metrics"),i="fr"===document.querySelector("html").getAttribute("lang");function n(){e.forEach(function(e){var t=e.id,n=Number(e.dataset.start),r=Number(e.dataset.end),s=Number(e.dataset.deciplaces),a=e.dataset.separator,o=e.dataset.decimal,l=e.dataset.usegrouping,c=e.dataset.prefix||"",u=e.dataset.suffix||"";i?new X(t,r,{startVal:n,decimalPlaces:"true"==o?s:"",separator:"true"==a?" ":"",decimal:"true"==o?",":"",useGrouping:l,prefix:c,suffix:u}).start():new X(t,r,{startVal:n,decimalPlaces:"true"==o?s:"",separator:"true"==a?",":"",decimal:"true"==o?".":"",useGrouping:l,prefix:c,suffix:u}).start()})}t.forEach(function(e){G(window).width()<768?new Waypoint({element:e,handler:function(){n(),this.destroy()},offset:"80%"}):new Waypoint({element:e,handler:function(){n(),this.destroy()},offset:"bottom-in-view"})})});__webpack_require__(2068),__webpack_require__(8950),__webpack_require__(3205),__webpack_require__(8290),__webpack_require__(354),__webpack_require__(2641);var $=__webpack_require__(4796),Y=document.querySelectorAll(".op-header__menu-item-level-one"),K=document.querySelectorAll(".op-header__menu-item-level-two");new SV.HoverIntent(Y,{onEnter:function(e){e.classList.add("op-header--show"),$(e).parents(".op-header.op-header--otpp").length>0&&$(e).find(".op-header__sub-menu").css("top",$(".op-header").height())},onExit:function(e){e.classList.remove("op-header--show")},exitDelay:250}),new SV.HoverIntent(K,{onEnter:function(e){if(e.classList.add("op-header--show"),$(e).parents(".op-header.op-header--otpp").length>0){var t=$(e).find(".op-header__level-three").height()+20,i=$(e).closest(".op-header__level-two").height()+20;$(e).closest(".op-header__sub-menu").css("height",(t>i?t:i)+"px")}},onExit:function(e){e.classList.remove("op-header--show")},exitDelay:250}),__webpack_require__(724),__webpack_require__(5979),__webpack_require__(2678),__webpack_require__(4926),__webpack_require__(3387),__webpack_require__(6960),__webpack_require__(4325),__webpack_require__(9059),__webpack_require__(7944),__webpack_require__(3432),__webpack_require__(4362),__webpack_require__(108),__webpack_require__(6908),__webpack_require__(5409),__webpack_require__(1134),__webpack_require__(4121),__webpack_require__(6273),__webpack_require__(2926),__webpack_require__(1318),__webpack_require__(7244),__webpack_require__(7274),__webpack_require__(1097),__webpack_require__(47
276),__webpack_require__(5207),__webpack_require__(8262),__webpack_require__(2121),__webpack_require__(455),__webpack_require__(3616),__webpack_require__(3936),__webpack_require__(95),__webpack_require__(1779),__webpack_require__(7780),__webpack_require__(1296),__webpack_require__(79)}()})();
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.