PageSourceSearch

https://www.regione.campania.it/themes/custom/res/assets/js/bundle.js?tm530f

js regione.campania.it collected 2026-10-01 09:12:26 UTC 1,110,138 bytes, 3 lines download raw bytes

1/*! For license information please see bundle.js.LICENSE.txt */
2(()=>{var e={
vendor: 390 bytes, line 2
2"./node_modules/@babel/runtime/helpers/extends.js":e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},
vendor: 2,770 bytes, line 2
2"./node_modules/@popperjs/core/lib/createPopper.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{createPopper:()=>m,detectOverflow:()=>d.default,popperGenerator:()=>f});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=i("./node_modules/@popperjs/core/lib/utils/orderModifiers.js"),l=i("./node_modules/@popperjs/core/lib/utils/debounce.js"),u=i("./node_modules/@popperjs/core/lib/utils/mergeByName.js"),d=i("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),c=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),h={placement:"bottom",modifiers:[],strategy:"absolute"};function p(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function f(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,d=void 0===i?[]:i,f=t.defaultOptions,m=void 0===f?h:f;return function(e,t,i){void 0===i&&(i=m);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},h,m),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},g=[],_=!1,y={state:f,setOptions:function(i){var s="function"==typeof i?i(f.options):i;b(),f.options=Object.assign({},m,f.options,s),f.scrollParents={reference:(0,c.isElement)(e)?(0,r.default)(e):e.contextElement?(0,r.default)(e.contextElement):[],popper:(0,r.default)(t)};var n=(0,a.default)((0,u.default)([].concat(d,f.options.modifiers)));return f.orderedModifiers=n.filter((function(e){return e.enabled})),f.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,s=void 0===i?{}:i,n=e.effect;if("function"==typeof n){var r=n({state:f,name:t,instance:y,options:s}),o=function(){};g.push(r||o)}})),y.update()},forceUpdate:function(){if(!_){var e=f.elements,t=e.reference,i=e.popper;if(p(t,i)){f.rects={reference:(0,s.default)(t,(0,o.default)(i),"fixed"===f.options.strategy),popper:(0,n.default)(i)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var a=f.orderedModifiers[r],l=a.fn,u=a.options,d=void 0===u?{}:u,c=a.name;"function"==typeof l&&(f=l({state:f,options:d,name:c,instance:y})||f)}else f.reset=!1,r=-1}}},update:(0,l.default)((function(){return new Promise((function(e){y.forceUpdate(),e(f)}))})),destroy:function(){b(),_=!0}};if(!p(e,t))return y;function b(){g.forEach((function(e){return e()})),g=[]}return y.setOptions(i).then((function(e){!_&&i.onFirstUpdate&&i.onFirstUpdate(e)})),y}}var m=f()},
vendor: 373 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/contains.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function n(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&(0,s.isShadowRoot)(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}},
vendor: 875 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),n=i("./node_modules/@popperjs/core/lib/utils/math.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var a=e.getBoundingClientRect(),l=1,u=1;t&&(0,s.isHTMLElement)(e)&&(l=e.offsetWidth>0&&(0,n.round)(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,n.round)(a.height)/e.offsetHeight||1);var d=((0,s.isElement)(e)?(0,r.default)(e):window).visualViewport,c=!(0,o.default)()&&i,h=(a.left+(c&&d?d.offsetLeft:0))/l,p=(a.top+(c&&d?d.offsetTop:0))/u,f=a.width/l,m=a.height/u;return{width:f,height:m,top:p,right:h+f,bottom:p+m,left:h,x:h,y:p}}},
vendor: 2,087 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i("./node_modules/@popperjs/core/lib/enums.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),a=i("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),l=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),u=i("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),d=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),c=i("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),h=i("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),p=i("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),f=i("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),m=i("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),g=i("./node_modules/@popperjs/core/lib/utils/math.js");function _(e,t,i){return t===s.viewport?(0,m.default)((0,n.default)(e,i)):(0,d.isElement)(t)?function(e,t){var i=(0,c.default)(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):(0,m.default)((0,r.default)((0,l.default)(e)))}function y(e,t,i,s){var n="clippingParents"===t?function(e){var t=(0,o.default)((0,h.default)(e)),i=["absolute","fixed"].indexOf((0,u.default)(e).position)>=0&&(0,d.isHTMLElement)(e)?(0,a.default)(e):e;return(0,d.isElement)(i)?t.filter((function(e){return(0,d.isElement)(e)&&(0,p.default)(e,i)&&"body"!==(0,f.default)(e)})):[]}(e):[].concat(t),r=[].concat(n,[i]),l=r[0],c=r.reduce((function(t,i){var n=_(e,i,s);return t.top=(0,g.max)(n.top,t.top),t.right=(0,g.min)(n.right,t.right),t.bottom=(0,g.min)(n.bottom,t.bottom),t.left=(0,g.max)(n.left,t.left),t}),_(e,l,s));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}},
vendor: 1,275 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=i("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),l=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),u=i("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),d=i("./node_modules/@popperjs/core/lib/utils/math.js");function c(e,t,i){void 0===i&&(i=!1);var c=(0,o.isHTMLElement)(t),h=(0,o.isHTMLElement)(t)&&function(e){var t=e.getBoundingClientRect(),i=(0,d.round)(t.width)/e.offsetWidth||1,s=(0,d.round)(t.height)/e.offsetHeight||1;return 1!==i||1!==s}(t),p=(0,l.default)(t),f=(0,s.default)(e,h,i),m={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(c||!c&&!i)&&(("body"!==(0,r.default)(t)||(0,u.default)(p))&&(m=(0,n.default)(t)),(0,o.isHTMLElement)(t)?((g=(0,s.default)(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):p&&(g.x=(0,a.default)(p))),{x:f.left+m.scrollLeft-g.x,y:f.top+m.scrollTop-g.y,width:f.width,height:f.height}}},
vendor: 246 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function n(e){return(0,s.default)(e).getComputedStyle(e)}},
vendor: 295 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function n(e){return(((0,s.isElement)(e)?e.ownerDocument:e.document)||window.document).documentElement}},
vendor: 895 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),a=i("./node_modules/@popperjs/core/lib/utils/math.js");function l(e){var t,i=(0,s.default)(e),l=(0,o.default)(e),u=null==(t=e.ownerDocument)?void 0:t.body,d=(0,a.max)(i.scrollWidth,i.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),c=(0,a.max)(i.scrollHeight,i.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),h=-l.scrollLeft+(0,r.default)(e),p=-l.scrollTop;return"rtl"===(0,n.default)(u||i).direction&&(h+=(0,a.max)(i.clientWidth,u?u.clientWidth:0)-d),{width:d,height:c,x:h,y:p}}},
vendor: 192 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":(e,t,i)=>{"use strict";function s(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}i.r(t),i.d(t,{default:()=>s})},
vendor: 397 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");function n(e){var t=(0,s.default)(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}},
vendor: 174 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":(e,t,i)=>{"use strict";function s(e){return e?(e.nodeName||"").toLowerCase():null}i.r(t),i.d(t,{default:()=>s})},
vendor: 496 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js");function a(e){return e!==(0,n.default)(e)&&(0,r.isHTMLElement)(e)?(0,o.default)(e):(0,s.default)(e)}},
vendor: 1,451 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=i("./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"),l=i("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),u=i("./node_modules/@popperjs/core/lib/utils/userAgent.js");function d(e){return(0,o.isHTMLElement)(e)&&"fixed"!==(0,r.default)(e).position?e.offsetParent:null}function c(e){for(var t=(0,s.default)(e),i=d(e);i&&(0,a.default)(i)&&"static"===(0,r.default)(i).position;)i=d(i);return i&&("html"===(0,n.default)(i)||"body"===(0,n.default)(i)&&"static"===(0,r.default)(i).position)?t:i||function(e){var t=/firefox/i.test((0,u.default)());if(/Trident/i.test((0,u.default)())&&(0,o.isHTMLElement)(e)&&"fixed"===(0,r.default)(e).position)return null;var i=(0,l.default)(e);for((0,o.isShadowRoot)(i)&&(i=i.host);(0,o.isHTMLElement)(i)&&["html","body"].indexOf((0,n.default)(i))<0;){var s=(0,r.default)(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e)||t}},
vendor: 458 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function o(e){return"html"===(0,s.default)(e)?e:e.assignedSlot||e.parentNode||((0,r.isShadowRoot)(e)?e.host:null)||(0,n.default)(e)}},
vendor: 553 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function a(e){return["html","body","#document"].indexOf((0,r.default)(e))>=0?e.ownerDocument.body:(0,o.isHTMLElement)(e)&&(0,n.default)(e)?e:a((0,s.default)(e))}},
vendor: 676 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(e,t){var i=(0,s.default)(e),a=(0,n.default)(e),l=i.visualViewport,u=a.clientWidth,d=a.clientHeight,c=0,h=0;if(l){u=l.width,d=l.height;var p=(0,o.default)();(p||!p&&"fixed"===t)&&(c=l.offsetLeft,h=l.offsetTop)}return{width:u,height:d,x:c+(0,r.default)(e),y:h}}},
vendor: 252 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":(e,t,i)=>{"use strict";function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}i.r(t),i.d(t,{default:()=>s})},
vendor: 282 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function n(e){var t=(0,s.default)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},
vendor: 432 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");function o(e){return(0,s.default)((0,n.default)(e)).left+(0,r.default)(e).scrollLeft}},
vendor: 511 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{isElement:()=>n,isHTMLElement:()=>r,isShadowRoot:()=>o});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function n(e){return e instanceof(0,s.default)(e).Element||e instanceof Element}function r(e){return e instanceof(0,s.default)(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,s.default)(e).ShadowRoot||e instanceof ShadowRoot)}},
vendor: 260 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/utils/userAgent.js");function n(){return!/^((?!chrome|android).)*safari/i.test((0,s.default)())}},
vendor: 319 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");function n(e){var t=(0,s.default)(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}},
vendor: 258 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");function n(e){return["table","td","th"].indexOf((0,s.default)(e))>=0}},
vendor: 644 bytes, line 2
2"./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");function a(e,t){var i;void 0===t&&(t=[]);var l=(0,s.default)(e),u=l===(null==(i=e.ownerDocument)?void 0:i.body),d=(0,r.default)(l),c=u?[d].concat(d.visualViewport||[],(0,o.default)(l)?l:[]):l,h=t.concat(c);return u?h:h.concat(a((0,n.default)(c)))}},
vendor: 879 bytes, line 2
2"./node_modules/@popperjs/core/lib/enums.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{afterMain:()=>S,afterRead:()=>b,afterWrite:()=>C,auto:()=>a,basePlacements:()=>l,beforeMain:()=>v,beforeRead:()=>_,beforeWrite:()=>w,bottom:()=>n,clippingParents:()=>c,end:()=>d,left:()=>o,main:()=>T,modifierPhases:()=>k,placements:()=>g,popper:()=>p,read:()=>y,reference:()=>f,right:()=>r,start:()=>u,top:()=>s,variationPlacements:()=>m,viewport:()=>h,write:()=>E});var s="top",n="bottom",r="right",o="left",a="auto",l=[s,n,r,o],u="start",d="end",c="clippingParents",h="viewport",p="popper",f="reference",m=l.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+d])}),[]),g=[].concat(l,[a]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+d])}),[]),_="beforeRead",y="read",b="afterRead",v="beforeMain",T="main",S="afterMain",w="beforeWrite",E="write",C="afterWrite",k=[_,y,b,v,T,S,w,E,C]},
vendor: 1,427 bytes, line 2
2"./node_modules/@popperjs/core/lib/index.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{afterMain:()=>s.afterMain,afterRead:()=>s.afterRead,afterWrite:()=>s.afterWrite,applyStyles:()=>n.applyStyles,arrow:()=>n.arrow,auto:()=>s.auto,basePlacements:()=>s.basePlacements,beforeMain:()=>s.beforeMain,beforeRead:()=>s.beforeRead,beforeWrite:()=>s.beforeWrite,bottom:()=>s.bottom,clippingParents:()=>s.clippingParents,computeStyles:()=>n.computeStyles,createPopper:()=>a.createPopper,createPopperBase:()=>r.createPopper,createPopperLite:()=>l.createPopper,detectOverflow:()=>o.default,end:()=>s.end,eventListeners:()=>n.eventListeners,flip:()=>n.flip,hide:()=>n.hide,left:()=>s.left,main:()=>s.main,modifierPhases:()=>s.modifierPhases,offset:()=>n.offset,placements:()=>s.placements,popper:()=>s.popper,popperGenerator:()=>r.popperGenerator,popperOffsets:()=>n.popperOffsets,preventOverflow:()=>n.preventOverflow,read:()=>s.read,reference:()=>s.reference,right:()=>s.right,start:()=>s.start,top:()=>s.top,variationPlacements:()=>s.variationPlacements,viewport:()=>s.viewport,write:()=>s.write});var s=i("./node_modules/@popperjs/core/lib/enums.js"),n=i("./node_modules/@popperjs/core/lib/modifiers/index.js"),r=i("./node_modules/@popperjs/core/lib/createPopper.js"),o=i("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),a=i("./node_modules/@popperjs/core/lib/popper.js"),l=i("./node_modules/@popperjs/core/lib/popper-lite.js")},
vendor: 1,255 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");const r={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];(0,n.isHTMLElement)(o)&&(0,s.default)(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});(0,n.isHTMLElement)(r)&&(0,s.default)(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]}},
vendor: 1,787 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/arrow.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=i("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),l=i("./node_modules/@popperjs/core/lib/utils/within.js"),u=i("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),d=i("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"),c=i("./node_modules/@popperjs/core/lib/enums.js");const h={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,r=e.name,h=e.options,p=i.elements.arrow,f=i.modifiersData.popperOffsets,m=(0,s.default)(i.placement),g=(0,a.default)(m),_=[c.left,c.right].indexOf(m)>=0?"height":"width";if(p&&f){var y=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.default)("number"!=typeof e?e:(0,d.default)(e,c.basePlacements))}(h.padding,i),b=(0,n.default)(p),v="y"===g?c.top:c.left,T="y"===g?c.bottom:c.right,S=i.rects.reference[_]+i.rects.reference[g]-f[g]-i.rects.popper[_],w=f[g]-i.rects.reference[g],E=(0,o.default)(p),C=E?"y"===g?E.clientHeight||0:E.clientWidth||0:0,k=S/2-w/2,x=y[v],I=C-b[_]-y[T],A=C/2-b[_]/2+k,L=(0,l.within)(x,A,I),P=g;i.modifiersData[r]=((t={})[P]=L,t.centerOffset=L-A,t)}},effect:function(e){var t=e.state,i=e.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&(0,r.default)(t.elements.popper,s)&&(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},
vendor: 2,861 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p,mapToStyles:()=>h});var s=i("./node_modules/@popperjs/core/lib/enums.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),o=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),a=i("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),l=i("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),u=i("./node_modules/@popperjs/core/lib/utils/getVariation.js"),d=i("./node_modules/@popperjs/core/lib/utils/math.js"),c={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h(e){var t,i=e.popper,l=e.popperRect,u=e.placement,h=e.variation,p=e.offsets,f=e.position,m=e.gpuAcceleration,g=e.adaptive,_=e.roundOffsets,y=e.isFixed,b=p.x,v=void 0===b?0:b,T=p.y,S=void 0===T?0:T,w="function"==typeof _?_({x:v,y:S}):{x:v,y:S};v=w.x,S=w.y;var E=p.hasOwnProperty("x"),C=p.hasOwnProperty("y"),k=s.left,x=s.top,I=window;if(g){var A=(0,n.default)(i),L="clientHeight",P="clientWidth";if(A===(0,r.default)(i)&&(A=(0,o.default)(i),"static"!==(0,a.default)(A).position&&"absolute"===f&&(L="scrollHeight",P="scrollWidth")),u===s.top||(u===s.left||u===s.right)&&h===s.end)x=s.bottom,S-=(y&&A===I&&I.visualViewport?I.visualViewport.height:A[L])-l.height,S*=m?1:-1;if(u===s.left||(u===s.top||u===s.bottom)&&h===s.end)k=s.right,v-=(y&&A===I&&I.visualViewport?I.visualViewport.width:A[P])-l.width,v*=m?1:-1}var O,j=Object.assign({position:f},g&&c),D=!0===_?function(e,t){var i=e.x,s=e.y,n=t.devicePixelRatio||1;return{x:(0,d.round)(i*n)/n||0,y:(0,d.round)(s*n)/n||0}}({x:v,y:S},(0,r.default)(i)):{x:v,y:S};return v=D.x,S=D.y,m?Object.assign({},j,((O={})[x]=C?"0":"",O[k]=E?"0":"",O.transform=(I.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",O)):Object.assign({},j,((t={})[x]=C?S+"px":"",t[k]=E?v+"px":"",t.transform="",t))}const p={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,s=i.gpuAcceleration,n=void 0===s||s,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,d=void 0===a||a,c={placement:(0,l.default)(t.placement),variation:(0,u.default)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,h(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:d})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,h(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},
vendor: 741 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),n={passive:!0};const r={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,l=r.resize,u=void 0===l||l,d=(0,s.default)(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",i.update,n)})),u&&d.addEventListener("resize",i.update,n),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",i.update,n)})),u&&d.removeEventListener("resize",i.update,n)}},data:{}}},
vendor: 2,100 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/flip.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i("./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"),n=i("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=i("./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"),o=i("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),a=i("./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"),l=i("./node_modules/@popperjs/core/lib/enums.js"),u=i("./node_modules/@popperjs/core/lib/utils/getVariation.js");const d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,d=e.name;if(!t.modifiersData[d]._skip){for(var c=i.mainAxis,h=void 0===c||c,p=i.altAxis,f=void 0===p||p,m=i.fallbackPlacements,g=i.padding,_=i.boundary,y=i.rootBoundary,b=i.altBoundary,v=i.flipVariations,T=void 0===v||v,S=i.allowedAutoPlacements,w=t.options.placement,E=(0,n.default)(w),C=m||(E===w||!T?[(0,s.default)(w)]:function(e){if((0,n.default)(e)===l.auto)return[];var t=(0,s.default)(e);return[(0,r.default)(e),t,(0,r.default)(t)]}(w)),k=[w].concat(C).reduce((function(e,i){return e.concat((0,n.default)(i)===l.auto?(0,a.default)(t,{placement:i,boundary:_,rootBoundary:y,padding:g,flipVariations:T,allowedAutoPlacements:S}):i)}),[]),x=t.rects.reference,I=t.rects.popper,A=new Map,L=!0,P=k[0],O=0;O<k.length;O++){var j=k[O],D=(0,n.default)(j),M=(0,u.default)(j)===l.start,N=[l.top,l.bottom].indexOf(D)>=0,R=N?"width":"height",F=(0,o.default)(t,{placement:j,boundary:_,rootBoundary:y,altBoundary:b,padding:g}),U=N?M?l.right:l.left:M?l.bottom:l.top;x[R]>I[R]&&(U=(0,s.default)(U));var B=(0,s.default)(U),$=[];if(h&&$.push(F[D]<=0),f&&$.push(F[U]<=0,F[B]<=0),$.every((function(e){return e}))){P=j,L=!1;break}A.set(j,$)}if(L)for(var q=function(e){var t=k.find((function(t){var i=A.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},V=T?3:1;V>0;V--){if("break"===q(V))break}t.placement!==P&&(t.modifiersData[d]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},
vendor: 1,007 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/hide.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/@popperjs/core/lib/enums.js"),n=i("./node_modules/@popperjs/core/lib/utils/detectOverflow.js");function r(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function o(e){return[s.top,s.right,s.bottom,s.left].some((function(t){return e[t]>=0}))}const a={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,s=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,u=(0,n.default)(t,{elementContext:"reference"}),d=(0,n.default)(t,{altBoundary:!0}),c=r(u,s),h=r(d,a,l),p=o(c),f=o(h);t.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}},
vendor: 899 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/index.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{applyStyles:()=>s.default,arrow:()=>n.default,computeStyles:()=>r.default,eventListeners:()=>o.default,flip:()=>a.default,hide:()=>l.default,offset:()=>u.default,popperOffsets:()=>d.default,preventOverflow:()=>c.default});var s=i("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),n=i("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),r=i("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),o=i("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),a=i("./node_modules/@popperjs/core/lib/modifiers/flip.js"),l=i("./node_modules/@popperjs/core/lib/modifiers/hide.js"),u=i("./node_modules/@popperjs/core/lib/modifiers/offset.js"),d=i("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),c=i("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js")},
vendor: 879 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/offset.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o,distanceAndSkiddingToXY:()=>r});var s=i("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),n=i("./node_modules/@popperjs/core/lib/enums.js");function r(e,t,i){var r=(0,s.default)(e),o=[n.left,n.top].indexOf(r)>=0?-1:1,a="function"==typeof i?i(Object.assign({},t,{placement:e})):i,l=a[0],u=a[1];return l=l||0,u=(u||0)*o,[n.left,n.right].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}const o={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,s=e.name,o=i.offset,a=void 0===o?[0,0]:o,l=n.placements.reduce((function(e,i){return e[i]=r(i,t.rects,a),e}),{}),u=l[t.placement],d=u.x,c=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=l}}},
vendor: 417 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/utils/computeOffsets.js");const n={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=(0,s.default)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},
vendor: 2,730 bytes, line 2
2"./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i("./node_modules/@popperjs/core/lib/enums.js"),n=i("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=i("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),o=i("./node_modules/@popperjs/core/lib/utils/getAltAxis.js"),a=i("./node_modules/@popperjs/core/lib/utils/within.js"),l=i("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),u=i("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),d=i("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),c=i("./node_modules/@popperjs/core/lib/utils/getVariation.js"),h=i("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"),p=i("./node_modules/@popperjs/core/lib/utils/math.js");const f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,f=e.name,m=i.mainAxis,g=void 0===m||m,_=i.altAxis,y=void 0!==_&&_,b=i.boundary,v=i.rootBoundary,T=i.altBoundary,S=i.padding,w=i.tether,E=void 0===w||w,C=i.tetherOffset,k=void 0===C?0:C,x=(0,d.default)(t,{boundary:b,rootBoundary:v,padding:S,altBoundary:T}),I=(0,n.default)(t.placement),A=(0,c.default)(t.placement),L=!A,P=(0,r.default)(I),O=(0,o.default)(P),j=t.modifiersData.popperOffsets,D=t.rects.reference,M=t.rects.popper,N="function"==typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,R="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(j){if(g){var B,$="y"===P?s.top:s.left,q="y"===P?s.bottom:s.right,V="y"===P?"height":"width",H=j[P],z=H+x[$],W=H-x[q],G=E?-M[V]/2:0,X=A===s.start?D[V]:M[V],K=A===s.start?-M[V]:-D[V],Y=t.elements.arrow,Q=E&&Y?(0,l.default)(Y):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,h.default)(),Z=J[$],ee=J[q],te=(0,a.within)(0,D[V],Q[V]),ie=L?D[V]/2-G-te-Z-R.mainAxis:X-te-Z-R.mainAxis,se=L?-D[V]/2+G+te+ee+R.mainAxis:K+te+ee+R.mainAxis,ne=t.elements.arrow&&(0,u.default)(t.elements.arrow),re=ne?"y"===P?ne.clientTop||0:ne.clientLeft||0:0,oe=null!=(B=null==F?void 0:F[P])?B:0,ae=H+ie-oe-re,le=H+se-oe,ue=(0,a.within)(E?(0,p.min)(z,ae):z,H,E?(0,p.max)(W,le):W);j[P]=ue,U[P]=ue-H}if(y){var de,ce="x"===P?s.top:s.left,he="x"===P?s.bottom:s.right,pe=j[O],fe="y"===O?"height":"width",me=pe+x[ce],ge=pe-x[he],_e=-1!==[s.top,s.left].indexOf(I),ye=null!=(de=null==F?void 0:F[O])?de:0,be=_e?me:pe-D[fe]-M[fe]-ye+R.altAxis,ve=_e?pe+D[fe]+M[fe]-ye-R.altAxis:ge,Te=E&&_e?(0,a.withinMaxClamp)(be,pe,ve):(0,a.within)(E?be:me,pe,E?ve:ge);j[O]=Te,U[O]=Te-pe}t.modifiersData[f]=U}},requiresIfExists:["offset"]}},
vendor: 687 bytes, line 2
2"./node_modules/@popperjs/core/lib/popper-lite.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{createPopper:()=>d,defaultModifiers:()=>u,detectOverflow:()=>n.default,popperGenerator:()=>s.popperGenerator});var s=i("./node_modules/@popperjs/core/lib/createPopper.js"),n=i("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),r=i("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),o=i("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),a=i("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),l=i("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),u=[r.default,o.default,a.default,l.default],d=(0,s.popperGenerator)({defaultModifiers:u})},
vendor: 1,435 bytes, line 2
2"./node_modules/@popperjs/core/lib/popper.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{applyStyles:()=>m.applyStyles,arrow:()=>m.arrow,computeStyles:()=>m.computeStyles,createPopper:()=>_,createPopperLite:()=>f.createPopper,defaultModifiers:()=>g,detectOverflow:()=>n.default,eventListeners:()=>m.eventListeners,flip:()=>m.flip,hide:()=>m.hide,offset:()=>m.offset,popperGenerator:()=>s.popperGenerator,popperOffsets:()=>m.popperOffsets,preventOverflow:()=>m.preventOverflow});var s=i("./node_modules/@popperjs/core/lib/createPopper.js"),n=i("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),r=i("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),o=i("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),a=i("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),l=i("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),u=i("./node_modules/@popperjs/core/lib/modifiers/offset.js"),d=i("./node_modules/@popperjs/core/lib/modifiers/flip.js"),c=i("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"),h=i("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),p=i("./node_modules/@popperjs/core/lib/modifiers/hide.js"),f=i("./node_modules/@popperjs/core/lib/popper-lite.js"),m=i("./node_modules/@popperjs/core/lib/modifiers/index.js"),g=[r.default,o.default,a.default,l.default,u.default,d.default,c.default,h.default,p.default],_=(0,s.popperGenerator)({defaultModifiers:g})},
vendor: 945 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/@popperjs/core/lib/utils/getVariation.js"),n=i("./node_modules/@popperjs/core/lib/enums.js"),r=i("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),o=i("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");function a(e,t){void 0===t&&(t={});var i=t,a=i.placement,l=i.boundary,u=i.rootBoundary,d=i.padding,c=i.flipVariations,h=i.allowedAutoPlacements,p=void 0===h?n.placements:h,f=(0,s.default)(a),m=f?c?n.variationPlacements:n.variationPlacements.filter((function(e){return(0,s.default)(e)===f})):n.basePlacements,g=m.filter((function(e){return p.indexOf(e)>=0}));0===g.length&&(g=m);var _=g.reduce((function(t,i){return t[i]=(0,r.default)(e,{placement:i,boundary:l,rootBoundary:u,padding:d})[(0,o.default)(i)],t}),{});return Object.keys(_).sort((function(e,t){return _[e]-_[t]}))}},
vendor: 913 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/computeOffsets.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),n=i("./node_modules/@popperjs/core/lib/utils/getVariation.js"),r=i("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),o=i("./node_modules/@popperjs/core/lib/enums.js");function a(e){var t,i=e.reference,a=e.element,l=e.placement,u=l?(0,s.default)(l):null,d=l?(0,n.default)(l):null,c=i.x+i.width/2-a.width/2,h=i.y+i.height/2-a.height/2;switch(u){case o.top:t={x:c,y:i.y-a.height};break;case o.bottom:t={x:c,y:i.y+i.height};break;case o.right:t={x:i.x+i.width,y:h};break;case o.left:t={x:i.x-a.width,y:h};break;default:t={x:i.x,y:i.y}}var p=u?(0,r.default)(u):null;if(null!=p){var f="y"===p?"height":"width";switch(d){case o.start:t[p]=t[p]-(i[f]/2-a[f]/2);break;case o.end:t[p]=t[p]+(i[f]/2-a[f]/2)}}return t}},
vendor: 245 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/debounce.js":(e,t,i)=>{"use strict";function s(e){var t;return function(){return t||(t=new Promise((function(i){Promise.resolve().then((function(){t=void 0,i(e())}))}))),t}}i.r(t),i.d(t,{default:()=>s})},
vendor: 1,763 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/detectOverflow.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i("./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"),n=i("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),r=i("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),o=i("./node_modules/@popperjs/core/lib/utils/computeOffsets.js"),a=i("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),l=i("./node_modules/@popperjs/core/lib/enums.js"),u=i("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),d=i("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),c=i("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");function h(e,t){void 0===t&&(t={});var i=t,h=i.placement,p=void 0===h?e.placement:h,f=i.strategy,m=void 0===f?e.strategy:f,g=i.boundary,_=void 0===g?l.clippingParents:g,y=i.rootBoundary,b=void 0===y?l.viewport:y,v=i.elementContext,T=void 0===v?l.popper:v,S=i.altBoundary,w=void 0!==S&&S,E=i.padding,C=void 0===E?0:E,k=(0,d.default)("number"!=typeof C?C:(0,c.default)(C,l.basePlacements)),x=T===l.popper?l.reference:l.popper,I=e.rects.popper,A=e.elements[w?x:T],L=(0,s.default)((0,u.isElement)(A)?A:A.contextElement||(0,n.default)(e.elements.popper),_,b,m),P=(0,r.default)(e.elements.reference),O=(0,o.default)({reference:P,element:I,strategy:"absolute",placement:p}),j=(0,a.default)(Object.assign({},I,O)),D=T===l.popper?j:P,M={top:L.top-D.top+k.top,bottom:D.bottom-L.bottom+k.bottom,left:L.left-D.left+k.left,right:D.right-L.right+k.right},N=e.modifiersData.offset;if(T===l.popper&&N){var R=N[p];Object.keys(M).forEach((function(e){var t=[l.right,l.bottom].indexOf(e)>=0?1:-1,i=[l.top,l.bottom].indexOf(e)>=0?"y":"x";M[e]+=R[i]*t}))}return M}},
vendor: 184 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/expandToHashMap.js":(e,t,i)=>{"use strict";function s(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}i.r(t),i.d(t,{default:()=>s})},
vendor: 146 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/getAltAxis.js":(e,t,i)=>{"use strict";function s(e){return"x"===e?"y":"x"}i.r(t),i.d(t,{default:()=>s})},
vendor: 153 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/getBasePlacement.js":(e,t,i)=>{"use strict";function s(e){return e.split("-")[0]}i.r(t),i.d(t,{default:()=>s})},
vendor: 169 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js":(e,t,i)=>{"use strict";function s(){return{top:0,right:0,bottom:0,left:0}}i.r(t),i.d(t,{default:()=>s})},
vendor: 183 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js":(e,t,i)=>{"use strict";function s(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}i.r(t),i.d(t,{default:()=>s})},
vendor: 265 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s={left:"right",right:"left",bottom:"top",top:"bottom"};function n(e){return e.replace(/left|right|bottom|top/g,(function(e){return s[e]}))}},
vendor: 234 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s={start:"end",end:"start"};function n(e){return e.replace(/start|end/g,(function(e){return s[e]}))}},
vendor: 149 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/getVariation.js":(e,t,i)=>{"use strict";function s(e){return e.split("-")[1]}i.r(t),i.d(t,{default:()=>s})},
vendor: 161 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/math.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{max:()=>s,min:()=>n,round:()=>r});var s=Math.max,n=Math.min,r=Math.round},
vendor: 361 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/mergeByName.js":(e,t,i)=>{"use strict";function s(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}i.r(t),i.d(t,{default:()=>s})},
vendor: 249 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js");function n(e){return Object.assign({},(0,s.default)(),e)}},
vendor: 596 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/orderModifiers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i("./node_modules/@popperjs/core/lib/enums.js");function n(e){var t=new Map,i=new Set,s=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var s=t.get(e);s&&n(s)}})),s.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),s}function r(e){var t=n(e);return s.modifierPhases.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}},
vendor: 214 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/rectToClientRect.js":(e,t,i)=>{"use strict";function s(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}i.r(t),i.d(t,{default:()=>s})},
vendor: 290 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/userAgent.js":(e,t,i)=>{"use strict";function s(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}i.r(t),i.d(t,{default:()=>s})},
vendor: 286 bytes, line 2
2"./node_modules/@popperjs/core/lib/utils/within.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{within:()=>n,withinMaxClamp:()=>r});var s=i("./node_modules/@popperjs/core/lib/utils/math.js");function n(e,t,i){return(0,s.max)(e,(0,s.min)(t,i))}function r(e,t,i){var s=n(e,t,i);return s>i?i:s}},
vendor: 35,938 bytes, line 2
2"./node_modules/@splidejs/splide/dist/js/splide.esm.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{CLASSES:()=>bt,CLASS_ACTIVE:()=>pt,CLASS_ARROW:()=>tt,CLASS_ARROWS:()=>et,CLASS_ARROW_NEXT:()=>st,CLASS_ARROW_PREV:()=>it,CLASS_AUTOPLAY:()=>lt,CLASS_CLONE:()=>Je,CLASS_CONTAINER:()=>Ze,CLASS_INITIALIZED:()=>ht,CLASS_LIST:()=>Ye,CLASS_LOADING:()=>_t,CLASS_NEXT:()=>mt,CLASS_PAGINATION:()=>nt,CLASS_PAGINATION_PAGE:()=>rt,CLASS_PAUSE:()=>dt,CLASS_PLAY:()=>ut,CLASS_PREV:()=>ft,CLASS_PROGRESS:()=>ot,CLASS_PROGRESS_BAR:()=>at,CLASS_ROOT:()=>Ge,CLASS_SLIDE:()=>Qe,CLASS_SLIDER:()=>Xe,CLASS_SPINNER:()=>ct,CLASS_TRACK:()=>Ke,CLASS_VISIBLE:()=>gt,EVENT_ACTIVE:()=>me,EVENT_ARROWS_MOUNTED:()=>Pe,EVENT_ARROWS_UPDATED:()=>Oe,EVENT_AUTOPLAY_PAUSE:()=>Fe,EVENT_AUTOPLAY_PLAY:()=>Ne,EVENT_AUTOPLAY_PLAYING:()=>Re,EVENT_CLICK:()=>fe,EVENT_DESTROY:()=>Le,EVENT_DRAG:()=>Ce,EVENT_DRAGGED:()=>xe,EVENT_DRAGGING:()=>ke,EVENT_HIDDEN:()=>ye,EVENT_INACTIVE:()=>ge,EVENT_LAZYLOAD_LOADED:()=>Ue,EVENT_MOUNTED:()=>ue,EVENT_MOVE:()=>ce,EVENT_MOVED:()=>he,EVENT_NAVIGATION_MOUNTED:()=>Me,EVENT_PAGINATION_MOUNTED:()=>je,EVENT_PAGINATION_UPDATED:()=>De,EVENT_READY:()=>de,EVENT_REFRESH:()=>ve,EVENT_REPOSITIONED:()=>Ee,EVENT_RESIZE:()=>Se,EVENT_RESIZED:()=>we,EVENT_SCROLL:()=>Ie,EVENT_SCROLLED:()=>Ae,EVENT_SHIFTED:()=>pe,EVENT_SLIDE_KEYDOWN:()=>be,EVENT_UPDATED:()=>Te,EVENT_VISIBLE:()=>_e,EventBus:()=>le,EventInterface:()=>Be,RequestInterval:()=>$e,STATUS_CLASSES:()=>yt,Splide:()=>Kt,SplideRenderer:()=>Jt,State:()=>qe,Throttle:()=>Ve,default:()=>Kt});const s="splide",n=`data-${s}`,r={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5},o=10;function a(e){e.length=0}function l(e){return!h(e)&&"object"==typeof e}function u(e){return Array.isArray(e)}function d(e){return"string"==typeof e}function c(e){return void 0===e}function h(e){return null===e}function p(e){return e instanceof HTMLElement}function f(e){return u(e)?e:[e]}function m(e,t){f(e).forEach(t)}function g(e,t){return e.indexOf(t)>-1}function _(e,t){return e.push(...f(t)),e}const y=Array.prototype;function b(e,t,i){return y.slice.call(e,t,i)}function v(e,t,i){e&&m(t,(t=>{t&&e.classList[i?"add":"remove"](t)}))}function T(e,t){v(e,d(t)?t.split(" "):t,!0)}function S(e,t){m(t,e.appendChild.bind(e))}function w(e,t){m(e,(e=>{const i=t.parentNode;i&&i.insertBefore(e,t)}))}function E(e,t){return p(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function C(e,t){return e?b(e.children).filter((e=>E(e,t))):[]}function k(e,t){return t?C(e,t)[0]:e.firstElementChild}function x(e,t,i){if(e){let s=Object.keys(e);s=i?s.reverse():s;for(let i=0;i<s.length;i++){const n=s[i];if("__proto__"!==n&&!1===t(e[n],n))break}}return e}function I(e){return b(arguments,1).forEach((t=>{x(t,((i,s)=>{e[s]=t[s]}))})),e}function A(e,t){return x(t,((t,i)=>{u(t)?e[i]=t.slice():l(t)?e[i]=A(l(e[i])?e[i]:{},t):e[i]=t})),e}function L(e,t){e&&m(t,(t=>{e.removeAttribute(t)}))}function P(e,t,i){l(t)?x(t,((t,i)=>{P(e,i,t)})):h(i)?L(e,t):e.setAttribute(t,String(i))}function O(e,t,i){const s=document.createElement(e);return t&&(d(t)?T(s,t):P(s,t)),i&&S(i,s),s}function j(e,t,i){if(c(i))return getComputedStyle(e)[t];if(!h(i)){const{style:s}=e;i=`${i}`,s[t]!==i&&(s[t]=i)}}function D(e,t){j(e,"display",t)}function M(e,t){return e.getAttribute(t)}function N(e,t){return e&&e.classList.contains(t)}function R(e){return e.getBoundingClientRect()}function F(e){m(e,(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}))}function U(e){return k((new DOMParser).parseFromString(e,"text/html").body)}function B(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function $(e,t){return e&&e.querySelector(t)}function q(e,t){return b(e.querySelectorAll(t))}function V(e,t){v(e,t,!1)}function H(e){return d(e)?e:e?`${e}px`:""}function z(e,t=""){if(!e)throw new Error(`[${s}] ${t}`)}function W(e){setTimeout(e)}const G=()=>{};function X(e){return requestAnimationFrame(e)}const{min:K,max:Y,floor:Q,ceil:J,abs:Z}=Math;function ee(e,t,i,s){const n=K(t,i),r=Y(t,i);return s?n<e&&e<r:n<=e&&e<=r}function te(e,t,i){const s=K(t,i),n=Y(t,i);return K(Y(s,e),n)}function ie(e){return+(e>0)-+(e<0)}function se(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function ne(e,t){return m(t,(t=>{e=e.replace("%s",`${t}`)})),e}function re(e){return e<10?`0${e}`:`${e}`}const oe={};function ae(e){return`${e}${re(oe[e]=(oe[e]||0)+1)}`}function le(){let e={};function t(t,s){i(t,((t,i)=>{const n=e[t];e[t]=n&&n.filter((e=>e._key?e._key!==s:s||e._namespace!==i))}))}function i(e,t){f(e).join(" ").split(" ").forEach((e=>{const i=e.split(".");t(i[0],i[1])}))}return{on:function(t,s,n,r=o){i(t,((t,i)=>{e[t]=e[t]||[],_(e[t],{_event:t,_callback:s,_namespace:i,_priority:r,_key:n}).sort(((e,t)=>e._priority-t._priority))}))},off:t,offBy:function(i){x(e,((e,s)=>{t(s,i)}))},emit:function(t){(e[t]||[]).forEach((e=>{e._callback.apply(e,b(arguments,1))}))},destroy:function(){e={}}}}const ue="mounted",de="ready",ce="move",he="moved",pe="shifted",fe="click",me="active",ge="inactive",_e="visible",ye="hidden",be="slide:keydown",ve="refresh",Te="updated",Se="resize",we="resized",Ee="repositioned",Ce="drag",ke="dragging",xe="dragged",Ie="scroll",Ae="scrolled",Le="destroy",Pe="arrows:mounted",Oe="arrows:updated",je="pagination:mounted",De="pagination:updated",Me="navigation:mounted",Ne="autoplay:play",Re="autoplay:playing",Fe="autoplay:pause",Ue="lazyload:loaded";function Be(e){const{event:t}=e,i={};let s=[];function n(e,t,i){r(e,t,((e,t)=>{s=s.filter((s=>!!(s[0]!==e||s[1]!==t||i&&s[2]!==i)||(e.removeEventListener(t,s[2],s[3]),!1)))}))}function r(e,t,i){m(e,(e=>{e&&t.split(" ").forEach(i.bind(null,e))}))}function o(){s=s.filter((e=>n(e[0],e[1]))),t.offBy(i)}return t.on(Le,o,i),{on:function(e,s,n){t.on(e,s,i,n)},off:function(e){t.off(e,i)},emit:t.emit,bind:function(e,t,i,n){r(e,t,((e,t)=>{s.push([e,t,i,n]),e.addEventListener(t,i,n)}))},unbind:n,destroy:o}}function $e(e,t,i,s){const{now:n}=Date;let r,o,a=0,l=!0,u=0;function d(){if(!l){const o=n()-r;if(o>=e?(a=1,r=n()):a=o/e,i&&i(a),1===a&&(t(),s&&++u>=s))return c();X(d)}}function c(){l=!0}function h(){cancelAnimationFrame(o),a=0,o=0,l=!0}return{start:function(t){!t&&h(),r=n()-(t?a*e:0),l=!1,X(d)},rewind:function(){r=n(),a=0,i&&i(a)},pause:c,cancel:h,set:function(t){e=t},isPaused:function(){return l}}}function qe(e){let t=e;return{set:function(e){t=e},is:function(e){return g(f(e),t)}}}function Ve(e,t){let i;return function(){i||(i=$e(t||0,(()=>{e.apply(this,arguments),i=null}),null,1),i.start())}}const He="ttb",ze={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};function We(e,t,i){return{resolve:function(e,t){const{direction:s}=i;return ze[e]["rtl"!==s||t?s===He?0:-1:1]||e},orient:function(e){return e*("rtl"===i.direction?1:-1)}}}const Ge=s,Xe=`${s}__slider`,Ke=`${s}__track`,Ye=`${s}__list`,Qe=`${s}__slide`,Je=`${Qe}--clone`,Ze=`${Qe}__container`,et=`${s}__arrows`,tt=`${s}__arrow`,it=`${tt}--prev`,st=`${tt}--next`,nt=`${s}__pagination`,rt=`${nt}__page`,ot=`${s}__progress`,at=`${ot}__bar`,lt=`${s}__autoplay`,ut=`${s}__play`,dt=`${s}__pause`,ct=`${s}__spinner`,ht="is-initialized",pt="is-active",ft="is-prev",mt="is-next",gt="is-visible",_t="is-loading",yt=[pt,gt,ft,mt,_t],bt={slide:Qe,clone:Je,arrows:et,arrow:tt,prev:it,next:st,pagination:nt,page:rt,spinner:ct};const vt="role",Tt="aria-controls",St="aria-current",wt="aria-label",Et="aria-hidden",Ct="tabindex",kt="aria-orientation",xt=[vt,Tt,St,wt,Et,kt,Ct,"disabled"],It="slide",At="loop",Lt="fade";function Pt(e,t,i,s){const{on:n,emit:r,bind:o,destroy:a}=Be(e),{Components:l,root:u,options:d}=e,{isNavigation:c,updateOnMove:h}=d,{resolve:p}=l.Direction,f=M(s,"style"),m=i>-1,g=k(s,`.${Ze}`),_=d.focusableNodes&&q(s,d.focusableNodes);let y;function b(){const n=m?i:t,r=ne(d.i18n.slideX,n+1),o=e.splides.map((e=>e.splide.root.id)).join(" ");P(s,wt,r),P(s,Tt,o),P(s,vt,"menuitem"),w(E())}function T(){y||S()}function S(){if(!y){const{index:i}=e;w(E()),function(e){const t=!e&&(!E()||m);P(s,Et,t||null),P(s,Ct,!t&&d.slideFocus?0:null),_&&_.forEach((e=>{P(e,Ct,t?-1:null)}));e!==N(s,gt)&&(v(s,gt,e),r(e?_e:ye,C))}(function(){if(e.is(Lt))return E();const t=R(l.Elements.track),i=R(s),n=p("left"),r=p("right");return Q(t[n])<=J(i[n])&&Q(i[r])<=J(t[r])}()),v(s,ft,t===i-1),v(s,mt,t===i+1)}}function w(e){e!==N(s,pt)&&(v(s,pt,e),c&&P(s,St,e||null),r(e?me:ge,C))}function E(){const{index:s}=e;return s===t||d.cloneStatus&&s===i}const C={index:t,slideIndex:i,slide:s,container:g,isClone:m,mount:function(){m||(s.id=`${u.id}-slide${re(t+1)}`),o(s,"click keydown",(e=>{r("click"===e.type?fe:be,C,e)})),n([ve,Ee,pe,he,Ae],S),n(Me,b),h&&n(ce,T)},destroy:function(){y=!0,a(),V(s,yt),L(s,xt),P(s,"style",f)},update:S,style:function(e,t,i){j(i&&g||s,e,t)},isWithin:function(i,s){let n=Z(i-t);return m||!d.rewind&&!e.is(At)||(n=K(n,e.length-n)),n<=s}};return C}const Ot="http://www.w3.org/2000/svg",jt="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z";const Dt=`${n}-interval`;const Mt={passive:!1,capture:!0},Nt="touchmove mousemove",Rt="touchend touchcancel mouseup";const Ft=["Left","Right","Up","Down"],Ut="keydown";const Bt=`${n}-lazy`,$t=`${Bt}-srcset`,qt=`[${Bt}], [${$t}]`;const Vt=[" ","Enter","Spacebar"];var Ht=Object.freeze({__proto__:null,Options:function(e,t,i){const s=Ve(u);let r,o,a;function l(e){e&&removeEventListener("resize",s)}function u(){const t=(s=e=>e[1].matches,b(o).filter(s)[0]||[]);var s;t[0]!==a&&function(t){const s=i.breakpoints[t]||r;s.destroy?(e.options=r,e.destroy("completely"===s.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=s)}(a=t[0])}return{setup:function(){try{A(i,JSON.parse(M(e.root,n)))}catch(e){z(!1,e.message)}r=A({},i);const{breakpoints:t}=i;if(t){const e="min"===i.mediaQuery;o=Object.keys(t).sort(((t,i)=>e?+i-+t:+t-+i)).map((t=>[t,matchMedia(`(${e?"min":"max"}-width:${t}px)`)])),u()}},mount:function(){o&&addEventListener("resize",s)},destroy:l}},Direction:We,Elements:function(e,t,i){const{on:n}=Be(e),{root:r}=e,l={},u=[];let d,c,h,p;function f(){!function(){c=k(r,`.${Xe}`),h=$(r,`.${Ke}`),p=k(h,`.${Ye}`),z(h&&p,"A track/list element is missing."),_(u,C(p,`.${Qe}:not(.${Je})`));const e=b(`.${lt}`),t=b(`.${et}`);I(l,{root:r,slider:c,track:h,list:p,slides:u,arrows:t,autoplay:e,prev:$(t,`.${it}`),next:$(t,`.${st}`),bar:$(b(`.${ot}`),`.${at}`),play:$(e,`.${ut}`),pause:$(e,`.${dt}`)})}(),function(){const e=r.id||ae(s);r.id=e,h.id=h.id||`${e}-track`,p.id=p.id||`${e}-list`}(),T(r,d=v())}function m(){[r,h,p].forEach((e=>{L(e,"style")})),a(u),V(r,d)}function g(){m(),f()}function y(){V(r,d),T(r,d=v())}function b(e){return k(r,e)||k(c,e)}function v(){return[`${Ge}--${i.type}`,`${Ge}--${i.direction}`,i.drag&&`${Ge}--draggable`,i.isNavigation&&`${Ge}--nav`,pt]}return I(l,{setup:f,mount:function(){n(ve,g,o-2),n(Te,y)},destroy:m})},Slides:function(e,t,i){const{on:s,emit:n,bind:r}=Be(e),{slides:o,list:l}=t.Elements,u=[];function c(){o.forEach(((e,t)=>{y(e,t,-1)}))}function h(){v((e=>{e.destroy()})),a(u)}function _(){h(),c()}function y(t,i,s){const n=Pt(e,i,s,t);n.mount(),u.push(n)}function b(e){return e?C((e=>!e.isClone)):u}function v(e,t){b(t).forEach(e)}function C(e){return u.filter("function"==typeof e?e:t=>d(e)?E(t.slide,e):g(f(e),t.index))}return{mount:function(){c(),s(ve,_),s([ue,ve],(()=>{u.sort(((e,t)=>e.index-t.index))}))},destroy:h,update:function(){v((e=>{e.update()}))},register:y,get:b,getIn:function(e){const{Controller:s}=t,n=s.toIndex(e),r=s.hasFocus()?1:i.perPage;return C((e=>ee(e.index,n,n+r-1)))},getAt:function(e){return C(e)[0]},add:function(e,t){m(e,(e=>{if(d(e)&&(e=U(e)),p(e)){const s=o[t];s?w(e,s):S(l,e),T(e,i.classes.slide),function(e,t){const i=q(e,"img");let{length:s}=i;s?i.forEach((e=>{r(e,"load error",(()=>{--s||t()}))})):t()}(e,n.bind(null,Se))}})),n(ve)},remove:function(e){F(C(e).map((e=>e.slide))),n(ve)},forEach:v,filter:C,style:function(e,t,i){v((s=>{s.style(e,t,i)}))},getLength:function(e){return e?o.length:u.length},isEnough:function(){return u.length>i.perPage}}},Layout:function(e,t,i){const{on:s,bind:n,emit:r}=Be(e),{Slides:o}=t,{resolve:a}=t.Direction,{root:u,track:d,list:c}=t.Elements,{getAt:h}=o;let p,f;function m(){f=null,p=i.direction===He,j(u,"maxWidth",H(i.width)),j(d,a("paddingLeft"),_(!1)),j(d,a("paddingRight"),_(!0)),g()}function g(){const e=R(u);f&&f.width===e.width&&f.height===e.height||(j(d,"height",function(){let e="";p&&(e=y(),z(e,"height or heightRatio is missing."),e=`calc(${e} - ${_(!1)} - ${_(!0)})`);return e}()),o.style(a("marginRight"),H(i.gap)),o.style("width",(i.autoWidth?"":H(i.fixedWidth)||(p?"":b()))||null),o.style("height",H(i.fixedHeight)||(p?i.autoHeight?"":b():y())||null,!0),f=e,r(we))}function _(e){const{padding:t}=i,s=a(e?"right":"left");return t&&H(t[s]||(l(t)?0:t))||"0px"}function y(){return H(i.height||R(c).width*i.heightRatio)}function b(){const e=H(i.gap);return`calc((100%${e&&` + ${e}`})/${i.perPage||1}${e&&` - ${e}`})`}function v(e,t){const i=h(e);if(i){const e=R(i.slide)[a("right")],s=R(c)[a("left")];return Z(e-s)+(t?0:T())}return 0}function T(){const e=h(0);return e&&parseFloat(j(e.slide,a("marginRight")))||0}return{mount:function(){m(),n(window,"resize load",Ve(r.bind(this,Se))),s([Te,ve],m),s(Se,g)},listSize:function(){return R(c)[a("width")]},slideSize:function(e,t){const i=h(e||0);return i?R(i.slide)[a("width")]+(t?0:T()):0},sliderSize:function(){return v(e.length-1,!0)-v(-1,!0)},totalSize:v,getPadding:function(e){return parseFloat(j(d,a("padding"+(e?"Right":"Left"))))||0}}},Clones:function(e,t,i){const{on:s,emit:n}=Be(e),{Elements:r,Slides:o}=t,{resolve:l}=t.Direction,u=[];let c;function h(){(c=g())&&(!function(t){const s=o.get().slice(),{length:n}=s;if(n){for(;s.length<t;)_(s,s);_(s.slice(-t),s.slice(0,t)).forEach(((a,l)=>{const d=l<t,c=function(t,s){const n=t.cloneNode(!0);return T(n,i.classes.clone),n.id=`${e.root.id}-clone${re(s+1)}`,n}(a.slide,l);d?w(c,s[0].slide):S(r.list,c),_(u,c),o.register(c,l-t+(d?0:n),a.index)}))}}(c),n(Se))}function p(){F(u),a(u)}function f(){p(),h()}function m(){c<g()&&n(ve)}function g(){let{clones:t}=i;if(e.is(At)){if(!t){const s=function(e,t){if(d(t)){const i=O("div",{style:`width: ${t}; position: absolute;`},e);t=R(i).width,F(i)}return t}(r.list,i[l("fixedWidth")]);t=(s&&J(R(r.track)[l("width")]/s)||i[l("autoWidth")]&&e.length||i.perPage)*(i.drag?(i.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){h(),s(ve,f),s([Te,Se],m)},destroy:p}},Move:function(e,t,i){const{on:s,emit:n}=Be(e),{slideSize:r,getPadding:o,totalSize:a,listSize:l,sliderSize:u}=t.Layout,{resolve:d,orient:h}=t.Direction,{list:p,track:f}=t.Elements;let m;function g(){w()||(t.Scroll.cancel(),_(e.index),n(Ee))}function _(e){y(v(e,!0))}function y(t,i){if(!e.is(Lt)){const s=i?t:function(t){if(e.is(At)){const e=h(t-T()),i=E(!1,t)&&e<0,s=E(!0,t)&&e>0;(i||s)&&(t=b(t,s))}return t}(t);p.style.transform=`translate${d("X")}(${s}px)`,t!==s&&n(pe)}}function b(e,t){const i=e-S(t),s=u();return e-=h(s*(J(Z(i)/s)||1))*(t?1:-1)}function v(t,s){const n=h(a(t-1)-function(e){const{focus:t}=i;return"center"===t?(l()-r(e,!0))/2:+t*r(e)||0}(t));return s?function(t){i.trimSpace&&e.is(It)&&(t=te(t,0,h(u()-l())));return t}(n):n}function T(){const e=d("left");return R(p)[e]-R(f)[e]+h(o(!1))}function S(e){return v(e?t.Controller.getEnd():0,!!i.trimSpace)}function w(){return e.state.is(4)&&i.waitForTransition}function E(e,t){t=c(t)?T():t;const i=!0!==e&&h(t)<h(S(!1)),s=!1!==e&&h(t)>h(S(!0));return i||s}return{mount:function(){m=t.Transition,s([ue,we,Te,ve],g)},destroy:function(){L(p,"style")},move:function(s,r,o,a){if(!w()){const{set:l}=e.state,u=T();s!==r&&(m.cancel(),y(b(u,s>r),!0)),l(4),n(ce,r,o,s),m.start(r,(()=>{l(3),n(he,r,o,s),"move"===i.trimSpace&&s!==o&&u===T()?t.Controller.go(s>o?">":"<",!1,a):a&&a()}))}},jump:_,translate:y,shift:b,cancel:function(){y(T()),m.cancel()},toIndex:function(e){const i=t.Slides.get();let s=0,n=1/0;for(let t=0;t<i.length;t++){const r=i[t].index,o=Z(v(r,!0)-e);if(!(o<=n))break;n=o,s=r}return s},toPosition:v,getPosition:T,getLimit:S,isBusy:w,exceededLimit:E}},Controller:function(e,t,i){const{on:s}=Be(e),{Move:n}=t,{getPosition:r,getLimit:a}=n,{isEnough:l,getLength:u}=t.Slides,h=e.is(At),p=e.is(It);let f,m,g,_=i.start||0,y=_;function b(){f=u(!0),m=i.perMove,g=i.perPage,_=te(_,0,f-1)}function v(e,i,s,r,o){const a=i?e:A(e);t.Scroll.scroll(i||s?n.toPosition(a,!0):e,r,(()=>{L(n.toIndex(n.getPosition())),o&&o()}))}function T(e){return w(!1,e)}function S(e){return w(!0,e)}function w(e,t){const i=m||(P()?1:g),s=E(_+i*(e?-1:1),_);return-1!==s||!p||(n=r(),o=a(!e),l=1,Z(n-o)<l)?t?s:k(s):e?0:C();var n,o,l}function E(e,t,s){if(l()){const n=C();e<0||e>n?e=ee(0,e,t,!0)||ee(n,t,e,!0)?x(I(e)):h?m||P()?e:e<0?-(f%g||g):f:i.rewind?e<0?n:0:-1:s||e===t||(e=m?e:x(I(t)+(e<t?-1:1)))}else e=-1;return e}function C(){let e=f-g;return(P()||h&&m)&&(e=f-1),Y(e,0)}function k(e){return h?l()?e%f+(e<0?f:0):-1:e}function x(e){return te(P()?e:g*e,0,C())}function I(e){return P()||(e=ee(e,f-g,f-1)?f-1:e,e=Q(e/g)),e}function A(e){const t=n.toIndex(e);return p?te(t,0,C()):t}function L(e){e!==_&&(y=_,_=e)}function P(){return!c(i.focus)||i.isNavigation}return{mount:function(){b(),s([Te,ve],b,o-1)},go:function(e,t,s){const r=function(e){let t=_;if(d(e)){const[,i,s]=e.match(/([+\-<>])(\d+)?/)||[];"+"===i||"-"===i?t=E(_+ +`${i}${+s||1}`,_,!0):">"===i?t=s?x(+s):T(!0):"<"===i&&(t=S(!0))}else t=h?e:te(e,0,C());return t}(e);if(i.useScroll)v(r,!0,!0,i.speed,s);else{const e=k(r);e>-1&&!n.isBusy()&&(t||e!==_)&&(L(e),n.move(r,e,y,s))}},scroll:v,getNext:T,getPrev:S,getAdjacent:w,getEnd:C,setIndex:L,getIndex:function(e){return e?y:_},toIndex:x,toPage:I,toDest:A,hasFocus:P}},Arrows:function(e,t,i){const{on:s,bind:n,emit:r}=Be(e),{classes:o,i18n:a}=i,{Elements:l,Controller:u}=t;let d,c=l.arrows,h=l.prev,p=l.next;const f={};function m(){if(i.arrows&&(h&&p||(c=O("div",o.arrows),h=g(!0),p=g(!1),d=!0,S(c,[h,p]),w(c,k("slider"===i.arrows&&l.slider||e.root)))),h&&p)if(f.prev)D(c,!1===i.arrows?"none":"");else{const{id:e}=l.track;P(h,Tt,e),P(p,Tt,e),f.prev=h,f.next=p,function(){const{go:e}=u;s([ue,he,Te,ve,Ae],_),n(p,"click",(()=>{e(">",!0)})),n(h,"click",(()=>{e("<",!0)}))}(),r(Pe,h,p)}}function g(e){return U(`<button class="${o.arrow} ${e?o.prev:o.next}" type="button"><svg xmlns="${Ot}" viewBox="0 0 40 40" width="40" height="40"><path d="${i.arrowPath||jt}" />`)}function _(){const t=e.index,i=u.getPrev(),s=u.getNext(),n=i>-1&&t<i?a.last:a.prev,o=s>-1&&t>s?a.first:a.next;h.disabled=i<0,p.disabled=s<0,P(h,wt,n),P(p,wt,o),r(Oe,h,p,i,s)}return{arrows:f,mount:function(){m(),s(Te,m)},destroy:function(){d?F(c):(L(h,xt),L(p,xt))}}},Autoplay:function(e,t,i){const{on:s,bind:n,emit:r}=Be(e),o=$e(i.interval,e.go.bind(e,">"),(function(e){const{bar:t}=l;t&&j(t,"width",100*e+"%"),r(Re,e)})),{isPaused:a}=o,{Elements:l}=t;let u,d,c;function h(e){const t=e?"pause":"play",s=l[t];s&&(P(s,Tt,l.track.id),P(s,wt,i.i18n[t]),n(s,"click",e?f:p))}function p(){a()&&t.Slides.isEnough()&&(o.start(!i.resetProgress),d=u=c=!1,r(Ne))}function f(e=!0){a()||(o.pause(),r(Fe)),c=e}function m(){c||(u||d?f(!1):p())}function g(){const s=t.Slides.getAt(e.index);o.set(s&&+M(s.slide,Dt)||i.interval)}return{mount:function(){const{autoplay:e}=i;e&&(h(!0),h(!1),function(){const{root:e}=l;i.pauseOnHover&&n(e,"mouseenter mouseleave",(e=>{u="mouseenter"===e.type,m()}));i.pauseOnFocus&&n(e,"focusin focusout",(e=>{d="focusin"===e.type,m()}));s([ce,Ie,ve],o.rewind),s(ce,g)}(),"pause"!==e&&p())},destroy:o.cancel,play:p,pause:f,isPaused:a}},Cover:function(e,t,i){const{on:s}=Be(e);function n(e){t.Slides.forEach((t=>{const i=k(t.container||t.slide,"img");i&&i.src&&r(e,i,t)}))}function r(e,t,i){i.style("background",e?`center/cover no-repeat url("${t.src}")`:"",!0),D(t,e?"none":"")}return{mount:function(){i.cover&&(s(Ue,((e,t)=>{r(!0,e,t)})),s([ue,Te,ve],n.bind(null,!0)))},destroy:function(){n(!1)}}},Scroll:function(e,t,i){const{on:s,emit:n}=Be(e),{Move:r}=t,{getPosition:o,getLimit:a,exceededLimit:l}=r;let u,d;function c(t,s,f,m){const g=o();let _=1;var y;s=s||(y=Z(t-g),Y(y/1.5,800)),d=f,p(),u=$e(s,h,(s=>{const n=o(),u=(g+(t-g)*function(e){const{easingFunc:t}=i;return t?t(e):1-Math.pow(1-e,4)}(s)-o())*_;var d;r.translate(n+u),e.is(It)&&!m&&l()&&(_*=.6,Z(u)<10&&(d=l(!1),c(a(!d),600,null,!0)))}),1),n(Ie),u.start()}function h(){const t=o(),i=r.toIndex(t);ee(i,0,e.length-1)||r.translate(r.shift(t,i>0),!0),d&&d(),n(Ae)}function p(){u&&u.cancel()}function f(){u&&!u.isPaused()&&(p(),h())}return{mount:function(){s(ce,p),s([Te,ve],f)},destroy:p,scroll:c,cancel:f}},Drag:function(e,t,i){const{on:s,emit:n,bind:r,unbind:o}=Be(e),{Move:a,Scroll:u,Controller:d}=t,{track:c}=t.Elements,{resolve:h,orient:p}=t.Direction,{getPosition:f,exceededLimit:m}=a;let g,_,y,b,v,T,S,w,C,k=!1;function x(){const{drag:e}=i;R(!e),v="free"===e}function I(e){if(!w){const{noDrag:t}=i,s=N(e),n=!t||!E(e.target,t);S=!1,!n||!s&&e.button||(a.isBusy()?B(e,!0):(C=s?c:window,y=null,b=null,r(C,Nt,A,Mt),r(C,Rt,L,Mt),a.cancel(),u.cancel(),P(e)))}}function A(t){if(b||n(Ce),b=t,t.cancelable){const s=D(t)-D(_);if(T){a.translate(g+function(t){return t/(k&&e.is(It)?5:1)}(s));const i=M(t)-M(_)>200,r=k!==(k=m());(i||r)&&P(t),n(ke),S=!0,B(t)}else{let{dragMinThreshold:e}=i;e=l(e)?e:{mouse:0,touch:+e||10},T=Z(s)>(N(t)?e.touch:e.mouse),j()&&B(t)}}}function L(s){o(C,Nt,A),o(C,Rt,L);const{index:r}=e;if(b){if(T||s.cancelable&&j()){const n=function(t){if(e.is(At)||!k){const e=_===b&&y||_,i=D(b)-D(e),s=M(t)-M(e),n=M(t)-M(b)<200;if(s&&n)return i/s}return 0}(s),o=function(e){return f()+ie(e)*K(Z(e)*(i.flickPower||600),v?1/0:t.Layout.listSize()*(i.flickMaxPages||1))}(n);v?d.scroll(o):e.is(Lt)?d.go(r+p(ie(n))):d.go(d.toDest(o),!0),B(s)}n(xe)}else v||f()===a.toPosition(r)||d.go(r,!0);T=!1}function P(e){y=_,_=e,g=f()}function O(e){!w&&S&&B(e,!0)}function j(){return Z(D(b)-D(_))>Z(D(b,!0)-D(_,!0))}function D(e,t){return(N(e)?e.touches[0]:e)[`page${h(t?"Y":"X")}`]}function M(e){return e.timeStamp}function N(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function R(e){w=e}return{mount:function(){r(c,Nt,G,Mt),r(c,Rt,G,Mt),r(c,"touchstart mousedown",I,Mt),r(c,"click",O,{capture:!0}),r(c,"dragstart",B),s([ue,Te],x)},disable:R,isDragging:function(){return T}}},Keyboard:function(e,t,i){const{on:s,bind:n,unbind:r}=Be(e),{root:o}=e,{resolve:a}=t.Direction;let l,u;function d(){const{keyboard:e}=i;e&&("focused"===e?(l=o,P(o,Ct,0)):l=window,n(l,Ut,m))}function c(){r(l,Ut),p(l)&&L(l,Ct)}function h(){const e=u;u=!0,W((()=>{u=e}))}function f(){c(),d()}function m(t){if(!u){const{key:i}=t,s=g(Ft,i)?`Arrow${i}`:i;s===a("ArrowLeft")?e.go("<"):s===a("ArrowRight")&&e.go(">")}}return{mount:function(){d(),s(Te,f),s(ce,h)},destroy:c,disable:function(e){u=e}}},LazyLoad:function(e,t,i){const{on:s,off:n,bind:r,emit:o}=Be(e),a="sequential"===i.lazyLoad;let l=[],u=0;function d(){h(),c()}function c(){t.Slides.forEach((e=>{q(e.slide,qt).forEach((t=>{const s=M(t,Bt),n=M(t,$t);if(s!==t.src||n!==t.srcset){const r=i.classes.spinner,o=t.parentElement,a=k(o,`.${r}`)||O("span",r,o);P(a,vt,"presentation"),l.push({_img:t,_Slide:e,src:s,srcset:n,_spinner:a}),!t.src&&D(t,"none")}}))})),a&&m()}function h(){u=0,l=[]}function p(){l=l.filter((t=>{const s=i.perPage*((i.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,s)||f(t)})),l.length||n(he)}function f(e){const{_img:t}=e;T(e._Slide.slide,_t),r(t,"load error",(t=>{!function(e,t){const{_Slide:i}=e;V(i.slide,_t),t||(F(e._spinner),D(e._img,""),o(Ue,e._img,i),o(Se));a&&m()}(e,"error"===t.type)})),["srcset","src"].forEach((i=>{e[i]&&(P(t,i,e[i]),L(t,"src"===i?Bt:$t))}))}function m(){u<l.length&&f(l[u++])}return{mount:function(){i.lazyLoad&&(c(),s(ve,d),a||s([ue,ve,he,Ae],p))},destroy:h}},Pagination:function(e,t,i){const{on:s,emit:n,bind:r,unbind:o}=Be(e),{Slides:l,Elements:u,Controller:d}=t,{hasFocus:c,getIndex:h}=d,p=[];let f;function m(){g(),i.pagination&&l.isEnough()&&(!function(){const{length:t}=e,{classes:s,i18n:n,perPage:o}=i,a="slider"===i.pagination&&u.slider||u.root,d=c()?t:J(t/o);f=O("ul",s.pagination,a);for(let e=0;e<d;e++){const t=O("li",null,f),i=O("button",{class:s.page,type:"button"},t),a=l.getIn(e).map((e=>e.slide.id)),u=!c()&&o>1?n.pageX:n.slideX;r(i,"click",_.bind(null,e)),P(i,Tt,a.join(" ")),P(i,wt,ne(u,e+1)),p.push({li:t,button:i,page:e})}}(),n(je,{list:f,items:p},y(e.index)),b())}function g(){f&&(F(f),p.forEach((e=>{o(e.button,"click")})),a(p),f=null)}function _(e){d.go(`>${e}`,!0,(()=>{const t=l.getAt(d.toIndex(e));var i;t&&((i=t.slide).setActive&&i.setActive()||i.focus({preventScroll:!0}))}))}function y(e){return p[d.toPage(e)]}function b(){const e=y(h(!0)),t=y(h());e&&(V(e.button,pt),L(e.button,St)),t&&(T(t.button,pt),P(t.button,St,!0)),n(De,{list:f,items:p},e,t)}return{items:p,mount:function(){m(),s([Te,ve],m),s([ce,Ae],b)},destroy:g,getAt:y,update:b}},Sync:function(e,t,i){const{list:s}=t.Elements,n=[];function r(){e.splides.forEach((t=>{var i;!t.isParent&&(i=t.splide,[e,i].forEach((t=>{const s=Be(t),r=t===e?i:e;s.on(ce,((e,t,i)=>{r.go(r.is(At)?i:e)})),n.push(s)})))})),i.isNavigation&&function(){const t=Be(e),{on:i}=t;i(fe,u),i(be,d),i([ue,Te],l),P(s,vt,"menu"),n.push(t),t.emit(Me,e.splides)}()}function o(){L(s,xt),n.forEach((e=>{e.destroy()})),a(n)}function l(){P(s,kt,i.direction!==He?"horizontal":null)}function u(t){e.go(t.index)}function d(e,t){g(Vt,t.key)&&(u(e),B(t))}return{mount:r,destroy:o,remount:function(){o(),r()}}},Wheel:function(e,t,i){const{bind:s}=Be(e);function n(s){if(s.cancelable){const{deltaY:n}=s;if(n){const r=n<0;e.go(r?"<":">"),function(s){return!i.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(s)}(r)&&B(s)}}}return{mount:function(){i.wheel&&s(t.Elements.track,"wheel",n,Mt)}}}});const zt={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:bt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function Wt(e,t,i){const{on:s}=Be(e);return{mount:function(){s([ue,ve],(()=>{W((()=>{t.Slides.style("transition",`opacity ${i.speed}ms ${i.easing}`)}))}))},start:function(e,i){const{track:s}=t.Elements;j(s,"height",H(R(s).height)),W((()=>{i(),j(s,"height","")}))},cancel:G}}function Gt(e,t,i){const{bind:s}=Be(e),{Move:n,Controller:r}=t,{list:o}=t.Elements;let a;function l(){u("")}function u(e){j(o,"transition",e)}return{mount:function(){s(o,"transitionend",(e=>{e.target===o&&a&&(l(),a())}))},start:function(t,s){const o=n.toPosition(t,!0),l=n.getPosition(),d=function(t){const{rewindSpeed:s}=i;if(e.is(It)&&s){const e=r.getIndex(!0),i=r.getEnd();if(0===e&&t>=i||e>=i&&0===t)return s}return i.speed}(t);Z(o-l)>=1&&d>=1?(u(`transform ${d}ms ${i.easing}`),n.translate(o,!0),a=s):(n.jump(t),s())},cancel:l}}const Xt=class{constructor(e,t){this.event=le(),this.Components={},this.state=qe(1),this.splides=[],this._options={},this._Extensions={};const i=d(e)?$(document,e):e;z(i,`${i} is invalid.`),this.root=i,A(zt,Xt.defaults),A(A(this._options,zt),t||{})}mount(e,t){const{state:i,Components:s}=this;z(i.is([1,5]),"Already mounted!"),i.set(1),this._Components=s,this._Transition=t||this._Transition||(this.is(Lt)?Wt:Gt),this._Extensions=e||this._Extensions;return x(I({},Ht,this._Extensions,{Transition:this._Transition}),((e,t)=>{const i=e(this,s,this._options);s[t]=i,i.setup&&i.setup()})),x(s,(e=>{e.mount&&e.mount()})),this.emit(ue),T(this.root,ht),i.set(3),this.emit(de),this}sync(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}go(e){return this._Components.Controller.go(e),this}on(e,t){return this.event.on(e,t,null,20),this}off(e){return this.event.off(e),this}emit(e){return this.event.emit(e,...b(arguments,1)),this}add(e,t){return this._Components.Slides.add(e,t),this}remove(e){return this._Components.Slides.remove(e),this}is(e){return this._options.type===e}refresh(){return this.emit(ve),this}destroy(e=!0){const{event:t,state:i}=this;return i.is(1)?t.on(de,this.destroy.bind(this,e),this):(x(this._Components,(t=>{t.destroy&&t.destroy(e)}),!0),t.emit(Le),t.destroy(),e&&a(this.splides),i.set(5)),this}get options(){return this._options}set options(e){const{_options:t}=this;A(t,e),this.state.is(1)||this.emit(Te,t)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}};let Kt=Xt;Kt.defaults={},Kt.STATES=r;const Yt={listTag:"ul",slideTag:"li"};class Qt{constructor(e,t){this.styles={},this.id=e,this.options=t}rule(e,t,i,s){s=s||"default";const n=this.styles[s]=this.styles[s]||{};(n[e]=n[e]||{})[t]=i}build(){let e="";return this.styles.default&&(e+=this.buildSelectors(this.styles.default)),Object.keys(this.styles).sort(((e,t)=>"min"===this.options.mediaQuery?+e-+t:+t-+e)).forEach((t=>{"default"!==t&&(e+=`@media screen and (max-width: ${t}px) {`,e+=this.buildSelectors(this.styles[t]),e+="}")})),e}buildSelectors(e){let t="";return x(e,((e,i)=>{i=`#${this.id} ${i}`.trim(),t+=`${i} {`,x(e,((e,i)=>{(e||0===e)&&(t+=`${i}: ${e};`)})),t+="}"})),t}}class Jt{constructor(e,t,i,s){this.slides=[],this.options={},this.breakpoints=[],A(zt,s||{}),A(A(this.options,zt),t||{}),this.contents=e,this.config=I({},Yt,i||{}),this.id=this.config.id||ae("splide"),this.Style=new Qt(this.id,this.options),this.Direction=We(0,0,this.options),z(this.contents.length,"Provide at least 1 content."),this.init()}static clean(e){const{on:t}=Be(e),{root:i}=e,s=q(i,`.${Je}`);t(ue,(()=>{F(k(i,"style"))})),F(s)}init(){this.parseBreakpoints(),this.initSlides(),this.registerRootStyles(),this.registerTrackStyles(),this.registerSlideStyles(),this.registerListStyles()}initSlides(){_(this.slides,this.contents.map(((e,t)=>{(e=d(e)?{html:e}:e).styles=e.styles||{},e.attrs=e.attrs||{},this.cover(e);const i=`${this.options.classes.slide} ${0===t?pt:""}`;return I(e.attrs,{class:`${i} ${e.attrs.class||""}`.trim(),style:this.buildStyles(e.styles)}),e}))),this.isLoop()&&this.generateClones(this.slides)}registerRootStyles(){this.breakpoints.forEach((([e,t])=>{this.Style.rule(" ","max-width",H(t.width),e)}))}registerTrackStyles(){const{Style:e}=this,t=`.${Ke}`;this.breakpoints.forEach((([i,s])=>{e.rule(t,this.resolve("paddingLeft"),this.cssPadding(s,!1),i),e.rule(t,this.resolve("paddingRight"),this.cssPadding(s,!0),i),e.rule(t,"height",this.cssTrackHeight(s),i)}))}registerListStyles(){const{Style:e}=this,t=`.${Ye}`;this.breakpoints.forEach((([i,s])=>{e.rule(t,"transform",this.buildTranslate(s),i),this.cssSlideHeight(s)||e.rule(t,"aspect-ratio",this.cssAspectRatio(s),i)}))}registerSlideStyles(){const{Style:e}=this,t=`.${Qe}`;this.breakpoints.forEach((([i,s])=>{e.rule(t,"width",this.cssSlideWidth(s),i),e.rule(t,"height",this.cssSlideHeight(s)||"100%",i),e.rule(t,this.resolve("marginRight"),H(s.gap)||"0px",i),e.rule(`${t} > img`,"display",s.cover?"none":"inline",i)}))}buildTranslate(e){const{resolve:t,orient:i}=this.Direction,s=[];return s.push(this.cssOffsetClones(e)),s.push(this.cssOffsetGaps(e)),this.isCenter(e)&&(s.push(this.buildCssValue(i(-50),"%")),s.push(...this.cssOffsetCenter(e))),s.filter(Boolean).map((e=>`translate${t("X")}(${e})`)).join(" ")}cssOffsetClones(e){const{resolve:t,orient:i}=this.Direction,s=this.getCloneCount();if(this.isFixedWidth(e)){const{value:n,unit:r}=this.parseCssValue(e[t("fixedWidth")]);return this.buildCssValue(i(n)*s,r)}return`${i(100*s/e.perPage)}%`}cssOffsetCenter(e){const{resolve:t,orient:i}=this.Direction;if(this.isFixedWidth(e)){const{value:s,unit:n}=this.parseCssValue(e[t("fixedWidth")]);return[this.buildCssValue(i(s/2),n)]}const s=[],{perPage:n,gap:r}=e;if(s.push(`${i(50/n)}%`),r){const{value:e,unit:t}=this.parseCssValue(r),o=(e/n-e)/2;s.push(this.buildCssValue(i(o),t))}return s}cssOffsetGaps(e){const t=this.getCloneCount();if(t&&e.gap){const{orient:i}=this.Direction,{value:s,unit:n}=this.parseCssValue(e.gap);if(this.isFixedWidth(e))return this.buildCssValue(i(s*t),n);const{perPage:r}=e,o=t/r;return this.buildCssValue(i(o*s),n)}return""}resolve(e){return se(this.Direction.resolve(e))}cssPadding(e,t){const{padding:i}=e,s=this.Direction.resolve(t?"right":"left",!0);return i&&H(i[s]||(l(i)?0:i))||"0px"}cssTrackHeight(e){let t="";return this.isVertical()&&(t=this.cssHeight(e),z(t,'"height" is missing.'),t=`calc(${t} - ${this.cssPadding(e,!1)} - ${this.cssPadding(e,!0)})`),t}cssHeight(e){return H(e.height)}cssSlideWidth(e){return e.autoWidth?"":H(e.fixedWidth)||(this.isVertical()?"":this.cssSlideSize(e))}cssSlideHeight(e){return H(e.fixedHeight)||(this.isVertical()?e.autoHeight?"":this.cssSlideSize(e):this.cssHeight(e))}cssSlideSize(e){const t=H(e.gap);return`calc((100%${t&&` + ${t}`})/${e.perPage||1}${t&&` - ${t}`})`}cssAspectRatio(e){const{heightRatio:t}=e;return t?""+1/t:""}buildCssValue(e,t){return`${e}${t}`}parseCssValue(e){if(d(e)){return{value:parseFloat(e)||0,unit:e.replace(/\d*(\.\d*)?/,"")||"px"}}return{value:e,unit:"px"}}parseBreakpoints(){const{breakpoints:e}=this.options;this.breakpoints.push(["default",this.options]),e&&x(e,((e,t)=>{this.breakpoints.push([t,A(A({},this.options),e)])}))}isFixedWidth(e){return!!e[this.Direction.resolve("fixedWidth")]}isLoop(){return this.options.type===At}isCenter(e){if("center"===e.focus){if(this.isLoop())return!0;if(this.options.type===It)return!this.options.trimSpace}return!1}isVertical(){return this.options.direction===He}buildClasses(){const{options:e}=this;return[Ge,`${Ge}--${e.type}`,`${Ge}--${e.direction}`,e.drag&&`${Ge}--draggable`,e.isNavigation&&`${Ge}--nav`,pt,!this.config.hidden&&"is-rendered"].filter(Boolean).join(" ")}buildAttrs(e){let t="";return x(e,((e,i)=>{t+=e?` ${se(i)}="${e}"`:""})),t.trim()}buildStyles(e){let t="";return x(e,((e,i)=>{t+=` ${se(i)}:${e};`})),t.trim()}renderSlides(){const{slideTag:e}=this.config;return this.slides.map((t=>`<${e} ${this.buildAttrs(t.attrs)}>${t.html||""}</${e}>`)).join("")}cover(e){const{styles:t,html:i=""}=e;if(this.options.cover&&!this.options.lazyLoad){const e=i.match(/<img.*?src\s*=\s*(['"])(.+?)\1.*?>/);e&&e[2]&&(t.background=`center/cover no-repeat url('${e[2]}')`)}}generateClones(e){const{classes:t}=this.options,i=this.getCloneCount(),s=e.slice();for(;s.length<i;)_(s,s);_(s.slice(-i).reverse(),s.slice(0,i)).forEach(((s,n)=>{const r=I({},s.attrs,{class:`${s.attrs.class} ${t.clone}`}),o=I({},s,{attrs:r});n<i?e.unshift(o):e.push(o)}))}getCloneCount(){if(this.isLoop()){const{options:e}=this;if(e.clones)return e.clones;return Y(...this.breakpoints.map((([,e])=>e.perPage)))*((e.flickMaxPages||1)+1)}return 0}renderArrows(){let e="";return e+=`<div class="${this.options.classes.arrows}">`,e+=this.renderArrow(!0),e+=this.renderArrow(!1),e+="</div>",e}renderArrow(e){const{classes:t,i18n:i}=this.options,s={class:`${t.arrow} ${e?t.prev:t.next}`,type:"button",ariaLabel:e?i.prev:i.next};return`<button ${this.buildAttrs(s)}><svg xmlns="${Ot}" viewBox="0 0 40 40" width="40" height="40"><path d="${this.options.arrowPath||jt}" /></svg></button>`}html(){const{rootClass:e,listTag:t,arrows:i,beforeTrack:s,afterTrack:n,slider:r,beforeSlider:o,afterSlider:a}=this.config;let l="";return l+=`<div id="${this.id}" class="${this.buildClasses()} ${e||""}">`,l+=`<style>${this.Style.build()}</style>`,r&&(l+=o||"",l+='<div class="splide__slider">'),l+=s||"",i&&(l+=this.renderArrows()),l+='<div class="splide__track">',l+=`<${t} class="splide__list">`,l+=this.renderSlides(),l+=`</${t}>`,l+="</div>",l+=n||"",r&&(l+="</div>",l+=a||""),l+="</div>",l}}},
vendor: 3,499 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/byte-helpers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{ENDIANNESS:()=>g,IS_BIG_ENDIAN:()=>_,IS_LITTLE_ENDIAN:()=>y,bytesMatch:()=>E,bytesToNumber:()=>b,bytesToString:()=>T,concatTypedArrays:()=>w,countBits:()=>o,countBytes:()=>a,isArrayBufferView:()=>u,isTypedArray:()=>d,numberToBytes:()=>v,padStart:()=>l,reverseBytes:()=>k,sliceBytes:()=>C,stringToBytes:()=>S,toBinaryString:()=>p,toHexString:()=>h,toUint8:()=>c});var s,n,r=i("./node_modules/global/window.js"),o=function(e){return e.toString(2).length},a=function(e){return Math.ceil(o(e)/8)},l=function(e,t,i){return void 0===i&&(i=" "),(function(e,t){for(var i="";t--;)i+=e;return i}(i,t)+e.toString()).slice(-t)},u=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},d=function(e){return u(e)},c=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||d(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))},h=function(e){e=c(e);for(var t="",i=0;i<e.length;i++)t+=l(e[i].toString(16),2,"0");return t},p=function(e){e=c(e);for(var t="",i=0;i<e.length;i++)t+=l(e[i].toString(2),8,"0");return t},f=i.n(r)().BigInt||Number,m=[f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000")],g=(s=new Uint16Array([65484]),255===(n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength))[0]?"big":204===n[0]?"little":"unknown"),_="big"===g,y="little"===g,b=function(e,t){var i=void 0===t?{}:t,s=i.signed,n=void 0!==s&&s,r=i.le,o=void 0!==r&&r;e=c(e);var a=o?"reduce":"reduceRight",l=(e[a]?e[a]:Array.prototype[a]).call(e,(function(t,i,s){var n=o?s:Math.abs(s+1-e.length);return t+f(i)*m[n]}),f(0));if(n){var u=m[e.length]/f(2)-f(1);(l=f(l))>u&&(l-=u,l-=u,l-=f(2))}return Number(l)},v=function(e,t){var i=(void 0===t?{}:t).le,s=void 0!==i&&i;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=f(e);for(var n=a(e),r=new Uint8Array(new ArrayBuffer(n)),o=0;o<n;o++){var l=s?o:Math.abs(o+1-r.length);r[l]=Number(e/m[o]&f(255)),e<0&&(r[l]=Math.abs(~r[l]),r[l]-=0===o?1:2)}return r},T=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,c(e));try{return decodeURIComponent(escape(t))}catch(e){}return t},S=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),s=0;s<e.length;s++)i[s]=e.charCodeAt(s);return i},w=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 c(t[0]);var s=t.reduce((function(e,t,i){return e+(t.byteLength||t.length)}),0),n=new Uint8Array(s),r=0;return t.forEach((function(e){e=c(e),n.set(e,r),r+=e.byteLength})),n},E=function(e,t,i){var s=void 0===i?{}:i,n=s.offset,r=void 0===n?0:n,o=s.mask,a=void 0===o?[]:o;e=c(e);var l=(t=c(t)).every?t.every:Array.prototype.every;return t.length&&e.length-r>=t.length&&l.call(t,(function(t,i){return t===(a[i]?a[i]&e[r+i]:e[r+i])}))},C=function(e,t,i){return Uint8Array.prototype.slice?Uint8Array.prototype.slice.call(e,t,i):new Uint8Array(Array.prototype.slice.call(e,t,i))},k=function(e){return e.reverse?e.reverse():Array.prototype.reverse.call(e)}},
vendor: 1,021 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/codec-helpers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{getAv1Codec:()=>n,getAvcCodec:()=>r,getHvcCodec:()=>o});var s=i("./node_modules/@videojs/vhs-utils/es/byte-helpers.js"),n=function(e){var t,i="",n=e[1]>>>3,r=31&e[1],o=e[2]>>>7,a=(64&e[2])>>6,l=(32&e[2])>>5,u=(16&e[2])>>4,d=(8&e[2])>>3,c=(4&e[2])>>2,h=3&e[2];return i+=n+"."+(0,s.padStart)(r,2,"0"),0===o?i+="M":1===o&&(i+="H"),t=2===n&&a?l?12:10:a?10:8,i+="."+(0,s.padStart)(t,2,"0"),i+="."+u,i+="."+d+c+h},r=function(e){return""+(0,s.toHexString)(e[1])+(0,s.toHexString)(252&e[2])+(0,s.toHexString)(e[3])},o=function(e){var t="",i=e[1]>>6,n=31&e[1],r=(32&e[1])>>5,o=e.subarray(2,6),a=e.subarray(6,12),l=e[12];1===i?t+="A":2===i?t+="B":3===i&&(t+="C"),t+=n+".";var u=parseInt((0,s.toBinaryString)(o).split("").reverse().join(""),2);u>255&&(u=parseInt((0,s.toBinaryString)(o),2)),t+=u.toString(16)+".",t+=0===r?"L":"H",t+=l;for(var d="",c=0;c<a.length;c++){var h=a[c];h&&(d&&(d+="."),d+=h.toString(16))}return d&&(t+="."+d),t}},
vendor: 2,683 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/codecs.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{DEFAULT_AUDIO_CODEC:()=>b,DEFAULT_VIDEO_CODEC:()=>v,browserSupportsCodec:()=>_,codecsFromDefault:()=>h,getMimeForCodec:()=>g,isAudioCodec:()=>f,isTextCodec:()=>m,isVideoCodec:()=>p,mapLegacyAvcCodecs:()=>d,muxerSupportsCodec:()=>y,parseCodecs:()=>c,translateLegacyCodec:()=>l,translateLegacyCodecs:()=>u});var s=i("./node_modules/global/window.js"),n=i.n(s),r={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^/},o=["video","audio","text"],a=["Video","Audio","Text"],l=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},u=function(e){return e.map(l)},d=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e){return u([e])[0]}))},c=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach((function(e){var t;e=e.trim(),o.forEach((function(s){var n=r[s].exec(e.toLowerCase());if(n&&!(n.length<=1)){t=s;var o=e.substring(0,n[1].length),a=e.replace(o,"");i.push({type:o,details:a,mediaType:s})}})),t||i.push({type:e,details:"",mediaType:"unknown"})})),i},h=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var s in i){var n=i[s];if(n.default&&n.playlists)return c(n.playlists[0].attributes.CODECS)}return null},p=function(e){return void 0===e&&(e=""),r.video.test(e.trim().toLowerCase())},f=function(e){return void 0===e&&(e=""),r.audio.test(e.trim().toLowerCase())},m=function(e){return void 0===e&&(e=""),r.text.test(e.trim().toLowerCase())},g=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map((function(e){return l(e.trim())})),i="video";1===t.length&&f(t[0])?i="audio":1===t.length&&m(t[0])&&(i="application");var s="mp4";return t.every((function(e){return r.mp4.test(e)}))?s="mp4":t.every((function(e){return r.webm.test(e)}))?s="webm":t.every((function(e){return r.ogg.test(e)}))&&(s="ogg"),i+"/"+s+';codecs="'+e+'"'}},_=function(e){return void 0===e&&(e=""),n().MediaSource&&n().MediaSource.isTypeSupported&&n().MediaSource.isTypeSupported(g(e))||!1},y=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<a.length;t++){if(r["muxer"+a[t]].test(e))return!0}return!1}))},b="mp4a.40.2",v="avc1.4d400d"},
vendor: 2,828 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/containers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{detectContainerForBytes:()=>h,isLikely:()=>c,isLikelyFmp4MediaSegment:()=>p});var s=i("./node_modules/@videojs/vhs-utils/es/byte-helpers.js"),n=i("./node_modules/@videojs/vhs-utils/es/mp4-helpers.js"),r=i("./node_modules/@videojs/vhs-utils/es/ebml-helpers.js"),o=i("./node_modules/@videojs/vhs-utils/es/id3-helpers.js"),a=i("./node_modules/@videojs/vhs-utils/es/nal-helpers.js"),l={webm:(0,s.toUint8)([119,101,98,109]),matroska:(0,s.toUint8)([109,97,116,114,111,115,107,97]),flac:(0,s.toUint8)([102,76,97,67]),ogg:(0,s.toUint8)([79,103,103,83]),ac3:(0,s.toUint8)([11,119]),riff:(0,s.toUint8)([82,73,70,70]),avi:(0,s.toUint8)([65,86,73]),wav:(0,s.toUint8)([87,65,86,69]),"3gp":(0,s.toUint8)([102,116,121,112,51,103]),mp4:(0,s.toUint8)([102,116,121,112]),fmp4:(0,s.toUint8)([115,116,121,112]),mov:(0,s.toUint8)([102,116,121,112,113,116]),moov:(0,s.toUint8)([109,111,111,118]),moof:(0,s.toUint8)([109,111,111,102])},u={aac:function(e){var t=(0,o.getId3Offset)(e);return(0,s.bytesMatch)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=(0,o.getId3Offset)(e);return(0,s.bytesMatch)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=(0,r.findEbml)(e,[r.EBML_TAGS.EBML,r.EBML_TAGS.DocType])[0];return(0,s.bytesMatch)(t,l.webm)},mkv:function(e){var t=(0,r.findEbml)(e,[r.EBML_TAGS.EBML,r.EBML_TAGS.DocType])[0];return(0,s.bytesMatch)(t,l.matroska)},mp4:function(e){return!u["3gp"](e)&&!u.mov(e)&&(!(!(0,s.bytesMatch)(e,l.mp4,{offset:4})&&!(0,s.bytesMatch)(e,l.fmp4,{offset:4}))||(!(!(0,s.bytesMatch)(e,l.moof,{offset:4})&&!(0,s.bytesMatch)(e,l.moov,{offset:4}))||void 0))},mov:function(e){return(0,s.bytesMatch)(e,l.mov,{offset:4})},"3gp":function(e){return(0,s.bytesMatch)(e,l["3gp"],{offset:4})},ac3:function(e){var t=(0,o.getId3Offset)(e);return(0,s.bytesMatch)(e,l.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=(0,o.getId3Offset)(e);return(0,s.bytesMatch)(e,l.flac,{offset:t})},ogg:function(e){return(0,s.bytesMatch)(e,l.ogg)},avi:function(e){return(0,s.bytesMatch)(e,l.riff)&&(0,s.bytesMatch)(e,l.avi,{offset:8})},wav:function(e){return(0,s.bytesMatch)(e,l.riff)&&(0,s.bytesMatch)(e,l.wav,{offset:8})},h264:function(e){return(0,a.findH264Nal)(e,7,3).length},h265:function(e){return(0,a.findH265Nal)(e,[32,33],3).length}},d=Object.keys(u).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);d.forEach((function(e){var t=u[e];u[e]=function(e){return t((0,s.toUint8)(e))}}));var c=u,h=function(e){e=(0,s.toUint8)(e);for(var t=0;t<d.length;t++){var i=d[t];if(c[i](e))return i}return""},p=function(e){return(0,n.findBox)(e,["moof"]).length>0}},
vendor: 366 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i("./node_modules/global/window.js"),n=i.n(s),r=function(e){return n().atob?n().atob(e):Buffer.from(e,"base64").toString("binary")};function o(e){for(var t=r(e),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}},
vendor: 6,024 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/ebml-helpers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{EBML_TAGS:()=>r,decodeBlock:()=>c,findEbml:()=>d,parseData:()=>p,parseTracks:()=>h});var s=i("./node_modules/@videojs/vhs-utils/es/byte-helpers.js"),n=i("./node_modules/@videojs/vhs-utils/es/codec-helpers.js"),r={EBML:(0,s.toUint8)([26,69,223,163]),DocType:(0,s.toUint8)([66,130]),Segment:(0,s.toUint8)([24,83,128,103]),SegmentInfo:(0,s.toUint8)([21,73,169,102]),Tracks:(0,s.toUint8)([22,84,174,107]),Track:(0,s.toUint8)([174]),TrackNumber:(0,s.toUint8)([215]),DefaultDuration:(0,s.toUint8)([35,227,131]),TrackEntry:(0,s.toUint8)([174]),TrackType:(0,s.toUint8)([131]),FlagDefault:(0,s.toUint8)([136]),CodecID:(0,s.toUint8)([134]),CodecPrivate:(0,s.toUint8)([99,162]),VideoTrack:(0,s.toUint8)([224]),AudioTrack:(0,s.toUint8)([225]),Cluster:(0,s.toUint8)([31,67,182,117]),Timestamp:(0,s.toUint8)([231]),TimestampScale:(0,s.toUint8)([42,215,177]),BlockGroup:(0,s.toUint8)([160]),BlockDuration:(0,s.toUint8)([155]),Block:(0,s.toUint8)([161]),SimpleBlock:(0,s.toUint8)([163])},o=[128,64,32,16,8,4,2,1],a=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<o.length&&!(e&o[i]);i++)t++;return t}(e[t]),a=e.subarray(t,t+r);return i&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=o[r-1]),{length:r,value:(0,s.bytesToNumber)(a,{signed:n}),bytes:a}},l=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"==typeof t?(0,s.numberToBytes)(t):t},u=function e(t,i,n){if(n>=i.length)return i.length;var r=a(i,n,!1);if((0,s.bytesMatch)(t.bytes,r.bytes))return n;var o=a(i,n+r.length);return e(t,i,n+o.length+o.value+r.length)},d=function e(t,i){i=function(e){return Array.isArray(e)?e.map((function(e){return l(e)})):[l(e)]}(i),t=(0,s.toUint8)(t);var n=[];if(!i.length)return n;for(var r=0;r<t.length;){var o=a(t,r,!1),d=a(t,r+o.length),c=r+o.length+d.length;127===d.value&&(d.value=u(o,t,c),d.value!==t.length&&(d.value-=c));var h=c+d.value>t.length?t.length:c+d.value,p=t.subarray(c,h);(0,s.bytesMatch)(i[0],o.bytes)&&(1===i.length?n.push(p):n=n.concat(e(p,i.slice(1)))),r+=o.length+d.length+p.length}return n},c=function(e,t,i,n){var o;"group"===t&&((o=d(e,[r.BlockDuration])[0])&&(o=1/i*(o=(0,s.bytesToNumber)(o))*i/1e3),e=d(e,[r.Block])[0],t="block");var l=new DataView(e.buffer,e.byteOffset,e.byteLength),u=a(e,0),c=l.getInt16(u.length,!1),h=e[u.length+2],p=e.subarray(u.length+3),f=1/i*(n+c)*i/1e3,m={duration:o,trackNumber:u.value,keyframe:"simple"===t&&h>>7==1,invisible:(8&h)>>3==1,lacing:(6&h)>>1,discardable:"simple"===t&&!(1&~h),frames:[],pts:f,dts:f,timestamp:c};if(!m.lacing)return m.frames.push(p),m;var g=p[0]+1,_=[],y=1;if(2===m.lacing)for(var b=(p.length-y)/g,v=0;v<g;v++)_.push(b);if(1===m.lacing)for(var T=0;T<g-1;T++){var S=0;do{S+=p[y],y++}while(255===p[y-1]);_.push(S)}if(3===m.lacing)for(var w=0,E=0;E<g-1;E++){var C=0===E?a(p,y):a(p,y,!0,!0);w+=C.value,_.push(w),y+=C.length}return _.forEach((function(e){m.frames.push(p.subarray(y,y+e)),y+=e})),m},h=function(e){e=(0,s.toUint8)(e);var t=[],i=d(e,[r.Segment,r.Tracks,r.Track]);return i.length||(i=d(e,[r.Tracks,r.Track])),i.length||(i=d(e,[r.Track])),i.length?(i.forEach((function(e){var i=d(e,r.TrackType)[0];if(i&&i.length){if(1===i[0])i="video";else if(2===i[0])i="audio";else{if(17!==i[0])return;i="subtitle"}var o={rawCodec:(0,s.bytesToString)(d(e,[r.CodecID])[0]),type:i,codecPrivate:d(e,[r.CodecPrivate])[0],number:(0,s.bytesToNumber)(d(e,[r.TrackNumber])[0]),defaultDuration:(0,s.bytesToNumber)(d(e,[r.DefaultDuration])[0]),default:d(e,[r.FlagDefault])[0],rawData:e},a="";if(/V_MPEG4\/ISO\/AVC/.test(o.rawCodec))a="avc1."+(0,n.getAvcCodec)(o.codecPrivate);else if(/V_MPEGH\/ISO\/HEVC/.test(o.rawCodec))a="hev1."+(0,n.getHvcCodec)(o.codecPrivate);else if(/V_MPEG4\/ISO\/ASP/.test(o.rawCodec))a=o.codecPrivate?"mp4v.20."+o.codecPrivate[4].toString():"mp4v.20.9";else if(/^V_THEORA/.test(o.rawCodec))a="theora";else if(/^V_VP8/.test(o.rawCodec))a="vp8";else if(/^V_VP9/.test(o.rawCodec))if(o.codecPrivate){var l=function(e){for(var t=0,i={};t<e.length;){var s=127&e[t],n=e[t+1],r=void 0;r=1===n?e[t+2]:e.subarray(t+2,t+2+n),1===s?i.profile=r:2===s?i.level=r:3===s?i.bitDepth=r:4===s?i.chromaSubsampling=r:i[s]=r,t+=2+n}return i}(o.codecPrivate),u=l.profile,c=l.level,h=l.bitDepth,p=l.chromaSubsampling;a="vp09.",a+=(0,s.padStart)(u,2,"0")+".",a+=(0,s.padStart)(c,2,"0")+".",a+=(0,s.padStart)(h,2,"0")+".",a+=""+(0,s.padStart)(p,2,"0");var f=d(e,[224,[85,176],[85,177]])[0]||[],m=d(e,[224,[85,176],[85,185]])[0]||[],g=d(e,[224,[85,176],[85,186]])[0]||[],_=d(e,[224,[85,176],[85,187]])[0]||[];(f.length||m.length||g.length||_.length)&&(a+="."+(0,s.padStart)(_[0],2,"0"),a+="."+(0,s.padStart)(g[0],2,"0"),a+="."+(0,s.padStart)(f[0],2,"0"),a+="."+(0,s.padStart)(m[0],2,"0"))}else a="vp9";else/^V_AV1/.test(o.rawCodec)?a="av01."+(0,n.getAv1Codec)(o.codecPrivate):/A_ALAC/.test(o.rawCodec)?a="alac":/A_MPEG\/L2/.test(o.rawCodec)?a="mp2":/A_MPEG\/L3/.test(o.rawCodec)?a="mp3":/^A_AAC/.test(o.rawCodec)?a=o.codecPrivate?"mp4a.40."+(o.codecPrivate[0]>>>3).toString():"mp4a.40.2":/^A_AC3/.test(o.rawCodec)?a="ac-3":/^A_PCM/.test(o.rawCodec)?a="pcm":/^A_MS\/ACM/.test(o.rawCodec)?a="speex":/^A_EAC3/.test(o.rawCodec)?a="ec-3":/^A_VORBIS/.test(o.rawCodec)?a="vorbis":/^A_FLAC/.test(o.rawCodec)?a="flac":/^A_OPUS/.test(o.rawCodec)&&(a="opus");o.codec=a,t.push(o)}})),t.sort((function(e,t){return e.number-t.number}))):t},p=function(e,t){var i=[],n=d(e,[r.Segment])[0],o=d(n,[r.SegmentInfo,r.TimestampScale])[0];o=o&&o.length?(0,s.bytesToNumber)(o):1e6;var a=d(n,[r.Cluster]);return t||(t=h(n)),a.forEach((function(e,t){var n=d(e,[r.SimpleBlock]).map((function(e){return{type:"simple",data:e}})),a=d(e,[r.BlockGroup]).map((function(e){return{type:"group",data:e}})),l=d(e,[r.Timestamp])[0]||0;l&&l.length&&(l=(0,s.bytesToNumber)(l)),n.concat(a).sort((function(e,t){return e.data.byteOffset-t.data.byteOffset})).forEach((function(e,t){var s=c(e.data,e.type,o,l);i.push(s)}))})),{tracks:t,blocks:i}}},
vendor: 485 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/id3-helpers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{getId3Offset:()=>o,getId3Size:()=>r});var s=i("./node_modules/@videojs/vhs-utils/es/byte-helpers.js"),n=(0,s.toUint8)([73,68,51]),r=function(e,t){void 0===t&&(t=0);var i=(e=(0,s.toUint8)(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},o=function e(t,i){return void 0===i&&(i=0),(t=(0,s.toUint8)(t)).length-i<10||!(0,s.bytesMatch)(t,n,{offset:i})?i:e(t,i+=r(t,i))}},
vendor: 273 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/media-groups.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{forEachMediaGroup:()=>s});var s=function(e,t,i){t.forEach((function(t){for(var s in e.mediaGroups[t])for(var n in e.mediaGroups[t][s]){var r=e.mediaGroups[t][s][n];i(r,t,s,n)}}))}},
vendor: 327 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/media-types.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{simpleTypeFromSourceType:()=>r});var s=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,n=/^application\/dash\+xml/i,r=function(e){return s.test(e)?"hls":n.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},
vendor: 5,919 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/mp4-helpers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{addSampleDescription:()=>p,buildFrameTable:()=>h,findBox:()=>u,findNamedBox:()=>d,parseDescriptors:()=>l,parseMediaInfo:()=>m,parseTracks:()=>f});var s,n=i("./node_modules/@videojs/vhs-utils/es/byte-helpers.js"),r=i("./node_modules/@videojs/vhs-utils/es/codec-helpers.js"),o=i("./node_modules/@videojs/vhs-utils/es/opus-helpers.js"),a=function(e){return"string"==typeof e?(0,n.stringToBytes)(e):e},l=function(e){e=(0,n.toUint8)(e);for(var t=[],i=0;e.length>i;){var r=e[i],o=0,a=0,l=e[++a];for(a++;128&l;)o=(127&l)<<7,l=e[a],a++;o+=127&l;for(var u=0;u<s.length;u++){var d=s[u],c=d.id,h=d.parser;if(r===c){t.push(h(e.subarray(a,a+o)));break}}i+=o+a}return t};s=[{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=(0,n.bytesToString)(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=l(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:l(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var u=function e(t,i,s){void 0===s&&(s=!1),i=function(e){return Array.isArray(e)?e.map((function(e){return a(e)})):[a(e)]}(i),t=(0,n.toUint8)(t);var r=[];if(!i.length)return r;for(var o=0;o<t.length;){var l=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,u=t.subarray(o+4,o+8);if(0===l)break;var d=o+l;if(d>t.length){if(s)break;d=t.length}var c=t.subarray(o+8,d);(0,n.bytesMatch)(u,i[0])&&(1===i.length?r.push(c):r.push.apply(r,e(c,i.slice(1),s))),o=d}return r},d=function(e,t){if(!(t=a(t)).length)return e.subarray(e.length);for(var i=0;i<e.length;){if((0,n.bytesMatch)(e.subarray(i,i+t.length),t)){var s=(e[i-4]<<24|e[i-3]<<16|e[i-2]<<8|e[i-1])>>>0,r=s>1?i+s:e.byteLength;return e.subarray(i+4,r)}i++}return e.subarray(e.length)},c=function(e,t,i){void 0===t&&(t=4),void 0===i&&(i=function(e){return(0,n.bytesToNumber)(e)});var s=[];if(!e||!e.length)return s;for(var r=(0,n.bytesToNumber)(e.subarray(4,8)),o=8;r;o+=t,r--)s.push(i(e.subarray(o,o+t)));return s},h=function(e,t){for(var i=c(u(e,["stss"])[0]),s=c(u(e,["stco"])[0]),r=c(u(e,["stts"])[0],8,(function(e){return{sampleCount:(0,n.bytesToNumber)(e.subarray(0,4)),sampleDelta:(0,n.bytesToNumber)(e.subarray(4,8))}})),o=c(u(e,["stsc"])[0],12,(function(e){return{firstChunk:(0,n.bytesToNumber)(e.subarray(0,4)),samplesPerChunk:(0,n.bytesToNumber)(e.subarray(4,8)),sampleDescriptionIndex:(0,n.bytesToNumber)(e.subarray(8,12))}})),a=u(e,["stsz"])[0],l=c(a&&a.length&&a.subarray(4)||null),d=[],h=0;h<s.length;h++){for(var p=void 0,f=0;f<o.length;f++){var m=o[f];if(h+1>=m.firstChunk&&(f+1>=o.length||h+1<o[f+1].firstChunk)){p=m.samplesPerChunk;break}}for(var g=s[h],_=0;_<p;_++){var y=l[d.length],b=!i.length;i.length&&-1!==i.indexOf(d.length+1)&&(b=!0);for(var v={keyframe:b,start:g,end:g+y},T=0;T<r.length;T++){var S=r[T],w=S.sampleCount,E=S.sampleDelta;if(d.length<=w){var C=d.length?d[d.length-1].timestamp:0;v.timestamp=C+E/t*1e3,v.duration=E;break}}d.push(v),g+=y}}return d},p=function(e,t){var i=(0,n.bytesToString)(t.subarray(0,4));if("video"===e.type?(e.info=e.info||{},e.info.width=t[28]<<8|t[29],e.info.height=t[30]<<8|t[31]):"audio"===e.type&&(e.info=e.info||{},e.info.channels=t[20]<<8|t[21],e.info.bitDepth=t[22]<<8|t[23],e.info.sampleRate=t[28]<<8|t[29]),"avc1"===i){var s=d(t,"avcC");i+="."+(0,r.getAvcCodec)(s),e.info.avcC=s}else if("hvc1"===i||"hev1"===i)i+="."+(0,r.getHvcCodec)(d(t,"hvcC"));else if("mp4a"===i||"mp4v"===i){var a=d(t,"esds"),u=l(a.subarray(4))[0],c=u&&u.descriptors.filter((function(e){return 4===e.tag}))[0];c?(i+="."+(0,n.toHexString)(c.oti),64===c.oti?i+="."+(c.descriptors[0].bytes[0]>>3).toString():32===c.oti?i+="."+c.descriptors[0].bytes[4].toString():221===c.oti&&(i="vorbis")):"audio"===e.type?i+=".40.2":i+=".20.9"}else if("av01"===i)i+="."+(0,r.getAv1Codec)(d(t,"av1C"));else if("vp09"===i){var h=d(t,"vpcC"),p=h[0],f=h[1],m=h[2]>>4,g=(15&h[2])>>1,_=(15&h[2])>>3,y=h[3],b=h[4],v=h[5];i+="."+(0,n.padStart)(p,2,"0"),i+="."+(0,n.padStart)(f,2,"0"),i+="."+(0,n.padStart)(m,2,"0"),i+="."+(0,n.padStart)(g,2,"0"),i+="."+(0,n.padStart)(y,2,"0"),i+="."+(0,n.padStart)(b,2,"0"),i+="."+(0,n.padStart)(v,2,"0"),i+="."+(0,n.padStart)(_,2,"0")}else if("theo"===i)i="theora";else if("spex"===i)i="speex";else if(".mp3"===i)i="mp4a.40.34";else if("msVo"===i)i="vorbis";else if("Opus"===i){i="opus";var T=d(t,"dOps");e.info.opus=(0,o.parseOpusHead)(T),e.info.codecDelay=65e5}else i=i.toLowerCase();e.codec=i},f=function(e,t){void 0===t&&(t=!0),e=(0,n.toUint8)(e);var i=u(e,["moov","trak"],!0),s=[];return i.forEach((function(e){var i={bytes:e},r=u(e,["mdia"])[0],o=u(r,["hdlr"])[0],a=(0,n.bytesToString)(o.subarray(8,12));i.type="soun"===a?"audio":"vide"===a?"video":a;var l=u(e,["tkhd"])[0];if(l){var d=new DataView(l.buffer,l.byteOffset,l.byteLength),c=d.getUint8(0);i.number=0===c?d.getUint32(12):d.getUint32(20)}var f=u(r,["mdhd"])[0];if(f){var m=0===f[0]?12:20;i.timescale=(f[m]<<24|f[m+1]<<16|f[m+2]<<8|f[m+3])>>>0}for(var g=u(r,["minf","stbl"])[0],_=u(g,["stsd"])[0],y=(0,n.bytesToNumber)(_.subarray(4,8)),b=8;y--;){var v=(0,n.bytesToNumber)(_.subarray(b,b+4)),T=_.subarray(b+4,b+4+v);p(i,T),b+=4+v}t&&(i.frameTable=h(g,i.timescale)),s.push(i)})),s},m=function(e){var t=u(e,["moov","mvhd"],!0)[0];if(t&&t.length){var i={};return 1===t[0]?(i.timestampScale=(0,n.bytesToNumber)(t.subarray(20,24)),i.duration=(0,n.bytesToNumber)(t.subarray(24,32))):(i.timestampScale=(0,n.bytesToNumber)(t.subarray(12,16)),i.duration=(0,n.bytesToNumber)(t.subarray(16,20))),i.bytes=t,i}}},
vendor: 1,112 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/nal-helpers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{EMULATION_PREVENTION:()=>o,NAL_TYPE_ONE:()=>n,NAL_TYPE_TWO:()=>r,discardEmulationPreventionBytes:()=>a,findH264Nal:()=>u,findH265Nal:()=>d,findNal:()=>l});var s=i("./node_modules/@videojs/vhs-utils/es/byte-helpers.js"),n=(0,s.toUint8)([0,0,0,1]),r=(0,s.toUint8)([0,0,1]),o=(0,s.toUint8)([0,0,3]),a=function(e){for(var t=[],i=1;i<e.length-2;)(0,s.bytesMatch)(e.subarray(i,i+3),o)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var n=e.length-t.length,r=new Uint8Array(n),a=0;for(i=0;i<n;a++,i++)a===t[0]&&(a++,t.shift()),r[i]=e[a];return r},l=function(e,t,i,o){void 0===o&&(o=1/0),e=(0,s.toUint8)(e),i=[].concat(i);for(var l,u=0,d=0;u<e.length&&(d<o||l);){var c=void 0;if((0,s.bytesMatch)(e.subarray(u),n)?c=4:(0,s.bytesMatch)(e.subarray(u),r)&&(c=3),c){if(d++,l)return a(e.subarray(l,u));var h=void 0;"h264"===t?h=31&e[u+c]:"h265"===t&&(h=e[u+c]>>1&63),-1!==i.indexOf(h)&&(l=u+c),u+=c+("h264"===t?1:2)}else u++}return e.subarray(0,0)},u=function(e,t,i){return l(e,"h264",t,i)},d=function(e,t,i){return l(e,"h265",t,i)}},
vendor: 1,098 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/opus-helpers.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{OPUS_HEAD:()=>s,parseOpusHead:()=>n,setOpusHead:()=>r});var s=new Uint8Array([79,112,117,115,72,101,97,100]),n=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint8(0),s=0!==i,n={version:i,channels:t.getUint8(1),preSkip:t.getUint16(2,s),sampleRate:t.getUint32(4,s),outputGain:t.getUint16(8,s),channelMappingFamily:t.getUint8(10)};if(n.channelMappingFamily>0&&e.length>10){n.streamCount=t.getUint8(11),n.twoChannelStreamCount=t.getUint8(12),n.channelMapping=[];for(var r=0;r<n.channels;r++)n.channelMapping.push(t.getUint8(13+r))}return n},r=function(e){var t=e.channelMappingFamily<=0?11:12+e.channels,i=new DataView(new ArrayBuffer(t)),s=0!==e.version;return i.setUint8(0,e.version),i.setUint8(1,e.channels),i.setUint16(2,e.preSkip,s),i.setUint32(4,e.sampleRate,s),i.setUint16(8,e.outputGain,s),i.setUint8(10,e.channelMappingFamily),e.channelMappingFamily>0&&(i.setUint8(11,e.streamCount),e.channelMapping.foreach((function(e,t){i.setUint8(12+t,e)}))),new Uint8Array(i.buffer)}},
vendor: 685 bytes, line 2
2"./node_modules/@videojs/vhs-utils/es/resolve-url.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i("./node_modules/url-toolkit/src/url-toolkit.js"),n=i.n(s),r=i("./node_modules/global/window.js"),o=i.n(r),a="http://example.com";const l=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=o().location&&o().location.href||"");var i="function"==typeof o().URL,s=/^\/\//.test(e),r=!o().location&&!/\/\//i.test(e);if(i?e=new(o().URL)(e,o().location||a):/\/\//i.test(e)||(e=n().buildAbsoluteURL(o().location&&o().location.href||"",e)),i){var l=new URL(t,e);return r?l.href.slice(18):s?l.href.slice(l.protocol.length):l.href}return n().buildAbsoluteURL(e,t)}},
vendor: 617 bytes, line 2
2"./node_modules/@videojs/xhr/lib/http-handler.js":(e,t,i)=>{"use strict";var s=i("./node_modules/global/window.js");e.exports=function(e,t){return void 0===t&&(t=!1),function(i,n,r){if(i)e(i);else if(n.statusCode>=400&&n.statusCode<=599){var o=r;if(t)if(s.TextDecoder){var a=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce((function(e,t){var i=t.split("="),s=i[0],n=i[1];return"charset"===s.trim()?n.trim():e}),"utf-8")}(n.headers&&n.headers["content-type"]);try{o=new TextDecoder(a).decode(r)}catch(e){}}else o=String.fromCharCode.apply(null,new Uint8Array(r));e({cause:o})}else e(null,r)}}},
vendor: 4,586 bytes, line 2
2"./node_modules/@videojs/xhr/lib/index.js":(e,t,i)=>{"use strict";var s=i("./node_modules/global/window.js"),n=i("./node_modules/@babel/runtime/helpers/extends.js"),r=i("./node_modules/is-function/index.js"),o=i("./node_modules/@videojs/xhr/lib/interceptors.js"),a=i("./node_modules/@videojs/xhr/lib/retry.js");d.httpHandler=i("./node_modules/@videojs/xhr/lib/http-handler.js"),d.requestInterceptorsStorage=new o,d.responseInterceptorsStorage=new o,d.retryManager=new a;var l=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var i=e.indexOf(":"),s=e.slice(0,i).trim().toLowerCase(),n=e.slice(i+1).trim();void 0===t[s]?t[s]=n:Array.isArray(t[s])?t[s].push(n):t[s]=[t[s],n]})),t):t};function u(e,t,i){var s=e;return r(t)?(i=t,"string"==typeof e&&(s={uri:e})):s=n({},t,{uri:e}),s.callback=i,s}function d(e,t,i){return c(t=u(e,t,i))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");if(e.requestType&&d.requestInterceptorsStorage.getIsEnabled()){var t={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},i=d.requestInterceptorsStorage.execute(e.requestType,t);e.uri=i.uri,e.headers=i.headers,e.body=i.body,e.metadata=i.metadata,e.retry=i.retry,e.timeout=i.timeout}var s=!1,n=function(t,i,n){s||(s=!0,e.callback(t,i,n))};function r(){var e=void 0;if(e=p.response?p.response:p.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}(p),v)try{e=JSON.parse(e)}catch(e){}return e}function o(t){if(clearTimeout(f),clearTimeout(e.retryTimeout),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,h||!d.retryManager.getIsEnabled()||!e.retry||!e.retry.shouldRetry()){if(e.requestType&&d.responseInterceptorsStorage.getIsEnabled()){var i={headers:T.headers||{},body:T.body,responseUrl:p.responseURL,responseType:p.responseType},s=d.responseInterceptorsStorage.execute(e.requestType,i);T.body=s.body,T.headers=s.headers}return n(t,T)}e.retryTimeout=setTimeout((function(){e.retry.moveToNextAttempt(),e.xhr=p,c(e)}),e.retry.getCurrentFuzzedDelay())}function a(){if(!h){var t;clearTimeout(f),clearTimeout(e.retryTimeout),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var i=T,s=null;if(0!==t?(i={body:r(),statusCode:t,method:g,headers:{},url:m,rawRequest:p},p.getAllResponseHeaders&&(i.headers=l(p.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),e.requestType&&d.responseInterceptorsStorage.getIsEnabled()){var o={headers:i.headers||{},body:i.body,responseUrl:p.responseURL,responseType:p.responseType},a=d.responseInterceptorsStorage.execute(e.requestType,o);i.body=a.body,i.headers=a.headers}return n(s,i,i.body)}}var u,h,p=e.xhr||null;p||(p=e.cors||e.useXDR?new d.XDomainRequest:new d.XMLHttpRequest);var f,m=p.url=e.uri||e.url,g=p.method=e.method||"GET",_=e.body||e.data,y=p.headers=e.headers||{},b=!!e.sync,v=!1,T={body:void 0,headers:{},statusCode:0,method:g,url:m,rawRequest:p};if("json"in e&&!1!==e.json&&(v=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==g&&"HEAD"!==g&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),_=JSON.stringify(!0===e.json?_:e.json))),p.onreadystatechange=function(){4!==p.readyState||d.responseInterceptorsStorage.getIsEnabled()||setTimeout(a,0)},p.onload=a,p.onerror=o,p.onprogress=function(){},p.onabort=function(){h=!0,clearTimeout(e.retryTimeout)},p.ontimeout=o,p.open(g,m,!b,e.username,e.password),b||(p.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout((function(){if(!h){h=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)}}),e.timeout)),p.setRequestHeader)for(u in y)y.hasOwnProperty(u)&&p.setRequestHeader(u,y[u]);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&&(p.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(p),p.send(_||null),p}e.exports=d,e.exports.default=d,d.XMLHttpRequest=s.XMLHttpRequest||function(){},d.XDomainRequest="withCredentials"in new d.XMLHttpRequest?d.XMLHttpRequest:s.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],(function(e){d["delete"===e?"del":e]=function(t,i,s){return(i=u(t,i,s)).method=e.toUpperCase(),c(i)}}))},
vendor: 1,995 bytes, line 2
2"./node_modules/@videojs/xhr/lib/interceptors.js":e=>{"use strict";function t(e,t){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);"Object"===s&&e.constructor&&(s=e.constructor.name);if("Map"===s||"Set"===s)return Array.from(e);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){s&&(e=s);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}var s=function(){function e(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var i=e.prototype;return i.getIsEnabled=function(){return this.enabled_},i.enable=function(){this.enabled_=!0},i.disable=function(){this.enabled_=!1},i.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},i.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var i=this.typeToInterceptorsMap_.get(e);return!i.has(t)&&(i.add(t),!0)},i.removeInterceptor=function(e,t){var i=this.typeToInterceptorsMap_.get(e);return!(!i||!i.has(t))&&(i.delete(t),!0)},i.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},i.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},i.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},i.execute=function(e,i){for(var s,n=t(this.getForType(e));!(s=n()).done;){var r=s.value;try{i=r(i)}catch(e){}}return i},e}();e.exports=s},
vendor: 1,946 bytes, line 2
2"./node_modules/@videojs/xhr/lib/retry.js":e=>{"use strict";var t=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},t.getMaxAttempts=function(){return this.maxAttempts_},t.setMaxAttempts=function(e){this.maxAttempts_=e},t.getDelayFactor=function(){return this.delayFactor_},t.setDelayFactor=function(e){this.delayFactor_=e},t.getFuzzFactor=function(){return this.fuzzFactor_},t.setFuzzFactor=function(e){this.fuzzFactor_=e},t.getInitialDelay=function(){return this.initialDelay_},t.setInitialDelay=function(e){this.initialDelay_=e},t.createRetry=function(e){var t=void 0===e?{}:e,s=t.maxAttempts,n=t.delayFactor,r=t.fuzzFactor,o=t.initialDelay;return new i({maxAttempts:s||this.maxAttempts_,delayFactor:n||this.delayFactor_,fuzzFactor:r||this.fuzzFactor_,initialDelay:o||this.initialDelay_})},e}(),i=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay(),t=this.getCurrentMaxPossibleDelay();return e+Math.random()*(t-e)},e}();e.exports=t},
vendor: 1,006 bytes, line 2
2"./node_modules/@xmldom/xmldom/lib/conventions.js":(e,t)=>{"use strict";function i(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var s=i({HTML:"text/html",isHTML:function(e){return e===s.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),n=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===n.HTML},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)Object.prototype.hasOwnProperty.call(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 s=0;s<e.length;s++)if(Object.prototype.hasOwnProperty.call(e,s)){var n=e[s];if(t.call(void 0,n,s,e))return n}},t.freeze=i,t.MIME_TYPE=s,t.NAMESPACE=n},
vendor: 3,646 bytes, line 2
2"./node_modules/@xmldom/xmldom/lib/dom-parser.js":(e,t,i)=>{var s=i("./node_modules/@xmldom/xmldom/lib/conventions.js"),n=i("./node_modules/@xmldom/xmldom/lib/dom.js"),r=i("./node_modules/@xmldom/xmldom/lib/entities.js"),o=i("./node_modules/@xmldom/xmldom/lib/sax.js"),a=n.DOMImplementation,l=s.NAMESPACE,u=o.ParseError,d=o.XMLReader;function c(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function p(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(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 _(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var i=this.options,s=new d,n=i.domBuilder||new p,o=i.errorHandler,a=i.locator,u=i.xmlns||{},h=/\/x?html?$/.test(t),f=h?r.HTML_ENTITIES:r.XML_ENTITIES;a&&n.setDocumentLocator(a),s.errorHandler=function(e,t,i){if(!e){if(t instanceof p)return t;e=t}var s={},n=e instanceof Function;function r(t){var r=e[t];!r&&n&&(r=2==e.length?function(i){e(t,i)}:e),s[t]=r&&function(e){r("[xmldom "+t+"]\t"+e+m(i))}||function(){}}return i=i||{},r("warning"),r("error"),r("fatalError"),s}(o,n,a),s.domBuilder=i.domBuilder||n,h&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var g=i.normalizeLineEndings||c;return e&&"string"==typeof e?s.parse(g(e),u,f):s.errorHandler.error("invalid doc source"),n.doc},p.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,s){var n=this.doc,r=n.createElementNS(e,i||t),o=s.length;_(this,r),this.currentElement=r,this.locator&&f(this.locator,r);for(var a=0;a<o;a++){e=s.getURI(a);var l=s.getValue(a),u=(i=s.getQName(a),n.createAttributeNS(e,i));this.locator&&f(s.getLocator(a),u),u.value=u.nodeValue=l,r.setAttributeNode(u)}},endElement:function(e,t,i){var s=this.currentElement;s.tagName;this.currentElement=s.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&f(this.locator,i),_(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=g.apply(this,arguments)){if(this.cdata)var s=this.doc.createCDATASection(e);else s=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(e)&&this.doc.appendChild(s),this.locator&&f(this.locator,s)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=g.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&f(this.locator,s),_(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var s=this.doc.implementation;if(s&&s.createDocumentType){var n=s.createDocumentType(e,t,i);this.locator&&f(this.locator,n),_(this,n),this.doc.doctype=n}},warning:function(e){console.warn("[xmldom warning]\t"+e,m(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,m(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){p.prototype[e]=function(){return null}})),t.__DOMHandler=p,t.normalizeLineEndings=c,t.DOMParser=h},
vendor: 18,760 bytes, line 2
2"./node_modules/@xmldom/xmldom/lib/dom.js":(e,t,i)=>{var s=i("./node_modules/@xmldom/xmldom/lib/conventions.js"),n=s.find,r=s.NAMESPACE;function o(e){return""!==e}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(o):[]}(e);return Object.keys(t.reduce(a,{}))}function u(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function d(e,t){var i=e.prototype;if(!(i instanceof t)){function s(){}s.prototype=t.prototype,u(i,s=new s),e.prototype=i=s}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.constructor=e)}var c={},h=c.ELEMENT_NODE=1,p=c.ATTRIBUTE_NODE=2,f=c.TEXT_NODE=3,m=c.CDATA_SECTION_NODE=4,g=c.ENTITY_REFERENCE_NODE=5,_=c.ENTITY_NODE=6,y=c.PROCESSING_INSTRUCTION_NODE=7,b=c.COMMENT_NODE=8,v=c.DOCUMENT_NODE=9,T=c.DOCUMENT_TYPE_NODE=10,S=c.DOCUMENT_FRAGMENT_NODE=11,w=c.NOTATION_NODE=12,E={},C={},k=(E.INDEX_SIZE_ERR=(C[1]="Index size error",1),E.DOMSTRING_SIZE_ERR=(C[2]="DOMString size error",2),E.HIERARCHY_REQUEST_ERR=(C[3]="Hierarchy request error",3)),x=(E.WRONG_DOCUMENT_ERR=(C[4]="Wrong document",4),E.INVALID_CHARACTER_ERR=(C[5]="Invalid character",5),E.NO_DATA_ALLOWED_ERR=(C[6]="No data allowed",6),E.NO_MODIFICATION_ALLOWED_ERR=(C[7]="No modification allowed",7),E.NOT_FOUND_ERR=(C[8]="Not found",8)),I=(E.NOT_SUPPORTED_ERR=(C[9]="Not supported",9),E.INUSE_ATTRIBUTE_ERR=(C[10]="Attribute in use",10));E.INVALID_STATE_ERR=(C[11]="Invalid state",11),E.SYNTAX_ERR=(C[12]="Syntax error",12),E.INVALID_MODIFICATION_ERR=(C[13]="Invalid modification",13),E.NAMESPACE_ERR=(C[14]="Invalid namespace",14),E.INVALID_ACCESS_ERR=(C[15]="Invalid access",15);function A(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,C[e]),this.message=C[e],Error.captureStackTrace&&Error.captureStackTrace(this,A);return i.code=e,t&&(this.message=this.message+": "+t),i}function L(){}function P(e,t){this._node=e,this._refresh=t,O(this)}function O(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(be(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var s=i.length;s in e;s++)Object.prototype.hasOwnProperty.call(e,s)&&delete e[s];u(i,e),e._inc=t}}function j(){}function D(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function M(e,t,i,s){if(s?t[D(t,s)]=i:t[t.length++]=i,e){i.ownerElement=e;var n=e.ownerDocument;n&&(s&&q(n,e,s),function(e,t,i){e&&e._inc++;var s=i.namespaceURI;s===r.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}(n,e,i))}}function N(e,t,i){var s=D(t,i);if(!(s>=0))throw new A(x,new Error(e.tagName+"@"+i));for(var n=t.length-1;s<n;)t[s]=t[++s];if(t.length=n,e){var r=e.ownerDocument;r&&(q(r,e,i),i.ownerElement=null)}}function R(){}function F(){}function U(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function B(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(B(e,t))return!0}while(e=e.nextSibling)}function $(){this.ownerDocument=this}function q(e,t,i,s){e&&e._inc++,i.namespaceURI===r.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function V(e,t,i){if(e&&e._inc){e._inc++;var s=t.childNodes;if(i)s[s.length++]=i;else{for(var n=t.firstChild,r=0;n;)s[r++]=n,n=n.nextSibling;s.length=r,delete s[s.length]}}}function H(e,t){var i=t.previousSibling,s=t.nextSibling;return i?i.nextSibling=s:e.firstChild=s,s?s.previousSibling=i:e.lastChild=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function z(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function W(e){return e&&e.nodeType===F.ELEMENT_NODE}function G(e){return e&&e.nodeType===F.TEXT_NODE}function X(e,t){var i=e.childNodes||[];if(n(i,W)||z(t))return!1;var s=n(i,z);return!(t&&s&&i.indexOf(s)>i.indexOf(t))}function K(e,t){var i=e.childNodes||[];if(n(i,(function(e){return W(e)&&e!==t})))return!1;var s=n(i,z);return!(t&&s&&i.indexOf(s)>i.indexOf(t))}function Y(e,t,i){if(!function(e){return e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)}(e))throw new A(k,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new A(x,"child not in parent");if(!function(e){return e&&(W(e)||G(e)||z(e)||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.COMMENT_NODE||e.nodeType===F.PROCESSING_INSTRUCTION_NODE)}(t)||z(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new A(k,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function Q(e,t,i){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var o=r.filter(W);if(o.length>1||n(r,G))throw new A(k,"More than one element or text in fragment");if(1===o.length&&!X(e,i))throw new A(k,"Element in fragment can not be inserted before doctype")}if(W(t)&&!X(e,i))throw new A(k,"Only one element can be added and only after doctype");if(z(t)){if(n(s,z))throw new A(k,"Only one doctype is allowed");var a=n(s,W);if(i&&s.indexOf(a)<s.indexOf(i))throw new A(k,"Doctype can only be inserted before an element");if(!i&&a)throw new A(k,"Doctype can not be appended since element is present")}}function J(e,t,i){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var o=r.filter(W);if(o.length>1||n(r,G))throw new A(k,"More than one element or text in fragment");if(1===o.length&&!K(e,i))throw new A(k,"Element in fragment can not be inserted before doctype")}if(W(t)&&!K(e,i))throw new A(k,"Only one element can be added and only after doctype");if(z(t)){if(n(s,(function(e){return z(e)&&e!==i})))throw new A(k,"Only one doctype is allowed");var a=n(s,W);if(i&&s.indexOf(a)<s.indexOf(i))throw new A(k,"Doctype can only be inserted before an element")}}function Z(e,t,i,s){Y(e,t,i),e.nodeType===F.DOCUMENT_NODE&&(s||Q)(e,t,i);var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===S){var r=t.firstChild;if(null==r)return t;var o=t.lastChild}else r=o=t;var a=i?i.previousSibling:e.lastChild;r.previousSibling=a,o.nextSibling=i,a?a.nextSibling=r:e.firstChild=r,null==i?e.lastChild=o:i.previousSibling=o;do{r.parentNode=e}while(r!==o&&(r=r.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==S&&(t.firstChild=t.lastChild=null),t}function ee(){this._nsMap={}}function te(){}function ie(){}function se(){}function ne(){}function re(){}function oe(){}function ae(){}function le(){}function ue(){}function de(){}function ce(){}function he(){}function pe(e,t){var i=[],s=9==this.nodeType&&this.documentElement||this,n=s.prefix,r=s.namespaceURI;if(r&&null==n&&null==(n=s.lookupPrefix(r)))var o=[{namespace:r,prefix:null}];return ge(this,i,e,t,o),i.join("")}function fe(e,t,i){var s=e.prefix||"",n=e.namespaceURI;if(!n)return!1;if("xml"===s&&n===r.XML||n===r.XMLNS)return!1;for(var o=i.length;o--;){var a=i[o];if(a.prefix===s)return a.namespace!==n}return!0}function me(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,U),'"')}function ge(e,t,i,s,n){if(n||(n=[]),s){if(!(e=s(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case h:var o=e.attributes,a=o.length,l=e.firstChild,u=e.tagName,d=u;if(!(i=r.isHTML(e.namespaceURI)||i)&&!e.prefix&&e.namespaceURI){for(var c,_=0;_<o.length;_++)if("xmlns"===o.item(_).name){c=o.item(_).value;break}if(!c)for(var w=n.length-1;w>=0;w--){if(""===(E=n[w]).prefix&&E.namespace===e.namespaceURI){c=E.namespace;break}}if(c!==e.namespaceURI)for(w=n.length-1;w>=0;w--){var E;if((E=n[w]).namespace===e.namespaceURI){E.prefix&&(d=E.prefix+":"+u);break}}}t.push("<",d);for(var C=0;C<a;C++){"xmlns"==(k=o.item(C)).prefix?n.push({prefix:k.localName,namespace:k.value}):"xmlns"==k.nodeName&&n.push({prefix:"",namespace:k.value})}for(C=0;C<a;C++){var k,x,I;if(fe(k=o.item(C),0,n))me(t,(x=k.prefix||"")?"xmlns:"+x:"xmlns",I=k.namespaceURI),n.push({prefix:x,namespace:I});ge(k,t,i,s,n)}if(u===d&&fe(e,0,n))me(t,(x=e.prefix||"")?"xmlns:"+x:"xmlns",I=e.namespaceURI),n.push({prefix:x,namespace:I});if(l||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),i&&/^script$/i.test(u))for(;l;)l.data?t.push(l.data):ge(l,t,i,s,n.slice()),l=l.nextSibling;else for(;l;)ge(l,t,i,s,n.slice()),l=l.nextSibling;t.push("</",d,">")}else t.push("/>");return;case v:case S:for(l=e.firstChild;l;)ge(l,t,i,s,n.slice()),l=l.nextSibling;return;case p:return me(t,e.name,e.value);case f:return t.push(e.data.replace(/[<&>]/g,U));case m:return t.push("<![CDATA[",e.data,"]]>");case b:return t.push("\x3c!--",e.data,"--\x3e");case T:var A=e.publicId,L=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),L&&"."!=L&&t.push(" ",L),t.push(">");else if(L&&"."!=L)t.push(" SYSTEM ",L,">");else{var P=e.internalSubset;P&&t.push(" [",P,"]"),t.push(">")}return;case y:return t.push("<?",e.target," ",e.data,"?>");case g:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function _e(e,t,i){var s;switch(t.nodeType){case h:(s=t.cloneNode(!1)).ownerDocument=e;case S:break;case p:i=!0}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,i)for(var n=t.firstChild;n;)s.appendChild(_e(e,n,i)),n=n.nextSibling;return s}function ye(e,t,i){var s=new t.constructor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];"object"!=typeof r&&r!=s[n]&&(s[n]=r)}switch(t.childNodes&&(s.childNodes=new L),s.ownerDocument=e,s.nodeType){case h:var o=t.attributes,a=s.attributes=new j,l=o.length;a._ownerElement=s;for(var u=0;u<l;u++)s.setAttributeNode(ye(e,o.item(u),!0));break;case p:i=!0}if(i)for(var d=t.firstChild;d;)s.appendChild(ye(e,d,i)),d=d.nextSibling;return s}function be(e,t,i){e[t]=i}A.prototype=Error.prototype,u(E,A),L.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var i=[],s=0;s<this.length;s++)ge(this[s],i,e,t);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},P.prototype.item=function(e){return O(this),this[e]||null},d(P,L),j.prototype={length:0,item:L.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new A(I);var i=this.getNamedItem(e.nodeName);return M(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new A(I);return t=this.getNamedItemNS(e.namespaceURI,e.localName),M(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return N(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return N(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var s=this[i];if(s.localName==t&&s.namespaceURI==e)return s}return null}},R.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var s=new $;if(s.implementation=this,s.childNodes=new L,s.doctype=i||null,i&&s.appendChild(i),t){var n=s.createElementNS(e,t);s.appendChild(n)}return s},createDocumentType:function(e,t,i){var s=new oe;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=i||"",s}},F.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Z(this,e,t)},replaceChild:function(e,t){Z(this,e,t,J),t&&this.removeChild(t)},removeChild:function(e){return H(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ye(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==f&&e.nodeType==f?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&i[s]===e)return s;t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},u(c,F),u(c,F.prototype),$.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==S){for(var i=e.firstChild;i;){var s=i.nextSibling;this.insertBefore(i,t),i=s}return e}return Z(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===h&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),H(this,e)},replaceChild:function(e,t){Z(this,e,t,J),e.ownerDocument=this,t&&this.removeChild(t),W(e)&&(this.documentElement=e)},importNode:function(e,t){return _e(this,e,t)},getElementById:function(e){var t=null;return B(this.documentElement,(function(i){if(i.nodeType==h&&i.getAttribute("id")==e)return t=i,!0})),t},getElementsByClassName:function(e){var t=l(e);return new P(this,(function(i){var s=[];return t.length>0&&B(i.documentElement,(function(n){if(n!==i&&n.nodeType===h){var r=n.getAttribute("class");if(r){var o=e===r;if(!o){var a=l(r);o=t.every((u=a,function(e){return u&&-1!==u.indexOf(e)}))}o&&s.push(n)}}var u})),s}))},createElement:function(e){var t=new ee;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new L,(t.attributes=new j)._ownerElement=t,t},createDocumentFragment:function(){var e=new de;return e.ownerDocument=this,e.childNodes=new L,e},createTextNode:function(e){var t=new se;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new ce;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new te;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ue;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new ee,s=t.split(":"),n=i.attributes=new j;return i.childNodes=new L,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,n._ownerElement=i,i},createAttributeNS:function(e,t){var i=new te,s=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,i}},d($,F),ee.prototype={nodeType:h,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===S?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,V(e.ownerDocument,e,t),t}(this,e)},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||""},setAttributeNS:function(e,t,i){var s=this.ownerDocument.createAttributeNS(e,t);s.value=s.nodeValue=""+i,this.setAttributeNode(s)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,(function(t){var i=[];return B(t,(function(s){s===t||s.nodeType!=h||"*"!==e&&s.tagName!=e||i.push(s)})),i}))},getElementsByTagNameNS:function(e,t){return new P(this,(function(i){var s=[];return B(i,(function(n){n===i||n.nodeType!==h||"*"!==e&&n.namespaceURI!==e||"*"!==t&&n.localName!=t||s.push(n)})),s}))}},$.prototype.getElementsByTagName=ee.prototype.getElementsByTagName,$.prototype.getElementsByTagNameNS=ee.prototype.getElementsByTagNameNS,d(ee,F),te.prototype.nodeType=p,d(te,F),ie.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)},appendChild:function(e){throw new Error(C[k])},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}},d(ie,F),se.prototype={nodeName:"#text",nodeType:f,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 s=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}},d(se,ie),ne.prototype={nodeName:"#comment",nodeType:b},d(ne,ie),re.prototype={nodeName:"#cdata-section",nodeType:m},d(re,ie),oe.prototype.nodeType=T,d(oe,F),ae.prototype.nodeType=w,d(ae,F),le.prototype.nodeType=_,d(le,F),ue.prototype.nodeType=g,d(ue,F),de.prototype.nodeName="#document-fragment",de.prototype.nodeType=S,d(de,F),ce.prototype.nodeType=y,d(ce,F),he.prototype.serializeToString=function(e,t,i){return pe.call(e,t,i)},F.prototype.toString=pe;try{if(Object.defineProperty){function ve(e){switch(e.nodeType){case h:case S:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(ve(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(P.prototype,"length",{get:function(){return O(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return ve(this)},set:function(e){switch(this.nodeType){case h:case S: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}}}),be=function(e,t,i){e["$$"+t]=i}}}catch(Te){}t.DocumentType=oe,t.DOMException=A,t.DOMImplementation=R,t.Element=ee,t.Node=F,t.NodeList=L,t.XMLSerializer=he},
vendor: 28,971 bytes, line 2
2"./node_modules/@xmldom/xmldom/lib/entities.js":(e,t,i)=>{"use strict";var s=i("./node_modules/@xmldom/xmldom/lib/conventions.js").freeze;t.XML_ENTITIES=s({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=s({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:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",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:"⋖",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:"ʼn",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: 255 bytes, line 2
2"./node_modules/@xmldom/xmldom/lib/index.js":(e,t,i)=>{var s=i("./node_modules/@xmldom/xmldom/lib/dom.js");t.DOMImplementation=s.DOMImplementation,t.XMLSerializer=s.XMLSerializer,t.DOMParser=i("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},
vendor: 7,498 bytes, line 2
2"./node_modules/@xmldom/xmldom/lib/sax.js":(e,t,i)=>{var s=i("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$"),a=0,l=1,u=2,d=3,c=4,h=5,p=6,f=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function _(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function y(e,t,i,n,r,o){function m(e,t,s){i.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),s)}for(var g,_=++t,y=a;;){var b=e.charAt(_);switch(b){case"=":if(y===l)g=e.slice(t,_),y=d;else{if(y!==u)throw new Error("attribute equal must after attrName");y=d}break;case"'":case'"':if(y===d||y===l){if(y===l&&(o.warning('attribute value must after "="'),g=e.slice(t,_)),t=_+1,!((_=e.indexOf(b,t))>0))throw new Error("attribute value no end '"+b+"' match");m(g,v=e.slice(t,_),t-1),y=h}else{if(y!=c)throw new Error('attribute value must after "="');m(g,v=e.slice(t,_),t),o.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=_+1,y=h}break;case"/":switch(y){case a:i.setTagName(e.slice(t,_));case h:case p:case f:y=f,i.closed=!0;case c:case l:break;case u:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),y==a&&i.setTagName(e.slice(t,_)),_;case">":switch(y){case a:i.setTagName(e.slice(t,_));case h:case p:case f:break;case c:case l:"/"===(v=e.slice(t,_)).slice(-1)&&(i.closed=!0,v=v.slice(0,-1));case u:y===u&&(v=g),y==c?(o.warning('attribute "'+v+'" missed quot(")!'),m(g,v,t)):(s.isHTML(n[""])&&v.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+v+'" missed value!! "'+v+'" instead!!'),m(v,v,t));break;case d:throw new Error("attribute value missed!!")}return _;case"€":b=" ";default:if(b<=" ")switch(y){case a:i.setTagName(e.slice(t,_)),y=p;break;case l:g=e.slice(t,_),y=u;break;case c:var v=e.slice(t,_);o.warning('attribute "'+v+'" missed quot(")!!'),m(g,v,t);case h:y=p}else switch(y){case u:i.tagName;s.isHTML(n[""])&&g.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=_,y=l;break;case h:o.warning('attribute space is required"'+g+'"!!');case p:y=l,t=_;break;case d:y=c,t=_;break;case f:throw new Error("elements closed character '/' and '>' must be connected to")}}_++}}function b(e,t,i){for(var n=e.tagName,r=null,o=e.length;o--;){var a=e[o],l=a.qName,u=a.value;if((p=l.indexOf(":"))>0)var d=a.prefix=l.slice(0,p),c=l.slice(p+1),h="xmlns"===d&&c;else c=l,d=null,h="xmlns"===l&&"";a.localName=c,!1!==h&&(null==r&&(r={},S(i,i={})),i[h]=r[h]=u,a.uri=s.XMLNS,t.startPrefixMapping(h,u))}for(o=e.length;o--;){(d=(a=e[o]).prefix)&&("xml"===d&&(a.uri=s.XML),"xmlns"!==d&&(a.uri=i[d||""]))}var p;(p=n.indexOf(":"))>0?(d=e.prefix=n.slice(0,p),c=e.localName=n.slice(p+1)):(d=null,c=e.localName=n);var f=e.uri=i[d||""];if(t.startElement(f,c,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=r,!0;if(t.endElement(f,c,n),r)for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&t.endPrefixMapping(d)}function v(e,t,i,s,n){if(/^(?:script|textarea)$/i.test(i)){var r=e.indexOf("</"+i+">",t),o=e.substring(t+1,r);if(/[&<]/.test(o))return/^script$/i.test(i)?(n.characters(o,0,o.length),r):(o=o.replace(/&#?\w+;/g,s),n.characters(o,0,o.length),r)}return t+1}function T(e,t,i,s){var n=s[i];return null==n&&((n=e.lastIndexOf("</"+i+">"))<t&&(n=e.lastIndexOf("</"+i)),s[i]=n),n<t}function S(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function w(e,t,i,s){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(n=e.indexOf("--\x3e",t+4))>t?(i.comment(e,t+4,n-t-4),n+3):(s.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var n=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,n-t-9),i.endCDATA(),n+3}var r=function(e,t){var i,s=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;n.lastIndex=t,n.exec(e);for(;i=n.exec(e);)if(s.push(i),i[1])return s}(e,t),o=r.length;if(o>1&&/!doctype/i.test(r[0][0])){var a=r[1][0],l=!1,u=!1;o>3&&(/^public$/i.test(r[2][0])?(l=r[3][0],u=o>4&&r[4][0]):/^system$/i.test(r[2][0])&&(u=r[3][0]));var d=r[o-1];return i.startDTD(a,l,u),i.endDTD(),d.index+d[0].length}return-1}function E(e,t,i){var s=e.indexOf("?>",t);if(s){var n=e.substring(t,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(n){n[0].length;return i.processingInstruction(n[1],n[2]),s+2}return-1}return-1}function C(){this.attributeNames={}}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),S(t,t={}),function(e,t,i,n,r){function o(e){if(e>65535){var t=55296+((e-=65536)>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}function a(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?o(parseInt(t.substr(1).replace("x","0x"))):(r.error("entity not found:"+e),e)}function l(t){if(t>S){var i=e.substring(S,t).replace(/&#?\w+;/g,a);p&&u(S),n.characters(i,0,t-S),S=t}}function u(t,i){for(;t>=c&&(i=h.exec(e));)d=i.index,c=d+i[0].length,p.lineNumber++;p.columnNumber=t-d+1}var d=0,c=0,h=/.*(?:\r\n?|\n)|.*$/g,p=n.locator,f=[{currentNSMap:t}],g={},S=0;for(;;){try{var k=e.indexOf("<",S);if(k<0){if(!e.substr(S).match(/^\s*$/)){var x=n.doc,I=x.createTextNode(e.substr(S));x.appendChild(I),n.currentElement=I}return}switch(k>S&&l(k),e.charAt(k+1)){case"/":var A=e.indexOf(">",k+3),L=e.substring(k+2,A).replace(/[ \t\n\r]+$/g,""),P=f.pop();A<0?(L=e.substring(k+2).replace(/[\s<].*/,""),r.error("end tag name: "+L+" is not complete:"+P.tagName),A=k+1+L.length):L.match(/\s</)&&(L=L.replace(/[\s<].*/,""),r.error("end tag name: "+L+" maybe not complete"),A=k+1+L.length);var O=P.localNSMap,j=P.tagName==L;if(j||P.tagName&&P.tagName.toLowerCase()==L.toLowerCase()){if(n.endElement(P.uri,P.localName,L),O)for(var D in O)Object.prototype.hasOwnProperty.call(O,D)&&n.endPrefixMapping(D);j||r.fatalError("end tag name: "+L+" is not match the current start tagName:"+P.tagName)}else f.push(P);A++;break;case"?":p&&u(k),A=E(e,k,n);break;case"!":p&&u(k),A=w(e,k,n,r);break;default:p&&u(k);var M=new C,N=f[f.length-1].currentNSMap,R=(A=y(e,k,M,N,a,r),M.length);if(!M.closed&&T(e,A,M.tagName,g)&&(M.closed=!0,i.nbsp||r.warning("unclosed xml attribute")),p&&R){for(var F=_(p,{}),U=0;U<R;U++){var B=M[U];u(B.offset),B.locator=_(p,{})}n.locator=F,b(M,n,N)&&f.push(M),n.locator=p}else b(M,n,N)&&f.push(M);s.isHTML(M.uri)&&!M.closed?A=v(e,A,M.tagName,a,n):A++}}catch(e){if(e instanceof m)throw e;r.error("element parse error: "+e),A=-1}A>S?S=A:l(Math.max(k,S)+1)}}(e,t,i,n,this.errorHandler),n.endDocument()}},C.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!o.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=g,t.ParseError=m},
vendor: 34,166 bytes, line 2
2"./node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js":e=>{var t;window,t=function(){return function(e){var t={};function i(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(s,n,function(t){return e[t]}.bind(null,n));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=37)}([function(e,t,i){var s=i(1),n=i(6),r=i(7),o=i(16),a=i(18),l="prototype",u=function(e,t,i){var d,c,h,p,f=e&u.F,m=e&u.G,g=e&u.S,_=e&u.P,y=e&u.B,b=m?s:g?s[t]||(s[t]={}):(s[t]||{})[l],v=m?n:n[t]||(n[t]={}),T=v[l]||(v[l]={});for(d in m&&(i=t),i)h=((c=!f&&b&&void 0!==b[d])?b:i)[d],p=y&&c?a(h,s):_&&"function"==typeof h?a(Function.call,h):h,b&&o(b,d,h,e&u.U),v[d]!=h&&r(v,d,p),_&&T[d]!=h&&(T[d]=h)};s.core=n,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){e.exports=!i(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,i){"use strict";i.r(t),i.d(t,"h",(function(){return a})),i.d(t,"createElement",(function(){return a})),i.d(t,"cloneElement",(function(){return d})),i.d(t,"Component",(function(){return D})),i.d(t,"render",(function(){return M})),i.d(t,"rerender",(function(){return f})),i.d(t,"options",(function(){return n}));var s=function(){},n={},r=[],o=[];function a(e,t){var i,a,l,u,d=o;for(u=arguments.length;2<u--;)r.push(arguments[u]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((a=r.pop())&&void 0!==a.pop)for(u=a.length;u--;)r.push(a[u]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&i?d[d.length-1]+=a:d===o?d=[a]:d.push(a),i=l;var c=new s;return c.nodeName=e,c.children=d,c.attributes=null==t?void 0:t,c.key=null==t?void 0:t.key,void 0!==n.vnode&&n.vnode(c),c}function l(e,t){for(var i in t)e[i]=t[i];return e}var u="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function d(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var c=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==h.push(e)&&(n.debounceRendering||u)(f)}function f(){var e,t=h;for(h=[];e=t.pop();)e._dirty&&O(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=l({},e.attributes);t.children=e.children;var i=e.nodeName.defaultProps;if(void 0!==i)for(var s in i)void 0===t[s]&&(t[s]=i[s]);return t}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,i,s,n){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)i&&i(null),s&&s(e);else if("class"!==t||n)if("style"===t){if(s&&"string"!=typeof s&&"string"!=typeof i||(e.style.cssText=s||""),s&&"object"==typeof s){if("string"!=typeof i)for(var r in i)r in s||(e.style[r]="");for(var r in s)e.style[r]="number"==typeof s[r]&&!1===c.test(r)?s[r]+"px":s[r]}}else if("dangerouslySetInnerHTML"===t)s&&(e.innerHTML=s.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),s?i||e.addEventListener(t,b,o):e.removeEventListener(t,b,o),(e._listeners||(e._listeners={}))[t]=s}else if("list"!==t&&"type"!==t&&!n&&t in e){try{e[t]=null==s?"":s}catch(e){}null!=s&&!1!==s||"spellcheck"==t||e.removeAttribute(t)}else{var a=n&&t!==(t=t.replace(/^xlink:?/,""));null==s||!1===s?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof s&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),s):e.setAttribute(t,s))}else e.className=s||""}function b(e){return this._listeners[e.type](n.event&&n.event(e)||e)}var v=[],T=0,S=!1,w=!1;function E(){for(var e;e=v.pop();)n.afterMount&&n.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,i,s,n){var r=e,o=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||n)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),k(e,!0))),r.__preactattr_=!0,r;var a=t.nodeName;if("function"==typeof a)return function(e,t,i,s){for(var n=e&&e._component,r=n,o=e,a=n&&e._componentConstructor===t.nodeName,l=a,u=g(t);n&&!l&&(n=n._parentComponent);)l=n.constructor===t.nodeName;return n&&l&&(!s||n._component)?(P(n,u,3,i,s),e=n.base):(r&&!a&&(j(r),e=o=null),n=A(t.nodeName,u,i),e&&!n.nextBase&&(n.nextBase=e,o=null),P(n,u,1,i,s),e=n.base,o&&e!==o&&(o._component=null,k(o,!1))),e}(e,t,i,s);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!m(e,a))&&(r=function(e,t){var i=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return i.normalizedNodeName=e,i}(a,S),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),k(e,!0)}var l=r.firstChild,u=r.__preactattr_,d=t.children;if(null==u){u=r.__preactattr_={};for(var c=r.attributes,h=c.length;h--;)u[c[h].name]=c[h].value}return!w&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&function(e,t,i,s,n){var r,o,a,l,u,d,c,h,p=e.childNodes,f=[],g={},y=0,b=0,v=p.length,T=0,S=t?t.length:0;if(0!==v)for(var w=0;w<v;w++){var E=p[w],x=E.__preactattr_;null!=(I=S&&x?E._component?E._component.__key:x.key:null)?(y++,g[I]=E):(x||(void 0!==E.splitText?!n||E.nodeValue.trim():n))&&(f[T++]=E)}if(0!==S)for(w=0;w<S;w++){var I;if(u=null,null!=(I=(l=t[w]).key))y&&void 0!==g[I]&&(u=g[I],g[I]=void 0,y--);else if(b<T)for(r=b;r<T;r++)if(void 0!==f[r]&&(d=o=f[r],h=n,"string"==typeof(c=l)||"number"==typeof c?void 0!==d.splitText:"string"==typeof c.nodeName?!d._componentConstructor&&m(d,c.nodeName):h||d._componentConstructor===c.nodeName)){u=o,f[r]=void 0,r===T-1&&T--,r===b&&b++;break}u=C(u,l,i,s),a=p[w],u&&u!==e&&u!==a&&(null==a?e.appendChild(u):u===a.nextSibling?_(a):e.insertBefore(u,a))}if(y)for(var w in g)void 0!==g[w]&&k(g[w],!1);for(;b<=T;)void 0!==(u=f[T--])&&k(u,!1)}(r,d,i,s,w||null!=u.dangerouslySetInnerHTML),function(e,t,i){var s;for(s in i)t&&null!=t[s]||null==i[s]||y(e,s,i[s],i[s]=void 0,S);for(s in t)"children"===s||"innerHTML"===s||s in i&&t[s]===("value"===s||"checked"===s?e[s]:i[s])||y(e,s,i[s],i[s]=t[s],S)}(r,t.attributes,u),S=o,r}function k(e,t){var i=e._component;i?j(i):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||_(e),x(e))}function x(e){for(e=e.lastChild;e;){var t=e.previousSibling;k(e,!0),e=t}}var I=[];function A(e,t,i){var s,n=I.length;for(e.prototype&&e.prototype.render?(s=new e(t,i),D.call(s,t,i)):((s=new D(t,i)).constructor=e,s.render=L);n--;)if(I[n].constructor===e)return s.nextBase=I[n].nextBase,I.splice(n,1),s;return s}function L(e,t,i){return this.constructor(e,i)}function P(e,t,i,s,r){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,s)),s&&s!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=s),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==i&&(1!==i&&!1===n.syncComponentUpdates&&e.base?p(e):O(e,1,r)),e.__ref&&e.__ref(e))}function O(e,t,i,s){if(!e._disable){var r,o,a,u=e.props,d=e.state,c=e.context,h=e.prevProps||u,p=e.prevState||d,f=e.prevContext||c,m=e.base,_=e.nextBase,y=m||_,b=e._component,x=!1,I=f;if(e.constructor.getDerivedStateFromProps&&(d=l(l({},d),e.constructor.getDerivedStateFromProps(u,d)),e.state=d),m&&(e.props=h,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(u,d,c)?x=!0:e.componentWillUpdate&&e.componentWillUpdate(u,d,c),e.props=u,e.state=d,e.context=c),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!x){r=e.render(u,d,c),e.getChildContext&&(c=l(l({},c),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(I=e.getSnapshotBeforeUpdate(h,p));var L,D,M=r&&r.nodeName;if("function"==typeof M){var N=g(r);(o=b)&&o.constructor===M&&N.key==o.__key?P(o,N,1,c,!1):(L=o,e._component=o=A(M,N,c),o.nextBase=o.nextBase||_,o._parentComponent=e,P(o,N,0,c,!1),O(o,1,i,!0)),D=o.base}else a=y,(L=b)&&(a=e._component=null),(y||1===t)&&(a&&(a._component=null),D=function(e,t,i,s,n,r){T++||(S=null!=n&&void 0!==n.ownerSVGElement,w=null!=e&&!("__preactattr_"in e));var o=C(e,t,i,s,r);return n&&o.parentNode!==n&&n.appendChild(o),--T||(w=!1,r||E()),o}(a,r,c,i||!m,y&&y.parentNode,!0));if(y&&D!==y&&o!==b){var R=y.parentNode;R&&D!==R&&(R.replaceChild(D,y),L||(y._component=null,k(y,!1)))}if(L&&j(L),(e.base=D)&&!s){for(var F=e,U=e;U=U._parentComponent;)(F=U).base=D;D._component=F,D._componentConstructor=F.constructor}}for(!m||i?v.unshift(e):x||(e.componentDidUpdate&&e.componentDidUpdate(h,p,I),n.afterUpdate&&n.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);T||s||E()}}function j(e){n.beforeUnmount&&n.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var i=e._component;i?j(i):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),_(e.nextBase=t),I.push(e),x(t)),e.__ref&&e.__ref(null)}function D(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function M(e,t,i){return function(e,t,i,s,n,r){T++||(S=null!=n&&void 0!==n.ownerSVGElement,w=null!=e&&!("__preactattr_"in e));var o=C(e,t,i,s,r);return n&&o.parentNode!==n&&n.appendChild(o),--T||(w=!1,r||E()),o}(i,e,{},!1,t,!1)}l(D.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),O(this,2)},render:function(){}});var N={h:a,createElement:a,cloneElement:d,Component:D,render:M,rerender:f,options:n};t.default=N},function(e,t){var i=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(e,t,i){var s=i(8),n=i(40);e.exports=i(3)?function(e,t,i){return s.f(e,t,n(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var s=i(9),n=i(38),r=i(39),o=Object.defineProperty;t.f=i(3)?Object.defineProperty:function(e,t,i){if(s(e),t=r(t,!0),s(i),n)try{return o(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var s=i(2);e.exports=function(e){if(!s(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var i=0,s=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+s).toString(36))}},function(e,t,i){var s=i(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==s(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,i){"use strict";var s=i(4);e.exports=function(e,t){return!!e&&s((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,i){var s=i(0);s(s.S+s.F,"Object",{assign:i(41)})},function(e,t,i){var s=i(2),n=i(1).document,r=s(n)&&s(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},function(e,t,i){var s=i(1),n=i(7),r=i(17),o=i(10)("src"),a="toString",l=Function[a],u=(""+l).split(a);i(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,i,a){var l="function"==typeof i;l&&(r(i,"name")||n(i,"name",t)),e[t]!==i&&(l&&(r(i,o)||n(i,o,e[t]?""+e[t]:u.join(String(t)))),e===s?e[t]=i:a?e[t]?e[t]=i:n(e,t,i):(delete e[t],n(e,t,i)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[o]||l.call(this)}))},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var s=i(19);e.exports=function(e,t,i){if(s(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,s){return e.call(t,i,s)};case 3:return function(i,s,n){return e.call(t,i,s,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var s=i(42),n=i(28);e.exports=Object.keys||function(e){return s(e,n)}},function(e,t,i){var s=i(11),n=i(12);e.exports=function(e){return s(n(e))}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var s=i(21),n=i(24),r=i(43);e.exports=function(e){return function(t,i,o){var a,l=s(t),u=n(l.length),d=r(o,u);if(e&&i!=i){for(;d<u;)if((a=l[d++])!=a)return!0}else for(;d<u;d++)if((e||d in l)&&l[d]===i)return e||d||0;return!e&&-1}}},function(e,t,i){var s=i(25),n=Math.min;e.exports=function(e){return 0<e?n(s(e),9007199254740991):0}},function(e,t){var i=Math.ceil,s=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?s:i)(e)}},function(e,t,i){var s=i(27)("keys"),n=i(10);e.exports=function(e){return s[e]||(s[e]=n(e))}},function(e,t,i){var s=i(6),n=i(1),r="__core-js_shared__",o=n[r]||(n[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:s.version,mode:i(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,i){var s=i(12);e.exports=function(e){return Object(s(e))}},function(e,t,i){var s=i(8).f,n=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in n||i(3)&&s(n,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,i){"use strict";var s=i(0),n=i(32)(1);s(s.P+s.F*!i(13)([].map,!0),"Array",{map:function(e){return n(this,e,arguments[1])}})},function(e,t,i){var s=i(18),n=i(11),r=i(29),o=i(24),a=i(47);e.exports=function(e,t){var i=1==e,l=2==e,u=3==e,d=4==e,c=6==e,h=5==e||c,p=t||a;return function(t,a,f){for(var m,g,_=r(t),y=n(_),b=s(a,f,3),v=o(y.length),T=0,S=i?p(t,v):l?p(t,0):void 0;T<v;T++)if((h||T in y)&&(g=b(m=y[T],T,_),e))if(i)S[T]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:S.push(m)}else if(d)return!1;return c?-1:u||d?d:S}}},function(e,t,i){var s=i(22);e.exports=Array.isArray||function(e){return"Array"==s(e)}},function(e,t,i){var s=i(27)("wks"),n=i(10),r=i(1).Symbol,o="function"==typeof r;(e.exports=function(e){return s[e]||(s[e]=o&&r[e]||(o?r:n)("Symbol."+e))}).store=s},function(e,t,i){"use strict";var s=i(0),n=i(23)(!1),r=[].indexOf,o=!!r&&1/[1].indexOf(1,-0)<0;s(s.P+s.F*(o||!i(13)(r)),"Array",{indexOf:function(e){return o?r.apply(this,arguments)||0:n(this,e,arguments[1])}})},function(e,t,i){var s=i(0);s(s.S,"Object",{create:i(52)})},function(e,t,i){"use strict";t.__esModule=!0,t.default=void 0,i(14),i(30),i(31),i(35),i(49),i(50);var s=i(5),n=function(e){return e&&e.__esModule?e:{default:e}}(i(51));function r(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=o(e.source)),(0,s.render)((0,s.createElement)(n.default,e),e.element)}var o=function(e){return function(t,i){i(e.filter((function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())})))}};r.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,(function(t){return t.value||e.preserveNullOptions}));e.source=t.map((function(e){return e.textContent||e.innerText}))}if(e.onConfirm=e.onConfirm||function(t){var i=[].filter.call(e.selectElement.options,(function(e){return(e.textContent||e.innerText)===t}))[0];i&&(i.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var i=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=i.textContent||i.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var s=document.createElement("div");e.selectElement.parentNode.insertBefore(s,e.selectElement),r(Object.assign({},e,{element:s})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=r;t.default=a},function(e,t,i){e.exports=!i(3)&&!i(4)((function(){return 7!=Object.defineProperty(i(15)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var s=i(2);e.exports=function(e,t){if(!s(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!s(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!s(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!s(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){"use strict";var s=i(20),n=i(45),r=i(46),o=i(29),a=i(11),l=Object.assign;e.exports=!l||i(4)((function(){var e={},t={},i=Symbol(),s="abcdefghijklmnopqrst";return e[i]=7,s.split("").forEach((function(e){t[e]=e})),7!=l({},e)[i]||Object.keys(l({},t)).join("")!=s}))?function(e,t){for(var i=o(e),l=arguments.length,u=1,d=n.f,c=r.f;u<l;)for(var h,p=a(arguments[u++]),f=d?s(p).concat(d(p)):s(p),m=f.length,g=0;g<m;)c.call(p,h=f[g++])&&(i[h]=p[h]);return i}:l},function(e,t,i){var s=i(17),n=i(21),r=i(23)(!1),o=i(26)("IE_PROTO");e.exports=function(e,t){var i,a=n(e),l=0,u=[];for(i in a)i!=o&&s(a,i)&&u.push(i);for(;t.length>l;)s(a,i=t[l++])&&(~r(u,i)||u.push(i));return u}},function(e,t,i){var s=i(25),n=Math.max,r=Math.min;e.exports=function(e,t){return(e=s(e))<0?n(e+t,0):r(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,i){var s=i(48);e.exports=function(e,t){return new(s(e))(t)}},function(e,t,i){var s=i(2),n=i(33),r=i(34)("species");e.exports=function(e){var t;return n(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!n(t.prototype)||(t=void 0),s(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,i){"use strict";var s=i(0),n=i(32)(2);s(s.P+s.F*!i(13)([].filter,!0),"Array",{filter:function(e){return n(this,e,arguments[1])}})},function(e,t,i){var s=i(0);s(s.S,"Array",{isArray:i(33)})},function(e,t,i){"use strict";t.__esModule=!0,t.default=void 0,i(14),i(36),i(30),i(31),i(35),i(55),i(58);var s=i(5),n=o(i(60)),r=o(i(61));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function d(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var c=function(e){function t(t){var i;return(i=e.call(this,t)||this).elementReferences={},i.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0},i.handleComponentBlur=i.handleComponentBlur.bind(l(l(i))),i.handleKeyDown=i.handleKeyDown.bind(l(l(i))),i.handleUpArrow=i.handleUpArrow.bind(l(l(i))),i.handleDownArrow=i.handleDownArrow.bind(l(l(i))),i.handleEnter=i.handleEnter.bind(l(l(i))),i.handlePrintableKey=i.handlePrintableKey.bind(l(l(i))),i.handleListMouseLeave=i.handleListMouseLeave.bind(l(l(i))),i.handleOptionBlur=i.handleOptionBlur.bind(l(l(i))),i.handleOptionClick=i.handleOptionClick.bind(l(l(i))),i.handleOptionFocus=i.handleOptionFocus.bind(l(l(i))),i.handleOptionMouseDown=i.handleOptionMouseDown.bind(l(l(i))),i.handleOptionMouseEnter=i.handleOptionMouseEnter.bind(l(l(i))),i.handleInputBlur=i.handleInputBlur.bind(l(l(i))),i.handleInputChange=i.handleInputChange.bind(l(l(i))),i.handleInputFocus=i.handleInputFocus.bind(l(l(i))),i.pollInputElement=i.pollInputElement.bind(l(l(i))),i.getDirectInputChanges=i.getDirectInputChanges.bind(l(l(i))),i}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var i=t.prototype;return i.isQueryAnOption=function(e,t){var i=this;return-1!==t.map((function(e){return i.templateInputValue(e).toLowerCase()})).indexOf(e.toLowerCase())},i.componentDidMount=function(){this.pollInputElement()},i.componentWillUnmount=function(){clearTimeout(this.$pollInput)},i.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout((function(){e.pollInputElement()}),100)},i.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},i.componentDidUpdate=function(e,t){var i=this.state.focused,s=null===i,n=t.focused!==i;n&&!s&&this.elementReferences[i].focus();var r=-1===i,o=n&&null===t.focused;if(r&&o){var a=this.elementReferences[i];a.setSelectionRange(0,a.value.length)}},i.hasAutoselect=function(){return!d()&&this.props.autoselect},i.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},i.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},i.handleComponentBlur=function(e){var t,i=this.state,s=i.options,n=i.query,r=i.selected;this.props.confirmOnBlur?(t=e.query||n,this.props.onConfirm(s[r])):t=n,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,s)})},i.handleListMouseLeave=function(e){this.setState({hovered:null})},i.handleOptionBlur=function(e,t){var i=this.state,s=i.focused,n=i.menuOpen,r=i.options,o=i.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],u=s!==t&&-1!==s;if(!u&&a||!u&&!l){var c=n&&d();this.handleComponentBlur({menuOpen:c,query:this.templateInputValue(r[o])})}},i.handleInputBlur=function(e){var t=this.state,i=t.focused,s=t.menuOpen,n=t.options,r=t.query,o=t.selected;if(-1===i){var a=s&&d(),l=d()?r:this.templateInputValue(n[o]);this.handleComponentBlur({menuOpen:a,query:l})}},i.handleInputChange=function(e){var t=this,i=this.props,s=i.minLength,n=i.source,r=i.showAllValues,o=this.hasAutoselect(),a=e.target.value,l=0===a.length,u=this.state.query.length!==a.length,d=a.length>=s;this.setState({query:a,ariaHint:l}),r||!l&&u&&d?n(a,(function(e){var i=0<e.length;t.setState({menuOpen:i,options:e,selected:o&&i?0:-1,validChoiceMade:!1})})):!l&&d||this.setState({menuOpen:!1,options:[]})},i.handleInputClick=function(e){this.handleInputChange(e)},i.handleInputFocus=function(e){var t=this.state,i=t.query,s=t.validChoiceMade,n=t.options,r=this.props.minLength,o=!s&&i.length>=r&&0<n.length;o?this.setState((function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}})):this.setState({focused:-1})},i.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},i.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},i.handleOptionClick=function(e,t){var i=this.state.options[t],s=this.templateInputValue(i);this.props.onConfirm(i),this.setState({focused:-1,hovered:null,menuOpen:!1,query:s,selected:-1,validChoiceMade:!0}),this.forceUpdate()},i.handleOptionMouseDown=function(e){e.preventDefault()},i.handleUpArrow=function(e){e.preventDefault();var t=this.state,i=t.menuOpen,s=t.selected;-1!==s&&i&&this.handleOptionFocus(s-1)},i.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})}));else if(!0===this.state.menuOpen){var i=this.state,s=i.menuOpen,n=i.options,r=i.selected;r!==n.length-1&&s&&this.handleOptionFocus(r+1)}},i.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e})}))),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},i.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},i.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},i.handleKeyDown=function(e){switch(u[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},i.render=function(){var e,t=this,i=this.props,r=i.cssNamespace,o=i.displayMenu,l=i.id,u=i.minLength,c=i.name,h=i.placeholder,p=i.required,f=i.showAllValues,m=i.tNoResults,g=i.tStatusQueryTooShort,_=i.tStatusNoResults,y=i.tStatusSelectedOption,b=i.tStatusResults,v=i.tAssistiveHint,T=i.dropdownArrow,S=this.state,w=S.focused,E=S.hovered,C=S.menuOpen,k=S.options,x=S.query,I=S.selected,A=S.ariaHint,L=S.validChoiceMade,P=this.hasAutoselect(),O=-1===w,j=0===k.length,D=0!==x.length,M=x.length>=u,N=this.props.showNoOptionsFound&&O&&j&&D&&M,R=r+"__wrapper",F=r+"__input",U=null!==w?" "+F+"--focused":"",B=this.props.showAllValues?" "+F+"--show-all-values":" "+F+"--default",$=r+"__dropdown-arrow-down",q=-1!==w&&null!==w,V=r+"__menu",H=V+"--"+o,z=V+"--"+(C||N?"visible":"hidden"),W=r+"__option",G=r+"__hint",X=this.templateInputValue(k[I]),K=X&&0===X.toLowerCase().indexOf(x.toLowerCase())&&P?x+X.substr(x.length):"",Y=l+"__assistiveHint",Q=A?{"aria-describedby":Y}:null;return f&&"string"==typeof(e=T({className:$}))&&(e=(0,s.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,s.createElement)("div",{className:R,onKeyDown:this.handleKeyDown},(0,s.createElement)(n.default,{id:l,length:k.length,queryLength:x.length,minQueryLength:u,selectedOption:this.templateInputValue(k[I]),selectedOptionIndex:I,validChoiceMade:L,isInFocus:null!==this.state.focused,tQueryTooShort:g,tNoResults:_,tSelectedOption:y,tResults:b}),K&&(0,s.createElement)("span",null,(0,s.createElement)("input",{className:G,readonly:!0,tabIndex:"-1",value:K})),(0,s.createElement)("input",a({"aria-expanded":C?"true":"false","aria-activedescendant":!!q&&l+"__option--"+w,"aria-owns":l+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},Q,{autoComplete:"off",className:""+F+U+B,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:c,placeholder:h,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:p,value:x})),e,(0,s.createElement)("ul",{className:V+" "+H+" "+z,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},k.map((function(e,i){var n=(-1===w?I===i:w===i)&&null===E?" "+W+"--focused":"",r=i%2?" "+W+"--odd":"",o=d()?"<span id="+l+"__option-suffix--"+i+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(i+1)+" of "+k.length+"</span>":"";return(0,s.createElement)("li",{"aria-selected":w===i?"true":"false",className:""+W+n+r,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+o},id:l+"__option--"+i,key:i,onBlur:function(e){return t.handleOptionBlur(e,i)},onClick:function(e){return t.handleOptionClick(e,i)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,i)},ref:function(e){t.elementReferences[i]=e},role:"option",tabIndex:"-1","aria-posinset":i+1,"aria-setsize":k.length})})),N&&(0,s.createElement)("li",{className:W+" "+W+"--no-results"},m())),(0,s.createElement)("span",{id:Y,style:{display:"none"}},v()))},t}(s.Component);(t.default=c).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select.  Touch device users, explore by touch or with swipe gestures."},dropdownArrow:r.default}},function(e,t,i){var s=i(9),n=i(53),r=i(28),o=i(26)("IE_PROTO"),a=function(){},l="prototype",u=function(){var e,t=i(15)("iframe"),s=r.length;for(t.style.display="none",i(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;s--;)delete u[l][r[s]];return u()};e.exports=Object.create||function(e,t){var i;return null!==e?(a[l]=s(e),i=new a,a[l]=null,i[o]=e):i=u(),void 0===t?i:n(i,t)}},function(e,t,i){var s=i(8),n=i(9),r=i(20);e.exports=i(3)?Object.defineProperties:function(e,t){n(e);for(var i,o=r(t),a=o.length,l=0;l<a;)s.f(e,i=o[l++],t[i]);return e}},function(e,t,i){var s=i(1).document;e.exports=s&&s.documentElement},function(e,t,i){var s=i(0);s(s.P,"Function",{bind:i(56)})},function(e,t,i){"use strict";var s=i(19),n=i(2),r=i(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=s(this),i=o.call(arguments,1),l=function(){var s=i.concat(o.call(arguments));return this instanceof l?function(e,t,i){if(!(t in a)){for(var s=[],n=0;n<t;n++)s[n]="a["+n+"]";a[t]=Function("F,a","return new F("+s.join(",")+")")}return a[t](e,i)}(t,s.length,s):r(t,s,e)};return n(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,i){var s=void 0===i;switch(t.length){case 0:return s?e():e.call(i);case 1:return s?e(t[0]):e.call(i,t[0]);case 2:return s?e(t[0],t[1]):e.call(i,t[0],t[1]);case 3:return s?e(t[0],t[1],t[2]):e.call(i,t[0],t[1],t[2]);case 4:return s?e(t[0],t[1],t[2],t[3]):e.call(i,t[0],t[1],t[2],t[3])}return e.apply(i,t)}},function(e,t,i){i(59)("match",1,(function(e,t,i){return[function(i){"use strict";var s=e(this),n=null==i?void 0:i[t];return void 0!==n?n.call(i,s):new RegExp(i)[t](String(s))},i]}))},function(e,t,i){"use strict";var s=i(7),n=i(16),r=i(4),o=i(12),a=i(34);e.exports=function(e,t,i){var l=a(e),u=i(o,l,""[e]),d=u[0],c=u[1];r((function(){var t={};return t[l]=function(){return 7},7!=""[e](t)}))&&(n(String.prototype,e,d),s(RegExp.prototype,l,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)}))}},function(e,t,i){"use strict";t.__esModule=!0,t.default=void 0,i(36);var s=i(5),n=function(e){function t(){for(var t,i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];return(t=e.call.apply(e,[this].concat(s))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var i=t.prototype;return i.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t,i){var s;return function(){var n=this,r=arguments,o=i&&!s;clearTimeout(s),s=setTimeout((function(){s=null,i||e.apply(n,r)}),t),o&&e.apply(n,r)}}((function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState((function(e){return{bump:!e.bump,debounced:!0,silenced:t}}))}}),1400)},i.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},i.render=function(){var e,t=this.props,i=t.id,n=t.length,r=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,u=t.tQueryTooShort,d=t.tNoResults,c=t.tSelectedOption,h=t.tResults,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,_=r<o,y=0===n,b=a?c(a,n,l):"";return e=_?u(o):y?d():h(n,b),this.debounceStatusUpdate(),(0,s.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,s.createElement)("div",{id:i+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?e:""),(0,s.createElement)("div",{id:i+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":e))},t}(s.Component);(t.default=n).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,i){return e+" "+(i+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,i){"use strict";t.__esModule=!0,t.default=void 0;var s=i(5);t.default=function(e){var t=e.className;return(0,s.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,s.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,s.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default},e.exports=t()},
vendor: 17,807 bytes, line 2
2"./node_modules/animejs/lib/anime.es.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>ae});var s={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},n={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],o={CSS:{},springs:{}};function a(e,t,i){return Math.min(Math.max(e,t),i)}function l(e,t){return e.indexOf(t)>-1}function u(e,t){return e.apply(null,t)}var d={arr:function(e){return Array.isArray(e)},obj:function(e){return l(Object.prototype.toString.call(e),"Object")},pth:function(e){return d.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||d.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return d.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return d.hex(e)||d.rgb(e)||d.hsl(e)},key:function(e){return!s.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function c(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function h(e,t){var i=c(e),s=a(d.und(i[0])?1:i[0],.1,100),n=a(d.und(i[1])?100:i[1],.1,100),r=a(d.und(i[2])?10:i[2],.1,100),l=a(d.und(i[3])?0:i[3],.1,100),u=Math.sqrt(n/s),h=r/(2*Math.sqrt(n*s)),p=h<1?u*Math.sqrt(1-h*h):0,f=1,m=h<1?(h*u-l)/p:-l+u;function g(e){var i=t?t*e/1e3:e;return i=h<1?Math.exp(-i*h*u)*(f*Math.cos(p*i)+m*Math.sin(p*i)):(f+m*i)*Math.exp(-i*u),0===e||1===e?e:1-i}return t?g:function(){var t=o.springs[e];if(t)return t;for(var i=1/6,s=0,n=0;;)if(1===g(s+=i)){if(++n>=16)break}else n=0;var r=s*i*1e3;return o.springs[e]=r,r}}function p(e){return void 0===e&&(e=10),function(t){return Math.ceil(a(t,1e-6,1)*e)*(1/e)}}var f,m,g=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function s(e){return 3*e}function n(e,n,r){return((t(n,r)*e+i(n,r))*e+s(n))*e}function r(e,n,r){return 3*t(n,r)*e*e+2*i(n,r)*e+s(n)}return function(t,i,s,o){if(0<=t&&t<=1&&0<=s&&s<=1){var a=new Float32Array(11);if(t!==i||s!==o)for(var l=0;l<11;++l)a[l]=n(l*e,t,s);return function(e){return t===i&&s===o||0===e||1===e?e:n(u(e),i,o)}}function u(i){for(var o=0,l=1;10!==l&&a[l]<=i;++l)o+=e;--l;var u=o+(i-a[l])/(a[l+1]-a[l])*e,d=r(u,t,s);return d>=.001?function(e,t,i,s){for(var o=0;o<4;++o){var a=r(t,i,s);if(0===a)return t;t-=(n(t,i,s)-e)/a}return t}(i,u,t,s):0===d?u:function(e,t,i,s,r){var o,a,l=0;do{(o=n(a=t+(i-t)/2,s,r)-e)>0?i=a:t=a}while(Math.abs(o)>1e-7&&++l<10);return a}(i,o,o+e,t,s)}}}(),_=(f={linear:function(){return function(e){return e}}},m={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var i=a(e,1,10),s=a(t,.1,2);return function(e){return 0===e||1===e?e:-i*Math.pow(2,10*(e-1))*Math.sin((e-1-s/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/s)}}},["Quad","Cubic","Quart","Quint"].forEach((function(e,t){m[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(m).forEach((function(e){var t=m[e];f["easeIn"+e]=t,f["easeOut"+e]=function(e,i){return function(s){return 1-t(e,i)(1-s)}},f["easeInOut"+e]=function(e,i){return function(s){return s<.5?t(e,i)(2*s)/2:1-t(e,i)(-2*s+2)/2}},f["easeOutIn"+e]=function(e,i){return function(s){return s<.5?(1-t(e,i)(1-2*s))/2:(t(e,i)(2*s-1)+1)/2}}})),f);function y(e,t){if(d.fnc(e))return e;var i=e.split("(")[0],s=_[i],n=c(e);switch(i){case"spring":return h(e,t);case"cubicBezier":return u(g,n);case"steps":return u(p,n);default:return u(s,n)}}function b(e){try{return document.querySelectorAll(e)}catch(e){return}}function v(e,t){for(var i=e.length,s=arguments.length>=2?arguments[1]:void 0,n=[],r=0;r<i;r++)if(r in e){var o=e[r];t.call(s,o,r,e)&&n.push(o)}return n}function T(e){return e.reduce((function(e,t){return e.concat(d.arr(t)?T(t):t)}),[])}function S(e){return d.arr(e)?e:(d.str(e)&&(e=b(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function w(e,t){return e.some((function(e){return e===t}))}function E(e){var t={};for(var i in e)t[i]=e[i];return t}function C(e,t){var i=E(e);for(var s in e)i[s]=t.hasOwnProperty(s)?t[s]:e[s];return i}function k(e,t){var i=E(e);for(var s in t)i[s]=d.und(e[s])?t[s]:e[s];return i}function x(e){return d.rgb(e)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+i[1]+",1)":t:d.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,s){return t+t+i+i+s+s})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(i[1],16)+","+parseInt(i[2],16)+","+parseInt(i[3],16)+",1)"}(e):d.hsl(e)?function(e){var t,i,s,n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(n[1],10)/360,o=parseInt(n[2],10)/100,a=parseInt(n[3],10)/100,l=n[4]||1;function u(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}if(0==o)t=i=s=a;else{var d=a<.5?a*(1+o):a+o-a*o,c=2*a-d;t=u(c,d,r+1/3),i=u(c,d,r),s=u(c,d,r-1/3)}return"rgba("+255*t+","+255*i+","+255*s+","+l+")"}(e):void 0;var t,i}function I(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function A(e,t){return d.fnc(e)?e(t.target,t.id,t.total):e}function L(e,t){return e.getAttribute(t)}function P(e,t,i){if(w([i,"deg","rad","turn"],I(t)))return t;var s=o.CSS[t+i];if(!d.und(s))return s;var n=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(n),n.style.position="absolute",n.style.width=100+i;var a=100/n.offsetWidth;r.removeChild(n);var l=a*parseFloat(t);return o.CSS[t+i]=l,l}function O(e,t,i){if(t in e.style){var s=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),n=e.style[t]||getComputedStyle(e).getPropertyValue(s)||"0";return i?P(e,n,i):n}}function j(e,t){return d.dom(e)&&!d.inp(e)&&(!d.nil(L(e,t))||d.svg(e)&&e[t])?"attribute":d.dom(e)&&w(r,t)?"transform":d.dom(e)&&"transform"!==t&&O(e,t)?"css":null!=e[t]?"object":void 0}function D(e){if(d.dom(e)){for(var t,i=e.style.transform||"",s=/(\w+)\(([^)]*)\)/g,n=new Map;t=s.exec(i);)n.set(t[1],t[2]);return n}}function M(e,t,i,s){var n=l(t,"scale")?1:0+function(e){return l(e,"translate")||"perspective"===e?"px":l(e,"rotate")||l(e,"skew")?"deg":void 0}(t),r=D(e).get(t)||n;return i&&(i.transforms.list.set(t,r),i.transforms.last=t),s?P(e,r,s):r}function N(e,t,i,s){switch(j(e,t)){case"transform":return M(e,t,s,i);case"css":return O(e,t,i);case"attribute":return L(e,t);default:return e[t]||0}}function R(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var s=I(e)||0,n=parseFloat(t),r=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return n+r+s;case"-":return n-r+s;case"*":return n*r+s}}function F(e,t){if(d.col(e))return x(e);if(/\s/g.test(e))return e;var i=I(e),s=i?e.substr(0,e.length-i.length):e;return t?s+t:s}function U(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function B(e){for(var t,i=e.points,s=0,n=0;n<i.numberOfItems;n++){var r=i.getItem(n);n>0&&(s+=U(t,r)),t=r}return s}function $(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*L(e,"r")}(e);case"rect":return function(e){return 2*L(e,"width")+2*L(e,"height")}(e);case"line":return function(e){return U({x:L(e,"x1"),y:L(e,"y1")},{x:L(e,"x2"),y:L(e,"y2")})}(e);case"polyline":return B(e);case"polygon":return function(e){var t=e.points;return B(e)+U(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function q(e,t){var i=t||{},s=i.el||function(e){for(var t=e.parentNode;d.svg(t)&&d.svg(t.parentNode);)t=t.parentNode;return t}(e),n=s.getBoundingClientRect(),r=L(s,"viewBox"),o=n.width,a=n.height,l=i.viewBox||(r?r.split(" "):[0,0,o,a]);return{el:s,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:a,vW:l[2],vH:l[3]}}function V(e,t,i){function s(i){void 0===i&&(i=0);var s=t+i>=1?t+i:0;return e.el.getPointAtLength(s)}var n=q(e.el,e.svg),r=s(),o=s(-1),a=s(1),l=i?1:n.w/n.vW,u=i?1:n.h/n.vH;switch(e.property){case"x":return(r.x-n.x)*l;case"y":return(r.y-n.y)*u;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function H(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,s=F(d.pth(e)?e.totalLength:e,t)+"";return{original:s,numbers:s.match(i)?s.match(i).map(Number):[0],strings:d.str(e)||t?s.split(i):[]}}function z(e){return v(e?T(d.arr(e)?e.map(S):S(e)):[],(function(e,t,i){return i.indexOf(e)===t}))}function W(e){var t=z(e);return t.map((function(e,i){return{target:e,id:i,total:t.length,transforms:{list:D(e)}}}))}function G(e,t){var i=E(t);if(/^spring/.test(i.easing)&&(i.duration=h(i.easing)),d.arr(e)){var s=e.length;2===s&&!d.obj(e[0])?e={value:e}:d.fnc(t.duration)||(i.duration=t.duration/s)}var n=d.arr(e)?e:[e];return n.map((function(e,i){var s=d.obj(e)&&!d.pth(e)?e:{value:e};return d.und(s.delay)&&(s.delay=i?0:t.delay),d.und(s.endDelay)&&(s.endDelay=i===n.length-1?t.endDelay:0),s})).map((function(e){return k(e,i)}))}function X(e,t){var i=[],s=t.keyframes;for(var n in s&&(t=k(function(e){for(var t=v(T(e.map((function(e){return Object.keys(e)}))),(function(e){return d.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),i={},s=function(s){var n=t[s];i[n]=e.map((function(e){var t={};for(var i in e)d.key(i)?i==n&&(t.value=e[i]):t[i]=e[i];return t}))},n=0;n<t.length;n++)s(n);return i}(s),t)),t)d.key(n)&&i.push({name:n,tweens:G(t[n],e)});return i}function K(e,t){var i;return e.tweens.map((function(s){var n=function(e,t){var i={};for(var s in e){var n=A(e[s],t);d.arr(n)&&1===(n=n.map((function(e){return A(e,t)}))).length&&(n=n[0]),i[s]=n}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(s,t),r=n.value,o=d.arr(r)?r[1]:r,a=I(o),l=N(t.target,e.name,a,t),u=i?i.to.original:l,c=d.arr(r)?r[0]:u,h=I(c)||I(l),p=a||h;return d.und(o)&&(o=u),n.from=H(c,p),n.to=H(R(o,c),p),n.start=i?i.end:0,n.end=n.start+n.delay+n.duration+n.endDelay,n.easing=y(n.easing,n.duration),n.isPath=d.pth(r),n.isPathTargetInsideSVG=n.isPath&&d.svg(t.target),n.isColor=d.col(n.from.original),n.isColor&&(n.round=1),i=n,n}))}var Y={css:function(e,t,i){return e.style[t]=i},attribute:function(e,t,i){return e.setAttribute(t,i)},object:function(e,t,i){return e[t]=i},transform:function(e,t,i,s,n){if(s.list.set(t,i),t===s.last||n){var r="";s.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function Q(e,t){W(e).forEach((function(e){for(var i in t){var s=A(t[i],e),n=e.target,r=I(s),o=N(n,i,r,e),a=R(F(s,r||I(o)),o),l=j(n,i);Y[l](n,i,a,e.transforms,!0)}}))}function J(e,t){return v(T(e.map((function(e){return t.map((function(t){return function(e,t){var i=j(e.target,t.name);if(i){var s=K(t,e),n=s[s.length-1];return{type:i,property:t.name,animatable:e,tweens:s,duration:n.end,delay:s[0].delay,endDelay:n.endDelay}}}(e,t)}))}))),(function(e){return!d.und(e)}))}function Z(e,t){var i=e.length,s=function(e){return e.timelineOffset?e.timelineOffset:0},n={};return n.duration=i?Math.max.apply(Math,e.map((function(e){return s(e)+e.duration}))):t.duration,n.delay=i?Math.min.apply(Math,e.map((function(e){return s(e)+e.delay}))):t.delay,n.endDelay=i?n.duration-Math.max.apply(Math,e.map((function(e){return s(e)+e.duration-e.endDelay}))):t.endDelay,n}var ee=0;var te=[],ie=function(){var e;function t(i){for(var s=te.length,n=0;n<s;){var r=te[n];r.paused?(te.splice(n,1),s--):(r.tick(i),n++)}e=n>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){ne.suspendWhenDocumentHidden&&(se()?e=cancelAnimationFrame(e):(te.forEach((function(e){return e._onDocumentVisibility()})),ie()))})),function(){e||se()&&ne.suspendWhenDocumentHidden||!(te.length>0)||(e=requestAnimationFrame(t))}}();function se(){return!!document&&document.hidden}function ne(e){void 0===e&&(e={});var t,i=0,r=0,o=0,l=0,u=null;function d(e){var t=window.Promise&&new Promise((function(e){return u=e}));return e.finished=t,t}var c=function(e){var t=C(s,e),i=C(n,e),r=X(i,e),o=W(e.targets),a=J(o,r),l=Z(a,i),u=ee;return ee++,k(t,{id:u,children:[],animatables:o,animations:a,duration:l.duration,delay:l.delay,endDelay:l.endDelay})}(e);d(c);function h(){var e=c.direction;"alternate"!==e&&(c.direction="normal"!==e?"normal":"reverse"),c.reversed=!c.reversed,t.forEach((function(e){return e.reversed=c.reversed}))}function p(e){return c.reversed?c.duration-e:e}function f(){i=0,r=p(c.currentTime)*(1/ne.speed)}function m(e,t){t&&t.seek(e-t.timelineOffset)}function g(e){for(var t=0,i=c.animations,s=i.length;t<s;){var n=i[t],r=n.animatable,o=n.tweens,l=o.length-1,u=o[l];l&&(u=v(o,(function(t){return e<t.end}))[0]||u);for(var d=a(e-u.start-u.delay,0,u.duration)/u.duration,h=isNaN(d)?1:u.easing(d),p=u.to.strings,f=u.round,m=[],g=u.to.numbers.length,_=void 0,y=0;y<g;y++){var b=void 0,T=u.to.numbers[y],S=u.from.numbers[y]||0;b=u.isPath?V(u.value,h*T,u.isPathTargetInsideSVG):S+h*(T-S),f&&(u.isColor&&y>2||(b=Math.round(b*f)/f)),m.push(b)}var w=p.length;if(w){_=p[0];for(var E=0;E<w;E++){p[E];var C=p[E+1],k=m[E];isNaN(k)||(_+=C?k+C:k+" ")}}else _=m[0];Y[n.type](r.target,n.property,_,r.transforms),n.currentValue=_,t++}}function _(e){c[e]&&!c.passThrough&&c[e](c)}function y(e){var s=c.duration,n=c.delay,f=s-c.endDelay,y=p(e);c.progress=a(y/s*100,0,100),c.reversePlayback=y<c.currentTime,t&&function(e){if(c.reversePlayback)for(var i=l;i--;)m(e,t[i]);else for(var s=0;s<l;s++)m(e,t[s])}(y),!c.began&&c.currentTime>0&&(c.began=!0,_("begin")),!c.loopBegan&&c.currentTime>0&&(c.loopBegan=!0,_("loopBegin")),y<=n&&0!==c.currentTime&&g(0),(y>=f&&c.currentTime!==s||!s)&&g(s),y>n&&y<f?(c.changeBegan||(c.changeBegan=!0,c.changeCompleted=!1,_("changeBegin")),_("change"),g(y)):c.changeBegan&&(c.changeCompleted=!0,c.changeBegan=!1,_("changeComplete")),c.currentTime=a(y,0,s),c.began&&_("update"),e>=s&&(r=0,c.remaining&&!0!==c.remaining&&c.remaining--,c.remaining?(i=o,_("loopComplete"),c.loopBegan=!1,"alternate"===c.direction&&h()):(c.paused=!0,c.completed||(c.completed=!0,_("loopComplete"),_("complete"),!c.passThrough&&"Promise"in window&&(u(),d(c)))))}return c.reset=function(){var e=c.direction;c.passThrough=!1,c.currentTime=0,c.progress=0,c.paused=!0,c.began=!1,c.loopBegan=!1,c.changeBegan=!1,c.completed=!1,c.changeCompleted=!1,c.reversePlayback=!1,c.reversed="reverse"===e,c.remaining=c.loop,t=c.children;for(var i=l=t.length;i--;)c.children[i].reset();(c.reversed&&!0!==c.loop||"alternate"===e&&1===c.loop)&&c.remaining++,g(c.reversed?c.duration:0)},c._onDocumentVisibility=f,c.set=function(e,t){return Q(e,t),c},c.tick=function(e){o=e,i||(i=o),y((o+(r-i))*ne.speed)},c.seek=function(e){y(p(e))},c.pause=function(){c.paused=!0,f()},c.play=function(){c.paused&&(c.completed&&c.reset(),c.paused=!1,te.push(c),f(),ie())},c.reverse=function(){h(),c.completed=!c.reversed,f()},c.restart=function(){c.reset(),c.play()},c.remove=function(e){oe(z(e),c)},c.reset(),c.autoplay&&c.play(),c}function re(e,t){for(var i=t.length;i--;)w(e,t[i].animatable.target)&&t.splice(i,1)}function oe(e,t){var i=t.animations,s=t.children;re(e,i);for(var n=s.length;n--;){var r=s[n],o=r.animations;re(e,o),o.length||r.children.length||s.splice(n,1)}i.length||s.length||t.pause()}ne.version="3.2.1",ne.speed=1,ne.suspendWhenDocumentHidden=!0,ne.running=te,ne.remove=function(e){for(var t=z(e),i=te.length;i--;){oe(t,te[i])}},ne.get=N,ne.set=Q,ne.convertPx=P,ne.path=function(e,t){var i=d.str(e)?b(e)[0]:e,s=t||100;return function(e){return{property:e,el:i,svg:q(i),totalLength:$(i)*(s/100)}}},ne.setDashoffset=function(e){var t=$(e);return e.setAttribute("stroke-dasharray",t),t},ne.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",s=t.easing?y(t.easing):null,n=t.grid,r=t.axis,o=t.from||0,a="first"===o,l="center"===o,u="last"===o,c=d.arr(e),h=c?parseFloat(e[0]):parseFloat(e),p=c?parseFloat(e[1]):0,f=I(c?e[1]:e)||0,m=t.start||0+(c?h:0),g=[],_=0;return function(e,t,d){if(a&&(o=0),l&&(o=(d-1)/2),u&&(o=d-1),!g.length){for(var y=0;y<d;y++){if(n){var b=l?(n[0]-1)/2:o%n[0],v=l?(n[1]-1)/2:Math.floor(o/n[0]),T=b-y%n[0],S=v-Math.floor(y/n[0]),w=Math.sqrt(T*T+S*S);"x"===r&&(w=-T),"y"===r&&(w=-S),g.push(w)}else g.push(Math.abs(o-y));_=Math.max.apply(Math,g)}s&&(g=g.map((function(e){return s(e/_)*_}))),"reverse"===i&&(g=g.map((function(e){return r?e<0?-1*e:-e:Math.abs(_-e)})))}return m+(c?(p-h)/_:h)*(Math.round(100*g[t])/100)+f}},ne.timeline=function(e){void 0===e&&(e={});var t=ne(e);return t.duration=0,t.add=function(i,s){var r=te.indexOf(t),o=t.children;function a(e){e.passThrough=!0}r>-1&&te.splice(r,1);for(var l=0;l<o.length;l++)a(o[l]);var u=k(i,C(n,e));u.targets=u.targets||e.targets;var c=t.duration;u.autoplay=!1,u.direction=t.direction,u.timelineOffset=d.und(s)?c:R(s,c),a(t),t.seek(u.timelineOffset);var h=ne(u);a(h),o.push(h);var p=Z(o,e);return t.delay=p.delay,t.endDelay=p.endDelay,t.duration=p.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},ne.easing=y,ne.penner=_,ne.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const ae=ne},
vendor: 3,683 bytes, line 2
2"./node_modules/bootstrap-italia/dist/bootstrap-italia.esm.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{AcceptOverlay:()=>U.default,Accordion:()=>u.default,Alert:()=>k.default,BackToTop:()=>v.default,Button:()=>x.default,Carousel:()=>I.default,CarouselBI:()=>s.default,Collapse:()=>A.default,Cookiebar:()=>a.default,Dimmer:()=>r.default,Dropdown:()=>L.default,FormValidate:()=>p.FormValidate,Forward:()=>S.default,HeaderSticky:()=>h.default,HistoryBack:()=>T.default,Input:()=>f.default,InputNumber:()=>n.default,InputPassword:()=>_.default,InputSearchAutocomplete:()=>g.default,List:()=>E.default,Masonry:()=>w.default,Modal:()=>P.default,NavBarCollapsible:()=>l.default,NavScroll:()=>d.default,Notification:()=>o.default,Offcanvas:()=>O.default,Popover:()=>j.default,ProgressDonut:()=>y.default,ScrollSpy:()=>D.default,SelectAutocomplete:()=>m.default,Sticky:()=>c.default,Tab:()=>M.default,Toast:()=>N.default,Tooltip:()=>R.default,Transfer:()=>C.default,UploadDragDrop:()=>b.default,ValidatorSelectAutocomplete:()=>p.ValidatorSelectAutocomplete,VideoPlayer:()=>F.default,init:()=>$.default,loadFonts:()=>B.default});var s=i("./node_modules/bootstrap-italia/dist/plugins/carousel-bi.js"),n=i("./node_modules/bootstrap-italia/dist/plugins/input-number.js"),r=i("./node_modules/bootstrap-italia/dist/plugins/dimmer.js"),o=i("./node_modules/bootstrap-italia/dist/plugins/notification.js"),a=i("./node_modules/bootstrap-italia/dist/plugins/cookiebar.js"),l=i("./node_modules/bootstrap-italia/dist/plugins/navbar-collapsible.js"),u=i("./node_modules/bootstrap-italia/dist/plugins/accordion.js"),d=i("./node_modules/bootstrap-italia/dist/plugins/navscroll.js"),c=i("./node_modules/bootstrap-italia/dist/plugins/sticky.js"),h=i("./node_modules/bootstrap-italia/dist/plugins/header-sticky.js"),p=i("./node_modules/bootstrap-italia/dist/plugins/form-validate.js"),f=i("./node_modules/bootstrap-italia/dist/plugins/input.js"),m=i("./node_modules/bootstrap-italia/dist/plugins/select-autocomplete.js"),g=i("./node_modules/bootstrap-italia/dist/plugins/input-search-autocomplete.js"),_=i("./node_modules/bootstrap-italia/dist/plugins/input-password.js"),y=i("./node_modules/bootstrap-italia/dist/plugins/progress-donut.js"),b=i("./node_modules/bootstrap-italia/dist/plugins/upload-dragdrop.js"),v=i("./node_modules/bootstrap-italia/dist/plugins/backToTop.js"),T=i("./node_modules/bootstrap-italia/dist/plugins/history-back.js"),S=i("./node_modules/bootstrap-italia/dist/plugins/forward.js"),w=i("./node_modules/bootstrap-italia/dist/plugins/masonry.js"),E=i("./node_modules/bootstrap-italia/dist/plugins/list.js"),C=i("./node_modules/bootstrap-italia/dist/plugins/transfer.js"),k=i("./node_modules/bootstrap-italia/dist/plugins/alert.js"),x=i("./node_modules/bootstrap-italia/dist/plugins/button.js"),I=i("./node_modules/bootstrap-italia/dist/plugins/carousel.js"),A=i("./node_modules/bootstrap-italia/dist/plugins/collapse.js"),L=i("./node_modules/bootstrap-italia/dist/plugins/dropdown.js"),P=i("./node_modules/bootstrap-italia/dist/plugins/modal.js"),O=i("./node_modules/bootstrap-italia/dist/plugins/offcanvas.js"),j=i("./node_modules/bootstrap-italia/dist/plugins/popover.js"),D=i("./node_modules/bootstrap-italia/dist/plugins/scrollspy.js"),M=i("./node_modules/bootstrap-italia/dist/plugins/tab.js"),N=i("./node_modules/bootstrap-italia/dist/plugins/toast.js"),R=i("./node_modules/bootstrap-italia/dist/plugins/tooltip.js"),F=i("./node_modules/bootstrap-italia/dist/plugins/videoplayer.js"),U=i("./node_modules/bootstrap-italia/dist/plugins/accept-overlay.js"),B=i("./node_modules/bootstrap-italia/dist/plugins/fonts-loader.js"),$=i("./node_modules/bootstrap-italia/dist/plugins/init.js")},
vendor: 2,042 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/accept-overlay.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/dist/plugins/util/cookies.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js");const a="show";class l extends s.default{constructor(e,t){super(e.closest(".acceptoverlay")),this._overlayable=e.closest(".acceptoverlayable");const i=r.cookies.isChoiceRemembered(t.service);if(this._isShown=!0,this._toggleElement=e,this._element.classList.contains(a)&&this._overlayable.classList.add(a),i)return this.hide(),void setTimeout((()=>{this._toggleElement.dispatchEvent(new Event("click"))}),100);this._toggleElement.addEventListener("click",(()=>{this.hide(),this._remember=this._toggleElement.parentElement.querySelector("[data-bs-accept-remember]").checked,r.cookies.rememberChoice(t.service,this._remember)}))}static get NAME(){return"acceptoverlay"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(a),this._overlayable.classList.remove(a),this._queueCallback((()=>this._hideElement()),this._element,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),e&&(0,n.reflow)(this._element),this._element.classList.add(a),this._overlayable.add(a);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}const u=o.default.find("[data-bs-accept-from]");u.length>0&&u.forEach((e=>{l.getOrCreateInstance(e,{service:e.dataset.bsAcceptFrom})}))},
vendor: 1,554 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/accordion.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/dist/plugins/util/dom.js");const a=".bs.accordion",l=`keydown${a}`,u=`keydown${a}.data-api`,d='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class c extends s.default{constructor(e){super(e),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(e,t,i){const s={ArrowDown:e=>this._focusNext(e),ArrowUp:e=>this._focusPrev(e),Home:e=>this._focusFirst(e),End:e=>this._focusLast(e)};"function"==typeof s[e]&&(i&&i.preventDefault(),s[e](t))}_bindEvents(){r.default.find(d,this._element).forEach((e=>{n.default.on(e,l,(e=>{this.handleKeyDown(e.key,e.currentTarget,e)}))}))}_getHeadButtons(){return r.default.find(":scope > "+d,this._element)}_focusNext(e){(0,o.focusSimbling)(e,this._getHeadButtons(),{loop:!0})}_focusPrev(e){(0,o.focusSimbling)(e,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(e){(0,o.focusSimbling)(e,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(e){(0,o.focusSimbling)(e,this._getHeadButtons(),{isLimit:!0})}}n.default.on(document,u,d,(function(e){const t=this.closest(".accordion");if(t){c.getOrCreateInstance(t).handleKeyDown(e.key,this,e)}}))},
vendor: 220 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/alert.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/alert.js");class n extends s.default{}},
vendor: 1,827 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/backToTop.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),a=i("./node_modules/bootstrap-italia/dist/plugins/util/on-document-scroll.js"),l=i("./node_modules/bootstrap-italia/dist/plugins/util/tween.js");const u="back-to-top-show",d={positionTop:0,scrollLimit:100,duration:800,easing:"easeInOutSine"};class c extends s.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._scrollCb=null,this._isAnim=!1,this._prevScrollBehavior="",this._bindEvents()}static get NAME(){return"backtotop"}show(){this._element.classList.contains(u)||this._element.classList.add(u)}hide(){this._element.classList.contains(u)&&this._element.classList.remove(u)}toggleShow(){"undefined"!=typeof document&&document.scrollingElement.scrollTop>this._config.scrollLimit?this.show():this.hide()}scrollToTop(){this._isAnim||(this._isAnim=!0,(0,l.documentScrollTo)(this._config.positionTop,{duration:this._config.duration,easing:this._config.easing,complete:()=>{this._isAnim=!1}}))}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(e){return e={...d,...o.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=(0,a.default)((()=>this.toggleShow())),n.default.on(this._element,"click.bs.backtotop",(e=>{e.preventDefault(),this.scrollToTop()}))}}(0,a.default)((()=>{r.default.find('[data-bs-toggle="backtotop"]').map((e=>{c.getOrCreateInstance(e)}))}))},
vendor: 222 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/button.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/button.js");class n extends s.default{}},
vendor: 2,686 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/carousel-bi.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i("./node_modules/@splidejs/splide/dist/js/splide.esm.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js");const a={slideFocus:!0,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all’ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay"}},l={"it-carousel-landscape-abstract-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"it-carousel-landscape-abstract-three-cols-arrow-visible":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"it-big-img":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"it-standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},"it-carousel-landscape-abstract":{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"it-calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}};class u extends n.default{constructor(e){super(e),this._config=this._getConfig(),this._splide=new s.default(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let e=Object.assign({},a);return Object.keys(l).forEach((t=>{this._element.classList.contains(t)&&(e=Object.assign({},e,l[t]))})),e}}o.default.on(window,"load.bs.carousel.data-api",(()=>{r.default.find("[data-bs-carousel-splide]").forEach((e=>{u.getOrCreateInstance(e)}))}))},
vendor: 226 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/carousel.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/carousel.js");class n extends s.default{}},
vendor: 226 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/collapse.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/collapse.js");class n extends s.default{}},
vendor: 3,192 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/cookiebar.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js");const o="cookiebar",a=".bs.cookiebar",l=".data-api",u="cookies_consent",d=`close${a}`,c=`closed${a}`,h=`load${a}${l}`,p=`click${a}${l}`,f="show";class m extends s.default{constructor(e){super(e),this._isShown=this._element.classList.contains(f),this._isTransitioning=!1}static get NAME(){return o}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(f),this._queueCallback((()=>this._hideElement()),this._element,e)}accept(e){e=e||this._element;const t=this._getRootElement(e);this._triggerCloseEvent(t).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=u+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),e&&(0,n.reflow)(this._element),this._element.classList.add(f);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var e=new Date;e.setDate(e.getDate()+30);var t=escape("true")+"; expires="+e.toUTCString();"undefined"!=typeof document&&(document.cookie=u+"="+t+"; path=/; SameSite=Strict")}_getRootElement(e){const t=(0,n.getElementFromSelector)(e);let i=null;return t&&(i=t),i||(i=e.closest(".cookiebar")),i}_triggerCloseEvent(e){return r.default.trigger(e,d)}_removeElement(e){e.classList.remove(f),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-live","off"),r.default.trigger(e,c),this.dispose()}static _handleAccept(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _handleConsent(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var e,t,i,s=document.cookie.split(";");for(e=0;e<s.length;e++)if(t=s[e].substring(0,s[e].indexOf("=")),i=s[e].substring(s[e].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==u)return unescape(i)}}}r.default.on(document,p,'[data-bs-accept="cookiebar"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),(0,n.isDisabled)(this))return;const t=(0,n.getElementFromSelector)(this)||this.closest(`.${o}`);m.getOrCreateInstance(t).accept()})),r.default.on(window,h,(function(){if(!m._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((e=>{m.getOrCreateInstance(e).show()}))}}))},
vendor: 1,462 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/dimmer.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js");const o="show";class a extends s.default{constructor(e){super(e),this._isShown=!e.matches("[aria-hidden=true]"),this._isTransitioning=!1}static get NAME(){return"dimmer"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(o),this._queueCallback((()=>this._hideElement()),this._element,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),e&&(0,n.reflow)(this._element),this._element.classList.add(o);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}r.default.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const e=(0,n.getElementFromSelector)(this),t=a.getOrCreateInstance(e);this.checked?t.show():t.hide()}))},
vendor: 226 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/dropdown.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dropdown.js");class n extends s.default{}},
vendor: 14,763 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/fonts-loader.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});var s=(e="/node_modules/bootstrap-italia/dist/fonts")=>{if("undefined"==typeof document)return;const t=document.createElement("style"),i=window.__PUBLIC_PATH__?window.__PUBLIC_PATH__:e;t.innerHTML=`\n  /* Titillium+Web:300,400,600,700 */\n\n  /* titillium-web-300 - latin-ext_latin */\n  @font-face {\n    font-family: 'Titillium Web';\n    font-style: normal;\n    font-weight: 300;\n    font-display: swap;\n    src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n  }\n\n  /* titillium-web-300italic - latin-ext_latin */\n  @font-face {\n    font-family: 'Titillium Web';\n    font-style: italic;\n    font-weight: 300;\n    font-display: swap;\n    src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n  }\n\n  /* titillium-web-regular - latin-ext_latin */\n  @font-face {\n    font-family: 'Titillium Web';\n    font-style: normal;\n    font-weight: 400;\n    font-display: swap;\n    src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n  }\n\n  /* titillium-web-italic - latin-ext_latin */\n  @font-face {\n    font-family: 'Titillium Web';\n    font-style: italic;\n    font-weight: 400;\n    font-display: swap;\n    src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n  }\n\n  /* titillium-web-700 - latin-ext_latin */\n  @font-face {\n    font-family: 'Titillium Web';\n    font-style: normal;\n    font-weight: 700;\n    font-display: swap;\n    src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n  }\n\n  /* titillium-web-700italic - latin-ext_latin */\n  @font-face {\n    font-family: 'Titillium Web';\n    font-style: italic;\n    font-weight: 700;\n    font-display: swap;\n    src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n  }\n  /* titillium-web-600 - latin-ext_latin */\n  @font-face {\n    font-family: 'Titillium Web';\n    font-style: normal;\n    font-weight: 600;\n    font-display: swap;\n    src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n  }\n\n  /* titillium-web-600italic - latin-ext_latin */\n  @font-face {\n    font-family: 'Titillium Web';\n    font-style: italic;\n    font-weight: 600;\n    font-display: swap;\n    src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n  }\n\n  /* Lora:400,700 */\n\n  /* lora-regular - latin-ext_latin */\n  @font-face {\n    font-family: 'Lora';\n    font-style: normal;\n    font-weight: 400;\n    font-display: swap;\n    src: url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Lora/lora-v20-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Lora/lora-v20-latin-ext_latin-regular.svg#Lora') format('svg'); /* Legacy iOS */\n  }\n\n  /* lora-700 - latin-ext_latin */\n  @font-face {\n    font-family: 'Lora';\n    font-style: normal;\n    font-weight: 700;\n    font-display: swap;\n    src: url('${i}/Lora/lora-v20-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Lora/lora-v20-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Lora/lora-v20-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Lora/lora-v20-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Lora/lora-v20-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Lora/lora-v20-latin-ext_latin-700.svg#Lora') format('svg'); /* Legacy iOS */\n  }\n\n  /* lora-italic - latin-ext_latin */\n  @font-face {\n    font-family: 'Lora';\n    font-style: italic;\n    font-weight: 400;\n    font-display: swap;\n    src: url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Lora/lora-v20-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Lora/lora-v20-latin-ext_latin-italic.svg#Lora') format('svg'); /* Legacy iOS */\n  }\n\n  /* lora-700italic - latin-ext_latin */\n  @font-face {\n    font-family: 'Lora';\n    font-style: italic;\n    font-weight: 700;\n    font-display: swap;\n    src: url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Lora/lora-v20-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Lora/lora-v20-latin-ext_latin-700italic.svg#Lora') format('svg'); /* Legacy iOS */\n  }\n\n  /* Roboto+Mono:400,700 */\n\n  /* roboto-mono-regular - latin-ext_latin */\n  @font-face {\n    font-family: 'Roboto Mono';\n    font-style: normal;\n    font-weight: 400;\n    font-display: swap;\n    src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */\n  }\n\n  /* roboto-mono-700 - latin-ext_latin */\n  @font-face {\n    font-family: 'Roboto Mono';\n    font-style: normal;\n    font-weight: 700;\n    font-display: swap;\n    src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.svg#RobotoMono') format('svg'); /* Legacy iOS */\n  }\n\n  /* roboto-mono-italic - latin-ext_latin */\n  @font-face {\n    font-family: 'Roboto Mono';\n    font-style: italic;\n    font-weight: 400;\n    font-display: swap;\n    src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n  }\n\n  /* roboto-mono-700italic - latin-ext_latin */\n  @font-face {\n    font-family: 'Roboto Mono';\n    font-style: italic;\n    font-weight: 700;\n    font-display: swap;\n    src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n    src: local(''),\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n        url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n  }\n  `,document.getElementsByTagName("head")[0].appendChild(t)}},
vendor: 2,588 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/form-validate.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{FormValidate:()=>a,ValidatorSelectAutocomplete:()=>l});var s=i("./node_modules/just-validate/dist/just-validate.es.js"),n=i("./node_modules/bootstrap-italia/dist/plugins/util/observer.js");const r={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},o="justvalidatebi";class a{constructor(e,t){return this.formSelector=e,this.target=document.querySelector(e),this.validate=new s.default(e,t),this.config=Object.assign({},r,this.validate.globalConfig),this.formItems=[],this.init(),this.validate}init(){this.target.querySelectorAll("input, select").forEach((e=>{const t=new n.CssClassObserver(e,this.config.errorFieldCssClass,(()=>this.onInputError(e)),(()=>this.onInputErrorRemove(e)),!0);e.id||e.setAttribute("id",o+"-input-"+Math.random()),this.formItems.push({item:e,watcher:t})}));this.target.querySelectorAll("fieldset").forEach((e=>{if(e.querySelectorAll("input[type=radio],input[type=checkbox]").length>0){const t=new n.ContentObserver(e,"."+this.config.errorLabelCssClass,(()=>this.onFieldsetError(e)),(()=>this.onFieldsetErrorRemove(e)));e.id||e.setAttribute("id",o+"-fieldset-"+Math.random()),this.formItems.push({item:e,watcher:t})}}))}onInputError(e){const t=this.getErrorMessages(e),i=[];t.forEach(((t,s)=>{const n=e.id+"-error-"+s;t.setAttribute("id",n),i.push(n)})),i.length>0&&(e.setAttribute("aria-describedby",i.join(" ")),e.setAttribute("aria-invalid","true"))}onInputErrorRemove(e){e.removeAttribute("aria-describedby"),e.setAttribute("aria-invalid","false")}onFieldsetError(e){const t=this.getErrorMessages(e),i=[],s=[];if(t.forEach(((t,n)=>{const r=e.id+"-error-"+n;t.setAttribute("id",r),i.push(r),s.push(t.textContent)})),i.length>0){const t=e.querySelector("legend");t&&(t.setAttribute("aria-describedby",i.join(" ")),t.setAttribute("aria-invalid","true"))}}onFieldsetErrorRemove(e){const t=e.querySelector("legend");if(t){t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid","false");const e=t.querySelector(".sr-only-justvalidate-bi");e&&e.remove()}}getErrorMessages(e){let t=e,i=t.querySelectorAll("."+this.config.errorLabelCssClass);for(;null!=t&&0===i.length;)t=t.parentNode,i=t.querySelectorAll("."+this.config.errorLabelCssClass);return i}}const l=(e,t={})=>(i,s)=>{let n=!1;const r=s[e];if(!r)throw new Error("ValidatorSelectAutocomplete: "+e+" not found as form field");return t.required||i?document.querySelector("#"+r.elem.id+"-select").querySelectorAll("option").forEach((e=>{e.text===i&&(n=!0)})):n=!0,n}},
vendor: 1,259 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/forward.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),a=i("./node_modules/bootstrap-italia/dist/plugins/util/tween.js");const l=".bs.historyback",u=`click${l}`,d=`click${l}.data-api`,c={duration:800,easing:"easeInOutSine"};class h extends s.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._bindEvents()}static get NAME(){return"historyback"}goToTarget(){const e=(0,o.getElementFromSelector)(this._element);e&&(0,a.documentScrollTo)(e.offsetTop,{duration:this._config.duration,easing:this._config.easing})}_getConfig(e){return e={...c,...r.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){n.default.on(this._element,u,(e=>{e.preventDefault(),this.goToTarget()}))}}n.default.on(document,d,'[data-bs-toggle="forward"]',(function(e){e.preventDefault();h.getOrCreateInstance(this).goToTarget()}))},
vendor: 1,724 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/header-sticky.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/dist/plugins/sticky.js"),o=i("./node_modules/bootstrap-italia/dist/plugins/util/on-document-scroll.js");const a="cloned-element",l=`.${a}`,u=new Map;class d{constructor(e){if(u.get(e))return null;this._element=e,this._elementObj=r.default.getOrCreateInstance(e),u.set(e,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(e){return u.get(e)||new this(e)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(e=!0){if(!(0,n.isVisible)(s.default.findOne(".custom-navbar-toggler",this._element))){const t=s.default.findOne(".menu-wrapper",this._element);if(e){const e=s.default.findOne(".it-brand-wrapper",this._element),i=s.default.findOne(".it-search-wrapper",this._element),n=s.default.findOne(".it-user-wrapper",this._element),r=e?e.cloneNode(!0):null,o=i?i.cloneNode(!0):null,l=n?n.cloneNode(!0):null;r&&t.insertBefore(r,t.childNodes[0]).classList.add(a),o&&t.appendChild(o).classList.add(a),l&&(t.appendChild(l).classList.add(a),t.appendChild(l).classList.remove("show"))}else s.default.find(l,this._element).forEach((e=>{e.parentElement.removeChild(e)}))}}}(0,o.default)((()=>{s.default.find(".it-header-sticky").map((e=>{d.getOrCreateInstance(e)}))}))},
vendor: 735 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/history-back.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js");const r=".bs.historyback",o=`click${r}`,a=`click${r}.data-api`;class l extends s.default{constructor(e){super(e),this._bindEvents()}static get NAME(){return"historyback"}back(){"undefined"!=typeof window&&window.history.back()}_bindEvents(){n.default.on(this._element,o,(e=>{e.preventDefault(),this.back()}))}}n.default.on(document,a,'[data-bs-toggle="historyback"]',(function(e){e.preventDefault();l.getOrCreateInstance(this).back()}))},
vendor: 372 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/init.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i("./node_modules/bootstrap-italia/dist/plugins/track-focus.js"),n=i("./node_modules/bootstrap-italia/dist/version.js");const r=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new s.default,window.BOOTSTRAP_ITALIA_VERSION=n.default)};r()},
vendor: 1,450 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/input-label.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js");const r=".bs.inputlabel",o=`focus${r}`,a=`blur${r}`,l=`change${r}`,u="active";class d{constructor(e){this._element=e,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=e=>document.querySelector("#"+CSS.escape(e.getAttribute("for")));_init(){const e=this._getLabel();e&&!e.classList.contains(u)&&(this._labelOut(),this._labelOver()),e&&null===e.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?s.default.on(this._element,a,(()=>{this._labelOut()})):(s.default.on(this._element,o,(()=>{this._labelOut()})),s.default.on(this._element,a,(()=>{this._labelOver()})),s.default.on(this._element,l,(()=>{this._labelToggle()}))))}_getLabel(){return n.default.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const e=this._getLabel();e&&e.classList.add(u)}_labelOver(){if(this._isEmpty()){const e=this._getLabel();e&&e.classList.remove(u)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}},
vendor: 2,254 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/input-number.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/dist/plugins/input-label.js");const a=".bs.inputnumber",l=`click${a}`,u=`change${a}`,d=`click${a}.data-api`,c=".input-number",h='input[data-bs-input][type="number"]',p='button[class^="input-number-"]';class f extends s.default{constructor(e){super(e),this._wrapperElement=this._element.closest(c),this._label=new o.default(e),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(r.default.find(p,this._wrapperElement).forEach((e=>{n.default.on(e,l,(t=>{t.preventDefault(),this._incrDecr(e.classList.contains("input-number-sub")),this._label._labelOut()}))})),n.default.on(this._element,u,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let e=null;e="calc(70px + "+this._element.value.length+"ch)",e&&(this._element.style.width=e)}}_incrDecr(e){var t=0;if(""!==this._element.value&&(t=parseFloat(this._element.value)),!isNaN(t)){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=t+i*(e?-1:1),n.default.trigger(this._element,u),n.default.trigger(this._element,"input")}}_checkLimit(){const e=parseFloat(this._element.value);if(!isNaN(e)){let t=e;const i=parseFloat(this._element.getAttribute("max")),s=parseFloat(this._element.getAttribute("min"));s&&e<s&&(t=s),i&&e>i&&(t=i),this._element.value=t}this._inputResize()}}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(h+", label").forEach((function(e){const t=o.default.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(h)&&i.parentNode.querySelector(p)&&f.getOrCreateInstance(i)}))})),n.default.on(document,d,p,(function(){const e=this.closest(c);if(e){const t=r.default.findOne(h,e);t&&f.getOrCreateInstance(t)}})))},
vendor: 5,657 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/input-password.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),a=i("./node_modules/bootstrap-italia/dist/plugins/input-label.js");const l=".bs.inputpassword",u=".data-api",d={shortPass:"Password molto debole",badPass:"Password debole",goodPass:"Password sicura",strongPass:"Password molto sicura",enterPass:"Inserisci almeno 8 caratteri e una lettera maiuscola",alertCaps:"CAPS LOCK inserito",showText:!0,minimumLength:4},c=`click${l}`,h=`keyup${l}`,p=`keydown${l}`,f=`keypress${l}`,m=`score${l}`,g=`text${l}`,_=`click${l}${u}`,y=`mousedown${l}${u}`,b=`keyup${l}${u}`,v="show",T='input[data-bs-input][type="password"]',S=".password-icon";class w extends s.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._isCustom=this._element.classList.contains("input-password"),this._meter=this._element.parentNode.querySelector(".password-strength-meter"),this._isShiftPressed=!1,this._isCapsOn=!1,this._grayBarElement=null,this._colorBarElement=null,this._textElement=null,this._capsElement=null,this._showPwdElement=null,this._text={},this._label=new a.default(e),this._init(),this._bindEvents()}static get NAME(){return"inputpassword"}_getConfig(e){return e={...d,...o.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_init(){this._meter&&(this._grayBarElement=this._meter.querySelector(".password-meter"),this._colorBarElement=this._meter.querySelector(".progress-bar"),this._textElement=this._meter.querySelector(".form-text"),this._textElement&&(this._config=Object.assign({},this._config,{...o.default.getDataAttributes(this._textElement)},{enterPass:this._textElement.innerText}))),this._isCustom&&(this._capsElement=this._element.parentNode.querySelector(".password-caps")),this._showPwdElement=r.default.findOne(S,this._element.parentNode)}_bindEvents(){this._meter&&n.default.on(this._element,h,(()=>this._checkPassword())),this._isCustom&&(n.default.on(this._element,p,(e=>{"Shift"===e.key&&(this._isShiftPressed=!0)})),n.default.on(this._element,h,(e=>{"Shift"===e.key&&(this._isShiftPressed=!1),"CapsLock"===e.key&&(this._isCapsOn=!this._isCapsOn,this._isCapsOn?this._showCapsMsg():this._hideCapsMsg())})),n.default.on(this._element,f,(e=>{(e.key.match(/[A-Z]$/)||[]).length>0&&!this._isShiftPressed?(this._isCapsOn=!0,this._showCapsMsg()):this._isCapsOn&&(this._isCapsOn=!1,this._hideCapsMsg())}))),this._showPwdElement&&n.default.on(this._showPwdElement,c,(()=>this._toggleShowPassword()))}_showCapsMsg(){this._capsElement&&this._capsElement.classList.add(v)}_hideCapsMsg(){this._capsElement&&this._capsElement.classList.remove(v)}_toggleShowPassword(){const e="password"===this._element.getAttribute("type");r.default.find('[class^="password-icon"]',this._showPwdElement).forEach((e=>e.classList.toggle("d-none"))),e?this._element.setAttribute("type","text"):this._element.setAttribute("type","password")}_checkPassword(){const e=this._calculateScore(this._element.value),t=e<0?0:e;if(this._colorBarElement.classList.forEach((e=>{e.match(/(^|\s)bg-\S+/g)&&this._colorBarElement.classList.remove(e)})),this._colorBarElement.classList.add("bg-"+this._scoreColor(e)),this._colorBarElement.style.width=t+"%",this._colorBarElement.setAttribute("aria-valuenow",t),n.default.trigger(this._element,m),this._textElement){let t=this._scoreText(e);0===this._element.value.length&&e<=0&&(t=this._config.enterPass),-1===this._textElement.innerHTML.search(t)&&(this._textElement.innerHTML=t,this._textElement.classList.forEach((e=>{e.match(/(^|\s)text-\S+/g)&&this._textElement.classList.remove(e)})),this._textElement.classList.add("text-"+this._scoreColor(e)),n.default.trigger(this._element,g))}}_scoreText(e){return-1===e||(e=e<0?0:e)<26?this._config.shortPass:e<51?this._config.badPass:e<76?this._config.goodPass:this._config.strongPass}_scoreColor(e){return-1===e?"danger":-2===e?"muted":(e=e<0?0:e)<26?"danger":e<51?"warning":"success"}_calculateScore(e){var t=0;if(0===e.trim().length)return-2;if(e.length<this._config.minimumLength)return-1;t+=4*e.length,t+=this._checkRepetition(1,e).length-e.length,t+=this._checkRepetition(2,e).length-e.length,t+=this._checkRepetition(3,e).length-e.length,t+=this._checkRepetition(4,e).length-e.length,e.match(/(.*[0-9].*[0-9].*[0-9])/)&&(t+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),e.match(i)&&(t+=5),e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(t+=10),e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)&&(t+=15),e.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&e.match(/([0-9])/)&&(t+=15),e.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&e.match(/([a-zA-Z])/)&&(t+=15),(e.match(/^\w+$/)||e.match(/^\d+$/))&&(t-=10),t>100&&(t=100),t<0&&(t=0),t}_checkRepetition(e,t){for(var i="",s=!1,n=0;n<t.length;n++){s=!0;for(var r=0;r<e&&r+n+e<t.length;r++)s=s&&t.charAt(r+n)===t.charAt(r+n+e);r<e&&(s=!1),s?(n+=e-1,s=!1):i+=t.charAt(n)}return i}}const E=e=>e&&e.matches(T)?w.getOrCreateInstance(e):null;n.default.on(document,y,T+", label",(function(){const e=a.default.getInputFromLabel(this)||this;E(e)})),n.default.on(document,b,T+", label",(function(){const e=a.default.getInputFromLabel(this)||this,t=E(e);t&&t._label&&t._label._labelOut()})),n.default.on(document,_,S,(function(){const e=this.parentNode&&this.parentNode.querySelector(T);e&&w.getOrCreateInstance(e)}))},
vendor: 2,370 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/input-search-autocomplete.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/dist/plugins/input-label.js");const o={autocomplete:[]},a="autocomplete-list-show",l="data-bs-autocomplete",u="input["+l+'][type="search"]';class d extends s.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._items=[],this._autocompleteElement=null,this._label=new r.default(e),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const e=this._element.value;this._autocompleteElement.innerHTML="",e?this._items.forEach((t=>{let i=new RegExp("("+e+")","gi"),s=t.text.replace(i,"<mark>$1</mark>"),n=t.label?"<em>"+t.label+"</em>":"",r=t.icon?t.icon:"",o=t.link?t.link:"#";-1!==s.toLowerCase().indexOf(e.toLowerCase())&&(this._autocompleteElement.classList.add(a),this._autocompleteElement.appendChild(this._createOption(o,s,n,r)))})):this._autocompleteElement.classList.remove(a)}_getConfig(e){return e={...o,..."object"==typeof e?e:{}}}_getItems(){try{return JSON.parse(this._element.getAttribute(l))}catch(e){return console.error("[InputSearchAutocomplete] invalid data provided for "+l+" attribute",e),[]}}_init(){if(this._element.classList.contains("autocomplete")){if("undefined"==typeof document)return;this._items=this._getItems(),this._autocompleteElement=document.createElement("ul"),this._autocompleteElement.classList.add("autocomplete-list"),this._element.parentNode.insertBefore(this._autocompleteElement,this._element.nextSibling)}}_bindEvents(){n.default.on(this._element,"keyup.bs.inputsearchautocomplete",(()=>this.search()))}_createOption(e,t,i,s){if("undefined"==typeof document)return;const n=document.createElement("li");return n.innerHTML=`<a href="${e}">\n        ${s}\n        <span class="autocomplete-list-text">\n          <span>${t}</span>\n          ${i}\n        </span>\n      </a>`,n}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(u+", label").forEach((function(e){const t=r.default.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(u)&&d.getOrCreateInstance(i)}))}))},
vendor: 1,706 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/input.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/dist/plugins/input-label.js");class a extends s.default{constructor(e){super(e),this._label=new o.default(e),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&n.default.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const e=[];let t="";Array.from(this._element.files).forEach((t=>{const i=Math.round(parseInt(t.size,10)/1024);e.push(t.name+" ("+i+"kb)")})),this._element.files.length>1&&(t=this._element.files.length+" file da caricare: ");const i=r.default.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=t+e.join("; "))}}const l=["select",'input[data-bs-input][type="password"]',"input.input-password[data-bs-input]",'input[data-bs-autocomplete][type="search"]','input[type="time"]','input[type="radio"]','input[type="checkbox"]'];"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("input, textarea, label").forEach((function(e){(e=>{const t=!!l.find((t=>e.matches(t))),i=!("number"!==e.getAttribute("type")||!e.parentNode.querySelector('button[class^="input-number-"]'));t||i||a.getOrCreateInstance(e)})(o.default.getInputFromLabel(e)||e)}))}))},
vendor: 1,128 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/list.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js");const o=".bs.list",a=`click${o}`,l=`click${o}.data-api`,u="active",d="input[type=checkbox]";class c extends s.default{constructor(e){super(e),this._init()}static get NAME(){return"list"}toggleCheckbox(e){const t=n.default.findOne("input",e);t&&(t.checked?(t.checked=!1,e.classList.remove(u)):(t.checked=!0,e.classList.add(u)))}_init(){this._initCheckbox()}_initCheckbox(){n.default.find(d,this._element).forEach((e=>{r.default.on(e.closest("a"),a,(t=>{t.preventDefault(),this.toggleCheckbox(e.closest("a"))}))}))}}n.default.find("[data-bs-list-checkbox]").forEach((e=>{n.default.find(d,e).forEach((t=>{r.default.one(t.closest("a"),l,(t=>{if(!c.getInstance(e)){t.preventDefault();c.getOrCreateInstance(e).toggleCheckbox(t.currentTarget)}}))}))}))},
vendor: 1,919 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/masonry.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),o=i("./node_modules/masonry-layout/masonry.js"),a=i.n(o);const l="masonry-loader",u=`.${l}`,d={percentPosition:!0};class c extends s.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._masonry=null,this._images=n.default.find("img",this._element),this._loadCounter=0,this._init()}static get NAME(){return"masonry"}dispose(){this._masonry&&(this._masonry.destroy(),this._masonry=null),super.dispose()}_getConfig(e){return e={...d,...r.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_init(){this._images.length>0?this._images.forEach((e=>{const t=new Image;t.onload=()=>this._onLoadEnd(),t.src=e.src})):this._initMasonry()}_onLoadEnd(){this._loadCounter++,this._loadCounter>=this._images.length&&this._initMasonry()}_initMasonry(){this._masonry=new(a())(this._element,this._config)}_createLoader(){if("undefined"==typeof document)return;const e=document.createElement("div");return e.classList.add(l,"fade","d-flex","justify-content-center","align-items-center"),e.innerHTML='<div class="progress-spinner progress-spinner-active"><span class="visually-hidden">Caricamento...</span></div>',this._element.appendChild(e),e}_getOrCreateLoader(){const e=n.default.findOne(u,this._element);return e||this._createLoader()}_destroyLoader(){const e=n.default.findOne(u,this._element);e&&e.remove()}_showLoader(){this._getOrCreateLoader().classList.add("show")}_hideLoader(){this._destroyLoader()}}const h=n.default.find('[data-bs-toggle="masonry"]');h.length>0&&h.forEach((e=>{c.getOrCreateInstance(e)}))},
vendor: 220 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/modal.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/modal.js");class n extends s.default{}},
vendor: 4,883 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/navbar-collapsible.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>x});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),a=i("./node_modules/bootstrap-italia/dist/plugins/util/device.js"),l=i("./node_modules/bootstrap-italia/dist/plugins/util/dom.js"),u=i("./node_modules/bootstrap-italia/dist/plugins/util/pageScroll.js");const d=".bs.navbarcollapsible",c=`click${d}.data-api`,h=`click${d}`,p=`keyup${d}`,f=`keydown${d}`,m=`hide${d}`,g=`hidden${d}`,_=`show${d}`,y=`shown${d}`,b=`resize${d}`,v="show",T="expanded",S=".close-menu",w=".nav-link",E=".nav-item .list-item",C=".it-heading-link",k=".it-footer-link";class x extends s.default{constructor(e){super(e),this._isShown=this._element.classList.contains(T),this._isTransitioning=!1,this._isMobile=(0,a.isScreenMobile)(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=o.default.findOne(".close-div button",this._element),this._btnBack=o.default.findOne(".it-back-button",this._element),this._menuWrapper=o.default.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=o.default.find([w,E,C,k,S].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(e){if(this._isShown||this._isTransitioning)return;r.default.trigger(this._element,_,{relatedTarget:e}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(v),this._isShown=!0,(0,u.disablePageScroll)(),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(r.default.trigger(this._element,m).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(v),this._overlay&&this._overlay.classList.remove(v),this._element.classList.remove(T),(0,u.enablePageScroll)(),this._queueCallback((()=>this._hideElement()),this._menuWrapper,e)}toggle(e){this._isShown?this.hide():this.show(e)}dispose(){r.default.off(window,b),super.dispose()}_bindEvents(){r.default.on(window,b,(()=>this._onResize())),this._overlay&&r.default.on(this._overlay,h,(()=>this.hide())),r.default.on(this._btnClose,h,(e=>{e.preventDefault(),this.hide()})),r.default.on(this._btnBack,h,(e=>{e.preventDefault(),this.hide()})),this._menuItems.forEach((e=>{r.default.on(e,f,(e=>this._isMobile&&this._onMenuItemKeyDown(e))),r.default.on(e,p,(e=>this._isMobile&&this._onMenuItemKeyUp(e))),r.default.on(e,h,(e=>this._isMobile&&this._onMenuItemClick(e)))}))}_onResize(){this._isMobile=(0,a.isScreenMobile)()}_onMenuItemKeyUp(e){"Shift"===e.key&&(this._isKeyShift=!1)}_onMenuItemKeyDown(e){"Shift"===e.key&&(this._isKeyShift=!0),"Tab"===e.key&&(e.preventDefault(),this._focusNext())}_onMenuItemClick(e){this.currItemIdx=(0,l.getElementIndex)(e.currentTarget,this._menuItems)}_isAnimated(){return!0}_isElementHidden(e){return null===e.offsetParent}_showElement(){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-expanded",!0),this._overlay&&(this._overlay.style.display="block"),e&&(0,n.reflow)(this._element),this._element.classList.add(T),this._overlay&&this._overlay.classList.add(v);this._queueCallback((()=>{this._isTransitioning=!1;const e=this._getNextVisibleItem(0);e.item&&(e.item.focus(),this._currItemIdx=e.index),r.default.trigger(this._element,y)}),this._menuWrapper,e)}_hideElement(){this._overlay&&(this._overlay.style.display="none"),this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-expanded"),this._isTransitioning=!1,r.default.trigger(this._element,g)}_setOverlay(){this._overlay=o.default.findOne(".overlay",this._element),this._isAnimated&&this._overlay.classList.add("fade")}_focusNext(){let e=this._currItemIdx+(this._isKeyShift?-1:1);e<0?e=this._menuItems.length-1:e>=this._menuItems.length&&(e=0);const t=this._getNextVisibleItem(e,this._isKeyShift);t.item&&(t.item.focus(),this._currItemIdx=t.index)}_getNextVisibleItem(e,t){let i=null,s=null,n=e,r=t?-1:1,o=!1;for(;!(i||n==e&&o);)n==e&&(o=!0),this._isElementHidden(this._menuItems[n])||(i=this._menuItems[n],s=n),n+=r,n<0?n=this._menuItems.length-1:n>=this._menuItems.length&&(n=0);return{item:i,index:s}}}r.default.on(document,c,'[data-bs-toggle="navbarcollapsible"]',(function(e){const t=(0,n.getElementFromSelector)(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),r.default.one(t,_,(e=>{e.defaultPrevented||r.default.one(t,g,(()=>{(0,n.isVisible)(this)&&this.focus()}))}));x.getOrCreateInstance(t).toggle(this)}))},
vendor: 4,196 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/navscroll.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),a=i("./node_modules/bootstrap-italia/dist/plugins/util/on-document-scroll.js"),l=i("./node_modules/bootstrap-italia/dist/plugins/navbar-collapsible.js"),u=i("./node_modules/bootstrap-italia/dist/plugins/util/tween.js");const d="active",c="ul.link-list",h="a.nav-link",p=`${h}.${d}`,f=`${h}[href^="#"]`,m={scrollPadding:10,duration:800,easing:"easeInOutSine"};class g extends s.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._togglerElement=r.default.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=r.default.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null,this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(e){this._config.scrollPadding=e}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(e){return e={...m,...o.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=(0,a.default)((()=>this._onScroll())),this._collapsible&&(n.default.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),n.default.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),r.default.find(f,this._element).forEach((e=>{e.addEventListener("click",(()=>{const t=()=>this._scrollToHash(e.hash);this._isCollapseOpened?(this._callbackQueue.push(t),this._collapsible.hide()):t()}))})),n.default.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const e=this._callbackQueue.shift();"function"==typeof e&&e()}this._isCollapseOpened=!1}_getParentLinks(e){const t=[];let i=e.closest(c),s=null,n=!1;for(;i&&!n;){const e=i.closest("li.nav-link, li.nav-item");if(e){const i=e.querySelector(h);i&&t.push(i)}s=i,i=(i.parentElement||i).closest(c),i===s&&(n=!0)}return t}_decorateToggler(e){if(this._togglerElement){const t=r.default.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(t),this._togglerElement.append(e)}}_scrollToHash(e){const t=r.default.findOne(e,this._sectionContainer);t&&((0,u.documentScrollTo)(t.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing}),history.pushState?history.pushState(null,null,e):location.hash=e)}_updateProgress(e){if(!e)return;const t=r.default.find(".it-navscroll-progressbar");if(t){const i=Math.abs(e.getBoundingClientRect().top)/e.getBoundingClientRect().height*100,s=Math.min(100,Math.max(0,i));t.forEach((t=>{e.getBoundingClientRect().top<=0?(t.style.width=s+"%",t.setAttribute("aria-valuenow",s)):(t.style.width="0%",t.setAttribute("aria-valuenow",0))}))}}_onScroll(){const e=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const t=document.scrollingElement.scrollTop-e,i=r.default.find(h,this._element),s=this._getScrollPadding();r.default.find(".it-page-section").forEach(((n,o)=>{if(n.offsetTop-e<=t+s&&(r.default.find(p,this._element).forEach((e=>{e.classList.remove(d)})),o<i.length)){const e=i[o];this._getParentLinks(e).forEach((e=>{e.classList.add(d)})),e.classList.add(d),this._decorateToggler(e.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const e=r.default.findOne(".navbar-collapsable",this._element);return e?l.default.getOrCreateInstance(e):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}r.default.find("[data-bs-navscroll]").map((e=>{g.getOrCreateInstance(e)}))},
vendor: 2,514 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/notification.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),a=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/component-functions.js");const l=".bs.notification",u=`click${l}.data-api`,d=`hidden${l}`,c=`show${l}`,h={timeout:0},p="show";class f extends s.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=this._element.classList.contains(p),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(e,t){if(this._isShown||this._isTransitioning)return;const i=e||this._getElementTimeout(t);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(p),this._queueCallback((()=>this._hideElement()),this._element,e)}toggle(e){this._isShown?this.hide():this.show(null,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(e){const t=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),t&&(0,n.reflow)(this._element),this._element.classList.add(p);this._queueCallback((()=>{this._isTransitioning=!1,e&&this._setTimeout(e,(()=>this.hide()))}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(e){return e={...h,...r.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_getElementTimeout(e){const t=e?parseInt(e.getAttribute("data-bs-timeout")):null;return t>0?t:this._config.timeout}_setTimeout(e,t){this._clearTimeout(),setTimeout(t,e)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}o.default.on(document,u,'[data-bs-toggle="notification"]',(function(e){const t=(0,n.getElementFromSelector)(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),o.default.one(t,c,(e=>{e.defaultPrevented||o.default.one(t,d,(()=>{(0,n.isVisible)(this)&&this.focus()}))}));f.getOrCreateInstance(t).toggle(this)})),(0,a.enableDismissTrigger)(f)},
vendor: 228 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/offcanvas.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/offcanvas.js");class n extends s.default{}},
vendor: 224 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/popover.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/popover.js");class n extends s.default{}},
vendor: 1,292 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/progress-donut.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i("./node_modules/progressbar.js/dist/progressbar.js"),n=i.n(s),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),a=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js");const l={color:"#5C6F82",trailColor:"#D9DADB",strokeWidth:24,trailWidth:12,easing:"easeInOut",duration:1400,text:{autoStyleContainer:!1},animate:!0,value:0};class u extends r.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._bar=null,this._init()}static get NAME(){return"progressdonut"}set(e){this._config.animate?this._bar.animate(e):this._bar.set(e)}dispose(){this._bar.destroy(),super.dispose()}_getConfig(e){return e={...l,step:this._getStepCallback(),...a.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_getStepCallback(){return(e,t)=>{const i=Math.round(100*t.value());t.setText(i+"%")}}_init(){this._bar=new(n().Circle)(this._element,this._config),this._config.value>0&&this.set(this._config.value)}}o.default.find("[data-bs-progress-donut]").forEach((e=>{u.getOrCreateInstance(e)}))},
vendor: 228 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/scrollspy.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/scrollspy.js");class n extends s.default{}},
vendor: 1,067 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/select-autocomplete.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i("./node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js"),n=i.n(s),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js");class o extends r.default{constructor(e,t){super(e),this._hasFormControl=e.classList.contains("form-control"),this.element_original_id=this._element.id,this._config=t,this._enhance()}static get NAME(){return"selectautocomplete"}_enhance(){n().enhanceSelectElement(Object.assign({},{selectElement:this._element},this._config)),setTimeout((()=>{if(this._hasFormControl){if("undefined"==typeof document)return;const e=document.getElementById(this.element_original_id);e.classList.add("form-control"),function(e,t){const i=new MutationObserver((e=>{e.forEach((e=>{"attributes"===e.type&&"class"===e.attributeName&&t(e.target)}))}));i.observe(e,{attributes:!0}),i.disconnect}(e,(e=>{e.classList.contains("form-control")||e.classList.add("form-control")}))}}),100)}}},
vendor: 4,152 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/sticky.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),a=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),l=i("./node_modules/bootstrap-italia/dist/plugins/util/device.js"),u=i("./node_modules/bootstrap-italia/dist/plugins/util/on-document-scroll.js");const d=".bs.sticky",c=`resize${d}`,h=`on${d}`,p=`off${d}`,f="bs-is-sticky",m="bs-is-fixed",g='[data-bs-toggle="sticky"]',_={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class y extends s.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._isSticky=!1,this._wrapper=null,this._stickyTarget=o.default.findOne((0,n.getSelectorFromElement)(this._element),this._element)||this._element,this._stickyTargetMobile=o.default.findOne(this._element.getAttribute("data-bs-target-mobile"),this._element)||this._stickyTarget,this._stickyLimit=0,this._stickyLimitMobile=0,this._setLimit(),this._scrollCb=null,this._isMobile=(0,l.isScreenMobile)(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){r.default.off(window,c),this._scrollCb.dispose(),super.dispose()}static get NAME(){return"sticky"}_getConfig(e){return e={..._,...a.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){r.default.on(window,c,(()=>this._onResize())),this._scrollCb=(0,u.default)((()=>this._onScroll()))}_onResize(){this._isMobile=(0,l.isScreenMobile)(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let e=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((t,i)=>{const s=t.getBoundingClientRect();e-=s.height+(0===i?parseFloat(t.style.top):0)})),e>0?e:0}_cumulativeOffset(e){let t=0,i=0;do{t+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const e=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>e?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let e=f;this._isTypeSticky()||(e=m,this._wrapper=this._createWrapper()),this._element.classList.add(e),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",r.default.trigger(this._element,h)}}_unsetSticky(){if(this._isSticky){let e=f;this._isTypeSticky()||(e=m,this._destroyWrapper()),this._element.classList.remove(e),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,r.default.trigger(this._element,p)}}_createWrapper(){if("undefined"==typeof document)return;const e=document.createElement("div");return e.classList.add("bs-it-sticky-wrapper"),e.style.width="100%",e.style.height=this._element.getBoundingClientRect().height+"px",e.style.overflow="hidden",this._element.parentNode.insertBefore(e,this._element),e.appendChild(this._element),e}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return o.default.find(g).filter((e=>{const t=y.getInstance(e);return!(!t||!t._isSticky||e===this._element)}))}_getPositionTop(){let e=0;return this._config.stackable?(this._getStickySimblings().forEach(((t,i)=>{const s=t.getBoundingClientRect();e+=s.height+(0===i?parseFloat(t.style.top):0)})),e):e+this._config.paddingTop}}(0,u.default)((()=>{o.default.find(g).map((e=>{y.getOrCreateInstance(e)}))}))},
vendor: 1,480 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/tab.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/tab.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js");const a=".bs.tab",l=`click${a}`,u=`load${a}`,d="ArrowLeft",c="ArrowRight",h="ArrowUp",p="ArrowDown",f="Enter",m=" ",g="active",_=`.${g}[data-bs-toggle="tab"], .${g}[data-bs-toggle="pill"], .${g}[data-bs-toggle="list"]`;class y extends s.default{constructor(e){super(e)}_keydown(e){if(![d,c,h,p,f,m].includes(e.key))return;if(e.stopPropagation(),e.preventDefault(),e.key===f||e.key===m)return void y.getOrCreateInstance(e.target).show();const t=[c,p].includes(e.key),i=(0,n.getNextActiveElement)(this._getChildren().filter((e=>!(0,n.isDisabled)(e))),e.target,t,!0);i&&i.focus({preventScroll:!0})}}r.default.on(document,l,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),(0,n.isDisabled)(this))return;y.getOrCreateInstance(this).dispose(),y.getOrCreateInstance(this).show()})),r.default.on(window,u,(()=>{for(const e of o.default.find(_)){y.getOrCreateInstance(e).dispose(),y.getOrCreateInstance(e)}})),(0,n.defineJQueryPlugin)(y)},
vendor: 220 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/toast.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/toast.js");class n extends s.default{}},
vendor: 224 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/tooltip.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/tooltip.js");class n extends s.default{}},
vendor: 637 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/track-focus.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});const s="data-focus-mouse",n="focus--mouse";class r{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((e=>{document.addEventListener(e,(e=>{this._usingMouse="mousedown"===e.type}))})),document.addEventListener("focusin",(e=>{this._usingMouse&&e.target&&(e.target.classList.add(n),e.target.setAttribute(s,!0))})),document.addEventListener("focusout",(e=>{e.target&&(e.target.classList.remove(n),e.target.setAttribute(s,!1))}))}}new r},
vendor: 4,425 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/transfer.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js");const o=".bs.transfer",a=".data-api",l=`click${o}${a}`,u=`keyup${o}${a}`,d=`click${o}`,c="active",h="source",p="semi-checked",f="[data-bs-transfer]",m=".transfer-header input",g=".transfer-group input",_=".it-transfer-wrapper",y=".transfer-group",b=`${_}.source`,v=`${_}.target`,T=".form-check";class S extends s.default{constructor(e){super(e),this._addBtnElement=r.default.findOne("a.transfer",this._element),this._invBtnElement=r.default.findOne("a.backtransfer",this._element),this._resetBtnElement=r.default.findOne("a.reset",this._element),this._listDefault={source:r.default.find(b+" "+y+" "+T,this._element),target:r.default.find(v+" "+y+" "+T,this._element)},this._bindEvents()}static get NAME(){return"transfer"}_bindEvents(){r.default.find(m,this._element).forEach((e=>{n.default.on(e,d,(()=>{this._checkListHeader(e.closest(_))}))})),r.default.find(g,this._element).forEach((e=>{n.default.on(e,d,(()=>{this._checkList(e.closest(_))}))})),n.default.on(this._addBtnElement,d,(e=>{e.preventDefault(),this._disableElement(this._addBtnElement),this._addItems()})),n.default.on(this._invBtnElement,d,(e=>{e.preventDefault(),this._disableElement(this._invBtnElement),this._addItems(!0)})),n.default.on(this._resetBtnElement,d,(e=>{e.preventDefault(),this._disableElement(this._addBtnElement),this._disableElement(this._invBtnElement),this._disableElement(this._resetBtnElement),this._resetAll()}))}_disableElement(e){e.classList.remove(c),e.setAttribute("disabled","disabled"),e.setAttribute("aria-disabled","true")}_enableElement(e){e.classList.add(c),e.removeAttribute("disabled"),e.removeAttribute("aria-disabled")}_getScopeData(e){return{scope:e,list:r.default.find(g,e),listChecked:r.default.find(g+":checked",e),head:r.default.findOne(".transfer-header",e),inputHead:r.default.findOne(m,e),labelNumHead:r.default.findOne(".transfer-header span.num",e),group:r.default.findOne(y,e)}}_checkList(e){const t=this._getScopeData(e);0==t.listChecked.length?(t.inputHead.classList.remove(p),t.inputHead.checked=!0,e.classList.contains(h)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(t.listChecked.length==t.list.length?(t.inputHead.classList.remove(p),t.inputHead.checked=!0):(t.inputHead.classList.add(p),t.inputHead.checked=!1),e.classList.contains(h)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_checkListHeader(e){const t=this._getScopeData(e);t.listChecked.length>0?(t.list.forEach((e=>{e.checked=!1})),t.inputHead.classList.remove(p),t.inputHead.checked=!1,e.classList.contains(h)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(t.list.forEach((e=>{e.checked=!0})),e.classList.contains(h)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_addItems(e){const t=this._getScopeData(r.default.findOne(e?v:b,this._element)),i=this._getScopeData(r.default.findOne(e?b:v,this._element)),s=t.listChecked,n=t.inputHead,o=t.labelNumHead,a=s.length,l=t.list.length,u=i.group,d=i.list.length+a,c=i.labelNumHead,h=i.inputHead;s.forEach((e=>{const t=e.closest(T);t.remove(),u.appendChild(t),e.checked=!1}));const f=l-a,m=d;o.innerText=f,c.innerText=m,0==f&&n.setAttribute("disabled",!0),m>0&&h.removeAttribute("disabled"),n.classList.remove(p),n.checked=!1,this._enableElement(this._resetBtnElement)}_resetAll(){const e={source:this._getScopeData(r.default.findOne(b,this._element)),target:this._getScopeData(r.default.findOne(v,this._element))};Object.keys(e).forEach((t=>{e[t].list.forEach((e=>e.closest(T).remove()))})),Object.keys(e).forEach((t=>{this._listDefault[t].forEach((i=>{i.checked=!1,e[t].group.appendChild(i)})),e[t].labelNumHead.innerText=this._listDefault[t].length,e[t].inputHead.removeAttribute("disabled"),e[t].inputHead.classList.remove(p),e[t].inputHead.checked=!1}))}}n.default.on(document,l,f+" .form-check label",(function(){S.getOrCreateInstance(this.closest(f))})),n.default.on(document,u,f+" .form-check label",(function(){S.getOrCreateInstance(this.closest(f))}))},
vendor: 2,425 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/upload-dragdrop.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/dist/plugins/progress-donut.js");const a="dragend",l="dragover",u="dragenter",d="dragleave",c="drop",h="success",p="dragover",f="loading",m="[data-bs-upload-dragdrop]";class g extends s.default{constructor(e){super(e);const t=r.default.findOne("[data-bs-progress-donut]",this._element);t&&(this._donut=o.default.getOrCreateInstance(t)),this._bindEvents()}static get NAME(){return"upload"}progress(e){this._donut.set(e)}start(){this.reset(),this._element.classList.add(f)}success(){this._element.classList.remove(f),this._element.classList.add(h)}reset(){this._element.classList.remove(f),this._element.classList.remove(h),this._donut.set(0)}dispose(){this._donut.dispose(),super.dispose()}_bindEvents(){n.default.on(this._element,"drag",(e=>this._preventEvent(e))),n.default.on(this._element,"dragstart",(e=>this._preventEvent(e))),n.default.on(this._element,a,(e=>this._preventEvent(e))),n.default.on(this._element,l,(e=>this._preventEvent(e))),n.default.on(this._element,u,(e=>this._preventEvent(e))),n.default.on(this._element,d,(e=>this._preventEvent(e))),n.default.on(this._element,c,(e=>this._preventEvent(e))),n.default.on(this._element,l,(()=>this._dropIn())),n.default.on(this._element,u,(()=>this._dropIn())),n.default.on(this._element,d,(()=>this._dropOut())),n.default.on(this._element,a,(()=>this._dropOut())),n.default.on(this._element,c,(()=>this._dropOut())),n.default.on(this._element,c,(()=>this._drop()))}_preventEvent(e){e.preventDefault(),e.stopPropagation()}_dropIn(){this._isSuccess()||this._element.classList.add(p)}_dropOut(){this._isSuccess()||this._element.classList.remove(p)}_drop(){this._isSuccess()||this.start()}_isSuccess(){return this._element.classList.contains(h)}}const _=e=>{let t=e.matches&&e.matches(m)?e:e.closest?e.closest(m):null;return t&&g.getOrCreateInstance(t),null};"undefined"!=typeof document&&(document.addEventListener("dragenter",(function(e){_(e.target)})),n.default.on(document,"click.bs.upload.data-api",m+" label",(function(){_(this)})))},
vendor: 384 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/util/cookies.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{cookies:()=>n});const s={ck3:{}},n={rememberChoice:(e,t)=>{s.ck3[e]=t,localStorage.setItem("bs-ck3",JSON.stringify(s.ck3))},isChoiceRemembered:e=>(s.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),s.ck3[e]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}}},
vendor: 222 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/util/device.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{isScreenMobile:()=>s});const s=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches}},
vendor: 566 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/util/dom.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{focusSimbling:()=>n,getElementIndex:()=>s});const s=(e,t)=>{let i=null;return t.forEach(((t,s)=>{t===e&&(i=s)})),i},n=(e,t,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=s(e,t);let r=null;if(i.isLimit&&i.isDirectionTop&&n>0)r=t[0];else if(i.isLimit&&n<t.length-1)r=t[t.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;r=t[0===n?t.length-1:n-1]}else{if(!i.loop&&n===t.length-1)return;r=t[n===t.length-1?0:n+1]}r&&r.focus()}},
vendor: 1,789 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/util/observer.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{ContentObserver:()=>n,CssClassObserver:()=>s});class s{constructor(e,t,i,s,n){this.targetNode=e,this.classToWatch=t,this.classAddedCallback=i,this.classRemovedCallback=s,this.observer=null,this.lastClassState=e.classList.contains(this.classToWatch),this.ignoreToggle=!!n,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)if("attributes"===t.type&&"class"===t.attributeName){let e=t.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==e)&&(this.lastClassState=e,e?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class n{constructor(e,t,i,s){this.targetNode=e,this.contentSelector=t,this.contentAddedCallback=i,this.contentRemovedCallback=s,this.observer=null,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)"childList"===t.type&&(t.addedNodes.forEach((e=>{this._callbackExec(e)})),t.removedNodes.forEach((e=>{this._callbackExec(e,!0)})))}_callbackExec(e,t){const i=e.matches&&e.matches(this.contentSelector)?[e]:e.querySelectorAll?e.querySelectorAll(this.contentSelector):null,s=t&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&s&&i.forEach((e=>s(e)))}}},
vendor: 702 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/util/on-document-scroll.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i("./node_modules/uuid/dist/esm-browser/v4.js");let n=!1,r=[];class o{constructor(e,t){this.id=e,this._callback=t}dispose(){a(this.id)}_execute(e){this._callback(e)}}const a=e=>{r=r.filter((t=>t.id!==e))},l=e=>{if("undefined"!=typeof document){if(r.length||document.addEventListener("scroll",(e=>{n||(window.requestAnimationFrame((()=>{r.forEach((t=>t.cb._execute(e))),n=!1})),n=!0)})),"function"==typeof e){const t=new o((0,s.default)(),e);return r.push({id:t.id,cb:t}),t}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}}},
vendor: 637 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/util/pageScroll.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{disablePageScroll:()=>a,enablePageScroll:()=>l});const s="pagescroll-scroll-disabled";let n=!1,r="undefined"==typeof document?0:document.scrollingElement.scrollTop;const o="undefined"==typeof document?null:document.querySelector("html");function a(){"undefined"!=typeof document&&(n=!0,r=document.scrollingElement.scrollTop,o.classList.add(s))}function l(){"undefined"!=typeof document&&(n=!1,o.classList.remove(s))}"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{n&&(document.scrollingElement.scrollTop=r)}))},
vendor: 609 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/util/tween.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{documentScrollTo:()=>r});var s=i("./node_modules/animejs/lib/anime.es.js");const n={duration:800,easing:"easeInOutSine"},r=(e,t)=>{if("undefined"==typeof document)return;const i=("object"==typeof t?t:{}).complete,r=window.document.scrollingElement||window.document.body||window.document.documentElement,o=r.style.scrollBehavior;t={scrollTop:e||0,...n,..."object"==typeof t?t:{}},r.style.scrollBehavior="auto",t.complete=e=>{r.style.scrollBehavior=o,"function"==typeof i&&i(e)},(0,s.default)({targets:r,...t})}},
vendor: 11,372 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/util/youtube-video.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{initYoutubePlugin:()=>s});const s=e=>{const t=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,i=e.getTech("Tech");class s extends i{constructor(e,i){super(e,i),this.setPoster(e.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",t&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),s.isApiReady?this.initYTPlayer():s.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var e=s.apiReadyQueue.indexOf(this);-1!==e&&s.apiReadyQueue.splice(e,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),i.prototype.dispose.call(this)}createEl(){if("undefined"!=typeof document){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),e.setAttribute("class","vjs-tech");var i=document.createElement("div");if(i.appendChild(e),!t&&!this.options_.ytControls){var s=document.createElement("div");s.setAttribute("class","vjs-iframe-blocker"),s.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),s.onclick=function(){this.pause()}.bind(this),i.appendChild(s)}return i}}initYTPlayer(){var e={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(void 0!==this.options_.autohide&&(e.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(e.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(e.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(e.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(e.color=this.options_.color),e.controls?void 0!==this.options_.fs&&(e.fs=this.options_.fs):e.fs=0,-1!==this.options_.source.src.indexOf("end=")){var t=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(t[1])}if(void 0!==this.options_.end&&(e.end=this.options_.end),void 0!==this.options_.hl?e.hl=this.options_.hl:void 0!==this.options_.language&&(e.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(e.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?e.list=this.options_.list:this.url&&void 0!==this.url.listId&&(e.list=this.url.listId),void 0!==this.options_.listType&&(e.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(e.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(e.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(e.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(e.rel=this.options_.rel),void 0!==this.options_.showinfo&&(e.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var i=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(i[1])}if(void 0!==this.options_.start&&(e.start=this.options_.start),void 0!==this.options_.theme&&(e.theme=this.options_.theme),void 0!==this.options_.customVars){var s=this.options_.customVars;Object.keys(s).forEach((function(t){e[t]=s[t]}))}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=e.list;var n={videoId:this.activeVideoId,playerVars:e,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(n.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,n)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(e){var t=e.data;if(t!==this.lastState&&!this.errorNumber)switch(this.lastState=t,t){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(e){this.errorNumber=e.data,this.trigger("pause"),this.trigger("error")}error(){var e=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:e,message:"Error while trying to play the video"};case 2:case 100:return{code:e,message:"Unable to find the video"};case 101:case 150:return{code:e,message:"Playback on other Websites has been disabled by the video owner."}}return{code:e,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(t)}cueVideoById_(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(t)}src(e){return e&&this.setSrc({src:e}),this.source}poster(){return t?null:this.poster_}setPoster(e){this.poster_=e}setSrc(e){e&&e.src&&(delete this.errorNumber,this.source=e,this.url=s.parseUrl(e.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!t?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(e){this.options_.autoplay=e}loop(){return this.options_.loop}setLoop(e){this.options_.loop=e}play(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(e){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(e,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==e&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?e.createTimeRange(0,this.ytPlayer.getDuration()):e.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(e){this.ytPlayer&&this.ytPlayer.setPlaybackRate(e)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(e){this.ytPlayer&&this.ytPlayer.setVolume(100*e)}muted(){return!!this.ytPlayer&&this.ytPlayer.isMuted()}setMuted(e){this.ytPlayer&&(this.muted(!0),e?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout((function(){this.trigger("volumechange")}),50))}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return e.createTimeRange();var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return e.createTimeRange(0,t)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){if("undefined"!=typeof document)return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var e="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var t=new Image;t.onload=function(){if("naturalHeight"in t){if(t.naturalHeight<=90||t.naturalWidth<=120)return}else if(t.height<=90||t.width<=120)return;this.poster_=e,this.trigger("posterchange")}.bind(this),t.onerror=function(){},t.src=e}catch(e){}}}s.isSupported=function(){return!0},s.canPlaySource=function(e){return s.canPlayType(e.type)},s.canPlayType=function(e){return"video/youtube"===e},s.parseUrl=function(e){var t={videoId:null},i=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);i&&11===i[2].length&&(t.videoId=i[2]);return(i=e.match(/[?&]list=([^#\&\?]+)/))&&i[1]&&(t.listId=i[1]),t},s.apiReadyQueue=[],"undefined"!=typeof document&&(function(e,t){if("undefined"!=typeof document){var i=!1,s=document.createElement("script"),n=document.getElementsByTagName("script")[0];n&&(n.parentNode.insertBefore(s,n),s.onload=function(){i||(i=!0,t())},s.onreadystatechange=function(){i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,t())},s.src=e)}}("https://www.youtube.com/iframe_api",(function(){YT.ready((function(){s.isApiReady=!0;for(var e=0;e<s.apiReadyQueue.length;++e)s.apiReadyQueue[e].initYTPlayer()}))})),function(){if("undefined"!=typeof document){var e=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),t.appendChild(i)}}()),void 0!==e.registerTech?e.registerTech("Youtube",s):e.registerComponent("Youtube",s)}},
vendor: 5,290 bytes, line 2
2"./node_modules/bootstrap-italia/dist/plugins/videoplayer.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),o=i("./node_modules/video.js/dist/video.es.js"),a=i("./node_modules/bootstrap-italia/dist/plugins/util/youtube-video.js");const l={languages:{it:{"Audio Player":"Lettore audio","Video Player":"Lettore video",Play:"Play",Pause:"Pausa",Replay:"Replay","Current Time":"Orario attuale",Duration:"Durata","Remaining Time":"Tempo rimanente","Stream Type":"Tipo di streaming",LIVE:"LIVE",Loaded:"Caricato",Progress:"Stato","Progress Bar":"Barra di avanzamento","progress bar timing: currentTime={1} duration={2}":"{1} di {2}",Fullscreen:"Schermo intero","Exit Fullscreen":"Chiudi Schermo intero",Mute:"Disattiva l’audio",Unmute:"Attiva l’audio","Playback Rate":"Velocità di riproduzione",Subtitles:"Sottotitoli","subtitles off":"Senza sottotitoli",Captions:"Sottotitoli non udenti","captions off":"Senza sottotitoli non udenti",Chapters:"Capitolo",Descriptions:"Descrizioni","descriptions off":"Descrizioni disattivate","Audio Track":"Traccia audio","Volume Level":"Livello del volume","You aborted the media playback":"La riproduzione del filmato è stata interrotta.","A network error caused the media download to fail part-way.":"Il download del filmato è stato interrotto a causa di un problema rete.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.","No compatible source was found for this media.":"Non ci sono fonti compatibili per questo filmato.","The media is encrypted and we do not have the keys to decrypt it.":"Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.","Play Video":"Riproduci il video",Close:"Chiudi","Close Modal Dialog":"Chiudi la finestra di dialogo","Modal Window":"Finestra di dialogo","This is a modal window":"Questa è una finestra di dialogo","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",", opens captions settings dialog":", aprire i parametri della trascrizione dei sottotitoli",", opens subtitles settings dialog":", aprire i parametri dei sottotitoli",", opens descriptions settings dialog":", aprire i parametri delle descrizioni",", selected":", selezionato","captions settings":"Parametri sottotitoli non udenti","subtitles settings":"Parametri sottotitoli","descriptions settings":"Parametri descrizioni",Text:"Testo",White:"Bianco",Black:"Nero",Red:"Rosso",Green:"Verde",Blue:"Blu",Yellow:"Giallo",Magenta:"Magenta",Cyan:"Ciano",Background:"Sfondo",Window:"Finestra",Transparent:"Trasparente","Semi-Transparent":"Semi-Trasparente",Opaque:"Opaco","Font Size":"Dimensione dei caratteri","Text Edge Style":"Stile dei bordi del testo",None:"Nessuno",Uniform:"Uniforme","Drop shadow":"Ombra","Font Family":"Carattere","Proportional Sans-Serif":"Sans-Serif proporzionale","Monospace Sans-Serif":"Sans-Serif monospaziato","Proportional Serif":"Serif proporzionale","Monospace Serif":"Serif monospaziato","Small Caps":"Maiuscoletto",Reset:"Reinizializza","restore all settings to the default values":"Ripristina i valori predefiniti per tutti i parametri",Done:"Fatto","Caption Settings Dialog":"Finestra di dialogo dei parametri della trascrizione dei sottotitoli","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.","End of dialog window.":"Fine della finestra di dialogo.","{1} is loading.":"{1} in fase di caricamento.","Exit Picture-in-Picture":"Esci dalla modalità Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture",Color:"Colore",Opacity:"Opacità","Text Background":"Sfondo testo","Caption Area Background":"Sfondo area sottotitoli","Skip forward {1} seconds":"Avanti {1} secondi","Skip backward {1} seconds":"Indietro {1} secondi"}},language:"it"},u={};"undefined"!=typeof window&&(window.videojs=o.default);class d extends s.default{constructor(e,t){super(e),e.classList.add("video-js","vjs-theme-bootstrap-italia","vjs-fluid","vjs-big-play-centered"),this._config=this._getConfig(t),this.player=(0,o.default)(e,l)}setYouTubeVideo(e){(0,a.initYoutubePlugin)(o.default),this.player.tech("youtube"),this.player.src({type:"video/youtube",src:e})}static get NAME(){return"videoplayer"}_getConfig(e){return e={...u,...r.default.getDataAttributes(this._element),..."object"==typeof e?e:{}}}}const c=n.default.find("[data-bs-video]");c.length>0&&c.forEach((e=>{d.getOrCreateInstance(e)}))},
vendor: 120 bytes, line 2
2"./node_modules/bootstrap-italia/dist/version.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});const s="2.8.8"},
vendor: 1,217 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/alert.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/component-functions.js");const a=".bs.alert",l=`close${a}`,u=`closed${a}`;class d extends r.default{static get NAME(){return"alert"}close(){if(n.default.trigger(this._element,l).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),n.default.trigger(this._element,u),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=d.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}(0,o.enableDismissTrigger)(d,"close"),(0,s.defineJQueryPlugin)(d);const c=d},
vendor: 1,396 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/data.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/config.js");class a extends o.default{constructor(e,t){super(),(e=(0,n.getElement)(e))&&(this._element=e,this._config=this._getConfig(t),s.default.set(this._element,this.constructor.DATA_KEY,this))}dispose(){s.default.remove(this._element,this.constructor.DATA_KEY),r.default.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){(0,n.executeAfterTransition)(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return s.default.get((0,n.getElement)(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const l=a},
vendor: 874 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/button.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js");const o='[data-bs-toggle="button"]';class a extends r.default{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=a.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}n.default.on(document,"click.bs.button.data-api",o,(e=>{e.preventDefault();const t=e.target.closest(o);a.getOrCreateInstance(t).toggle()})),(0,s.defineJQueryPlugin)(a);const l=a},
vendor: 5,983 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/carousel.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>D});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),a=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/swipe.js"),l=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js");const u=".bs.carousel",d=".data-api",c="ArrowLeft",h="ArrowRight",p="next",f="prev",m="left",g="right",_=`slide${u}`,y=`slid${u}`,b=`keydown${u}`,v=`mouseenter${u}`,T=`mouseleave${u}`,S=`dragstart${u}`,w=`load${u}${d}`,E=`click${u}${d}`,C="carousel",k="active",x=".active",I=".carousel-item",A=x+I,L={[c]:g,[h]:m},P={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},O={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class j extends l.default{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=o.default.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===C&&this.cycle()}static get Default(){return P}static get DefaultType(){return O}static get NAME(){return"carousel"}next(){this._slide(p)}nextWhenVisible(){!document.hidden&&(0,s.isVisible)(this._element)&&this.next()}prev(){this._slide(f)}pause(){this._isSliding&&(0,s.triggerTransitionEnd)(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?n.default.one(this._element,y,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void n.default.one(this._element,y,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?p:f;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&n.default.on(this._element,b,(e=>this._keydown(e))),"hover"===this._config.pause&&(n.default.on(this._element,v,(()=>this.pause())),n.default.on(this._element,T,(()=>this._maybeEnableCycle()))),this._config.touch&&a.default.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of o.default.find(".carousel-item img",this._element))n.default.on(e,S,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(m)),rightCallback:()=>this._slide(this._directionToOrder(g)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new a.default(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=L[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=o.default.findOne(x,this._indicatorsElement);t.classList.remove(k),t.removeAttribute("aria-current");const i=o.default.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(k),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),r=e===p,o=t||(0,s.getNextActiveElement)(this._getItems(),i,r,this._config.wrap);if(o===i)return;const a=this._getItemIndex(o),l=t=>n.default.trigger(this._element,t,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:a});if(l(_).defaultPrevented)return;if(!i||!o)return;const u=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=o;const d=r?"carousel-item-start":"carousel-item-end",c=r?"carousel-item-next":"carousel-item-prev";o.classList.add(c),(0,s.reflow)(o),i.classList.add(d),o.classList.add(d);this._queueCallback((()=>{o.classList.remove(d,c),o.classList.add(k),i.classList.remove(k,c,d),this._isSliding=!1,l(y)}),i,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return o.default.findOne(A,this._element)}_getItems(){return o.default.find(I,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return(0,s.isRTL)()?e===m?f:p:e===m?p:f}_orderToDirection(e){return(0,s.isRTL)()?e===f?m:g:e===f?g:m}static jQueryInterface(e){return this.each((function(){const t=j.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}n.default.on(document,E,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=(0,s.getElementFromSelector)(this);if(!t||!t.classList.contains(C))return;e.preventDefault();const i=j.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===r.default.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),n.default.on(window,w,(()=>{const e=o.default.find('[data-bs-ride="carousel"]');for(const t of e)j.getOrCreateInstance(t)})),(0,s.defineJQueryPlugin)(j);const D=j},
vendor: 4,146 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/collapse.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>T});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js");const a=".bs.collapse",l=`show${a}`,u=`shown${a}`,d=`hide${a}`,c=`hidden${a}`,h=`click${a}.data-api`,p="show",f="collapse",m="collapsing",g=`:scope .${f} .${f}`,_='[data-bs-toggle="collapse"]',y={parent:null,toggle:!0},b={parent:"(null|element)",toggle:"boolean"};class v extends o.default{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=r.default.find(_);for(const e of i){const t=(0,s.getSelectorFromElement)(e),i=r.default.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return y}static get DefaultType(){return b}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>v.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(n.default.trigger(this._element,l).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(f),this._element.classList.add(m),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(m),this._element.classList.add(f,p),this._element.style[t]="",n.default.trigger(this._element,u)}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(n.default.trigger(this._element,d).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,(0,s.reflow)(this._element),this._element.classList.add(m),this._element.classList.remove(f,p);for(const e of this._triggerArray){const t=(0,s.getElementFromSelector)(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(m),this._element.classList.add(f),n.default.trigger(this._element,c)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(p)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=(0,s.getElement)(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(_);for(const t of e){const e=(0,s.getElementFromSelector)(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=r.default.find(g,this._config.parent);return r.default.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=v.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}n.default.on(document,h,_,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=(0,s.getSelectorFromElement)(this),i=r.default.find(t);for(const e of i)v.getOrCreateInstance(e,{toggle:!1}).toggle()})),(0,s.defineJQueryPlugin)(v);const T=v},
vendor: 488 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/data.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});const s=new Map,n={set(e,t,i){s.has(e)||s.set(e,new Map);const n=s.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>s.has(e)&&s.get(e).get(t)||null,remove(e,t){if(!s.has(e))return;const i=s.get(e);i.delete(t),0===i.size&&s.delete(e)}}},
vendor: 3,295 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>T});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js");const n=/[^.]*(?=\..*)\.|.*/,r=/\..*/,o=/::\d+$/,a={};let l=1;const u={mouseenter:"mouseover",mouseleave:"mouseout"},d=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function c(e,t){return t&&`${t}::${l++}`||e.uidEvent||l++}function h(e){const t=c(e);return e.uidEvent=t,a[t]=a[t]||{},a[t]}function p(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function f(e,t,i){const s="string"==typeof t,n=s?i:t||i;let r=y(e);return d.has(r)||(r=e),[s,n,r]}function m(e,t,i,s,r){if("string"!=typeof t||!e)return;let[o,a,l]=f(t,i,s);if(t in u){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const d=h(e),m=d[l]||(d[l]={}),g=p(m,a,o?i:null);if(g)return void(g.oneOff=g.oneOff&&r);const _=c(a,t.replace(n,"")),y=o?function(e,t,i){return function s(n){const r=e.querySelectorAll(t);for(let{target:o}=n;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return v(n,{delegateTarget:o}),s.oneOff&&b.off(e,n.type,t,i),i.apply(o,[n])}}(e,i,a):function(e,t){return function i(s){return v(s,{delegateTarget:e}),i.oneOff&&b.off(e,s.type,t),t.apply(e,[s])}}(e,a);y.delegationSelector=o?i:null,y.callable=a,y.oneOff=r,y.uidEvent=_,m[_]=y,e.addEventListener(l,y,o)}function g(e,t,i,s,n){const r=p(t[i],s,n);r&&(e.removeEventListener(i,r,Boolean(n)),delete t[i][r.uidEvent])}function _(e,t,i,s){const n=t[i]||{};for(const r of Object.keys(n))if(r.includes(s)){const s=n[r];g(e,t,i,s.callable,s.delegationSelector)}}function y(e){return e=e.replace(r,""),u[e]||e}const b={on(e,t,i,s){m(e,t,i,s,!1)},one(e,t,i,s){m(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[n,r,a]=f(t,i,s),l=a!==t,u=h(e),d=u[a]||{},c=t.startsWith(".");if(void 0===r){if(c)for(const i of Object.keys(u))_(e,u,i,t.slice(1));for(const i of Object.keys(d)){const s=i.replace(o,"");if(!l||t.includes(s)){const t=d[i];g(e,u,a,t.callable,t.delegationSelector)}}}else{if(!Object.keys(d).length)return;g(e,u,a,r,n?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=(0,s.getjQuery)();let r=null,o=!0,a=!0,l=!1;t!==y(t)&&n&&(r=n.Event(t,i),n(e).trigger(r),o=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),l=r.isDefaultPrevented());let u=new Event(t,{bubbles:o,cancelable:!0});return u=v(u,i),l&&u.preventDefault(),a&&e.dispatchEvent(u),u.defaultPrevented&&r&&r.preventDefault(),u}};function v(e,t){for(const[i,s]of Object.entries(t||{}))try{e[i]=s}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>s})}return e}const T=b},
vendor: 886 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js":(e,t,i)=>{"use strict";function s(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function n(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}i.r(t),i.d(t,{default:()=>r});const r={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${n(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${n(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=s(e.dataset[n])}return t},getDataAttribute:(e,t)=>s(e.getAttribute(`data-bs-${n(t)}`))}},
vendor: 1,056 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js");const n={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let s=e.parentNode.closest(t);for(;s;)i.push(s),s=s.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!(0,s.isDisabled)(e)&&(0,s.isVisible)(e)))}}},
vendor: 6,739 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dropdown.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>M});var s=i("./node_modules/@popperjs/core/lib/index.js"),n=i("./node_modules/@popperjs/core/lib/popper.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),a=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),l=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),u=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js");const d="dropdown",c=".bs.dropdown",h=".data-api",p="ArrowUp",f="ArrowDown",m=`hide${c}`,g=`hidden${c}`,_=`show${c}`,y=`shown${c}`,b=`click${c}${h}`,v=`keydown${c}${h}`,T=`keyup${c}${h}`,S="show",w='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',E=`${w}.${S}`,C=".dropdown-menu",k=(0,r.isRTL)()?"top-end":"top-start",x=(0,r.isRTL)()?"top-start":"top-end",I=(0,r.isRTL)()?"bottom-end":"bottom-start",A=(0,r.isRTL)()?"bottom-start":"bottom-end",L=(0,r.isRTL)()?"left-start":"right-start",P=(0,r.isRTL)()?"right-start":"left-start",O={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},j={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class D extends u.default{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=l.default.next(this._element,C)[0]||l.default.prev(this._element,C)[0]||l.default.findOne(C,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return O}static get DefaultType(){return j}static get NAME(){return d}toggle(){return this._isShown()?this.hide():this.show()}show(){if((0,r.isDisabled)(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!o.default.trigger(this._element,_,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))o.default.on(e,"mouseover",r.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(S),this._element.classList.add(S),o.default.trigger(this._element,y,e)}}hide(){if((0,r.isDisabled)(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!o.default.trigger(this._element,m,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))o.default.off(e,"mouseover",r.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(S),this._element.classList.remove(S),this._element.setAttribute("aria-expanded","false"),a.default.removeDataAttribute(this._menu,"popper"),o.default.trigger(this._element,g,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!(0,r.isElement)(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${d.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===s)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:(0,r.isElement)(this._config.reference)?e=(0,r.getElement)(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=n.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(S)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return L;if(e.classList.contains("dropstart"))return P;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?x:k:t?A:I}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(a.default.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const i=l.default.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>(0,r.isVisible)(e)));i.length&&(0,r.getNextActiveElement)(i,t,e===f,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=D.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=l.default.find(E);for(const i of t){const t=D.getInstance(i);if(!t||!1===t._config.autoClose)continue;const s=e.composedPath(),n=s.includes(t._menu);if(s.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const r={relatedTarget:t._element};"click"===e.type&&(r.clickEvent=e),t._completeHide(r)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,s=[p,f].includes(e.key);if(!s&&!i)return;if(t&&!i)return;e.preventDefault();const n=this.matches(w)?this:l.default.prev(this,w)[0]||l.default.next(this,w)[0]||l.default.findOne(w,e.delegateTarget.parentNode),r=D.getOrCreateInstance(n);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),n.focus())}}o.default.on(document,v,w,D.dataApiKeydownHandler),o.default.on(document,v,C,D.dataApiKeydownHandler),o.default.on(document,b,D.clearMenus),o.default.on(document,T,D.clearMenus),o.default.on(document,b,w,(function(e){e.preventDefault(),D.getOrCreateInstance(this).toggle()})),(0,r.defineJQueryPlugin)(D);const M=D},
vendor: 5,651 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/modal.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>I});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/scrollbar.js"),a=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),l=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/backdrop.js"),u=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/focustrap.js"),d=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/component-functions.js");const c=".bs.modal",h=`hide${c}`,p=`hidePrevented${c}`,f=`hidden${c}`,m=`show${c}`,g=`shown${c}`,_=`resize${c}`,y=`click.dismiss${c}`,b=`mousedown.dismiss${c}`,v=`keydown.dismiss${c}`,T=`click${c}.data-api`,S="modal-open",w="show",E="modal-static",C={backdrop:!0,focus:!0,keyboard:!0},k={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class x extends a.default{constructor(e,t){super(e,t),this._dialog=r.default.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new o.default,this._addEventListeners()}static get Default(){return C}static get DefaultType(){return k}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;n.default.trigger(this._element,m,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(S),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;n.default.trigger(this._element,h).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(w),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){for(const e of[window,this._dialog])n.default.off(e,c);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new l.default({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new u.default({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=r.default.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),(0,s.reflow)(this._element),this._element.classList.add(w);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,n.default.trigger(this._element,g,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){n.default.on(this._element,v,(e=>{if("Escape"===e.key)return this._config.keyboard?(e.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),n.default.on(window,_,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),n.default.on(this._element,b,(e=>{n.default.one(this._element,y,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(S),this._resetAdjustments(),this._scrollBar.reset(),n.default.trigger(this._element,f)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(n.default.trigger(this._element,p).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(E)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(E),this._queueCallback((()=>{this._element.classList.remove(E),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=(0,s.isRTL)()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=(0,s.isRTL)()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=x.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}n.default.on(document,T,'[data-bs-toggle="modal"]',(function(e){const t=(0,s.getElementFromSelector)(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),n.default.one(t,m,(e=>{e.defaultPrevented||n.default.one(t,f,(()=>{(0,s.isVisible)(this)&&this.focus()}))}));const i=r.default.findOne(".modal.show");i&&x.getInstance(i).hide();x.getOrCreateInstance(t).toggle(this)})),(0,d.enableDismissTrigger)(x),(0,s.defineJQueryPlugin)(x);const I=x},
vendor: 4,069 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/offcanvas.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>A});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/scrollbar.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),a=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),l=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/backdrop.js"),u=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/focustrap.js"),d=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/component-functions.js");const c=".bs.offcanvas",h=".data-api",p=`load${c}${h}`,f="show",m="showing",g="hiding",_=".offcanvas.show",y=`show${c}`,b=`shown${c}`,v=`hide${c}`,T=`hidePrevented${c}`,S=`hidden${c}`,w=`resize${c}`,E=`click${c}${h}`,C=`keydown.dismiss${c}`,k={backdrop:!0,keyboard:!0,scroll:!1},x={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class I extends o.default{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return k}static get DefaultType(){return x}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(r.default.trigger(this._element,y,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new n.default).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(m);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(f),this._element.classList.remove(m),r.default.trigger(this._element,b,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(r.default.trigger(this._element,v).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(g),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(f,g),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new n.default).reset(),r.default.trigger(this._element,S)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new l.default({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():r.default.trigger(this._element,T)}:null})}_initializeFocusTrap(){return new u.default({trapElement:this._element})}_addEventListeners(){r.default.on(this._element,C,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():r.default.trigger(this._element,T))}))}static jQueryInterface(e){return this.each((function(){const t=I.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}r.default.on(document,E,'[data-bs-toggle="offcanvas"]',(function(e){const t=(0,s.getElementFromSelector)(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),(0,s.isDisabled)(this))return;r.default.one(t,S,(()=>{(0,s.isVisible)(this)&&this.focus()}));const i=a.default.findOne(_);i&&i!==t&&I.getInstance(i).hide();I.getOrCreateInstance(t).toggle(this)})),r.default.on(window,p,(()=>{for(const e of a.default.find(_))I.getOrCreateInstance(e).show()})),r.default.on(window,w,(()=>{for(const e of a.default.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&I.getOrCreateInstance(e).hide()})),(0,d.enableDismissTrigger)(I),(0,s.defineJQueryPlugin)(I);const A=I},
vendor: 1,208 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/popover.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/tooltip.js");const r=".popover-header",o=".popover-body",a={...n.default.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},l={...n.default.DefaultType,content:"(null|string|element|function)"};class u extends n.default{static get Default(){return a}static get DefaultType(){return l}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[r]:this._getTitle(),[o]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=u.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}(0,s.defineJQueryPlugin)(u);const d=u},
vendor: 4,164 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/scrollspy.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js");const a=".bs.scrollspy",l=`activate${a}`,u=`click${a}`,d=`load${a}.data-api`,c="active",h="[href]",p=".nav-link",f=`${p}, .nav-item > ${p}, .list-group-item`,m={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},g={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class _ extends o.default{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return m}static get DefaultType(){return g}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=(0,s.getElement)(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(n.default.off(this._config.target,u),n.default.on(this._config.target,u,h,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const e=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(i(r),!s)return}else n||e||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=r.default.find(h,this._config.target);for(const t of e){if(!t.hash||(0,s.isDisabled)(t))continue;const e=r.default.findOne(t.hash,this._element);(0,s.isVisible)(e)&&(this._targetLinks.set(t.hash,t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(c),this._activateParents(e),n.default.trigger(this._element,l,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))r.default.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(c);else for(const t of r.default.parents(e,".nav, .list-group"))for(const e of r.default.prev(t,f))e.classList.add(c)}_clearActiveClass(e){e.classList.remove(c);const t=r.default.find(`${h}.${c}`,e);for(const e of t)e.classList.remove(c)}static jQueryInterface(e){return this.each((function(){const t=_.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}n.default.on(window,d,(()=>{for(const e of r.default.find('[data-bs-spy="scroll"]'))_.getOrCreateInstance(e)})),(0,s.defineJQueryPlugin)(_);const y=_},
vendor: 4,292 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/tab.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>x});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js");const a=".bs.tab",l=`hide${a}`,u=`hidden${a}`,d=`show${a}`,c=`shown${a}`,h=`click${a}`,p=`keydown${a}`,f=`load${a}`,m="ArrowLeft",g="ArrowRight",_="ArrowUp",y="ArrowDown",b="active",v="fade",T="show",S=":not(.dropdown-toggle)",w='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',E=`${`.nav-link${S}, .list-group-item${S}, [role="tab"]${S}`}, ${w}`,C=`.${b}[data-bs-toggle="tab"], .${b}[data-bs-toggle="pill"], .${b}[data-bs-toggle="list"]`;class k extends o.default{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),n.default.on(this._element,p,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?n.default.trigger(t,l,{relatedTarget:e}):null;n.default.trigger(e,d,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(b),this._activate((0,s.getElementFromSelector)(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),n.default.trigger(e,c,{relatedTarget:t})):e.classList.add(T)}),e,e.classList.contains(v))}_deactivate(e,t){if(!e)return;e.classList.remove(b),e.blur(),this._deactivate((0,s.getElementFromSelector)(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),n.default.trigger(e,u,{relatedTarget:t})):e.classList.remove(T)}),e,e.classList.contains(v))}_keydown(e){if(![m,g,_,y].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[g,y].includes(e.key),i=(0,s.getNextActiveElement)(this._getChildren().filter((e=>!(0,s.isDisabled)(e))),e.target,t,!0);i&&(i.focus({preventScroll:!0}),k.getOrCreateInstance(i).show())}_getChildren(){return r.default.find(E,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=(0,s.getElementFromSelector)(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`#${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const s=(e,s)=>{const n=r.default.findOne(e,i);n&&n.classList.toggle(s,t)};s(".dropdown-toggle",b),s(".dropdown-menu",T),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(b)}_getInnerElement(e){return e.matches(E)?e:r.default.findOne(E,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=k.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}n.default.on(document,h,w,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),(0,s.isDisabled)(this)||k.getOrCreateInstance(this).show()})),n.default.on(window,f,(()=>{for(const e of r.default.find(C))k.getOrCreateInstance(e)})),(0,s.defineJQueryPlugin)(k);const x=k},
vendor: 2,909 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/toast.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/component-functions.js");const a=".bs.toast",l=`mouseover${a}`,u=`mouseout${a}`,d=`focusin${a}`,c=`focusout${a}`,h=`hide${a}`,p=`hidden${a}`,f=`show${a}`,m=`shown${a}`,g="hide",_="show",y="showing",b={animation:"boolean",autohide:"boolean",delay:"number"},v={animation:!0,autohide:!0,delay:5e3};class T extends r.default{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return v}static get DefaultType(){return b}static get NAME(){return"toast"}show(){if(n.default.trigger(this._element,f).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(g),(0,s.reflow)(this._element),this._element.classList.add(_,y),this._queueCallback((()=>{this._element.classList.remove(y),n.default.trigger(this._element,m),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(n.default.trigger(this._element,h).defaultPrevented)return;this._element.classList.add(y),this._queueCallback((()=>{this._element.classList.add(g),this._element.classList.remove(y,_),n.default.trigger(this._element,p)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(_),super.dispose()}isShown(){return this._element.classList.contains(_)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){n.default.on(this._element,l,(e=>this._onInteraction(e,!0))),n.default.on(this._element,u,(e=>this._onInteraction(e,!1))),n.default.on(this._element,d,(e=>this._onInteraction(e,!0))),n.default.on(this._element,c,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=T.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}(0,o.enableDismissTrigger)(T),(0,s.defineJQueryPlugin)(T);const S=T},
vendor: 9,535 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/tooltip.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i("./node_modules/@popperjs/core/lib/index.js"),n=i("./node_modules/@popperjs/core/lib/popper.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/sanitizer.js"),a=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),l=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),u=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/base-component.js"),d=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/template-factory.js");const c=new Set(["sanitize","allowList","sanitizeFn"]),h="fade",p="show",f=".tooltip-inner",m=".modal",g="hide.bs.modal",_="hover",y="focus",b={AUTO:"auto",TOP:"top",RIGHT:(0,r.isRTL)()?"left":"right",BOTTOM:"bottom",LEFT:(0,r.isRTL)()?"right":"left"},v={allowList:o.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},T={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class S extends u.default{constructor(e,t){if(void 0===s)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return v}static get DefaultType(){return T}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),a.default.off(this._element.closest(m),g,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=a.default.trigger(this._element,this.constructor.eventName("show")),t=((0,r.findShadowRoot)(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),a.default.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(p),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))a.default.on(e,"mouseover",r.noop);this._queueCallback((()=>{a.default.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(a.default.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(p),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))a.default.off(e,"mouseover",r.noop);this._activeTrigger.click=!1,this._activeTrigger[y]=!1,this._activeTrigger[_]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),a.default.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(h,p),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(0,r.getUID)(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(h),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new d.default({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[f]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(h)}_isShown(){return this.tip&&this.tip.classList.contains(p)}_createPopper(e){const t="function"==typeof this._config.placement?this._config.placement.call(this,e,this._element):this._config.placement,i=b[t.toUpperCase()];return n.createPopper(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)a.default.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===_?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===_?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");a.default.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?y:_]=!0,t._enter()})),a.default.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?y:_]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},a.default.on(this._element.closest(m),g,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=l.default.getDataAttributes(this._element);for(const e of Object.keys(t))c.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:(0,r.getElement)(e.container),"number"==typeof 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()),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=S.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}(0,r.defineJQueryPlugin)(S);const w=S},
vendor: 1,913 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/backdrop.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/config.js");const o="backdrop",a="show",l=`mousedown.bs.${o}`,u={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},d={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class c extends r.default{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return u}static get DefaultType(){return d}static get NAME(){return o}show(e){if(!this._config.isVisible)return void(0,n.execute)(e);this._append();const t=this._getElement();this._config.isAnimated&&(0,n.reflow)(t),t.classList.add(a),this._emulateAnimation((()=>{(0,n.execute)(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(a),this._emulateAnimation((()=>{this.dispose(),(0,n.execute)(e)}))):(0,n.execute)(e)}dispose(){this._isAppended&&(s.default.off(this._element,l),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=(0,n.getElement)(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),s.default.on(e,l,(()=>{(0,n.execute)(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){(0,n.executeAfterTransition)(e,this._getElement(),this._config.isAnimated)}}const h=c},
vendor: 659 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/component-functions.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{enableDismissTrigger:()=>r});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js");const r=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;s.default.on(document,i,`[data-bs-dismiss="${r}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),(0,n.isDisabled)(this))return;const s=(0,n.getElementFromSelector)(this)||this.closest(`.${r}`);e.getOrCreateInstance(s)[t]()}))}},
vendor: 1,161 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/config.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js");const r=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=(0,s.isElement)(t)?n.default.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...(0,s.isElement)(t)?n.default.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const i of Object.keys(t)){const n=t[i],r=e[i],o=(0,s.isElement)(r)?"element":(0,s.toType)(r);if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${n}".`)}}}},
vendor: 1,440 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/focustrap.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/config.js");const o=".bs.focustrap",a=`focusin${o}`,l=`keydown.tab${o}`,u="backward",d={autofocus:!0,trapElement:null},c={autofocus:"boolean",trapElement:"element"};class h extends r.default{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return d}static get DefaultType(){return c}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),s.default.off(document,o),s.default.on(document,a,(e=>this._handleFocusin(e))),s.default.on(document,l,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,s.default.off(document,o))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=n.default.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===u?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?u:"forward")}}const p=h},
vendor: 3,063 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{defineJQueryPlugin:()=>S,execute:()=>w,executeAfterTransition:()=>E,findShadowRoot:()=>m,getElement:()=>h,getElementFromSelector:()=>l,getNextActiveElement:()=>C,getSelectorFromElement:()=>a,getTransitionDurationFromElement:()=>u,getUID:()=>r,getjQuery:()=>y,isDisabled:()=>f,isElement:()=>c,isRTL:()=>T,isVisible:()=>p,noop:()=>g,onDOMContentLoaded:()=>v,reflow:()=>_,toType:()=>n,triggerTransitionEnd:()=>d});const s="transitionend",n=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),r=e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},o=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},a=e=>{const t=o(e);return t&&document.querySelector(t)?t:null},l=e=>{const t=o(e);return t?document.querySelector(t):null},u=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const s=Number.parseFloat(t),n=Number.parseFloat(i);return s||n?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0},d=e=>{e.dispatchEvent(new Event(s))},c=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),h=e=>c(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,p=e=>{if(!c(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},f=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),m=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?m(e.parentNode):null},g=()=>{},_=e=>{e.offsetHeight},y=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,b=[],v=e=>{"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of b)e()})),b.push(e)):e()},T=()=>"rtl"===document.documentElement.dir,S=e=>{v((()=>{const t=y();if(t){const i=e.NAME,s=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=s,e.jQueryInterface)}}))},w=e=>{"function"==typeof e&&e()},E=(e,t,i=!0)=>{if(!i)return void w(e);const n=u(t)+5;let r=!1;const o=({target:i})=>{i===t&&(r=!0,t.removeEventListener(s,o),w(e))};t.addEventListener(s,o),setTimeout((()=>{r||d(t)}),n)},C=(e,t,i,s)=>{const n=e.length;let r=e.indexOf(t);return-1===r?!i&&s?e[n-1]:e[0]:(r+=i?1:-1,s&&(r=(r+n)%n),e[Math.max(0,Math.min(r,n-1))])}},
vendor: 1,402 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/sanitizer.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefaultAllowlist:()=>a,sanitizeHtml:()=>l});const s=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),n=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,r=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,o=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!s.has(i)||Boolean(n.test(e.nodeValue)||r.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))},a={"*":["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:[]};function l(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const s=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const e of n){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const s=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[i]||[]);for(const t of s)o(t,n)||e.removeAttribute(t.nodeName)}return s.body.innerHTML}},
vendor: 1,906 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/scrollbar.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/manipulator.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js");const o=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",a=".sticky-top",l="padding-right",u="margin-right";const d=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,l,(t=>t+e)),this._setElementAttributes(o,l,(t=>t+e)),this._setElementAttributes(a,u,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,l),this._resetElementAttributes(o,l),this._resetElementAttributes(a,u)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const s=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&n.default.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=n.default.getDataAttribute(e,t);null!==i?(n.default.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if((0,r.isElement)(e))t(e);else for(const i of s.default.find(e,this._element))t(i)}}},
vendor: 2,093 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/swipe.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/config.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/event-handler.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js");const o=".bs.swipe",a=`touchstart${o}`,l=`touchmove${o}`,u=`touchend${o}`,d=`pointerdown${o}`,c=`pointerup${o}`,h={endCallback:null,leftCallback:null,rightCallback:null},p={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class f extends s.default{constructor(e,t){super(),this._element=e,e&&f.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return h}static get DefaultType(){return p}static get NAME(){return"swipe"}dispose(){n.default.off(this._element,o)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),(0,r.execute)(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&(0,r.execute)(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(n.default.on(this._element,d,(e=>this._start(e))),n.default.on(this._element,c,(e=>this._end(e))),this._element.classList.add("pointer-event")):(n.default.on(this._element,a,(e=>this._start(e))),n.default.on(this._element,l,(e=>this._move(e))),n.default.on(this._element,u,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const m=f},
vendor: 2,320 bytes, line 2
2"./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/template-factory.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/sanitizer.js"),n=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/index.js"),r=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/dom/selector-engine.js"),o=i("./node_modules/bootstrap-italia/node_modules/bootstrap/js/src/util/config.js");const a={allowList:s.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},l={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},u={entry:"(string|element|function|null)",selector:"(string|element)"};class d extends o.default{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return a}static get DefaultType(){return l}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},u)}_setContent(e,t,i){const s=r.default.findOne(i,e);s&&((t=this._resolvePossibleFunction(t))?(0,n.isElement)(t)?this._putElementInTemplate((0,n.getElement)(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?(0,s.sanitizeHtml)(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return"function"==typeof e?e(this):e}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const c=d},
vendor: 81 bytes, line 2
2"./node_modules/bootstrap-italia/src/js/icons.js":(e,t,i)=>{"use strict";i.r(t)},
vendor: 127 bytes, line 2
2"./node_modules/bootstrap-italia/src/js/load-plugin.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{loadPlugin:()=>s});const s=e=>{}},
vendor: 382 bytes, line 2
2"./node_modules/bootstrap-italia/src/js/plugins/init.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i("./node_modules/bootstrap-italia/src/js/plugins/track-focus.js"),n=i("./node_modules/bootstrap-italia/src/js/version.js");const r=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new s.default,window.BOOTSTRAP_ITALIA_VERSION=n.default)},o=r;r()},
vendor: 649 bytes, line 2
2"./node_modules/bootstrap-italia/src/js/plugins/track-focus.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});const s="data-focus-mouse",n="focus--mouse";class r{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((e=>{document.addEventListener(e,(e=>{this._usingMouse="mousedown"===e.type}))})),document.addEventListener("focusin",(e=>{this._usingMouse&&e.target&&(e.target.classList.add(n),e.target.setAttribute(s,!0))})),document.addEventListener("focusout",(e=>{e.target&&(e.target.classList.remove(n),e.target.setAttribute(s,!1))}))}}new r;const o=r},
vendor: 122 bytes, line 2
2"./node_modules/bootstrap-italia/src/js/version.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});const s="2.8.8"},
vendor: 481 bytes, line 2
2"./node_modules/desandro-matches-selector/matches-selector.js":(e,t,i)=>{var s,n;!function(r,o){"use strict";void 0===(n="function"==typeof(s=o)?s.call(t,i,t,e):s)||(e.exports=n)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var s=t[i]+"MatchesSelector";if(e[s])return s}}();return function(t,i){return t[e](i)}}))},
vendor: 914 bytes, line 2
2"./node_modules/ev-emitter/ev-emitter.js":function(e,t,i){var s,n;"undefined"!=typeof window&&window,void 0===(n="function"==typeof(s=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},s=i[e]=i[e]||[];return-1==s.indexOf(t)&&s.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var s=i.indexOf(t);return-1!=s&&i.splice(s,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var s=this._onceEvents&&this._onceEvents[e],n=0;n<i.length;n++){var r=i[n];s&&s[r]&&(this.off(e,r),delete s[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?s.call(t,i,t,e):s)||(e.exports=n)},
vendor: 1,963 bytes, line 2
2"./node_modules/fizzy-ui-utils/utils.js":(e,t,i)=>{var s,n;!function(r,o){s=[i("./node_modules/desandro-matches-selector/matches-selector.js")],n=function(e){return function(e,t){"use strict";var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},s=Array.prototype.slice;i.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?s.call(e):[e]},i.removeFrom=function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},i.getParent=function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},i.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.filterFindElements=function(e,s){e=i.makeArray(e);var n=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(s){t(e,s)&&n.push(e);for(var i=e.querySelectorAll(s),r=0;r<i.length;r++)n.push(i[r])}else n.push(e)})),n},i.debounceMethod=function(e,t,i){i=i||100;var s=e.prototype[t],n=t+"Timeout";e.prototype[t]=function(){var e=this[n];clearTimeout(e);var t=arguments,r=this;this[n]=setTimeout((function(){s.apply(r,t),delete r[n]}),i)}},i.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},i.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,i){return t+"-"+i})).toLowerCase()};var n=e.console;return i.htmlInit=function(t,s){i.docReady((function(){var r=i.toDashed(s),o="data-"+r,a=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(l)),d=o+"-options",c=e.jQuery;u.forEach((function(e){var i,r=e.getAttribute(o)||e.getAttribute(d);try{i=r&&JSON.parse(r)}catch(t){return void(n&&n.error("Error parsing "+o+" on "+e.className+": "+t))}var a=new t(e,i);c&&c.data(e,s,a)}))}))},i}(r,e)}.apply(t,s),void 0===n||(e.exports=n)}(window)},
vendor: 1,913 bytes, line 2
2"./node_modules/get-size/get-size.js":(e,t,i)=>{var s,n;window,void 0===(n="function"==typeof(s=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}var i="undefined"==typeof console?t:function(e){console.error(e)},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=s.length;function r(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<n;t++)e[s[t]]=0;return e}function o(e){var t=getComputedStyle(e);return t||i("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var a,l=!1;function u(){if(!l){l=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(t);var s=o(t);a=200==Math.round(e(s.width)),d.isBoxSizeOuter=a,i.removeChild(t)}}function d(t){if(u(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var i=o(t);if("none"==i.display)return r();var l={};l.width=t.offsetWidth,l.height=t.offsetHeight;for(var d=l.isBorderBox="border-box"==i.boxSizing,c=0;c<n;c++){var h=s[c],p=i[h],f=parseFloat(p);l[h]=isNaN(f)?0:f}var m=l.paddingLeft+l.paddingRight,g=l.paddingTop+l.paddingBottom,_=l.marginLeft+l.marginRight,y=l.marginTop+l.marginBottom,b=l.borderLeftWidth+l.borderRightWidth,v=l.borderTopWidth+l.borderBottomWidth,T=d&&a,S=e(i.width);!1!==S&&(l.width=S+(T?0:m+b));var w=e(i.height);return!1!==w&&(l.height=w+(T?0:g+v)),l.innerWidth=l.width-(m+b),l.innerHeight=l.height-(g+v),l.outerWidth=l.width+_,l.outerHeight=l.height+y,l}}return d})?s.call(t,i,t,e):s)||(e.exports=n)},
vendor: 247 bytes, line 2
2"./node_modules/global/document.js":(e,t,i)=>{var s,n=void 0!==i.g?i.g:"undefined"!=typeof window?window:{},r=i("?34aa");"undefined"!=typeof document?s=document:(s=n["__GLOBAL_DOCUMENT_CACHE@4"])||(s=n["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=s},
vendor: 149 bytes, line 2
2"./node_modules/global/window.js":(e,t,i)=>{var s;s="undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},e.exports=s},
vendor: 314 bytes, line 2
2"./node_modules/is-function/index.js":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},
vendor: 27,468 bytes, line 2
2"./node_modules/just-validate/dist/just-validate.es.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{CustomStyleTagIds:()=>c,GroupRules:()=>d,Rules:()=>u,default:()=>_});var s=Object.defineProperty,n=(e,t,i)=>(((e,t,i)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);const r=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,o=/^[0-9]+$/,a=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,l=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;var u=(e=>(e.Required="required",e.Email="email",e.MinLength="minLength",e.MaxLength="maxLength",e.Password="password",e.Number="number",e.MaxNumber="maxNumber",e.MinNumber="minNumber",e.StrongPassword="strongPassword",e.CustomRegexp="customRegexp",e.MinFilesCount="minFilesCount",e.MaxFilesCount="maxFilesCount",e.Files="files",e))(u||{}),d=(e=>(e.Required="required",e))(d||{}),c=(e=>(e.Label="label",e.LabelArrow="labelArrow",e))(c||{});const h=[{key:u.Required,dict:{en:"The field is required"}},{key:u.Email,dict:{en:"Email has invalid format"}},{key:u.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:u.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:u.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:u.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:u.Number,dict:{en:"Value should be a number"}},{key:u.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:u.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:u.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:u.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:u.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],p=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then,f=e=>Array.isArray(e)?e.filter((e=>e.length>0)):"string"==typeof e&&e.trim()?[...e.split(" ").filter((e=>e.length>0))]:[],m=e=>e instanceof Element||e instanceof HTMLDocument,g={errorFieldStyle:{color:"#b81111",border:"1px solid #B81111"},errorFieldCssClass:"just-validate-error-field",successFieldCssClass:"just-validate-success-field",errorLabelStyle:{color:"#b81111"},errorLabelCssClass:"just-validate-error-label",successLabelCssClass:"just-validate-success-label",focusInvalidField:!0,lockForm:!0,testingMode:!1,validateBeforeSubmitting:!1};class _{constructor(e,t,i){n(this,"form",null),n(this,"fields",{}),n(this,"groupFields",{}),n(this,"errors",{}),n(this,"isValid",!1),n(this,"isSubmitted",!1),n(this,"globalConfig",g),n(this,"errorLabels",{}),n(this,"successLabels",{}),n(this,"eventListeners",[]),n(this,"dictLocale",h),n(this,"currentLocale","en"),n(this,"customStyleTags",{}),n(this,"onSuccessCallback"),n(this,"onFailCallback"),n(this,"tooltips",[]),n(this,"lastScrollPosition"),n(this,"isScrollTick"),n(this,"fieldIds",new Map),n(this,"getKeyByFieldSelector",(e=>this.fieldIds.get(e))),n(this,"getFieldSelectorByKey",(e=>{for(const[t,i]of this.fieldIds)if(e===i)return t})),n(this,"setKeyByFieldSelector",(e=>{if(this.fieldIds.has(e))return this.fieldIds.get(e);const t=String(this.fieldIds.size+1);return this.fieldIds.set(e,t),t})),n(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((e=>{e.refresh()}))})),n(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),n(this,"formSubmitHandler",(e=>{e.preventDefault(),this.isSubmitted=!0,this.validateHandler(e)})),n(this,"handleFieldChange",(e=>{let t;for(const i in this.fields){if(this.fields[i].elem===e){t=i;break}}t&&this.validateField(t,!0)})),n(this,"handleGroupChange",(e=>{let t,i;for(const s in this.groupFields){const n=this.groupFields[s];if(n.elems.find((t=>t===e))){t=n,i=s;break}}t&&i&&this.validateGroup(i,t)})),n(this,"handlerChange",(e=>{e.target&&(this.handleFieldChange(e.target),this.handleGroupChange(e.target),this.renderErrors())})),this.initialize(e,t,i)}initialize(e,t,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=g,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof e){const t=document.querySelector(e);if(!t)throw Error(`Form with ${e} selector not found! Please check the form selector`);this.setForm(t)}else{if(!(e instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(e)}if(this.globalConfig={...g,...t},i&&(this.dictLocale=[...i,...h]),this.isTooltip()){const e=document.createElement("style");e.textContent=".just-validate-error-label[data-tooltip=true]{position:fixed;padding:4px 8px;background:#423f3f;color:#fff;white-space:nowrap;z-index:10;border-radius:4px;transform:translateY(-5px)}.just-validate-error-label[data-tooltip=true]:before{content:'';width:0;height:0;border-left:solid 5px transparent;border-right:solid 5px transparent;border-bottom:solid 5px #423f3f;position:absolute;z-index:3;display:block;bottom:-5px;transform:rotate(180deg);left:calc(50% - 5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]{transform:translateX(-5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]:before{right:-7px;bottom:auto;left:auto;top:calc(50% - 2px);transform:rotate(90deg)}.just-validate-error-label[data-tooltip=true][data-direction=right]{transform:translateX(5px)}.just-validate-error-label[data-tooltip=true][data-direction=right]:before{right:auto;bottom:auto;left:-7px;top:calc(50% - 2px);transform:rotate(-90deg)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]{transform:translateY(5px)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]:before{right:auto;bottom:auto;left:calc(50% - 5px);top:-5px;transform:rotate(0)}",this.customStyleTags[c.Label]=document.head.appendChild(e),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(e,t,i){var s;const n=null!=i?i:e;let r=null==(s=this.dictLocale.find((e=>e.key===n)))?void 0:s.dict[this.currentLocale];if(r||i&&(r=i),r&&void 0!==t)switch(e){case u.MaxLength:case u.MinLength:case u.MaxNumber:case u.MinNumber:case u.MinFilesCount:case u.MaxFilesCount:r=r.replace(":value",String(t))}return r||i||"Value is incorrect"}getFieldErrorMessage(e,t){const i="function"==typeof e.errorMessage?e.errorMessage(this.getElemValue(t),this.fields):e.errorMessage;return this.getLocalisedString(e.rule,e.value,i)}getFieldSuccessMessage(e,t){const i="function"==typeof e?e(this.getElemValue(t),this.fields):e;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(e){return this.getLocalisedString(e.rule,void 0,e.errorMessage)}getGroupSuccessMessage(e){if(e.successMessage)return this.getLocalisedString(void 0,void 0,e.successMessage)}setFieldInvalid(e,t){this.fields[e].isValid=!1,this.fields[e].errorMessage=this.getFieldErrorMessage(t,this.fields[e].elem)}setFieldValid(e,t){this.fields[e].isValid=!0,void 0!==t&&(this.fields[e].successMessage=this.getFieldSuccessMessage(t,this.fields[e].elem))}setGroupInvalid(e,t){this.groupFields[e].isValid=!1,this.groupFields[e].errorMessage=this.getGroupErrorMessage(t)}setGroupValid(e,t){this.groupFields[e].isValid=!0,this.groupFields[e].successMessage=this.getGroupSuccessMessage(t)}getElemValue(e){switch(e.type){case"checkbox":return e.checked;case"file":return e.files;default:return e.value}}validateGroupRule(e,t,i){if(i.rule===d.Required)t.every((e=>!e.checked))?this.setGroupInvalid(e,i):this.setGroupValid(e,i)}validateFieldRule(e,t,i,s=!1){const n=i.value,d=this.getElemValue(t);if(i.plugin){i.plugin(d,this.fields)||this.setFieldInvalid(e,i)}else{switch(i.rule){case u.Required:(e=>{let t=e;return"string"==typeof e&&(t=e.trim()),!t})(d)&&this.setFieldInvalid(e,i);break;case u.Email:if("string"!=typeof d){this.setFieldInvalid(e,i);break}c=d,r.test(c)||this.setFieldInvalid(e,i);break;case u.MaxLength:if(void 0===n){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof d){this.setFieldInvalid(e,i);break}if(""===d)break;((e,t)=>e.length>t)(d,n)&&this.setFieldInvalid(e,i);break;case u.MinLength:if(void 0===n){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof d){this.setFieldInvalid(e,i);break}if(""===d)break;((e,t)=>e.length<t)(d,n)&&this.setFieldInvalid(e,i);break;case u.Password:if("string"!=typeof d){this.setFieldInvalid(e,i);break}if(""===d)break;(e=>a.test(e))(d)||this.setFieldInvalid(e,i);break;case u.StrongPassword:if("string"!=typeof d){this.setFieldInvalid(e,i);break}if(""===d)break;(e=>l.test(e))(d)||this.setFieldInvalid(e,i);break;case u.Number:if("string"!=typeof d){this.setFieldInvalid(e,i);break}if(""===d)break;(e=>o.test(e))(d)||this.setFieldInvalid(e,i);break;case u.MaxNumber:{if(void 0===n){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof d){this.setFieldInvalid(e,i);break}if(""===d)break;const t=+d;(Number.isNaN(t)||((e,t)=>e>t)(t,n))&&this.setFieldInvalid(e,i);break}case u.MinNumber:{if(void 0===n){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof d){this.setFieldInvalid(e,i);break}if(""===d)break;const t=+d;(Number.isNaN(t)||((e,t)=>e<t)(t,n))&&this.setFieldInvalid(e,i);break}case u.CustomRegexp:{if(void 0===n)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);let t;try{t=new RegExp(n)}catch(t){console.error(`Value for ${i.rule} rule for [${e}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(e,i);break}const s=String(d);""===s||t.test(s)||this.setFieldInvalid(e,i);break}case u.MinFilesCount:if(void 0===n){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==d?void 0:d.length)&&d.length<n){this.setFieldInvalid(e,i);break}break;case u.MaxFilesCount:if(void 0===n){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof n){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==d?void 0:d.length)&&d.length>n){this.setFieldInvalid(e,i);break}break;case u.Files:{if(void 0===n)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);if("object"!=typeof n)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=n.files;if("object"!=typeof t)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(e,i);const s=(e,t)=>{const i=Number.isFinite(t.minSize)&&e.size<t.minSize,s=Number.isFinite(t.maxSize)&&e.size>t.maxSize,n=Array.isArray(t.names)&&!t.names.includes(e.name),r=Array.isArray(t.extensions)&&!t.extensions.includes(e.name.split(".")[e.name.split(".").length-1]),o=Array.isArray(t.types)&&!t.types.includes(e.type);return i||s||n||r||o};if("object"==typeof d&&null!==d)for(let n=0,r=d.length;n<r;++n){const r=d.item(n);if(!r){this.setFieldInvalid(e,i);break}if(s(r,t)){this.setFieldInvalid(e,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${e}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=i.validator(d,this.fields);if("boolean"!=typeof t&&"function"!=typeof t&&console.error(`Validator return value for [${e}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof t){if(!s){this.fields[e].asyncCheckPending=!1;const s=t();return p(s)?s.then((t=>{t||this.setFieldInvalid(e,i)})).catch((()=>{this.setFieldInvalid(e,i)})):(console.error(`Validator function for custom rule for [${e}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(e,i))}this.fields[e].asyncCheckPending=!0}t||this.setFieldInvalid(e,i)}}var c}}validateField(e,t=!1){var i;const s=this.fields[e];s.isValid=!0;const n=[];return[...s.rules].reverse().forEach((i=>{const r=this.validateFieldRule(e,s.elem,i,t);p(r)&&n.push(r)})),s.isValid&&this.setFieldValid(e,null==(i=s.config)?void 0:i.successMessage),Promise.allSettled(n)}revalidateField(e){if("string"!=typeof e&&!m(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);return t&&this.fields[t]?new Promise((e=>{this.validateField(t,!0).finally((()=>{this.clearFieldStyle(t),this.clearFieldLabel(t),this.renderFieldError(t),e(!!this.fields[t].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}validateGroup(e,t){const i=[];return[...t.rules].reverse().forEach((s=>{const n=this.validateGroupRule(e,t.elems,s);p(n)&&i.push(n)})),Promise.allSettled(i)}focusInvalidField(){for(const e in this.fields){const t=this.fields[e];if(!t.isValid){setTimeout((()=>t.elem.focus()),0);break}}}afterSubmitValidation(e=!1){this.renderErrors(e),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(e=!1){return new Promise((t=>{const i=[];Object.keys(this.fields).forEach((e=>{const t=this.validateField(e);p(t)&&i.push(t)})),Object.keys(this.groupFields).forEach((e=>{const t=this.groupFields[e],s=this.validateGroup(e,t);p(s)&&i.push(s)})),i.length?Promise.allSettled(i).then((()=>{this.afterSubmitValidation(e),t(!0)})):(this.afterSubmitValidation(e),t(!1))}))}revalidate(){return new Promise((e=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),e(this.isValid)}))}))}validateHandler(e,t=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(t).finally((()=>{var t,i;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?null==(t=this.onSuccessCallback)||t.call(this,e):null==(i=this.onFailCallback)||i.call(this,this.fields,this.groupFields)}))}setForm(e){this.form=e,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(e,t,i){t.addEventListener(e,i),this.eventListeners.push({type:e,elem:t,func:i})}removeListener(e,t,i){t.removeEventListener(e,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==e||i.elem!==t))}addField(e,t,i){if("string"!=typeof e&&!m(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let s;if(s="string"==typeof e?this.form.querySelector(e):e,!s)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(t)||!t.length)throw Error("Rules argument should be an array and should contain at least 1 element.");t.forEach((e=>{if(!("rule"in e||"validator"in e||"plugin"in e))throw Error("Rules argument must contain at least one rule or validator property.");if(!(e.validator||e.plugin||e.rule&&Object.values(u).includes(e.rule)))throw Error(`Rule should be one of these types: ${Object.values(u).join(", ")}. Provided value: ${e.rule}`)}));const n=this.setKeyByFieldSelector(e);return this.fields[n]={elem:s,rules:t,isValid:void 0,config:i},this.setListeners(s),this.isSubmitted&&this.validate(),this}removeField(e){if("string"!=typeof e&&!m(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);if(!t||!this.fields[t])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[t].elem.type);return this.removeListener(i,this.fields[t].elem,this.handlerChange),this.clearErrors(),delete this.fields[t],this}removeGroup(e){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const t=this.getKeyByFieldSelector(e);return t&&this.groupFields[t]?(this.groupFields[t].elems.forEach((e=>{const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange)})),this.clearErrors(),delete this.groupFields[t],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(e,t,i,s){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const n=this.form.querySelector(e);if(!n)throw Error(`Group with ${e} selector not found! Please check the group selector.`);const r=n.querySelectorAll("input"),o=Array.from(r).filter((e=>{const t=((e,t)=>{const i=[...t].reverse();for(let t=0,s=i.length;t<s;++t){const s=i[t];for(const t in e){const i=e[t];if(i.groupElem===s)return[t,i]}}return null})(this.groupFields,(e=>{let t=e;const i=[];for(;t;)i.unshift(t),t=t.parentNode;return i})(e));return!t||t[1].elems.find((t=>t!==e))})),a=this.setKeyByFieldSelector(e);return this.groupFields[a]={rules:[{rule:d.Required,errorMessage:t,successMessage:s}],groupElem:n,elems:o,isDirty:!1,isValid:void 0,config:i},r.forEach((e=>{this.setListeners(e)})),this}getListenerType(e){switch(e){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(e){const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange),this.addListener(t,e,this.handlerChange)}clearFieldLabel(e){var t,i;null==(t=this.errorLabels[e])||t.remove(),null==(i=this.successLabels[e])||i.remove()}clearFieldStyle(e){var t,i,s,n;const r=this.fields[e],o=(null==(t=r.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(o).forEach((e=>{r.elem.style[e]=""}));const a=(null==(i=r.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((e=>{r.elem.style[e]=""})),r.elem.classList.remove(...f((null==(s=r.config)?void 0:s.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...f((null==(n=r.config)?void 0:n.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var e,t;Object.keys(this.errorLabels).forEach((e=>this.errorLabels[e].remove())),Object.keys(this.successLabels).forEach((e=>this.successLabels[e].remove()));for(const e in this.fields)this.clearFieldStyle(e);for(const i in this.groupFields){const s=this.groupFields[i],n=(null==(e=s.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(n).forEach((e=>{s.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...f((null==(i=s.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const r=(null==(t=s.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(r).forEach((e=>{s.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...f((null==(i=s.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)e[t].setAttribute("data-just-validate-fallback-disabled",e[t].disabled?"true":"false"),e[t].setAttribute("disabled","disabled"),e[t].style.pointerEvents="none",e[t].style.webkitFilter="grayscale(100%)",e[t].style.filter="grayscale(100%)"}unlockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)"true"!==e[t].getAttribute("data-just-validate-fallback-disabled")&&e[t].removeAttribute("disabled"),e[t].style.pointerEvents="",e[t].style.webkitFilter="",e[t].style.filter=""}renderTooltip(e,t,i){var s;const{top:n,left:r,width:o,height:a}=e.getBoundingClientRect(),l=t.getBoundingClientRect(),u=i||(null==(s=this.globalConfig.tooltip)?void 0:s.position);switch(u){case"left":t.style.top=n+a/2-l.height/2+"px",t.style.left=r-l.width-5+"px";break;case"top":t.style.top=n-l.height-5+"px",t.style.left=r+o/2-l.width/2+"px";break;case"right":t.style.top=n+a/2-l.height/2+"px",t.style.left=`${r+o+5}px`;break;case"bottom":t.style.top=`${n+a+5}px`,t.style.left=r+o/2-l.width/2+"px"}t.dataset.direction=u;return{refresh:()=>{this.renderTooltip(e,t,i)}}}createErrorLabelElem(e,t,i){const s=document.createElement("div");s.innerHTML=t;const n=this.isTooltip()?null==i?void 0:i.errorLabelStyle:(null==i?void 0:i.errorLabelStyle)||this.globalConfig.errorLabelStyle;return Object.assign(s.style,n),s.classList.add(...f((null==i?void 0:i.errorLabelCssClass)||this.globalConfig.errorLabelCssClass),"just-validate-error-label"),this.isTooltip()&&(s.dataset.tooltip="true"),this.globalConfig.testingMode&&(s.dataset.testId=`error-label-${e}`),this.errorLabels[e]=s,s}createSuccessLabelElem(e,t,i){if(void 0===t)return null;const s=document.createElement("div");s.innerHTML=t;const n=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(s.style,n),s.classList.add(...f((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(s.dataset.testId=`success-label-${e}`),this.successLabels[e]=s,s}renderErrorsContainer(e,t){const i=t||this.globalConfig.errorsContainer;if("string"==typeof i){const t=this.form.querySelector(i);if(t)return t.appendChild(e),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(e),!0):(void 0!==i&&console.error("Error container not found. It should be a string or existing Element. Errors will be rendered as usual"),!1)}renderGroupLabel(e,t,i,s){if(!s){if(this.renderErrorsContainer(t,i))return}e.appendChild(t)}renderFieldLabel(e,t,i,s){var n,r,o,a,l,u,d;if(!s){if(this.renderErrorsContainer(t,i))return}if("checkbox"===e.type||"radio"===e.type){const i=document.querySelector(`label[for="${e.getAttribute("id")}"]`);"label"===(null==(r=null==(n=e.parentElement)?void 0:n.tagName)?void 0:r.toLowerCase())?null==(a=null==(o=e.parentElement)?void 0:o.parentElement)||a.appendChild(t):i?null==(l=i.parentElement)||l.appendChild(t):null==(u=e.parentElement)||u.appendChild(t)}else null==(d=e.parentElement)||d.appendChild(t)}showLabels(e,t){Object.keys(e).forEach(((i,s)=>{const n=e[i],r=this.getKeyByFieldSelector(i);if(!r||!this.fields[r])return void console.error("Field not found. Check the field selector.");const o=this.fields[r];o.isValid=!t,this.clearFieldStyle(r),this.clearFieldLabel(r),this.renderFieldError(r,n),0===s&&this.globalConfig.focusInvalidField&&setTimeout((()=>o.elem.focus()),0)}))}showErrors(e){if("object"!=typeof e)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(e,!0)}showSuccessLabels(e){if("object"!=typeof e)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(e,!1)}renderFieldError(e,t){var i,s,n,r,o,a;const l=this.fields[e];if(void 0===l.isValid)return;if(l.isValid){if(!l.asyncCheckPending){const n=this.createSuccessLabelElem(e,void 0!==t?t:l.successMessage,l.config);n&&this.renderFieldLabel(l.elem,n,null==(i=l.config)?void 0:i.errorsContainer,!0),l.elem.classList.add(...f((null==(s=l.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}this.isValid=!1,l.elem.classList.add(...f((null==(n=l.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const u=this.createErrorLabelElem(e,void 0!==t?t:l.errorMessage,l.config);this.renderFieldLabel(l.elem,u,null==(r=l.config)?void 0:r.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(l.elem,u,null==(a=null==(o=l.config)?void 0:o.tooltip)?void 0:a.position))}renderGroupError(e){var t,i,s,n;const r=this.groupFields[e];if(void 0===r.isValid)return;if(r.isValid){r.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=r.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle),e.classList.add(...f((null==(i=r.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const i=this.createSuccessLabelElem(e,r.successMessage,r.config);return void(i&&this.renderGroupLabel(r.groupElem,i,null==(t=r.config)?void 0:t.errorsContainer,!0))}this.isValid=!1,r.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=r.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle),e.classList.add(...f((null==(i=r.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const o=this.createErrorLabelElem(e,r.errorMessage,r.config);this.renderGroupLabel(r.groupElem,o,null==(i=r.config)?void 0:i.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(r.groupElem,o,null==(n=null==(s=r.config)?void 0:s.tooltip)?void 0:n.position))}renderErrors(e=!1){if(this.isSubmitted||e||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const e in this.groupFields)this.renderGroupError(e);for(const e in this.fields)this.renderFieldError(e)}}destroy(){this.eventListeners.forEach((e=>{this.removeListener(e.type,e.elem,e.func)})),Object.keys(this.customStyleTags).forEach((e=>{this.customStyleTags[e].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((e=>{const t=this.getFieldSelectorByKey(e);t&&this.addField(t,[...this.fields[e].rules],this.fields[e].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(e){"string"==typeof e||void 0===e?(this.currentLocale=e,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(e){return this.onSuccessCallback=e,this}onFail(e){return this.onFailCallback=e,this}}},
vendor: 21,640 bytes, line 2
2"./node_modules/m3u8-parser/dist/m3u8-parser.es.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{LineStream:()=>o,ParseStream:()=>d,Parser:()=>p});var s=i("./node_modules/m3u8-parser/node_modules/@videojs/vhs-utils/es/stream.js"),n=i("./node_modules/@babel/runtime/helpers/esm/extends.js"),r=i("./node_modules/m3u8-parser/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js");class o extends s.default{constructor(){super(),this.buffer=""}push(e){let 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)}}const a=String.fromCharCode(9),l=function(e){const 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){const t={};if(!e)return t;const i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let s,n=i.length;for(;n--;)""!==i[n]&&(s=/([^=]*)=(.*)/.exec(i[n]).slice(1),s[0]=s[0].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^['"](.*)['"]$/g,"$1"),t[s[0]]=s[1]);return t};class d extends s.default{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,i;if(0===(e=e.trim()).length)return;if("#"!==e[0])return void this.trigger("data",{type:"uri",uri:e});this.tagMappers.reduce(((t,i)=>{const s=i(e);return s===e?t:t.concat([s])}),[e]).forEach((e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),void this.trigger("data",i);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),void this.trigger("data",i);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return i=(0,n.default)(l(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",i);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(i={type:"tag",tagType:"map"},t[1]){const e=u(t[1]);e.URI&&(i.uri=e.URI),e.BYTERANGE&&(i.byterange=l(e.BYTERANGE))}this.trigger("data",i)}else if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t){if(i={type:"tag",tagType:"stream-inf"},t[1]){if(i.attributes=u(t[1]),i.attributes.RESOLUTION){const e=i.attributes.RESOLUTION.split("x"),t={};e[0]&&(t.width=parseInt(e[0],10)),e[1]&&(t.height=parseInt(e[1],10)),i.attributes.RESOLUTION=t}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))}this.trigger("data",i)}else{if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=u(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return i={type:"tag",tagType:"program-date-time"},t[1]&&(i.dateTimeString=t[1],i.dateTimeObject=new Date(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)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 this.trigger("data",i);if(t=/^#EXT-X-START:(.*)$/.exec(e),t)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 this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-out-cont"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-out"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-CUE-IN:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-in"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"skip"},i.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(a)),void this.trigger("data",i);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part"},i.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=l(i.attributes.BYTERANGE)),void this.trigger("data",i);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"server-control"},i.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 this.trigger("data",i);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part-inf"},i.attributes=u(t[1]),["PART-TARGET"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))})),void this.trigger("data",i);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"preload-hint"},i.attributes=u(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(i.attributes.hasOwnProperty(e)){i.attributes[e]=parseInt(i.attributes[e],10);const t="BYTERANGE-LENGTH"===e?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[t]=i.attributes[e],delete i.attributes[e]}})),void this.trigger("data",i);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"rendition-report"},i.attributes=u(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseInt(i.attributes[e],10))})),void this.trigger("data",i);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){i={type:"tag",tagType:"daterange"},i.attributes=u(t[1]),["ID","CLASS"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=String(i.attributes[e]))})),["START-DATE","END-DATE"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=new Date(i.attributes[e]))})),["DURATION","PLANNED-DURATION"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))})),["END-ON-NEXT"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/i.test(i.attributes[e]))})),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=i.attributes[e].toString(16))}));const e=/^X-([A-Z]+-)+[A-Z]+$/;for(const t in i.attributes){if(!e.test(t))continue;const s=/[0-9A-Fa-f]{6}/g.test(i.attributes[t]),n=/^\d+(\.\d+)?$/.test(i.attributes[t]);i.attributes[t]=s?i.attributes[t].toString(16):n?parseFloat(i.attributes[t]):String(i.attributes[t])}this.trigger("data",i)}else if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t)this.trigger("data",{type:"tag",tagType:"independent-segments"});else{if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t)return i={type:"tag",tagType:"content-steering"},i.attributes=u(t[1]),void this.trigger("data",i);this.trigger("data",{type:"tag",data:e.slice(4)})}}}}else this.trigger("data",{type:"comment",text:e.slice(1)})}))}addParser({expression:e,customType:t,dataParser:i,segment:s}){"function"!=typeof i&&(i=e=>e),this.customParsers.push((n=>{if(e.exec(n))return this.trigger("data",{type:"custom",data:i(n),customType:t,segment:s}),!0}))}addTagMapper({expression:e,map:t}){this.tagMappers.push((i=>e.test(i)?t(i):i))}}const c=function(e){const t={};return Object.keys(e).forEach((function(i){var s;t[(s=i,s.toLowerCase().replace(/-(\w)/g,(e=>e[1].toUpperCase())))]=e[i]})),t},h=function(e){const{serverControl:t,targetDuration:i,partTargetDuration:s}=e;if(!t)return;const n="#EXT-X-SERVER-CONTROL",r="holdBack",o="partHoldBack",a=i&&3*i,l=s&&2*s;i&&!t.hasOwnProperty(r)&&(t[r]=a,this.trigger("info",{message:`${n} defaulting HOLD-BACK to targetDuration * 3 (${a}).`})),a&&t[r]<a&&(this.trigger("warn",{message:`${n} clamping HOLD-BACK (${t[r]}) to targetDuration * 3 (${a})`}),t[r]=a),s&&!t.hasOwnProperty(o)&&(t[o]=3*s,this.trigger("info",{message:`${n} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[o]}).`})),s&&t[o]<l&&(this.trigger("warn",{message:`${n} clamping PART-HOLD-BACK (${t[o]}) to partTargetDuration * 2 (${l}).`}),t[o]=l)};class p extends s.default{constructor(){super(),this.lineStream=new o,this.parseStream=new d,this.lineStream.pipe(this.parseStream),this.lastProgramDateTime=null;const e=this,t=[];let i,s,a={},l=!1;const u=function(){},p={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let f=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],segments:[]};let m=0,g=0;const _={};this.on("end",(()=>{a.uri||!a.parts&&!a.preloadHints||(!a.map&&i&&(a.map=i),!a.key&&s&&(a.key=s),a.timeline||"number"!=typeof f||(a.timeline=f),this.manifest.preloadSegment=a)})),this.parseStream.on("data",(function(o){let d,y;({tag(){({version(){o.version&&(this.manifest.version=o.version)},"allow-cache"(){this.manifest.allowCache=o.allowed,"allowed"in o||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const e={};"length"in o&&(a.byterange=e,e.length=o.length,"offset"in o||(o.offset=m)),"offset"in o&&(a.byterange=e,e.offset=o.offset),m=e.offset+e.length},endlist(){this.manifest.endList=!0},inf(){"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"})),o.title&&(a.title=o.title),o.duration>0&&(a.duration=o.duration),0===o.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=t},key(){if(o.attributes)if("NONE"!==o.attributes.METHOD)if(o.attributes.URI){if("com.apple.streamingkeydelivery"===o.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:o.attributes});if("com.microsoft.playready"===o.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:o.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===o.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(o.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===o.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==o.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):o.attributes.KEYID&&"0x"===o.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:o.attributes.KEYFORMAT,keyId:o.attributes.KEYID.substring(2)},pssh:(0,r.default)(o.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}o.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),s={method:o.attributes.METHOD||"AES-128",uri:o.attributes.URI},void 0!==o.attributes.IV&&(s.iv=o.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else s=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(o.number)?this.manifest.mediaSequence=o.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+o.number})},"discontinuity-sequence"(){isFinite(o.number)?(this.manifest.discontinuitySequence=o.number,f=o.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+o.number})},"playlist-type"(){/VOD|EVENT/.test(o.playlistType)?this.manifest.playlistType=o.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+o.playlist})},map(){i={},o.uri&&(i.uri=o.uri),o.byterange&&(i.byterange=o.byterange),s&&(i.key=s)},"stream-inf"(){this.manifest.playlists=t,this.manifest.mediaGroups=this.manifest.mediaGroups||p,o.attributes?(a.attributes||(a.attributes={}),(0,n.default)(a.attributes,o.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||p,!(o.attributes&&o.attributes.TYPE&&o.attributes["GROUP-ID"]&&o.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const e=this.manifest.mediaGroups[o.attributes.TYPE];e[o.attributes["GROUP-ID"]]=e[o.attributes["GROUP-ID"]]||{},d=e[o.attributes["GROUP-ID"]],y={default:/yes/i.test(o.attributes.DEFAULT)},y.default?y.autoselect=!0:y.autoselect=/yes/i.test(o.attributes.AUTOSELECT),o.attributes.LANGUAGE&&(y.language=o.attributes.LANGUAGE),o.attributes.URI&&(y.uri=o.attributes.URI),o.attributes["INSTREAM-ID"]&&(y.instreamId=o.attributes["INSTREAM-ID"]),o.attributes.CHARACTERISTICS&&(y.characteristics=o.attributes.CHARACTERISTICS),o.attributes.FORCED&&(y.forced=/yes/i.test(o.attributes.FORCED)),d[o.attributes.NAME]=y},discontinuity(){f+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(t.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=o.dateTimeString,this.manifest.dateTimeObject=o.dateTimeObject),a.dateTimeString=o.dateTimeString,a.dateTimeObject=o.dateTimeObject;const{lastProgramDateTime:e}=this;this.lastProgramDateTime=new Date(o.dateTimeString).getTime(),null===e&&this.manifest.segments.reduceRight(((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime)),this.lastProgramDateTime)},targetduration(){!isFinite(o.duration)||o.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+o.duration}):(this.manifest.targetDuration=o.duration,h.call(this,this.manifest))},start(){o.attributes&&!isNaN(o.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:o.attributes["TIME-OFFSET"],precise:o.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){a.cueOut=o.data},"cue-out-cont"(){a.cueOutCont=o.data},"cue-in"(){a.cueIn=o.data},skip(){this.manifest.skip=c(o.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",o.attributes,["SKIPPED-SEGMENTS"])},part(){l=!0;const e=this.manifest.segments.length,t=c(o.attributes);a.parts=a.parts||[],a.parts.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=g),g=t.byterange.offset+t.byterange.length);const i=a.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${e}`,o.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})}))},"server-control"(){const e=this.manifest.serverControl=c(o.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),h.call(this,this.manifest),e.canSkipDateranges&&!e.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"(){const e=this.manifest.segments.length,t=c(o.attributes),i=t.type&&"PART"===t.type;a.preloadHints=a.preloadHints||[],a.preloadHints.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=i?g:0,i&&(g=t.byterange.offset+t.byterange.length)));const s=a.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${s} for segment #${e}`,o.attributes,["TYPE","URI"]),t.type)for(let i=0;i<a.preloadHints.length-1;i++){const n=a.preloadHints[i];n.type&&(n.type===t.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${s} for segment #${e} has the same TYPE ${t.type} as preload hint #${i}`}))}},"rendition-report"(){const e=c(o.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);const t=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];l&&i.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${t}`,o.attributes,i)},"part-inf"(){this.manifest.partInf=c(o.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",o.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),h.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(c(o.attributes));const e=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${e}`,o.attributes,["ID","START-DATE"]);const t=this.manifest.dateRanges[e];t.endDate&&t.startDate&&new Date(t.endDate)<new Date(t.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),t.duration&&t.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),t.plannedDuration&&t.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const i=!!t.endOnNext;if(i&&!t.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),i&&(t.duration||t.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),t.duration&&t.endDate){const i=t.startDate.getTime()+1e3*t.duration;this.manifest.dateRanges[e].endDate=new Date(i)}if(_[t.id]){for(const e in _[t.id])if(t[e]&&JSON.stringify(_[t.id][e])!==JSON.stringify(t[e])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const e=this.manifest.dateRanges.findIndex((e=>e.id===t.id));this.manifest.dateRanges[e]=(0,n.default)(this.manifest.dateRanges[e],t),_[t.id]=(0,n.default)(_[t.id],t),this.manifest.dateRanges.pop()}else _[t.id]=t},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=c(o.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",o.attributes,["SERVER-URI"])}}[o.tagType]||u).call(e)},uri(){a.uri=o.uri,t.push(a),this.manifest.targetDuration&&!("duration"in a)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),s&&(a.key=s),a.timeline=f,i&&(a.map=i),g=0,null!==this.lastProgramDateTime&&(a.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*a.duration),a={}},comment(){},custom(){o.segment?(a.custom=a.custom||{},a.custom[o.customType]=o.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[o.customType]=o.data)}})[o.type].call(e)}))}warnOnMissingAttributes_(e,t,i){const s=[];i.forEach((function(e){t.hasOwnProperty(e)||s.push(e)})),s.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${s.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}},
vendor: 391 bytes, line 2
2"./node_modules/m3u8-parser/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i("./node_modules/global/window.js"),n=i.n(s),r=function(e){return n().atob?n().atob(e):Buffer.from(e,"base64").toString("binary")};function o(e){for(var t=r(e),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}},
vendor: 802 bytes, line 2
2"./node_modules/m3u8-parser/node_modules/@videojs/vhs-utils/es/stream.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});var s=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,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var n=Array.prototype.slice.call(arguments,1),r=t.length,o=0;o<r;++o)t[o].apply(this,n)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}()},
vendor: 2,881 bytes, line 2
2"./node_modules/masonry-layout/masonry.js":(e,t,i)=>{var s,n,r;window,n=[i("./node_modules/outlayer/outlayer.js"),i("./node_modules/get-size/get-size.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var i=e.create("masonry");i.compatOptions.fitWidth="isFitWidth";var s=i.prototype;return s._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},s.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],i=e&&e.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}var s=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,r=n/s,o=s-n%s;r=Math[o&&o<1?"round":"floor"](r),this.cols=Math.max(r,1)},s.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,i=t(e);this.containerWidth=i&&i.innerWidth},s._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,i=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var s=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,e),n={x:this.columnWidth*s.col,y:s.y},r=s.y+e.size.outerHeight,o=i+s.col,a=s.col;a<o;a++)this.colYs[a]=r;return n},s._getTopColPosition=function(e){var t=this._getTopColGroup(e),i=Math.min.apply(Math,t);return{col:t.indexOf(i),y:i}},s._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],i=this.cols+1-e,s=0;s<i;s++)t[s]=this._getColGroupY(s,e);return t},s._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var i=this.colYs.slice(e,e+t);return Math.max.apply(Math,i)},s._getHorizontalColPosition=function(e,t){var i=this.horizontalColIndex%this.cols;i=e>1&&i+e>this.cols?0:i;var s=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=s?i+e:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,e)}},s._manageStamp=function(e){var i=t(e),s=this._getElementOffset(e),n=this._getOption("originLeft")?s.left:s.right,r=n+i.outerWidth,o=Math.floor(n/this.columnWidth);o=Math.max(0,o);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?s.top:s.bottom)+i.outerHeight,u=o;u<=a;u++)this.colYs[u]=Math.max(l,this.colYs[u])},s._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},s._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},s.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},i})?s.apply(t,n):s)||(e.exports=r)},
2"./src/scss/theme.scss":(e,t,i)=>{"use strict";i.r(t)},
vendor: 20,003 bytes, line 2
2"./node_modules/mpd-parser/dist/mpd-parser.es.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{VERSION:()=>de,addSidxSegmentsToPlaylist:()=>C,generateSidxKey:()=>O,inheritAttributes:()=>le,parse:()=>ce,parseUTCTiming:()=>he,stringToMpdXml:()=>ue,toM3u8:()=>$,toPlaylists:()=>K});var s=i("./node_modules/@videojs/vhs-utils/es/resolve-url.js"),n=i("./node_modules/global/window.js"),r=i.n(n),o=i("./node_modules/@videojs/vhs-utils/es/media-groups.js"),a=i("./node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js"),l=i("./node_modules/@xmldom/xmldom/lib/index.js");const u=e=>!!e&&"object"==typeof e,d=(...e)=>e.reduce(((e,t)=>("object"!=typeof t||Object.keys(t).forEach((i=>{Array.isArray(e[i])&&Array.isArray(t[i])?e[i]=e[i].concat(t[i]):u(e[i])&&u(t[i])?e[i]=d(e[i],t[i]):e[i]=t[i]})),e)),{}),c=e=>Object.keys(e).map((t=>e[t])),h=e=>e.reduce(((e,t)=>e.concat(t)),[]),p=e=>{if(!e.length)return[];const t=[];for(let i=0;i<e.length;i++)t.push(e[i]);return t};var f="INVALID_NUMBER_OF_PERIOD",m="DASH_EMPTY_MANIFEST",g="DASH_INVALID_XML",_="NO_BASE_URL",y="SEGMENT_TIME_UNSPECIFIED",b="UNSUPPORTED_UTC_TIMING_SCHEME";const v=({baseUrl:e="",source:t="",range:i="",indexRange:n=""})=>{const o={uri:t,resolvedUri:(0,s.default)(e||"",t)};if(i||n){const e=(i||n).split("-");let t,s=r().BigInt?r().BigInt(e[0]):parseInt(e[0],10),a=r().BigInt?r().BigInt(e[1]):parseInt(e[1],10);s<Number.MAX_SAFE_INTEGER&&"bigint"==typeof s&&(s=Number(s)),a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),t="bigint"==typeof a||"bigint"==typeof s?r().BigInt(a)-r().BigInt(s)+r().BigInt(1):a-s+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),o.byterange={length:t,offset:s}}return o},T=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),S={static(e){const{duration:t,timescale:i=1,sourceDuration:s,periodDuration:n}=e,r=T(e.endNumber),o=t/i;return"number"==typeof r?{start:0,end:r}:"number"==typeof n?{start:0,end:n/o}:{start:0,end:s/o}},dynamic(e){const{NOW:t,clientOffset:i,availabilityStartTime:s,timescale:n=1,duration:r,periodStart:o=0,minimumUpdatePeriod:a=0,timeShiftBufferDepth:l=1/0}=e,u=T(e.endNumber),d=(t+i)/1e3,c=s+o,h=d+a-c,p=Math.ceil(h*n/r),f=Math.floor((d-c-l)*n/r),m=Math.floor((d-c)*n/r);return{start:Math.max(0,f),end:"number"==typeof u?u:Math.min(p,m)}}},w=e=>{const{type:t,duration:i,timescale:s=1,periodDuration:n,sourceDuration:r}=e,{start:o,end:a}=S[t](e),l=((e,t)=>{const i=[];for(let s=e;s<t;s++)i.push(s);return i})(o,a).map((e=>t=>{const{duration:i,timescale:s=1,periodStart:n,startNumber:r=1}=e;return{number:r+t,duration:i/s,timeline:n,time:t*i}})(e));if("static"===t){const e=l.length-1,t="number"==typeof n?n:r;l[e].duration=t-i/s*e}return l},E=e=>{const{baseUrl:t,initialization:i={},sourceDuration:s,indexRange:n="",periodStart:r,presentationTime:o,number:a=0,duration:l}=e;if(!t)throw new Error(_);const u=v({baseUrl:t,source:i.sourceURL,range:i.range}),d=v({baseUrl:t,source:t,indexRange:n});if(d.map=u,l){const t=w(e);t.length&&(d.duration=t[0].duration,d.timeline=t[0].timeline)}else s&&(d.duration=s,d.timeline=r);return d.presentationTime=o||r,d.number=a,[d]},C=(e,t,i)=>{const s=e.sidx.map?e.sidx.map:null,n=e.sidx.duration,o=e.timeline||0,a=e.sidx.byterange,l=a.offset+a.length,u=t.timescale,d=t.references.filter((e=>1!==e.referenceType)),c=[],h=e.endList?"static":"dynamic",p=e.sidx.timeline;let f,m=p,g=e.mediaSequence||0;f="bigint"==typeof t.firstOffset?r().BigInt(l)+t.firstOffset:l+t.firstOffset;for(let e=0;e<d.length;e++){const a=t.references[e],l=a.referencedSize,d=a.subsegmentDuration;let _;_="bigint"==typeof f?f+r().BigInt(l)-r().BigInt(1):f+l-1;const y=E({baseUrl:i,timescale:u,timeline:o,periodStart:p,presentationTime:m,number:g,duration:d,sourceDuration:n,indexRange:`${f}-${_}`,type:h})[0];s&&(y.map=s),c.push(y),f+="bigint"==typeof f?r().BigInt(l):l,m+=d/u,g++}return e.segments=c,e},k=["AUDIO","SUBTITLES"],x=1/60,I=e=>{return(t=e,i=({timeline:e})=>e,c(t.reduce(((e,t)=>(t.forEach((t=>{e[i(t)]=t})),e)),{}))).sort(((e,t)=>e.timeline>t.timeline?1:-1));var t,i},A=e=>{let t=[];return(0,o.forEachMediaGroup)(e,k,((e,i,s,n)=>{t=t.concat(e.playlists||[])})),t},L=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach(((t,i)=>{t.number=e.mediaSequence+i}))},P=({oldManifest:e,newManifest:t})=>{const i=e.playlists.concat(A(e)),s=t.playlists.concat(A(t));return t.timelineStarts=I([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:i})=>{t.forEach((t=>{t.discontinuitySequence=i.findIndex((function({timeline:e}){return e===t.timeline}));const s=((e,t)=>{for(let i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null})(e,t.attributes.NAME);if(!s)return;if(t.sidx)return;const n=t.segments[0],r=s.segments.findIndex((function(e){return Math.abs(e.presentationTime-n.presentationTime)<x}));if(-1===r)return L({playlist:t,mediaSequence:s.mediaSequence+s.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!s.segments.length&&t.timeline>s.timeline||s.segments.length&&t.timeline>s.segments[s.segments.length-1].timeline)&&t.discontinuitySequence--);s.segments[r].discontinuity&&!n.discontinuity&&(n.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),L({playlist:t,mediaSequence:s.segments[r].number})}))})({oldPlaylists:i,newPlaylists:s,timelineStarts:t.timelineStarts}),t},O=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?r().BigInt(e.offset)+r().BigInt(e.length)-r().BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),j=e=>{const t=e.reduce((function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e}),{});let i=[];return Object.values(t).forEach((e=>{const t=c(e.reduce(((e,t)=>{const i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[i].segments.push(...t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{}));i=i.concat(t)})),i.map((e=>{var t,i;return e.discontinuityStarts=(t=e.segments||[],i="discontinuity",t.reduce(((e,t,s)=>(t[i]&&e.push(s),e)),[])),e}))},D=(e,t)=>{const i=O(e.sidx),s=i&&t[i]&&t[i].sidx;return s&&C(e,s,e.sidx.resolvedUri),e},M=(e,t={})=>{if(!Object.keys(t).length)return e;for(const i in e)e[i]=D(e[i],t);return e},N=({attributes:e,segments:t,sidx:i,discontinuityStarts:s})=>{const n={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:s,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(n.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(n.contentProtection=e.contentProtection),e.serviceLocation&&(n.attributes.serviceLocation=e.serviceLocation),i&&(n.sidx=i),n},R=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,F=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,U=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,B=e=>e?Object.keys(e).reduce(((t,i)=>{const s=e[i];return t.concat(s.playlists)}),[]):[],$=({dashPlaylists:e,locations:t,contentSteering:i,sidxMapping:s={},previousManifest:n,eventStream:r})=>{if(!e.length)return{};const{sourceDuration:o,type:a,suggestedPresentationDelay:l,minimumUpdatePeriod:u}=e[0].attributes,d=j(e.filter(R)).map(N),c=j(e.filter(F)),h=j(e.filter(U)),p=e.map((e=>e.attributes.captionServices)).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:o,playlists:M(d,s)};u>=0&&(f.minimumUpdatePeriod=1e3*u),t&&(f.locations=t),i&&(f.contentSteering=i),"dynamic"===a&&(f.suggestedPresentationDelay=l),r&&r.length>0&&(f.eventStream=r);const m=0===f.playlists.length,g=c.length?((e,t={},i=!1)=>{let s;const n=e.reduce(((e,n)=>{const r=n.attributes.role&&n.attributes.role.value||"",o=n.attributes.lang||"";let a=n.attributes.label||"main";if(o&&!n.attributes.label){const e=r?` (${r})`:"";a=`${n.attributes.lang}${e}`}e[a]||(e[a]={language:o,autoselect:!0,default:"main"===r,playlists:[],uri:""});const l=D((({attributes:e,segments:t,sidx:i,mediaSequence:s,discontinuitySequence:n,discontinuityStarts:r},o)=>{const a={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:n,discontinuityStarts:r,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(a.contentProtection=e.contentProtection),e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),i&&(a.sidx=i),o&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a})(n,i),t);return e[a].playlists.push(l),void 0===s&&"main"===r&&(s=n,s.default=!0),e}),{});s||(n[Object.keys(n)[0]].default=!0);return n})(c,s,m):null,_=h.length?((e,t={})=>e.reduce(((e,i)=>{const s=i.attributes.label||i.attributes.lang||"text";return e[s]||(e[s]={language:s,default:!1,autoselect:!1,playlists:[],uri:""}),e[s].playlists.push(D((({attributes:e,segments:t,mediaSequence:i,discontinuityStarts:s,discontinuitySequence:n})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const r={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(r.CODECS=e.codecs);const o={attributes:r,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:s,discontinuitySequence:n,mediaSequence:i,segments:t};return e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),o})(i),t)),e}),{}))(h,s):null,y=d.concat(B(g),B(_)),b=y.map((({timelineStarts:e})=>e));var v,T;return f.timelineStarts=I(b),v=y,T=f.timelineStarts,v.forEach((e=>{e.mediaSequence=0,e.discontinuitySequence=T.findIndex((function({timeline:t}){return t===e.timeline})),e.segments&&e.segments.forEach(((e,t)=>{e.number=t}))})),g&&(f.mediaGroups.AUDIO.audio=g),_&&(f.mediaGroups.SUBTITLES.subs=_),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=p.reduce(((e,t)=>t?(t.forEach((t=>{const{channel:i,language:s}=t;e[s]={autoselect:!1,default:!1,instreamId:i,language:s},t.hasOwnProperty("aspectRatio")&&(e[s].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[s].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[s]["3D"]=t["3D"])})),e):e),{})),n?P({oldManifest:n,newManifest:f}):f},q=(e,t,i)=>{const{NOW:s,clientOffset:n,availabilityStartTime:r,timescale:o=1,periodStart:a=0,minimumUpdatePeriod:l=0}=e,u=(s+n)/1e3+l-(r+a);return Math.ceil((u*o-t)/i)},V=(e,t)=>{const{type:i,minimumUpdatePeriod:s=0,media:n="",sourceDuration:r,timescale:o=1,startNumber:a=1,periodStart:l}=e,u=[];let d=-1;for(let c=0;c<t.length;c++){const h=t[c],p=h.d,f=h.r||0,m=h.t||0;let g;if(d<0&&(d=m),m&&m>d&&(d=m),f<0){const a=c+1;g=a===t.length?"dynamic"===i&&s>0&&n.indexOf("$Number$")>0?q(e,d,p):(r*o-d)/p:(t[a].t-d)/p}else g=f+1;const _=a+u.length+g;let y=a+u.length;for(;y<_;)u.push({number:y,duration:p/o,time:d,timeline:l}),d+=p,y++}return u},H=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,z=(e,t)=>e.replace(H,(e=>(t,i,s,n)=>{if("$$"===t)return"$";if(void 0===e[i])return t;const r=""+e[i];return"RepresentationID"===i?r:(n=s?parseInt(n,10):1,r.length>=n?r:`${new Array(n-r.length+1).join("0")}${r}`)})(t)),W=(e,t)=>{const i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:n={sourceURL:"",range:""}}=e,r=v({baseUrl:e.baseUrl,source:z(n.sourceURL,i),range:n.range}),o=((e,t)=>e.duration||t?e.duration?w(e):V(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t);return o.map((t=>{i.Number=t.number,i.Time=t.time;const n=z(e.media||"",i),o=e.timescale||1,a=e.presentationTimeOffset||0,l=e.periodStart+(t.time-a)/o;return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:(0,s.default)(e.baseUrl||"",n),map:r,number:t.number,presentationTime:l}}))},G=(e,t)=>{const{duration:i,segmentUrls:s=[],periodStart:n}=e;if(!i&&!t||i&&t)throw new Error(y);const r=s.map((t=>((e,t)=>{const{baseUrl:i,initialization:s={}}=e,n=v({baseUrl:i,source:s.sourceURL,range:s.range}),r=v({baseUrl:i,source:t.media,range:t.mediaRange});return r.map=n,r})(e,t)));let o;i&&(o=w(e)),t&&(o=V(e,t));return o.map(((t,i)=>{if(r[i]){const s=r[i],o=e.timescale||1,a=e.presentationTimeOffset||0;return s.timeline=t.timeline,s.duration=t.duration,s.number=t.number,s.presentationTime=n+(t.time-a)/o,s}})).filter((e=>e))},X=({attributes:e,segmentInfo:t})=>{let i,s;t.template?(s=W,i=d(e,t.template)):t.base?(s=E,i=d(e,t.base)):t.list&&(s=G,i=d(e,t.list));const n={attributes:e};if(!s)return n;const r=s(i,t.segmentTimeline);if(i.duration){const{duration:e,timescale:t=1}=i;i.duration=e/t}else r.length?i.duration=r.reduce(((e,t)=>Math.max(e,Math.ceil(t.duration))),0):i.duration=0;return n.attributes=i,n.segments=r,t.base&&i.indexRange&&(n.sidx=r[0],n.segments=[]),n},K=e=>e.map(X),Y=(e,t)=>p(e.childNodes).filter((({tagName:e})=>e===t)),Q=e=>e.textContent.trim(),J=e=>{const t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;const[i,s,n,r,o,a]=t.slice(1);return 31536e3*parseFloat(i||0)+2592e3*parseFloat(s||0)+86400*parseFloat(n||0)+3600*parseFloat(r||0)+60*parseFloat(o||0)+parseFloat(a||0)},Z={mediaPresentationDuration:e=>J(e),availabilityStartTime(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:e=>J(e),suggestedPresentationDelay:e=>J(e),type:e=>e,timeShiftBufferDepth:e=>J(e),start:e=>J(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>(e=>parseFloat(e.split("/").reduce(((e,t)=>e/t))))(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){const t=parseInt(e,10);return isNaN(t)?J(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},ee=e=>e&&e.attributes?p(e.attributes).reduce(((e,t)=>{const i=Z[t.name]||Z.DEFAULT;return e[t.name]=i(t.value),e}),{}):{},te={"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","urn:mpeg:dash:mp4protection:2011":"mp4protection"},ie=(e,t)=>t.length?h(e.map((function(e){return t.map((function(t){const i=Q(t),n=(0,s.default)(e.baseUrl,i),r=d(ee(t),{baseUrl:n});return n!==i&&!r.serviceLocation&&e.serviceLocation&&(r.serviceLocation=e.serviceLocation),r}))}))):e,se=e=>{const t=Y(e,"SegmentTemplate")[0],i=Y(e,"SegmentList")[0],s=i&&Y(i,"SegmentURL").map((e=>d({tag:"SegmentURL"},ee(e)))),n=Y(e,"SegmentBase")[0],r=i||t,o=r&&Y(r,"SegmentTimeline")[0],a=i||n||t,l=a&&Y(a,"Initialization")[0],u=t&&ee(t);u&&l?u.initialization=l&&ee(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:o&&Y(o,"S").map((e=>ee(e))),list:i&&d(ee(i),{segmentUrls:s,initialization:ee(l)}),base:n&&d(ee(n),{initialization:ee(l)})};return Object.keys(c).forEach((e=>{c[e]||delete c[e]})),c},ne=e=>h(Y(e.node,"EventStream").map((t=>{const i=ee(t),s=i.schemeIdUri;return Y(t,"Event").map((t=>{const n=ee(t),r=n.presentationTime||0,o=i.timescale||1,a=n.duration||0,l=r/o+e.attributes.start;return{schemeIdUri:s,value:i.value,id:n.id,start:l,end:l+a/o,messageData:Q(t)||n.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}}))}))),re=(e,t,i)=>s=>{const n=ee(s),r=ie(t,Y(s,"BaseURL")),o=Y(s,"Role")[0],l={role:ee(o)};let u=d(e,n,l);const c=Y(s,"Accessibility")[0],p=(e=>{if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri)return("string"!=typeof e.value?[]:e.value.split(";")).map((e=>{let t,i;return i=e,/^CC\d=/.test(e)?[t,i]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:i}}));if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri)return("string"!=typeof e.value?[]:e.value.split(";")).map((e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[i,s=""]=e.split("=");t.channel=i,t.language=e,s.split(",").forEach((e=>{const[i,s]=e.split(":");"lang"===i?t.language=s:"er"===i?t.easyReader=Number(s):"war"===i?t.aspectRatio=Number(s):"3D"===i&&(t["3D"]=Number(s))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}))})(ee(c));p&&(u=d(u,{captionServices:p}));const f=Y(s,"Label")[0];if(f&&f.childNodes.length){const e=f.childNodes[0].nodeValue.trim();u=d(u,{label:e})}const m=Y(s,"ContentProtection").reduce(((e,t)=>{const i=ee(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const s=te[i.schemeIdUri];if(s){e[s]={attributes:i};const n=Y(t,"cenc:pssh")[0];if(n){const t=Q(n);e[s].pssh=t&&(0,a.default)(t)}}return e}),{});Object.keys(m).length&&(u=d(u,{contentProtection:m}));const g=se(s),_=Y(s,"Representation"),y=d(i,g);return h(_.map(((e,t,i)=>s=>{const n=Y(s,"BaseURL"),r=ie(t,n),o=d(e,ee(s)),a=se(s);return r.map((e=>({segmentInfo:d(i,a),attributes:d(o,e)})))})(u,r,y)))},oe=(e,t)=>(i,s)=>{const n=ie(t,Y(i.node,"BaseURL")),r=d(e,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(r.periodDuration=i.attributes.duration);const o=Y(i.node,"AdaptationSet"),a=se(i.node);return h(o.map(re(r,n,a)))},ae=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const i=d({serverURL:Q(e[0])},ee(e[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i},le=(e,t={})=>{const{manifestUri:i="",NOW:s=Date.now(),clientOffset:n=0,eventHandler:r=function(){}}=t,o=Y(e,"Period");if(!o.length)throw new Error(f);const a=Y(e,"Location"),l=ee(e),u=ie([{baseUrl:i}],Y(e,"BaseURL")),d=Y(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=s,l.clientOffset=n,a.length&&(l.locations=a.map(Q));const c=[];return o.forEach(((e,t)=>{const i=ee(e),s=c[t-1];i.start=(({attributes:e,priorPeriodAttributes:t,mpdType:i})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==i?null:0)({attributes:i,priorPeriodAttributes:s?s.attributes:null,mpdType:l.type}),c.push({node:e,attributes:i})})),{locations:l.locations,contentSteeringInfo:ae(d,r),representationInfo:h(c.map(oe(l,u))),eventStream:h(c.map(ne))}},ue=e=>{if(""===e)throw new Error(m);const t=new l.DOMParser;let i,s;try{i=t.parseFromString(e,"application/xml"),s=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(e){}if(!s||s&&s.getElementsByTagName("parsererror").length>0)throw new Error(g);return s},de="1.3.0",ce=(e,t={})=>{const i=le(ue(e),t),s=K(i.representationInfo);return $({dashPlaylists:s,locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:i.eventStream})},he=e=>(e=>{const t=Y(e,"UTCTiming")[0];if(!t)return null;const i=ee(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(b)}return i})(ue(e))},
vendor: 785 bytes, line 2
2"./node_modules/mux.js/lib/tools/parse-sidx.js":(e,t,i)=>{var s=i("./node_modules/mux.js/lib/utils/numbers.js").getUint64;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)},n=12;0===i.version?(i.earliestPresentationTime=t.getUint32(n),i.firstOffset=t.getUint32(n+4),n+=8):(i.earliestPresentationTime=s(e.subarray(n)),i.firstOffset=s(e.subarray(n+8)),n+=16),n+=2;var r=t.getUint16(n);for(n+=2;r>0;n+=12,r--)i.references.push({referenceType:(128&e[n])>>>7,referencedSize:2147483647&t.getUint32(n),subsegmentDuration:t.getUint32(n+4),startsWithSap:!!(128&e[n+8]),sapType:(112&e[n+8])>>>4,sapDeltaTime:268435455&t.getUint32(n+8)});return i}},
vendor: 452 bytes, line 2
2"./node_modules/mux.js/lib/utils/clock.js":e=>{var t,i,s,n,r,o,a,l=9e4;t=function(e){return e*l},i=function(e,t){return e*t},s=function(e){return e/l},n=function(e,t){return e/t},r=function(e,i){return t(n(e,i))},o=function(e,t){return i(s(e),t)},a=function(e,t,i){return s(i?e:e-t)},e.exports={ONE_SECOND_IN_TS:l,secondsToVideoTs:t,secondsToAudioTs:i,videoTsToSeconds:s,audioTsToSeconds:n,audioTsToVideoTs:r,videoTsToAudioTs:o,metadataTsToSeconds:a}},
vendor: 288 bytes, line 2
2"./node_modules/mux.js/lib/utils/numbers.js":e=>{var t=Math.pow(2,32);e.exports={getUint64:function(e){var i,s=new DataView(e.buffer,e.byteOffset,e.byteLength);return s.getBigUint64?(i=s.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(i):i:s.getUint32(0)*t+s.getUint32(4)},MAX_UINT32:t}},
vendor: 6,008 bytes, line 2
2"./node_modules/outlayer/item.js":(e,t,i)=>{var s,n,r;window,n=[i("./node_modules/ev-emitter/ev-emitter.js"),i("./node_modules/get-size/get-size.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";function i(e){for(var t in e)return!1;return!0}var s=document.documentElement.style,n="string"==typeof s.transition?"transition":"WebkitTransition",r="string"==typeof s.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function l(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var u=l.prototype=Object.create(e.prototype);function d(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}u.constructor=l,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.getSize=function(){this.size=t(this.element)},u.css=function(e){var t=this.element.style;for(var i in e)t[a[i]||i]=e[i]},u.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),s=e[t?"left":"right"],n=e[i?"top":"bottom"],r=parseFloat(s),o=parseFloat(n),a=this.layout.size;-1!=s.indexOf("%")&&(r=r/100*a.width),-1!=n.indexOf("%")&&(o=o/100*a.height),r=isNaN(r)?0:r,o=isNaN(o)?0:o,r-=t?a.paddingLeft:a.paddingRight,o-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=o},u.layoutPosition=function(){var e=this.layout.size,t={},i=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",r=i?"left":"right",o=i?"right":"left",a=this.position.x+e[n];t[r]=this.getXValue(a),t[o]="";var l=s?"paddingTop":"paddingBottom",u=s?"top":"bottom",d=s?"bottom":"top",c=this.position.y+e[l];t[u]=this.getYValue(c),t[d]="",this.css(t),this.emitEvent("layout",[this])},u.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},u.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},u._transitionTo=function(e,t){this.getPosition();var i=this.position.x,s=this.position.y,n=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!n||this.isTransitioning){var r=e-i,o=t-s,a={};a.transform=this.getTranslate(r,o),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},u.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},u.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},u._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},u.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var i in e.onTransitionEnd)t.onEnd[i]=e.onTransitionEnd[i];for(i in e.to)t.ingProperties[i]=!0,e.isCleaning&&(t.clean[i]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var c="opacity,"+d(r);u.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:c,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1)}},u.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},u.onotransitionend=function(e){this.ontransitionend(e)};var h={"-webkit-transform":"transform"};u.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,s=h[e.propertyName]||e.propertyName;delete t.ingProperties[s],i(t.ingProperties)&&this.disableTransition(),s in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[s]),s in t.onEnd&&(t.onEnd[s].call(this),delete t.onEnd[s]),this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},u._removeStyles=function(e){var t={};for(var i in e)t[i]="";this.css(t)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(p)},u.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var i in t)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?s.apply(t,n):s)||(e.exports=r)},
vendor: 8,098 bytes, line 2
2"./node_modules/outlayer/outlayer.js":(e,t,i)=>{var s,n;!function(r,o){"use strict";s=[i("./node_modules/ev-emitter/ev-emitter.js"),i("./node_modules/get-size/get-size.js"),i("./node_modules/fizzy-ui-utils/utils.js"),i("./node_modules/outlayer/item.js")],n=function(e,t,i,s){return function(e,t,i,s,n){var r=e.console,o=e.jQuery,a=function(){},l=0,u={};function d(e,t){var i=s.getQueryElement(e);if(i){this.element=i,o&&(this.$element=o(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(t);var n=++l;this.element.outlayerGUID=n,u[n]=this,this._create(),this._getOption("initLayout")&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||e))}d.namespace="outlayer",d.Item=n,d.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=d.prototype;function h(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}s.extend(c,t.prototype),c.option=function(e){s.extend(this.options,e)},c._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},d.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(e){for(var t=this._filterFindItemElements(e),i=this.constructor.Item,s=[],n=0;n<t.length;n++){var r=new i(t[n],this);s.push(r)}return s},c._filterFindItemElements=function(e){return s.filterFindElements(e,this.options.itemSelector)},c.getItemElements=function(){return this.items.map((function(e){return e.element}))},c.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(e,t){var s,n=this.options[e];n?("string"==typeof n?s=this.element.querySelector(n):n instanceof HTMLElement&&(s=n),this[e]=s?i(s)[t]:n):this[e]=0},c.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},c._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},c._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var i=[];e.forEach((function(e){var s=this._getItemLayoutPosition(e);s.item=e,s.isInstant=t||e.isLayoutInstant,i.push(s)}),this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},c.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=f(e),this.stagger;this.stagger=0},c._positionItem=function(e,t,i,s,n){s?e.goTo(t,i):(e.stagger(n*this.stagger),e.moveTo(t,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=a,c._setContainerMeasure=function(e,t){if(void 0!==e){var i=this.size;i.isBorderBox&&(e+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},c._emitCompleteOnItems=function(e,t){var i=this;function s(){i.dispatchEvent(e+"Complete",null,[t])}var n=t.length;if(t&&n){var r=0;t.forEach((function(t){t.once(e,o)}))}else s();function o(){++r==n&&s()}},c.dispatchEvent=function(e,t,i){var s=t?[t].concat(i):i;if(this.emitEvent(e,s),o)if(this.$element=this.$element||o(this.element),t){var n=o.Event(t);n.type=e,this.$element.trigger(n,i)}else this.$element.trigger(e,i)},c.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},c.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},c.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},c.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){s.removeFrom(this.stamps,e),this.unignore(e)}),this)},c._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=s.makeArray(e)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},c._manageStamp=a,c._getElementOffset=function(e){var t=e.getBoundingClientRect(),s=this._boundingRect,n=i(e);return{left:t.left-s.left-n.marginLeft,top:t.top-s.top-n.marginTop,right:s.right-t.right-n.marginRight,bottom:s.bottom-t.bottom-n.marginBottom}},c.handleEvent=s.handleEvent,c.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},s.debounceMethod(d,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var e=i(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},c.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},c.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},c.prepended=function(e){var t=this._itemize(e);if(t.length){var i=this.items.slice(0);this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i)}},c.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,i){e.stagger(i*t),e.reveal()}))}},c.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,i){e.stagger(i*t),e.hide()}))}},c.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},c.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},c.getItem=function(e){for(var t=0;t<this.items.length;t++){var i=this.items[t];if(i.element==e)return i}},c.getItems=function(e){e=s.makeArray(e);var t=[];return e.forEach((function(e){var i=this.getItem(e);i&&t.push(i)}),this),t},c.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),s.removeFrom(this.items,e)}),this)},c.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},d.data=function(e){var t=(e=s.getQueryElement(e))&&e.outlayerGUID;return t&&u[t]},d.create=function(e,t){var i=h(d);return i.defaults=s.extend({},d.defaults),s.extend(i.defaults,t),i.compatOptions=s.extend({},d.compatOptions),i.namespace=e,i.data=d.data,i.Item=h(n),s.htmlInit(i,e),o&&o.bridget&&o.bridget(e,i),i};var p={ms:1,s:1e3};function f(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),i=t&&t[1],s=t&&t[2];return i.length?(i=parseFloat(i))*(p[s]||1):0}return d.Item=n,d}(r,e,t,i,s)}.apply(t,s),void 0===n||(e.exports=n)}(window)},
vendor: 42,051 bytes, line 2
2"./node_modules/progressbar.js/dist/progressbar.js":(e,t,i)=>{var s;e.exports=function(){function e(t,i,s){function n(o,a){if(!i[o]){if(!t[o]){if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=i[o]={exports:{}};t[o][0].call(u.exports,(function(e){return n(t[o][1][e]||e)}),u,u.exports,e,t,i,s)}return i[o].exports}for(var r=void 0,o=0;o<s.length;o++)n(s[o]);return n}return e}()({1:[function(e,t,s){(function(e){(function(){var i=200,n="__lodash_hash_undefined__",r=800,o=16,a=9007199254740991,l="[object Arguments]",u="[object Array]",d="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",_="[object Number]",y="[object Null]",b="[object Object]",v="[object Proxy]",T="[object RegExp]",S="[object Set]",w="[object String]",E="[object Undefined]",C="[object WeakMap]",k="[object ArrayBuffer]",x="[object DataView]",I="[object Float64Array]",A="[object Int8Array]",L="[object Int16Array]",P="[object Int32Array]",O="[object Uint8Array]",j="[object Uint8ClampedArray]",D="[object Uint16Array]",M="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,U={};U["[object Float32Array]"]=U[I]=U[A]=U[L]=U[P]=U[O]=U[j]=U[D]=U[M]=!0,U[l]=U[u]=U[k]=U[c]=U[x]=U[h]=U[p]=U[f]=U[g]=U[_]=U[b]=U[T]=U[S]=U[w]=U[C]=!1;var B="object"==typeof e&&e&&e.Object===Object&&e,$="object"==typeof self&&self&&self.Object===Object&&self,q=B||$||Function("return this")(),V="object"==typeof s&&s&&!s.nodeType&&s,H=V&&"object"==typeof t&&t&&!t.nodeType&&t,z=H&&H.exports===V,W=z&&B.process,G=function(){try{var e=H&&H.require&&H.require("util").types;return e||W&&W.binding&&W.binding("util")}catch(e){}}(),X=G&&G.isTypedArray;function K(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Y(e,t){for(var i=-1,s=Array(e);++i<e;)s[i]=t(i);return s}function Q(e){return function(t){return e(t)}}function J(e,t){return null==e?void 0:e[t]}function Z(e,t){return function(i){return e(t(i))}}var ee,te=Array.prototype,ie=Function.prototype,se=Object.prototype,ne=q["__core-js_shared__"],re=ie.toString,oe=se.hasOwnProperty,ae=(ee=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",le=se.toString,ue=re.call(Object),de=RegExp("^"+re.call(oe).replace(N,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=z?q.Buffer:void 0,he=q.Symbol,pe=q.Uint8Array,fe=ce?ce.allocUnsafe:void 0,me=Z(Object.getPrototypeOf,Object),ge=Object.create,_e=se.propertyIsEnumerable,ye=te.splice,be=he?he.toStringTag:void 0,ve=function(){try{var e=bt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Te=ce?ce.isBuffer:void 0,Se=Math.max,we=Date.now,Ee=bt(q,"Map"),Ce=bt(Object,"create"),ke=function(){function e(){}return function(t){if(!qt(t))return{};if(ge)return ge(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();function xe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var s=e[t];this.set(s[0],s[1])}}function Ie(){this.__data__=Ce?Ce(null):{},this.size=0}function Ae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Le(e){var t=this.__data__;if(Ce){var i=t[e];return i===n?void 0:i}return oe.call(t,e)?t[e]:void 0}function Pe(e){var t=this.__data__;return Ce?void 0!==t[e]:oe.call(t,e)}function Oe(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ce&&void 0===t?n:t,this}function je(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var s=e[t];this.set(s[0],s[1])}}function De(){this.__data__=[],this.size=0}function Me(e){var t=this.__data__,i=et(t,e);return!(i<0||(i==t.length-1?t.pop():ye.call(t,i,1),--this.size,0))}function Ne(e){var t=this.__data__,i=et(t,e);return i<0?void 0:t[i][1]}function Re(e){return et(this.__data__,e)>-1}function Fe(e,t){var i=this.__data__,s=et(i,e);return s<0?(++this.size,i.push([e,t])):i[s][1]=t,this}function Ue(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var s=e[t];this.set(s[0],s[1])}}function Be(){this.size=0,this.__data__={hash:new xe,map:new(Ee||je),string:new xe}}function $e(e){var t=yt(this,e).delete(e);return this.size-=t?1:0,t}function qe(e){return yt(this,e).get(e)}function Ve(e){return yt(this,e).has(e)}function He(e,t){var i=yt(this,e),s=i.size;return i.set(e,t),this.size+=i.size==s?0:1,this}function ze(e){var t=this.__data__=new je(e);this.size=t.size}function We(){this.__data__=new je,this.size=0}function Ge(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function Xe(e){return this.__data__.get(e)}function Ke(e){return this.__data__.has(e)}function Ye(e,t){var s=this.__data__;if(s instanceof je){var n=s.__data__;if(!Ee||n.length<i-1)return n.push([e,t]),this.size=++s.size,this;s=this.__data__=new Ue(n)}return s.set(e,t),this.size=s.size,this}function Qe(e,t){var i=Nt(e),s=!i&&Mt(e),n=!i&&!s&&Ut(e),r=!i&&!s&&!n&&zt(e),o=i||s||n||r,a=o?Y(e.length,String):[],l=a.length;for(var u in e)!t&&!oe.call(e,u)||o&&("length"==u||n&&("offset"==u||"parent"==u)||r&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||St(u,l))||a.push(u);return a}function Je(e,t,i){(void 0!==i&&!Dt(e[t],i)||void 0===i&&!(t in e))&&tt(e,t,i)}function Ze(e,t,i){var s=e[t];oe.call(e,t)&&Dt(s,i)&&(void 0!==i||t in e)||tt(e,t,i)}function et(e,t){for(var i=e.length;i--;)if(Dt(e[i][0],t))return i;return-1}function tt(e,t,i){"__proto__"==t&&ve?ve(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}xe.prototype.clear=Ie,xe.prototype.delete=Ae,xe.prototype.get=Le,xe.prototype.has=Pe,xe.prototype.set=Oe,je.prototype.clear=De,je.prototype.delete=Me,je.prototype.get=Ne,je.prototype.has=Re,je.prototype.set=Fe,Ue.prototype.clear=Be,Ue.prototype.delete=$e,Ue.prototype.get=qe,Ue.prototype.has=Ve,Ue.prototype.set=He,ze.prototype.clear=We,ze.prototype.delete=Ge,ze.prototype.get=Xe,ze.prototype.has=Ke,ze.prototype.set=Ye;var it=_t();function st(e){return null==e?void 0===e?E:y:be&&be in Object(e)?vt(e):It(e)}function nt(e){return Vt(e)&&st(e)==l}function rt(e){return!(!qt(e)||Ct(e))&&(Bt(e)?de:R).test(jt(e))}function ot(e){return Vt(e)&&$t(e.length)&&!!U[st(e)]}function at(e){if(!qt(e))return xt(e);var t=kt(e),i=[];for(var s in e)("constructor"!=s||!t&&oe.call(e,s))&&i.push(s);return i}function lt(e,t,i,s,n){e!==t&&it(t,(function(r,o){if(n||(n=new ze),qt(r))ut(e,t,o,i,lt,s,n);else{var a=s?s(Lt(e,o),r,o+"",e,t,n):void 0;void 0===a&&(a=r),Je(e,o,a)}}),Gt)}function ut(e,t,i,s,n,r,o){var a=Lt(e,i),l=Lt(t,i),u=o.get(l);if(u)Je(e,i,u);else{var d=r?r(a,l,i+"",e,t,o):void 0,c=void 0===d;if(c){var h=Nt(l),p=!h&&Ut(l),f=!h&&!p&&zt(l);d=l,h||p||f?Nt(a)?d=a:Ft(a)?d=ft(a):p?(c=!1,d=ct(l,!0)):f?(c=!1,d=pt(l,!0)):d=[]:Ht(l)||Mt(l)?(d=a,Mt(a)?d=Wt(a):qt(a)&&!Bt(a)||(d=Tt(l))):c=!1}c&&(o.set(l,d),n(d,l,s,r,o),o.delete(l)),Je(e,i,d)}}function dt(e,t){return Pt(At(e,t,Yt),e+"")}function ct(e,t){if(t)return e.slice();var i=e.length,s=fe?fe(i):new e.constructor(i);return e.copy(s),s}function ht(e){var t=new e.constructor(e.byteLength);return new pe(t).set(new pe(e)),t}function pt(e,t){var i=t?ht(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function ft(e,t){var i=-1,s=e.length;for(t||(t=Array(s));++i<s;)t[i]=e[i];return t}function mt(e,t,i,s){var n=!i;i||(i={});for(var r=-1,o=t.length;++r<o;){var a=t[r],l=s?s(i[a],e[a],a,i,e):void 0;void 0===l&&(l=e[a]),n?tt(i,a,l):Ze(i,a,l)}return i}function gt(e){return dt((function(t,i){var s=-1,n=i.length,r=n>1?i[n-1]:void 0,o=n>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(n--,r):void 0,o&&wt(i[0],i[1],o)&&(r=n<3?void 0:r,n=1),t=Object(t);++s<n;){var a=i[s];a&&e(t,a,s,r)}return t}))}function _t(e){return function(t,i,s){for(var n=-1,r=Object(t),o=s(t),a=o.length;a--;){var l=o[e?a:++n];if(!1===i(r[l],l,r))break}return t}}function yt(e,t){var i=e.__data__;return Et(t)?i["string"==typeof t?"string":"hash"]:i.map}function bt(e,t){var i=J(e,t);return rt(i)?i:void 0}function vt(e){var t=oe.call(e,be),i=e[be];try{e[be]=void 0;var s=!0}catch(e){}var n=le.call(e);return s&&(t?e[be]=i:delete e[be]),n}function Tt(e){return"function"!=typeof e.constructor||kt(e)?{}:ke(me(e))}function St(e,t){var i=typeof e;return!!(t=null==t?a:t)&&("number"==i||"symbol"!=i&&F.test(e))&&e>-1&&e%1==0&&e<t}function wt(e,t,i){if(!qt(i))return!1;var s=typeof t;return!!("number"==s?Rt(i)&&St(t,i.length):"string"==s&&t in i)&&Dt(i[t],e)}function Et(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Ct(e){return!!ae&&ae in e}function kt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||se)}function xt(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}function It(e){return le.call(e)}function At(e,t,i){return t=Se(void 0===t?e.length-1:t,0),function(){for(var s=arguments,n=-1,r=Se(s.length-t,0),o=Array(r);++n<r;)o[n]=s[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=s[n];return a[t]=i(o),K(e,this,a)}}function Lt(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pt=Ot(ve?function(e,t){return ve(e,"toString",{configurable:!0,enumerable:!1,value:Kt(t),writable:!0})}:Yt);function Ot(e){var t=0,i=0;return function(){var s=we(),n=o-(s-i);if(i=s,n>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jt(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Dt(e,t){return e===t||e!=e&&t!=t}var Mt=nt(function(){return arguments}())?nt:function(e){return Vt(e)&&oe.call(e,"callee")&&!_e.call(e,"callee")},Nt=Array.isArray;function Rt(e){return null!=e&&$t(e.length)&&!Bt(e)}function Ft(e){return Vt(e)&&Rt(e)}var Ut=Te||Qt;function Bt(e){if(!qt(e))return!1;var t=st(e);return t==f||t==m||t==d||t==v}function $t(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function qt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Vt(e){return null!=e&&"object"==typeof e}function Ht(e){if(!Vt(e)||st(e)!=b)return!1;var t=me(e);if(null===t)return!0;var i=oe.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&re.call(i)==ue}var zt=X?Q(X):ot;function Wt(e){return mt(e,Gt(e))}function Gt(e){return Rt(e)?Qe(e,!0):at(e)}var Xt=gt((function(e,t,i){lt(e,t,i)}));function Kt(e){return function(){return e}}function Yt(e){return e}function Qt(){return!1}t.exports=Xt}).call(this)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,i){var n,r;n=self,r=function(){return function(){"use strict";var e={720:function(e,t,i){i.r(t),i.d(t,{Scene:function(){return at},Tweenable:function(){return Ce},interpolate:function(){return tt},processTweens:function(){return _e},setBezierFunction:function(){return V},shouldScheduleUpdate:function(){return ve},tween:function(){return ke},unsetBezierFunction:function(){return H}});var s={};i.r(s),i.d(s,{bounce:function(){return M},bouncePast:function(){return N},easeFrom:function(){return F},easeFromTo:function(){return R},easeInBack:function(){return I},easeInCirc:function(){return E},easeInCubic:function(){return u},easeInExpo:function(){return T},easeInOutBack:function(){return L},easeInOutCirc:function(){return k},easeInOutCubic:function(){return c},easeInOutExpo:function(){return w},easeInOutQuad:function(){return l},easeInOutQuart:function(){return f},easeInOutQuint:function(){return _},easeInOutSine:function(){return v},easeInQuad:function(){return o},easeInQuart:function(){return h},easeInQuint:function(){return m},easeInSine:function(){return y},easeOutBack:function(){return A},easeOutBounce:function(){return x},easeOutCirc:function(){return C},easeOutCubic:function(){return d},easeOutExpo:function(){return S},easeOutQuad:function(){return a},easeOutQuart:function(){return p},easeOutQuint:function(){return g},easeOutSine:function(){return b},easeTo:function(){return U},elastic:function(){return P},linear:function(){return r},swingFrom:function(){return j},swingFromTo:function(){return O},swingTo:function(){return D}});var n={};i.r(n),i.d(n,{afterTween:function(){return Ke},beforeTween:function(){return Xe},doesApply:function(){return We},tweenCreated:function(){return Ge}});var r=function(e){return e},o=function(e){return Math.pow(e,2)},a=function(e){return-(Math.pow(e-1,2)-1)},l=function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},u=function(e){return Math.pow(e,3)},d=function(e){return Math.pow(e-1,3)+1},c=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},h=function(e){return Math.pow(e,4)},p=function(e){return-(Math.pow(e-1,4)-1)},f=function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},m=function(e){return Math.pow(e,5)},g=function(e){return Math.pow(e-1,5)+1},_=function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},y=function(e){return 1-Math.cos(e*(Math.PI/2))},b=function(e){return Math.sin(e*(Math.PI/2))},v=function(e){return-.5*(Math.cos(Math.PI*e)-1)},T=function(e){return 0===e?0:Math.pow(2,10*(e-1))},S=function(e){return 1===e?1:1-Math.pow(2,-10*e)},w=function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},E=function(e){return-(Math.sqrt(1-e*e)-1)},C=function(e){return Math.sqrt(1-Math.pow(e-1,2))},k=function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},x=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},I=function(e){var t=1.70158;return e*e*((t+1)*e-t)},A=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},L=function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},P=function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},O=function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},j=function(e){var t=1.70158;return e*e*((t+1)*e-t)},D=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},M=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},N=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?2-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},R=function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},F=function(e){return Math.pow(e,4)},U=function(e){return Math.pow(e,.25)};function B(e,t,i,s,n,r){var o,a,l,u,d,c=0,h=0,p=0,f=function(e){return((c*e+h)*e+p)*e},m=function(e){return(3*c*e+2*h)*e+p},g=function(e){return e>=0?e:0-e};return c=1-(p=3*t)-(h=3*(s-t)-p),l=1-(d=3*i)-(u=3*(n-i)-d),o=e,a=function(e){return 1/(200*e)}(r),function(e){return((l*e+u)*e+d)*e}(function(e,t){var i,s,n,r,o,a;for(n=e,a=0;a<8;a++){if(r=f(n)-e,g(r)<t)return n;if(o=m(n),g(o)<1e-6)break;n-=r/o}if((n=e)<(i=0))return i;if(n>(s=1))return s;for(;i<s;){if(r=f(n),g(r-e)<t)return n;e>r?i=n:s=n,n=.5*(s-i)+i}return n}(o,a))}var $,q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(n){return B(n,e,t,i,s,1)}},V=function(e,t,i,s,n){var r=q(t,i,s,n);return r.displayName=e,r.x1=t,r.y1=i,r.x2=s,r.y2=n,Ce.formulas[e]=r},H=function(e){return delete Ce.formulas[e]};function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function G(e){return G="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},G(e)}function X(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var i=Object.prototype.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)?K(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 K(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function Y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function Q(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(i),!0).forEach((function(t){J(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function J(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Z,ee,te,ie="linear",se="undefined"!=typeof window?window:i.g,ne="afterTween",re="afterTweenEnd",oe="beforeTween",ae="tweenCreated",le="function",ue="string",de=se.requestAnimationFrame||se.webkitRequestAnimationFrame||se.oRequestAnimationFrame||se.msRequestAnimationFrame||se.mozCancelRequestAnimationFrame&&se.mozRequestAnimationFrame||setTimeout,ce=function(){},he=null,pe=null,fe=Q({},s),me=function(e,t,i,s,n,r,o){var a,l,u,d=e<r?0:(e-r)/n,c=!1;for(var h in o&&o.call&&(c=!0,a=o(d)),t)c||(a=((l=o[h]).call?l:fe[l])(d)),u=i[h],t[h]=u+(s[h]-u)*a;return t},ge=function(e,t){var i=e._timestamp,s=e._currentState,n=e._delay;if(!(t<i+n)){var r=e._duration,o=e._targetState,a=i+n+r,l=t>a?a:t;e._hasEnded=l>=a;var u=r-(a-l),d=e._filters.length>0;if(e._hasEnded)return e._render(o,e._data,u),e.stop(!0);d&&e._applyFilter(oe),l<i+n?i=r=l=1:i+=n,me(l,s,e._originalState,o,r,i,e._easing),d&&e._applyFilter(ne),e._render(s,e._data,u)}},_e=function(){for(var e,t=Ce.now(),i=he;i;)e=i._next,ge(i,t),i=e},ye=Date.now||function(){return+new Date},be=!1,ve=function(e){e&&be||(be=e,e&&Te())},Te=function e(){Z=ye(),be&&de.call(se,e,16.666666666666668),_e()},Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(t))return q.apply(void 0,X(t));var s=G(t);if(fe[t])return fe[t];if(s===ue||s===le)for(var n in e)i[n]=t;else for(var r in e)i[r]=t[r]||ie;return i},we=function(e){e===he?(he=e._next)?he._previous=null:pe=null:e===pe?(pe=e._previous)?pe._next=null:he=null:(ee=e._previous,te=e._next,ee._next=te,te._previous=ee),e._previous=e._next=null},Ee="function"==typeof Promise?Promise:null;$=Symbol.toStringTag;var Ce=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;z(this,e),J(this,$,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=t||{},this._originalState={},this._targetState={},this._start=ce,this._render=ce,this._promiseCtor=Ee,i&&this.setConfig(i)}var t;return t=[{key:"_applyFilter",value:function(e){for(var t=this._filters.length;t>0;t--){var i=this._filters[t-t][e];i&&i(this)}}},{key:"tween",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!t&&this._config||this.setConfig(t),this._pausedAtTime=null,this._timestamp=e.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var s in t)i[s]=t[s];var n=i.promise,r=void 0===n?this._promiseCtor:n,o=i.start,a=void 0===o?ce:o,l=i.finish,u=i.render,d=void 0===u?this._config.step||ce:u,c=i.step,h=void 0===c?ce:c;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=t.delay||0,this._start=a,this._render=d||h,this._duration=i.duration||500,this._promiseCtor=r,l&&(this._resolve=l);var p=t.from,f=t.to,m=void 0===f?{}:f,g=this._currentState,_=this._originalState,y=this._targetState;for(var b in p)g[b]=p[b];var v=!1;for(var T in g){var S=g[T];v||G(S)!==ue||(v=!0),_[T]=S,y[T]=m.hasOwnProperty(T)?m[T]:S}if(this._easing=Se(this._currentState,i.easing,this._easing),this._filters.length=0,v){for(var w in e.filters)e.filters[w].doesApply(this)&&this._filters.push(e.filters[w]);this._applyFilter(ae)}return this}},{key:"then",value:function(e,t){var i=this;return this._promise=new this._promiseCtor((function(e,t){i._resolve=e,i._reject=t})),this._promise.then(e,t)}},{key:"catch",value:function(e){return this.then().catch(e)}},{key:"finally",value:function(e){return this.then().finally(e)}},{key:"get",value:function(){return Q({},this._currentState)}},{key:"set",value:function(e){this._currentState=e}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=e.now(),this._isPlaying=!1,we(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=t-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===he?(he=this,pe=this):(this._previous=pe,pe._next=this,pe=this),this)}},{key:"seek",value:function(t){t=Math.max(t,0);var i=e.now();return this._timestamp+t===0||(this._timestamp=i-t,ge(this,i)),this}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,we(this);var t=this._filters.length>0;return e&&(t&&this._applyFilter(oe),me(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),t&&(this._applyFilter(ne),this._applyFilter(re))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:t,tweenable:this}),this._resolve=null,this._reject=null,this.stop(e)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(t){e.setScheduleFunction(t)}},{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e&&(this._data=Q({},e)),this._data}},{key:"dispose",value:function(){for(var e in this)delete this[e]}}],t&&W(e.prototype,t),e}();function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ce;return t.tween(e),t.tweenable=t,t}J(Ce,"now",(function(){return Z})),J(Ce,"setScheduleFunction",(function(e){return de=e})),J(Ce,"filters",{}),J(Ce,"formulas",fe),ve(!0);var xe,Ie,Ae=/(\d|-|\.)/,Le=/([^\-0-9.]+)/g,Pe=/[0-9.-]+/g,Oe=(xe=Pe.source,Ie=/,\s*/.source,new RegExp("rgba?\\(".concat(xe).concat(Ie).concat(xe).concat(Ie).concat(xe,"(").concat(Ie).concat(xe,")?\\)"),"g")),je=/^.*\(/,De=/#([0-9]|[a-f]){3,6}/gi,Me="VAL",Ne=function(e,t){return e.map((function(e,i){return"_".concat(t,"_").concat(i)}))};function Re(e){return parseInt(e,16)}var Fe=function(e){return"rgb(".concat((t=e,3===(t=t.replace(/#/,"")).length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[Re(t.substr(0,2)),Re(t.substr(2,2)),Re(t.substr(4,2))]).join(","),")");var t},Ue=function(e,t,i){var s=t.match(e),n=t.replace(e,Me);return s&&s.forEach((function(e){return n=n.replace(Me,i(e))})),n},Be=function(e){for(var t in e){var i=e[t];"string"==typeof i&&i.match(De)&&(e[t]=Ue(De,i,Fe))}},$e=function(e){var t=e.match(Pe),i=t.slice(0,3).map(Math.floor),s=e.match(je)[0];if(3===t.length)return"".concat(s).concat(i.join(","),")");if(4===t.length)return"".concat(s).concat(i.join(","),",").concat(t[3],")");throw new Error("Invalid rgbChunk: ".concat(e))},qe=function(e){return e.match(Pe)},Ve=function(e,t){var i={};return t.forEach((function(t){i[t]=e[t],delete e[t]})),i},He=function(e,t){return t.map((function(t){return e[t]}))},ze=function(e,t){return t.forEach((function(t){return e=e.replace(Me,+t.toFixed(4))})),e},We=function(e){for(var t in e._currentState)if("string"==typeof e._currentState[t])return!0;return!1};function Ge(e){var t=e._currentState;[t,e._originalState,e._targetState].forEach(Be),e._tokenData=function(e){var t,i,s={};for(var n in e){var r=e[n];"string"==typeof r&&(s[n]={formatString:(t=r,i=void 0,i=t.match(Le),i?(1===i.length||t.charAt(0).match(Ae))&&i.unshift(""):i=["",""],i.join(Me)),chunkNames:Ne(qe(r),n)})}return s}(t)}function Xe(e){var t=e._currentState,i=e._originalState,s=e._targetState,n=e._easing,r=e._tokenData;!function(e,t){var i=function(i){var s=t[i].chunkNames,n=e[i];if("string"==typeof n){var r=n.split(" "),o=r[r.length-1];s.forEach((function(t,i){return e[t]=r[i]||o}))}else s.forEach((function(t){return e[t]=n}));delete e[i]};for(var s in t)i(s)}(n,r),[t,i,s].forEach((function(e){return function(e,t){var i=function(i){qe(e[i]).forEach((function(s,n){return e[t[i].chunkNames[n]]=+s})),delete e[i]};for(var s in t)i(s)}(e,r)}))}function Ke(e){var t=e._currentState,i=e._originalState,s=e._targetState,n=e._easing,r=e._tokenData;[t,i,s].forEach((function(e){return function(e,t){for(var i in t){var s=t[i],n=s.chunkNames,r=s.formatString,o=ze(r,He(Ve(e,n),n));e[i]=Ue(Oe,o,$e)}}(e,r)})),function(e,t){for(var i in t){var s=t[i].chunkNames,n=e[s[0]];e[i]="string"==typeof n?s.map((function(t){var i=e[t];return delete e[t],i})).join(" "):n}}(n,r)}function Ye(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function Qe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(i),!0).forEach((function(t){Je(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ye(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Je(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Ze=new Ce,et=Ce.filters,tt=function(e,t,i,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=Qe({},e),o=Se(e,s);for(var a in Ze._filters.length=0,Ze.set({}),Ze._currentState=r,Ze._originalState=e,Ze._targetState=t,Ze._easing=o,et)et[a].doesApply(Ze)&&Ze._filters.push(et[a]);Ze._applyFilter("tweenCreated"),Ze._applyFilter("beforeTween");var l=me(i,r,e,t,1,n,o);return Ze._applyFilter("afterTween"),l};function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function rt(e,t){var i=t.get(e);if(!i)throw new TypeError("attempted to get private field on non-instance");return i.get?i.get.call(e):i.value}var ot=new WeakMap,at=function(){function e(){st(this,e),ot.set(this,{writable:!0,value:[]});for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];i.forEach(this.add.bind(this))}var t;return(t=[{key:"add",value:function(e){return rt(this,ot).push(e),e}},{key:"remove",value:function(e){var t=rt(this,ot).indexOf(e);return~t&&rt(this,ot).splice(t,1),e}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return rt(this,ot).some((function(e){return e.isPlaying()}))}},{key:"play",value:function(){return rt(this,ot).forEach((function(e){return e.tween()})),this}},{key:"pause",value:function(){return rt(this,ot).forEach((function(e){return e.pause()})),this}},{key:"resume",value:function(){return this.playingTweenables.forEach((function(e){return e.resume()})),this}},{key:"stop",value:function(e){return rt(this,ot).forEach((function(t){return t.stop(e)})),this}},{key:"tweenables",get:function(){return function(e){if(Array.isArray(e))return it(e)}(e=rt(this,ot))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,t);var i=Object.prototype.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)?it(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.")}();var e}},{key:"playingTweenables",get:function(){return rt(this,ot).filter((function(e){return!e.hasEnded()}))}},{key:"promises",get:function(){return rt(this,ot).map((function(e){return e.then()}))}}])&&nt(e.prototype,t),e}();Ce.filters.token=n}},t={};function i(s){if(t[s])return t[s].exports;var n=t[s]={exports:{}};return e[s](n,n.exports,i),n.exports}return i.d=function(e,t){for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(720)}()},"object"==typeof i&&"object"==typeof t?t.exports=r():"function"==typeof s&&s.amd?s("shifty",[],r):"object"==typeof i?i.shifty=r():n.shifty=r()},{}],3:[function(e,t,i){var s=e("./shape"),n=e("./utils"),r=function(e,t){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,s.apply(this,arguments)};r.prototype=new s,r.prototype.constructor=r,r.prototype._pathString=function(e){var t=e.strokeWidth;e.trailWidth&&e.trailWidth>e.strokeWidth&&(t=e.trailWidth);var i=50-t/2;return n.render(this._pathTemplate,{radius:i,"2radius":2*i})},r.prototype._trailString=function(e){return this._pathString(e)},t.exports=r},{"./shape":8,"./utils":10}],4:[function(e,t,i){var s=e("./shape"),n=e("./utils"),r=function(e,t){this._pathTemplate=t.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",s.apply(this,arguments)};r.prototype=new s,r.prototype.constructor=r,r.prototype._initializeSvg=function(e,t){var i=t.vertical?"0 0 "+t.strokeWidth+" 100":"0 0 100 "+t.strokeWidth;e.setAttribute("viewBox",i),e.setAttribute("preserveAspectRatio","none")},r.prototype._pathString=function(e){return n.render(this._pathTemplate,{center:e.strokeWidth/2})},r.prototype._trailString=function(e){return this._pathString(e)},t.exports=r},{"./shape":8,"./utils":10}],5:[function(e,t,i){t.exports={Line:e("./line"),Circle:e("./circle"),SemiCircle:e("./semicircle"),Square:e("./square"),Path:e("./path"),Shape:e("./shape"),utils:e("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(e,t,i){var s=e("shifty"),n=e("./utils"),r=s.Tweenable,o={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},a=function e(t,i){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");var s;i=n.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),s=n.isString(t)?document.querySelector(t):t,this.path=s,this._opts=i,this._tweenable=null;var r=this.path.getTotalLength();this.path.style.strokeDasharray=r+" "+r,this.set(0)};a.prototype.value=function(){var e=this._getComputedDashOffset(),t=this.path.getTotalLength();return parseFloat((1-e/t).toFixed(6),10)},a.prototype.set=function(e){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(e);var t=this._opts.step;if(n.isFunction(t)){var i=this._easing(this._opts.easing);t(this._calculateTo(e,i),this._opts.shape||this,this._opts.attachment)}},a.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},a.prototype.animate=function(e,t,i){t=t||{},n.isFunction(t)&&(i=t,t={});var s=n.extend({},t),o=n.extend({},this._opts);t=n.extend(o,t);var a=this._easing(t.easing),l=this._resolveFromAndTo(e,a,s);this.stop(),this.path.getBoundingClientRect();var u=this._getComputedDashOffset(),d=this._progressToOffset(e),c=this;this._tweenable=new r,this._tweenable.tween({from:n.extend({offset:u},l.from),to:n.extend({offset:d},l.to),duration:t.duration,delay:t.delay,easing:a,step:function(e){c.path.style.strokeDashoffset=e.offset;var i=t.shape||c;t.step(e,i,t.attachment)}}).then((function(e){n.isFunction(i)&&i()})).catch((function(e){throw console.error("Error in tweening:",e),e}))},a.prototype._getComputedDashOffset=function(){var e=window.getComputedStyle(this.path,null);return parseFloat(e.getPropertyValue("stroke-dashoffset"),10)},a.prototype._progressToOffset=function(e){var t=this.path.getTotalLength();return t-e*t},a.prototype._resolveFromAndTo=function(e,t,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(t),to:this._calculateTo(e,t)}},a.prototype._calculateFrom=function(e){return s.interpolate(this._opts.from,this._opts.to,this.value(),e)},a.prototype._calculateTo=function(e,t){return s.interpolate(this._opts.from,this._opts.to,e,t)},a.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},a.prototype._easing=function(e){return o.hasOwnProperty(e)?o[e]:e},t.exports=a},{"./utils":10,shifty:2}],7:[function(e,t,i){var s=e("./shape"),n=e("./circle"),r=e("./utils"),o=function(e,t){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,s.apply(this,arguments)};o.prototype=new s,o.prototype.constructor=o,o.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 50")},o.prototype._initializeTextContainer=function(e,t,i){e.text.style&&(i.style.top="auto",i.style.bottom="0",e.text.alignToBottom?r.setStyle(i,"transform","translate(-50%, 0)"):r.setStyle(i,"transform","translate(-50%, 50%)"))},o.prototype._pathString=n.prototype._pathString,o.prototype._trailString=n.prototype._trailString,t.exports=o},{"./circle":3,"./shape":8,"./utils":10}],8:[function(e,t,i){var s=e("./path"),n=e("./utils"),r="Object is destroyed",o=function e(t,i){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=n.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},i,!0),n.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),n.isObject(i)&&n.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var r,o=this._createSvgView(this._opts);if(!(r=n.isString(t)?document.querySelector(t):t))throw new Error("Container does not exist: "+t);this._container=r,this._container.appendChild(o.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&n.setStyles(o.svg,this._opts.svgStyle),this.svg=o.svg,this.path=o.path,this.trail=o.trail,this.text=null;var a=n.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new s(o.path,a),n.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};o.prototype.animate=function(e,t,i){if(null===this._progressPath)throw new Error(r);this._progressPath.animate(e,t,i)},o.prototype.stop=function(){if(null===this._progressPath)throw new Error(r);void 0!==this._progressPath&&this._progressPath.stop()},o.prototype.pause=function(){if(null===this._progressPath)throw new Error(r);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},o.prototype.resume=function(){if(null===this._progressPath)throw new Error(r);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},o.prototype.destroy=function(){if(null===this._progressPath)throw new Error(r);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},o.prototype.set=function(e){if(null===this._progressPath)throw new Error(r);this._progressPath.set(e)},o.prototype.value=function(){if(null===this._progressPath)throw new Error(r);return void 0===this._progressPath?0:this._progressPath.value()},o.prototype.setText=function(e){if(null===this._progressPath)throw new Error(r);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),n.isObject(e)?(n.removeChildren(this.text),this.text.appendChild(e)):this.text.innerHTML=e},o.prototype._createSvgView=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(t,e);var i=null;(e.trailColor||e.trailWidth)&&(i=this._createTrail(e),t.appendChild(i));var s=this._createPath(e);return t.appendChild(s),{svg:t,path:s,trail:i}},o.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 100")},o.prototype._createPath=function(e){var t=this._pathString(e);return this._createPathElement(t,e)},o.prototype._createTrail=function(e){var t=this._trailString(e),i=n.extend({},e);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,i.strokeWidth=i.trailWidth,i.fill=null,this._createPathElement(t,i)},o.prototype._createPathElement=function(e,t){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",e),i.setAttribute("stroke",t.color),i.setAttribute("stroke-width",t.strokeWidth),t.fill?i.setAttribute("fill",t.fill):i.setAttribute("fill-opacity","0"),i},o.prototype._createTextContainer=function(e,t){var i=document.createElement("div");i.className=e.text.className;var s=e.text.style;return s&&(e.text.autoStyleContainer&&(t.style.position="relative"),n.setStyles(i,s),s.color||(i.style.color=e.color)),this._initializeTextContainer(e,t,i),i},o.prototype._initializeTextContainer=function(e,t,i){},o.prototype._pathString=function(e){throw new Error("Override this function for each progress bar")},o.prototype._trailString=function(e){throw new Error("Override this function for each progress bar")},o.prototype._warnContainerAspectRatio=function(e){if(this.containerAspectRatio){var t=window.getComputedStyle(e,null),i=parseFloat(t.getPropertyValue("width"),10),s=parseFloat(t.getPropertyValue("height"),10);n.floatEquals(this.containerAspectRatio,i/s)||(console.warn("Incorrect aspect ratio of container","#"+e.id,"detected:",t.getPropertyValue("width")+"(width)","/",t.getPropertyValue("height")+"(height)","=",i/s),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},t.exports=o},{"./path":6,"./utils":10}],9:[function(e,t,i){var s=e("./shape"),n=e("./utils"),r=function(e,t){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",s.apply(this,arguments)};r.prototype=new s,r.prototype.constructor=r,r.prototype._pathString=function(e){var t=100-e.strokeWidth/2;return n.render(this._pathTemplate,{width:t,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2})},r.prototype._trailString=function(e){var t=100-e.strokeWidth/2;return n.render(this._trailTemplate,{width:t,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2,startMargin:e.strokeWidth/2-e.trailWidth/2})},t.exports=r},{"./shape":8,"./utils":10}],10:[function(e,t,i){var s=e("lodash.merge"),n="Webkit Moz O ms".split(" "),r=.001;function o(e,t){var i=e;for(var s in t)if(t.hasOwnProperty(s)){var n=t[s],r=new RegExp("\\{"+s+"\\}","g");i=i.replace(r,n)}return i}function a(e,t,i){for(var s=e.style,r=0;r<n.length;++r)s[n[r]+u(t)]=i;s[t]=i}function l(e,t){f(t,(function(t,i){null!=t&&(p(t)&&!0===t.prefix?a(e,i,t.value):e.style[i]=t)}))}function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function d(e){return"string"==typeof e||e instanceof String}function c(e){return"function"==typeof e}function h(e){return"[object Array]"===Object.prototype.toString.call(e)}function p(e){return!h(e)&&"object"==typeof e&&!!e}function f(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)}function m(e,t){return Math.abs(e-t)<r}function g(e){for(;e.firstChild;)e.removeChild(e.firstChild)}t.exports={extend:s,render:o,setStyle:a,setStyles:l,capitalize:u,isString:d,isFunction:c,isObject:p,forEachObject:f,floatEquals:m,removeChildren:g}},{"lodash.merge":1}]},{},[5])(5)},
vendor: 132 bytes, line 2
2"./node_modules/safe-json-parse/tuple.js":e=>{e.exports=function(e,t){var i,s=null;try{i=JSON.parse(e,t)}catch(e){s=e}return[s,i]}},
vendor: 1,746 bytes, line 2
2"./node_modules/url-toolkit/src/url-toolkit.js":function(e){var t,i,s,n,r;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,n=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,r={buildAbsoluteURL:function(e,t,s){if(s=s||{},e=e.trim(),!(t=t.trim())){if(!s.alwaysNormalize)return e;var n=r.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");return n.path=r.normalizePath(n.path),r.buildURLFromParts(n)}var o=r.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return s.alwaysNormalize?(o.path=r.normalizePath(o.path),r.buildURLFromParts(o)):t;var a=r.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var l=i.exec(a.path);a.netLoc=l[1],a.path=l[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var d=a.path,c=d.substring(0,d.lastIndexOf("/")+1)+o.path;u.path=r.normalizePath(c)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=s.alwaysNormalize?r.normalizePath(o.path):o.path),r.buildURLFromParts(u)},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(s,"");e.length!==(e=e.replace(n,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=r},
vendor: 228 bytes, line 2
2"./node_modules/uuid/dist/esm-browser/regex.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},
vendor: 497 bytes, line 2
2"./node_modules/uuid/dist/esm-browser/rng.js":(e,t,i)=>{"use strict";var s;i.r(t),i.d(t,{default:()=>r});var n=new Uint8Array(16);function r(){if(!s&&!(s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(n)}},
vendor: 589 bytes, line 2
2"./node_modules/uuid/dist/esm-browser/stringify.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});for(var s=i("./node_modules/uuid/dist/esm-browser/validate.js"),n=[],r=0;r<256;++r)n.push((r+256).toString(16).substr(1));const o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!(0,s.default)(i))throw TypeError("Stringified UUID is invalid");return i}},
vendor: 392 bytes, line 2
2"./node_modules/uuid/dist/esm-browser/v4.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i("./node_modules/uuid/dist/esm-browser/rng.js"),n=i("./node_modules/uuid/dist/esm-browser/stringify.js");const r=function(e,t,i){var r=(e=e||{}).random||(e.rng||s.default)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=r[o];return t}return(0,n.default)(r)}},
vendor: 227 bytes, line 2
2"./node_modules/uuid/dist/esm-browser/validate.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i("./node_modules/uuid/dist/esm-browser/regex.js");const n=function(e){return"string"==typeof e&&s.default.test(e)}},
vendor: 532,688 bytes, line 2
2"./node_modules/video.js/dist/video.es.js":(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>Bn});var s=i("./node_modules/global/window.js"),n=i.n(s),r=i("./node_modules/global/document.js"),o=i.n(r),a=i("./node_modules/safe-json-parse/tuple.js"),l=i.n(a),u=i("./node_modules/@videojs/xhr/lib/index.js"),d=i.n(u),c=i("./node_modules/videojs-vtt.js/lib/browser-index.js"),h=i.n(c),p=i("./node_modules/@babel/runtime/helpers/esm/extends.js"),f=i("./node_modules/@videojs/vhs-utils/es/resolve-url.js"),m=i("./node_modules/m3u8-parser/dist/m3u8-parser.es.js"),g=i("./node_modules/@videojs/vhs-utils/es/codecs.js"),_=i("./node_modules/@videojs/vhs-utils/es/media-types.js"),y=i("./node_modules/@videojs/vhs-utils/es/byte-helpers.js"),b=i("./node_modules/mpd-parser/dist/mpd-parser.es.js"),v=i("./node_modules/mux.js/lib/tools/parse-sidx.js"),T=i.n(v),S=i("./node_modules/@videojs/vhs-utils/es/id3-helpers.js"),w=i("./node_modules/@videojs/vhs-utils/es/containers.js"),E=i("./node_modules/mux.js/lib/utils/clock.js"),C="8.16.1";const k={},x=function(e,t){return k[e]=k[e]||[],t&&(k[e]=k[e].concat(t)),k[e]},I=function(e,t){const i=x(e).indexOf(t);return!(i<=-1)&&(k[e]=k[e].slice(),k[e].splice(i,1),!0)},A={prefixed:!0},L=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],P=L[0];let O;for(let e=0;e<L.length;e++)if(L[e][1]in o()){O=L[e];break}if(O){for(let e=0;e<O.length;e++)A[P[e]]=O[e];A.prefixed=O[0]!==P[0]}let j=[];const D=function e(t,i=":",s=""){let r,o="info";function a(...e){r("log",o,e)}return r=((e,t,i)=>(s,r,o)=>{const a=t.levels[r],l=new RegExp(`^(${a})$`);let u=e;if("log"!==s&&o.unshift(s.toUpperCase()+":"),i&&(u=`%c${e}`,o.unshift(i)),o.unshift(u+":"),j){j.push([].concat(o));const e=j.length-1e3;j.splice(0,e>0?e:0)}if(!n().console)return;let d=n().console[s];d||"debug"!==s||(d=n().console.info||n().console.log),d&&a&&l.test(s)&&d[Array.isArray(o)?"apply":"call"](n().console,o)})(t,a,s),a.createLogger=(n,r,o)=>{const a=void 0!==r?r:i;return e(`${t} ${a} ${n}`,a,void 0!==o?o:s)},a.createNewLogger=(t,i,s)=>e(t,i,s),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:o},a.level=e=>{if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);o=e}return o},a.history=()=>j?[].concat(j):[],a.history.filter=e=>(j||[]).filter((t=>new RegExp(`.*${e}.*`).test(t[0]))),a.history.clear=()=>{j&&(j.length=0)},a.history.disable=()=>{null!==j&&(j.length=0,j=null)},a.history.enable=()=>{null===j&&(j=[])},a.error=(...e)=>r("error",o,e),a.warn=(...e)=>r("warn",o,e),a.debug=(...e)=>r("debug",o,e),a}("VIDEOJS"),M=D.createLogger,N=Object.prototype.toString,R=function(e){return B(e)?Object.keys(e):[]};function F(e,t){R(e).forEach((i=>t(e[i],i)))}function U(e,t,i=0){return R(e).reduce(((i,s)=>t(i,e[s],s)),i)}function B(e){return!!e&&"object"==typeof e}function $(e){return B(e)&&"[object Object]"===N.call(e)&&e.constructor===Object}function q(...e){const t={};return e.forEach((e=>{e&&F(e,((e,i)=>{$(e)?($(t[i])||(t[i]={}),t[i]=q(t[i],e)):t[i]=e}))})),t}function V(e={}){const t=[];for(const i in e)if(e.hasOwnProperty(i)){const s=e[i];t.push(s)}return t}function H(e,t,i,s=!0){const n=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0}),r={configurable:!0,enumerable:!0,get(){const e=i();return n(e),e}};return s&&(r.set=n),Object.defineProperty(e,t,r)}var z=Object.freeze({__proto__:null,each:F,reduce:U,isObject:B,isPlain:$,merge:q,values:V,defineLazyProperty:H});let W,G=!1,X=null,K=!1,Y=!1,Q=!1,J=!1,Z=!1,ee=null,te=null;const ie=Boolean(n().cast&&n().cast.framework&&n().cast.framework.CastReceiverContext);let se=null,ne=!1,re=!1,oe=!1,ae=!1,le=!1,ue=!1,de=!1;const ce=Boolean(_e()&&("ontouchstart"in n()||n().navigator.maxTouchPoints||n().DocumentTouch&&n().document instanceof n().DocumentTouch)),he=n().navigator&&n().navigator.userAgentData;if(he&&he.platform&&he.brands&&(K="Android"===he.platform,Q=Boolean(he.brands.find((e=>"Microsoft Edge"===e.brand))),J=Boolean(he.brands.find((e=>"Chromium"===e.brand))),Z=!Q&&J,ee=te=(he.brands.find((e=>"Chromium"===e.brand))||{}).version||null,re="Windows"===he.platform),!J){const e=n().navigator&&n().navigator.userAgent||"";G=/iPod/i.test(e),X=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),K=/Android/i.test(e),W=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const i=t[1]&&parseFloat(t[1]),s=t[2]&&parseFloat(t[2]);return i&&s?parseFloat(t[1]+"."+t[2]):i||null}(),Y=/Firefox/i.test(e),Q=/Edg/i.test(e),J=/Chrome/i.test(e)||/CriOS/i.test(e),Z=!Q&&J,ee=te=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),se=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let i=t&&parseFloat(t[1]);return!i&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(i=11),i}(),le=/Tizen/i.test(e),ue=/Web0S/i.test(e),de=le||ue,ne=/Safari/i.test(e)&&!Z&&!K&&!Q&&!de,re=/Windows/i.test(e),oe=/iPad/i.test(e)||ne&&ce&&!/iPhone/i.test(e),ae=/iPhone/i.test(e)&&!oe}const pe=ae||oe||G,fe=(ne||pe)&&!Z;var me=Object.freeze({__proto__:null,get IS_IPOD(){return G},get IOS_VERSION(){return X},get IS_ANDROID(){return K},get ANDROID_VERSION(){return W},get IS_FIREFOX(){return Y},get IS_EDGE(){return Q},get IS_CHROMIUM(){return J},get IS_CHROME(){return Z},get CHROMIUM_VERSION(){return ee},get CHROME_VERSION(){return te},IS_CHROMECAST_RECEIVER:ie,get IE_VERSION(){return se},get IS_SAFARI(){return ne},get IS_WINDOWS(){return re},get IS_IPAD(){return oe},get IS_IPHONE(){return ae},get IS_TIZEN(){return le},get IS_WEBOS(){return ue},get IS_SMART_TV(){return de},TOUCH_ENABLED:ce,IS_IOS:pe,IS_ANY_SAFARI:fe});function ge(e){return"string"==typeof e&&Boolean(e.trim())}function _e(){return o()===n().document}function ye(e){return B(e)&&1===e.nodeType}function be(){try{return n().parent!==n().self}catch(e){return!0}}function ve(e){return function(t,i){if(!ge(t))return o()[e](null);ge(i)&&(i=o().querySelector(i));const s=ye(i)?i:o();return s[e]&&s[e](t)}}function Te(e="div",t={},i={},s){const n=o().createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){const i=t[e];"textContent"===e?Se(n,i):n[e]===i&&"tabIndex"!==e||(n[e]=i)})),Object.getOwnPropertyNames(i).forEach((function(e){n.setAttribute(e,i[e])})),s&&$e(n,s),n}function Se(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function we(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Ee(e,t){return function(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(t),e.classList.contains(t)}function Ce(e,...t){return e.classList.add(...t.reduce(((e,t)=>e.concat(t.split(/\s+/))),[])),e}function ke(e,...t){return e?(e.classList.remove(...t.reduce(((e,t)=>e.concat(t.split(/\s+/))),[])),e):(D.warn("removeClass was called with an element that doesn't exist"),null)}function xe(e,t,i){return"function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=void 0),t.split(/\s+/).forEach((t=>e.classList.toggle(t,i))),e}function Ie(e,t){Object.getOwnPropertyNames(t).forEach((function(i){const s=t[i];null==s||!1===s?e.removeAttribute(i):e.setAttribute(i,!0===s?"":s)}))}function Ae(e){const t={},i=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const s=e.attributes;for(let e=s.length-1;e>=0;e--){const n=s[e].name;let r=s[e].value;i.includes(n)&&(r=null!==r),t[n]=r}}return t}function Le(e,t){return e.getAttribute(t)}function Pe(e,t,i){e.setAttribute(t,i)}function Oe(e,t){e.removeAttribute(t)}function je(){o().body.focus(),o().onselectstart=function(){return!1}}function De(){o().onselectstart=function(){return!0}}function Me(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((e=>{void 0!==t[e]&&(i[e]=t[e])})),i.height||(i.height=parseFloat(We(e,"height"))),i.width||(i.width=parseFloat(We(e,"width"))),i}}function Ne(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,i=e.offsetHeight;let s=0,n=0;for(;e.offsetParent&&e!==o()[A.fullscreenElement];)s+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return{left:s,top:n,width:t,height:i}}function Re(e,t){const i={x:0,y:0};if(pe){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){const e=We(t,"transform");if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);i.x+=t[4],i.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);i.x+=t[12],i.y+=t[13]}if(t.assignedSlot&&t.assignedSlot.parentElement&&n().WebKitCSSMatrix){const e=n().getComputedStyle(t.assignedSlot.parentElement).transform,s=new(n().WebKitCSSMatrix)(e);i.x+=s.m41,i.y+=s.m42}t=t.parentNode||t.host}}const s={},r=Ne(t.target),o=Ne(e),a=o.width,l=o.height;let u=t.offsetY-(o.top-r.top),d=t.offsetX-(o.left-r.left);return t.changedTouches&&(d=t.changedTouches[0].pageX-o.left,u=t.changedTouches[0].pageY+o.top,pe&&(d-=i.x,u-=i.y)),s.y=1-Math.max(0,Math.min(1,u/l)),s.x=Math.max(0,Math.min(1,d/a)),s}function Fe(e){return B(e)&&3===e.nodeType}function Ue(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Be(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((e=>("function"==typeof e&&(e=e()),ye(e)||Fe(e)?e:"string"==typeof e&&/\S/.test(e)?o().createTextNode(e):void 0))).filter((e=>e))}function $e(e,t){return Be(t).forEach((t=>e.appendChild(t))),e}function qe(e,t){return $e(Ue(e),t)}function Ve(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||("mousedown"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons)))}const He=ve("querySelector"),ze=ve("querySelectorAll");function We(e,t){if(!e||!t)return"";if("function"==typeof n().getComputedStyle){let i;try{i=n().getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}function Ge(e){[...o().styleSheets].forEach((t=>{try{const i=[...t.cssRules].map((e=>e.cssText)).join(""),s=o().createElement("style");s.textContent=i,e.document.head.appendChild(s)}catch(i){const s=o().createElement("link");s.rel="stylesheet",s.type=t.type,s.media=t.media.mediaText,s.href=t.href,e.document.head.appendChild(s)}}))}var Xe=Object.freeze({__proto__:null,isReal:_e,isEl:ye,isInFrame:be,createEl:Te,textContent:Se,prependTo:we,hasClass:Ee,addClass:Ce,removeClass:ke,toggleClass:xe,setAttributes:Ie,getAttributes:Ae,getAttribute:Le,setAttribute:Pe,removeAttribute:Oe,blockTextSelection:je,unblockTextSelection:De,getBoundingClientRect:Me,findPosition:Ne,getPointerPosition:Re,isTextNode:Fe,emptyEl:Ue,normalizeContent:Be,appendContent:$e,insertContent:qe,isSingleLeftClick:Ve,$:He,$$:ze,computedStyle:We,copyStyleSheetsToWindow:Ge});let Ke,Ye=!1;const Qe=function(){if(!1===Ke.options.autoSetup)return;const e=Array.prototype.slice.call(o().getElementsByTagName("video")),t=Array.prototype.slice.call(o().getElementsByTagName("audio")),i=Array.prototype.slice.call(o().getElementsByTagName("video-js")),s=e.concat(t,i);if(s&&s.length>0)for(let e=0,t=s.length;e<t;e++){const t=s[e];if(!t||!t.getAttribute){Je(1);break}if(void 0===t.player){null!==t.getAttribute("data-setup")&&Ke(t)}}else Ye||Je(1)};function Je(e,t){_e()&&(t&&(Ke=t),n().setTimeout(Qe,e))}function Ze(){Ye=!0,n().removeEventListener("load",Ze)}_e()&&("complete"===o().readyState?Ze():n().addEventListener("load",Ze));const et=function(e){const t=o().createElement("style");return t.className=e,t},tt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var it=new WeakMap;let st,nt=3;function rt(){return nt++}function ot(e,t){if(!it.has(e))return;const i=it.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&&it.delete(e)}function at(e,t,i,s){i.forEach((function(i){e(t,i,s)}))}function lt(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||n().event;e={};const r=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const t in s)r.includes(t)||"returnValue"===t&&s.preventDefault||(e[t]=s[t]);if(e.target||(e.target=e.srcElement||o()),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){const t=o().documentElement,i=o().body;e.pageX=e.clientX+(t&&t.scrollLeft||i&&i.scrollLeft||0)-(t&&t.clientLeft||i&&i.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||i&&i.scrollTop||0)-(t&&t.clientTop||i&&i.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}const ut=function(){if("boolean"!=typeof st){st=!1;try{const e=Object.defineProperty({},"passive",{get(){st=!0}});n().addEventListener("test",null,e),n().removeEventListener("test",null,e)}catch(e){}}return st},dt=["touchstart","touchmove"];function ct(e,t,i){if(Array.isArray(t))return at(ct,e,t,i);it.has(e)||it.set(e,{});const s=it.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),i.guid||(i.guid=rt()),s.handlers[t].push(i),s.dispatcher||(s.disabled=!1,s.dispatcher=function(t,i){if(s.disabled)return;t=lt(t);const n=s.handlers[t.type];if(n){const s=n.slice(0);for(let n=0,r=s.length;n<r&&!t.isImmediatePropagationStopped();n++)try{s[n].call(e,t,i)}catch(e){D.error(e)}}}),1===s.handlers[t].length)if(e.addEventListener){let i=!1;ut()&&dt.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,s.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function ht(e,t,i){if(!it.has(e))return;const s=it.get(e);if(!s.handlers)return;if(Array.isArray(t))return at(ht,e,t,i);const n=function(e,t){s.handlers[t]=[],ot(e,t)};if(void 0===t){for(const t in s.handlers)Object.prototype.hasOwnProperty.call(s.handlers||{},t)&&n(e,t);return}const r=s.handlers[t];if(r)if(i){if(i.guid)for(let e=0;e<r.length;e++)r[e].guid===i.guid&&r.splice(e--,1);ot(e,t)}else n(e,t)}function pt(e,t,i){const s=it.has(e)?it.get(e):{},n=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=lt(t),s.dispatcher&&s.dispatcher.call(e,t,i),n&&!t.isPropagationStopped()&&!0===t.bubbles)pt.call(null,n,t,i);else if(!n&&!t.defaultPrevented&&t.target&&t.target[t.type]){it.has(t.target)||it.set(t.target,{});const e=it.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function ft(e,t,i){if(Array.isArray(t))return at(ft,e,t,i);const s=function(){ht(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||rt(),ct(e,t,s)}function mt(e,t,i){const s=function(){ht(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||rt(),ct(e,t,s)}var gt=Object.freeze({__proto__:null,fixEvent:lt,on:ct,off:ht,trigger:pt,one:ft,any:mt});const _t=30,yt=function(e,t,i){t.guid||(t.guid=rt());const s=t.bind(e);return s.guid=i?i+"_"+t.guid:t.guid,s},bt=function(e,t){let i=n().performance.now();return function(...s){const r=n().performance.now();r-i>=t&&(e(...s),i=r)}},vt=function(e,t,i,s=n()){let r;const o=function(){const n=this,o=arguments;let a=function(){r=null,a=null,i||e.apply(n,o)};!r&&i&&e.apply(n,o),s.clearTimeout(r),r=s.setTimeout(a,t)};return o.cancel=()=>{s.clearTimeout(r),r=null},o};var Tt=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:_t,bind_:yt,throttle:bt,debounce:vt});let St;class wt{on(e,t){const i=this.addEventListener;this.addEventListener=()=>{},ct(this,e,t),this.addEventListener=i}off(e,t){ht(this,e,t)}one(e,t){const i=this.addEventListener;this.addEventListener=()=>{},ft(this,e,t),this.addEventListener=i}any(e,t){const i=this.addEventListener;this.addEventListener=()=>{},mt(this,e,t),this.addEventListener=i}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=lt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),pt(this,e)}queueTrigger(e){St||(St=new Map);const t=e.type||e;let i=St.get(this);i||(i=new Map,St.set(this,i));const s=i.get(t);i.delete(t),n().clearTimeout(s);const r=n().setTimeout((()=>{i.delete(t),0===i.size&&(i=null,St.delete(this)),this.trigger(e)}),0);i.set(t,r)}}wt.prototype.allowedEvents_={},wt.prototype.addEventListener=wt.prototype.on,wt.prototype.removeEventListener=wt.prototype.off,wt.prototype.dispatchEvent=wt.prototype.trigger;const Et=e=>"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,Ct=e=>e instanceof wt||!!e.eventBusEl_&&["on","one","off","trigger"].every((t=>"function"==typeof e[t])),kt=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,xt=(e,t,i)=>{if(!e||!e.nodeName&&!Ct(e))throw new Error(`Invalid target for ${Et(t)}#${i}; must be a DOM node or evented object.`)},It=(e,t,i)=>{if(!kt(e))throw new Error(`Invalid event type for ${Et(t)}#${i}; must be a non-empty string or array.`)},At=(e,t,i)=>{if("function"!=typeof e)throw new Error(`Invalid listener for ${Et(t)}#${i}; must be a function.`)},Lt=(e,t,i)=>{const s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let n,r,o;return s?(n=e.eventBusEl_,t.length>=3&&t.shift(),[r,o]=t):[n,r,o]=t,xt(n,e,i),It(r,e,i),At(o,e,i),o=yt(e,o),{isTargetingSelf:s,target:n,type:r,listener:o}},Pt=(e,t,i,s)=>{xt(e,e,t),e.nodeName?gt[t](e,i,s):e[t](i,s)},Ot={on(...e){const{isTargetingSelf:t,target:i,type:s,listener:n}=Lt(this,e,"on");if(Pt(i,"on",s,n),!t){const e=()=>this.off(i,s,n);e.guid=n.guid;const t=()=>this.off("dispose",e);t.guid=n.guid,Pt(this,"on","dispose",e),Pt(i,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:i,type:s,listener:n}=Lt(this,e,"one");if(t)Pt(i,"one",s,n);else{const e=(...t)=>{this.off(i,s,e),n.apply(null,t)};e.guid=n.guid,Pt(i,"one",s,e)}},any(...e){const{isTargetingSelf:t,target:i,type:s,listener:n}=Lt(this,e,"any");if(t)Pt(i,"any",s,n);else{const e=(...t)=>{this.off(i,s,e),n.apply(null,t)};e.guid=n.guid,Pt(i,"any",s,e)}},off(e,t,i){if(!e||kt(e))ht(this.eventBusEl_,e,t);else{const s=e,n=t;xt(s,this,"off"),It(n,this,"off"),At(i,this,"off"),i=yt(this,i),this.off("dispose",i),s.nodeName?(ht(s,n,i),ht(s,"dispose",i)):Ct(s)&&(s.off(n,i),s.off("dispose",i))}},trigger(e,t){xt(this.eventBusEl_,this,"trigger");const i=e&&"string"!=typeof e?e.type:e;if(!kt(i))throw new Error(`Invalid event type for ${Et(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return pt(this.eventBusEl_,e,t)}};function jt(e,t={}){const{eventBusKey:i}=t;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_=Te("span",{className:"vjs-event-bus"});return Object.assign(e,Ot),e.eventedCallbacks&&e.eventedCallbacks.forEach((e=>{e()})),e.on("dispose",(()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&it.has(e)&&it.delete(e)})),n().setTimeout((()=>{e.eventBusEl_=null}),0)})),e}const Dt={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),F(e,((e,i)=>{this.state[i]!==e&&(t=t||{},t[i]={from:this.state[i],to:e}),this.state[i]=e})),t&&Ct(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Mt(e,t){return Object.assign(e,Dt),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&Ct(e)&&e.on("statechanged",e.handleStateChanged),e}const Nt=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toLowerCase()))},Rt=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toUpperCase()))},Ft=function(e,t){return Rt(e)===Rt(t)};var Ut=Object.freeze({__proto__:null,toLowerCase:Nt,toTitleCase:Rt,titleCaseEquals:Ft});class Bt{constructor(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=q({},this.options_),t=this.options_=q(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${rt()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((e=>this.addClass(e))),["on","off","one","any","trigger"].forEach((e=>{this[e]=void 0})),!1!==t.evented&&(jt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Mt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}on(e,t){}off(e,t){}one(e,t){}any(e,t){}trigger(e,t){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let 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&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=q(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,i){return Te(e,t,i)}localize(e,t,i=e){const s=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),r=n&&n[s],o=s&&s.split("-")[0],a=n&&n[o];let l=i;return r&&r[e]?l=r[e]:a&&a[e]&&(l=a[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,i){const s=t[i-1];let n=s;return void 0===s&&(n=e),n}))),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce(((e,t)=>e.concat(t)),[]);let t=this;for(let i=0;i<e.length;i++)if(t=t.getChild(e[i]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",s=Te("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),n=o().createElementNS(i,"svg");n.setAttributeNS(null,"viewBox","0 0 512 512");const r=o().createElementNS(i,"use");return n.appendChild(r),r.setAttributeNS(null,"href",`#vjs-icon-${e}`),s.appendChild(n),this.iconIsSet_?t.replaceChild(s,t.querySelector(".vjs-icon-placeholder")):t.appendChild(s),this.iconIsSet_=!0,s}addChild(e,t={},i=this.children_.length){let s,n;if("string"==typeof e){n=Rt(e);const i=t.componentClass||n;t.name=n;const r=Bt.getComponent(i);if(!r)throw new Error(`Component ${i} does not exist`);if("function"!=typeof r)return null;s=new r(this.player_||this,t)}else s=e;if(s.parentComponent_&&s.parentComponent_.removeChild(s),this.children_.splice(i,0,s),s.parentComponent_=this,"function"==typeof s.id&&(this.childIndex_[s.id()]=s),n=n||s.name&&Rt(s.name()),n&&(this.childNameIndex_[n]=s,this.childNameIndex_[Nt(n)]=s),"function"==typeof s.el&&s.el()){let e=null;this.children_[i+1]&&(this.children_[i+1].el_?e=this.children_[i+1].el_:ye(this.children_[i+1])&&(e=this.children_[i+1])),this.contentEl().insertBefore(s.el(),e)}return s}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Rt(e.name())]=null,this.childNameIndex_[Nt(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,i=e=>{const i=e.name;let s=e.opts;if(void 0!==t[i]&&(s=t[i]),!1===s)return;!0===s&&(s={}),s.playerOptions=this.options_.playerOptions;const n=this.addChild(i,s);n&&(this[i]=n)};let s;const n=Bt.getComponent("Tech");s=Array.isArray(e)?e:Object.keys(e),s.concat(Object.keys(this.options_).filter((function(e){return!s.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((t=>{let i,s;return"string"==typeof t?(i=t,s=e[i]||this.options_[i]||{}):(i=t.name,s=t),{name:i,opts:s}})).filter((e=>{const t=Bt.getComponent(e.opts.componentClass||Rt(e.name));return t&&!n.isTech(t)})).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}triggerReady(){this.isReady_=!0,this.setTimeout((function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)}$(e,t){return He(e,t||this.contentEl())}$$(e,t){return ze(e,t||this.contentEl())}hasClass(e){return Ee(this.el_,e)}addClass(...e){Ce(this.el_,...e)}removeClass(...e){ke(this.el_,...e)}toggleClass(e,t){xe(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return Le(this.el_,e)}setAttribute(e,t){Pe(this.el_,e,t)}removeAttribute(e){Oe(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(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;const s=this.el_.style[e],n=s.indexOf("px");return-1!==n?parseInt(s.slice(0,n),10):parseInt(this.el_["offset"+Rt(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=We(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const i=`offset${Rt(e)}`;t=this.el_[i]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){const e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&("Tab"===e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,t=null;let i;this.on("touchstart",(function(s){1===s.touches.length&&(t={pageX:s.touches[0].pageX,pageY:s.touches[0].pageY},e=n().performance.now(),i=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)i=!1;else if(t){const s=e.touches[0].pageX-t.pageX,n=e.touches[0].pageY-t.pageY;Math.sqrt(s*s+n*n)>10&&(i=!1)}}));const s=function(){i=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",(function(s){if(t=null,!0===i){n().performance.now()-e<200&&(s.preventDefault(),this.trigger("tap"))}}))}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=yt(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));const i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,t){var i;return e=yt(this,e),this.clearTimersOnDispose_(),i=n().setTimeout((()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()}),t),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),n().clearTimeout(e)),e}setInterval(e,t){e=yt(this,e),this.clearTimersOnDispose_();const i=n().setInterval(e,t);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),n().clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=yt(this,e),t=n().requestAnimationFrame((()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()})),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),t=yt(this,t);const i=this.requestAnimationFrame((()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)}));return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),n().cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((([e,t])=>{this[e].forEach(((e,i)=>this[t](i)))})),this.clearingTimersOnDispose_=!1})))}getIsDisabled(){return Boolean(this.el_.disabled)}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function t(e){const t=n().getComputedStyle(e,null),i=t.getPropertyValue("visibility");return"none"!==t.getPropertyValue("display")&&!["hidden","collapse"].includes(i)}return e||(e=this.el()),!!(function(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;const t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0)return!1;if(t.x>(o().documentElement.clientWidth||n().innerWidth))return!1;if(t.y<0)return!1;if(t.y>(o().documentElement.clientHeight||n().innerHeight))return!1;let i=o().elementFromPoint(t.x,t.y);for(;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}}(e)&&(i=e,t(i.parentElement)&&t(i)&&"0"!==i.style.opacity&&"0px"!==n().getComputedStyle(i).height&&"0px"!==n().getComputedStyle(i).width)&&(!e.parentElement||e.tabIndex>=0));var i}static registerComponent(e,t){if("string"!=typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=Bt.getComponent("Tech"),s=i&&i.isTech(t),n=Bt===t||Bt.prototype.isPrototypeOf(t.prototype);if(s||!n){let t;throw t=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=Rt(e),Bt.components_||(Bt.components_={});const r=Bt.getComponent("Player");if("Player"===e&&r&&r.players){const e=r.players,t=Object.keys(e);if(e&&t.length>0&&t.map((t=>e[t])).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Bt.components_[e]=t,Bt.components_[Nt(e)]=t,t}static getComponent(e){if(e&&Bt.components_)return Bt.components_[e]}}function $t(e,t,i,s){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,s,i.length-1),i[s][t]}function qt(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:$t.bind(null,"start",0,e),end:$t.bind(null,"end",1,e)},n().Symbol&&n().Symbol.iterator&&(t[n().Symbol.iterator]=()=>(e||[]).values()),t}function Vt(e,t){return Array.isArray(e)?qt(e):void 0===e||void 0===t?qt():qt([[e,t]])}Bt.registerComponent("Component",Bt);const Ht=function(e,t){e=e<0?0:e;let i=Math.floor(e%60),s=Math.floor(e/60%60),n=Math.floor(e/3600);const r=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(n=s=i="-"),n=n>0||o>0?n+":":"",s=((n||r>=10)&&s<10?"0"+s:s)+":",i=i<10?"0"+i:i,n+s+i};let zt=Ht;function Wt(e){zt=e}function Gt(){zt=Ht}function Xt(e,t=e){return zt(e,t)}var Kt=Object.freeze({__proto__:null,createTimeRanges:Vt,createTimeRange:Vt,setFormatTime:Wt,resetFormatTime:Gt,formatTime:Xt});function Yt(e,t){let i,s,n=0;if(!t)return 0;e&&e.length||(e=Vt(0,0));for(let r=0;r<e.length;r++)i=e.start(r),s=e.end(r),s>t&&(s=t),n+=s-i;return n/t}function Qt(e){if(e instanceof Qt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:B(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=Qt.defaultMessages[this.code]||"")}function Jt(e){return null!=e&&"function"==typeof e.then}function Zt(e){Jt(e)&&e.then(null,(e=>{}))}Qt.prototype.code=0,Qt.prototype.message="",Qt.prototype.status=null,Qt.prototype.metadata=null,Qt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Qt.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."},Qt.MEDIA_ERR_CUSTOM=0,Qt.prototype.MEDIA_ERR_CUSTOM=0,Qt.MEDIA_ERR_ABORTED=1,Qt.prototype.MEDIA_ERR_ABORTED=1,Qt.MEDIA_ERR_NETWORK=2,Qt.prototype.MEDIA_ERR_NETWORK=2,Qt.MEDIA_ERR_DECODE=3,Qt.prototype.MEDIA_ERR_DECODE=3,Qt.MEDIA_ERR_SRC_NOT_SUPPORTED=4,Qt.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,Qt.MEDIA_ERR_ENCRYPTED=5,Qt.prototype.MEDIA_ERR_ENCRYPTED=5;const ei=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(((t,i,s)=>(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}}))})};var ti=function(e){const t=e.$$("track"),i=Array.prototype.map.call(t,(e=>e.track));return Array.prototype.map.call(t,(function(e){const t=ei(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(ei))},ii=function(e,t){return e.forEach((function(e){const i=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((e=>i.addCue(e)))})),t.textTracks()};const si="vjs-modal-dialog";class ni extends Bt{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Te("div",{className:`${si}-content`},{role:"document"}),this.descEl_=Te("p",{className:`${si}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Se(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${si} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let 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}open(){if(this.opened_)return void(this.options_.fillAlways&&this.fill());const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&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}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const 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({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let i=this.getChild("closeButton");if(t&&!i){const e=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),i=t.parentNode,s=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),qe(t,e),this.trigger("modalfill"),s?i.insertBefore(t,s):i.appendChild(t);const n=this.getChild("closeButton");n&&i.appendChild(n.el_)}empty(){this.trigger("beforemodalempty"),Ue(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){const e=o().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),"Escape"===e.key&&this.closeable())return e.preventDefault(),void this.close();if("Tab"!==e.key)return;const t=this.focusableEls_(),i=this.el_.querySelector(":focus");let s;for(let e=0;e<t.length;e++)if(i===t[e]){s=e;break}o().activeElement===this.el_&&(s=0),e.shiftKey&&0===s?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||s!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(e=>(e instanceof n().HTMLAnchorElement||e instanceof n().HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof n().HTMLInputElement||e instanceof n().HTMLSelectElement||e instanceof n().HTMLTextAreaElement||e instanceof n().HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof n().HTMLIFrameElement||e instanceof n().HTMLObjectElement||e instanceof n().HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")))}}ni.prototype.options_={pauseOnOpen:!0,temporary:!0},Bt.registerComponent("ModalDialog",ni);class ri extends wt{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Ct(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let i=0,s=this.length;i<s;i++)if(this[i]===e){t=this[i],t.off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}ri.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const e in ri.prototype.allowedEvents_)ri.prototype["on"+e]=null;const oi=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)};const ai=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)};class li extends ri{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class ui{constructor(e){ui.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let i=0;const s=e.length;this.cues_=e,this.length_=e.length;const n=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<s)for(i=t;i<s;i++)n.call(this,i)}getCueById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}const di={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},ci={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},hi={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},pi={disabled:"disabled",hidden:"hidden",showing:"showing"};class fi extends wt{constructor(e={}){super();const t={id:e.id||"vjs_track_"+rt(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const e in t)Object.defineProperty(this,e,{get:()=>t[e],set(){}});Object.defineProperty(this,"label",{get:()=>i,set(e){e!==i&&(i=e,this.trigger("labelchange"))}})}}const mi=function(e){return new URL(e,o().baseURI)},gi=function(e){return new URL(e,o().baseURI).href},_i=function(e){if("string"==typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},yi=function(e,t=n().location){return mi(e).origin!==t.origin};var bi=Object.freeze({__proto__:null,parseUrl:mi,getAbsoluteURL:gi,getFileExtension:_i,isCrossOrigin:yi});const vi=function(e,t){const i=new(n().WebVTT.Parser)(n(),n().vttjs,n().WebVTT.StringDecoder()),s=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){s.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),s.length>0&&(n().console&&n().console.groupCollapsed&&n().console.groupCollapsed(`Text Track parsing errors for ${t.src}`),s.forEach((e=>D.error(e))),n().console&&n().console.groupEnd&&n().console.groupEnd()),i.flush()},Ti=function(e,t){const i={uri:e},s=yi(e);s&&(i.cors=s);const r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),d()(i,yt(this,(function(e,i,s){if(e)return D.error(e,i);t.loaded_=!0,"function"!=typeof n().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(e=>{if("vttjserror"!==e.type)return vi(s,t);D.error(`vttjs failed to load, stopping trying to process ${t.src}`)})):vi(s,t)})))};class Si extends fi{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=q(e,{kind:hi[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=pi[t.mode]||"disabled";const s=t.default;"metadata"!==t.kind&&"chapters"!==t.kind||(i="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const n=new ui(this.cues_),r=new ui(this.activeCues_);let o=!1;this.timeupdateHandler=yt(this,(function(e={}){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));this.tech_.one("dispose",(()=>{this.stopTracking()})),"disabled"!==i&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>s,set(){}},mode:{get:()=>i,set(e){pi[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Ti(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?n:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return r;const e=this.tech_.currentTime(),t=[];for(let i=0,s=this.cues.length;i<s;i++){const s=this.cues[i];s.startTime<=e&&s.endTime>=e&&t.push(s)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(let e=0;e<t.length;e++)-1===this.activeCues_.indexOf(t[e])&&(o=!0);return this.activeCues_=t,r.setCues_(this.activeCues_),r},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&Ti(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new(n().vttjs.VTTCue)(e.startTime,e.endTime,e.text);for(const i in e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}const i=this.tech_.textTracks();for(let e=0;e<i.length;e++)i[e]!==this&&i[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;for(;t--;){const i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}Si.prototype.allowedEvents_={cuechange:"cuechange"};class wi extends fi{constructor(e={}){const t=q(e,{kind:ci[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"enabled",{get:()=>i,set(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class Ei extends fi{constructor(e={}){const t=q(e,{kind:di[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"selected",{get:()=>i,set(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class Ci extends wt{constructor(e={}){let t;super();const i=new Si(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>i}}),t=Ci.NONE,i.addEventListener("loadeddata",(()=>{t=Ci.LOADED,this.trigger({type:"load",target:this})}))}}Ci.prototype.allowedEvents_={load:"load"},Ci.NONE=0,Ci.LOADING=1,Ci.LOADED=2,Ci.ERROR=3;const ki={audio:{ListClass:class extends ri{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){oi(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&oi(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,oi(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}},TrackClass:wi,capitalName:"Audio"},video:{ListClass:class extends ri{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){ai(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&ai(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,ai(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}},TrackClass:Ei,capitalName:"Video"},text:{ListClass:li,TrackClass:Si,capitalName:"Text"}};Object.keys(ki).forEach((function(e){ki[e].getterName=`${e}Tracks`,ki[e].privateName=`${e}Tracks_`}));const xi={remoteText:{ListClass:li,TrackClass:Si,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let i=0,s=this.trackElements_.length;i<s;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}removeTrackElement_(e){for(let 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}}},TrackClass:Ci,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Ii=Object.assign({},ki,xi);xi.names=Object.keys(xi),ki.names=Object.keys(ki),Ii.names=[].concat(xi.names).concat(ki.names);class Ai extends Bt{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",(function(){this.hasStarted_=!0})),this.on("loadstart",(function(){this.hasStarted_=!1})),Ii.names.forEach((t=>{const i=Ii[t];e&&e[i.getterName]&&(this[i.privateName]=e[i.getterName])})),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)})),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new Ii.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",(()=>this.setTimeout((()=>this.triggerSourceset(e)),1))),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(yt(this,(function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return Vt(0,0)}bufferedPercent(){return Yt(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(ki.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){(e=[].concat(e)).forEach((e=>{const t=this[`${e}Tracks`]()||[];let i=t.length;for(;i--;){const s=t[i];"text"===e&&this.removeRemoteTextTrack(s),t.removeTrack(s)}}))}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;){const i=e[t];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new Qt(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?Vt(0,0):Vt()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){ki.names.forEach((e=>{const t=ki[e],i=()=>{this.trigger(`${e}trackchange`)},s=this[t.getterName]();s.addEventListener("removetrack",i),s.addEventListener("addtrack",i),this.on("dispose",(()=>{s.removeEventListener("removetrack",i),s.removeEventListener("addtrack",i)}))}))}addWebVttScript_(){if(!n().WebVTT)if(o().body.contains(this.el())){if(!this.options_["vtt.js"]&&$(h())&&Object.keys(h()).length>0)return void this.trigger("vttjsloaded");const e=o().createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",(()=>{e.onload=null,e.onerror=null})),n().WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),i=t=>e.addTrack(t.track),s=t=>e.removeTrack(t.track);t.on("addtrack",i),t.on("removetrack",s),this.addWebVttScript_();const n=()=>this.trigger("texttrackchange"),r=()=>{n();for(let t=0;t<e.length;t++){const i=e[t];i.removeEventListener("cuechange",n),"showing"===i.mode&&i.addEventListener("cuechange",n)}};r(),e.addEventListener("change",r),e.addEventListener("addtrack",r),e.addEventListener("removetrack",r),this.on("dispose",(function(){t.off("addtrack",i),t.off("removetrack",s),e.removeEventListener("change",r),e.removeEventListener("addtrack",r),e.removeEventListener("removetrack",r);for(let t=0;t<e.length;t++){e[t].removeEventListener("cuechange",n)}}))}addTextTrack(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,s,n={}){const r=e.textTracks();n.kind=t,i&&(n.label=i),s&&(n.language=s),n.tech=e;const o=new Ii.text.TrackClass(n);return r.addTrack(o),o}(this,e,t,i)}createRemoteTextTrack(e){const t=q(e,{tech:this});return new xi.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const i=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!1===t&&this.ready((()=>this.autoRemoteTextTracks_.addTrack(i.track))),i}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=rt();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",(()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())}))):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return Ai.canPlayType(e.type)}static isTech(e){return e.prototype instanceof Ai||e instanceof Ai||e===Ai}static registerTech(e,t){if(Ai.techs_||(Ai.techs_={}),!Ai.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!Ai.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Ai.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Rt(e),Ai.techs_[e]=t,Ai.techs_[Nt(e)]=t,"Tech"!==e&&Ai.defaultTechOrder_.push(e),t}static getTech(e){if(e)return Ai.techs_&&Ai.techs_[e]?Ai.techs_[e]:(e=Rt(e),n()&&n().videojs&&n().videojs[e]?(D.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),n().videojs[e]):void 0)}}Ii.names.forEach((function(e){const t=Ii[e];Ai.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Ai.prototype.featuresVolumeControl=!0,Ai.prototype.featuresMuteControl=!0,Ai.prototype.featuresFullscreenResize=!1,Ai.prototype.featuresPlaybackRate=!1,Ai.prototype.featuresProgressEvents=!1,Ai.prototype.featuresSourceset=!1,Ai.prototype.featuresTimeupdateEvents=!1,Ai.prototype.featuresNativeTextTracks=!1,Ai.prototype.featuresVideoFrameCallback=!1,Ai.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){let s=e.sourceHandlers;s||(s=e.sourceHandlers=[]),void 0===i&&(i=s.length),s.splice(i,0,t)},e.canPlayType=function(t){const i=e.sourceHandlers||[];let s;for(let e=0;e<i.length;e++)if(s=i[e].canPlayType(t),s)return s;return""},e.selectSourceHandler=function(t,i){const s=e.sourceHandlers||[];let n;for(let e=0;e<s.length;e++)if(n=s[e].canHandleSource(t,i),n)return s[e];return null},e.canPlaySource=function(t,i){const s=e.selectSourceHandler(t,i);return s?s.canHandleSource(t,i):""};["seekable","seeking","duration"].forEach((function(e){const 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){let i=e.selectSourceHandler(t,this.options_);i||(e.nativeSourceHandler?i=e.nativeSourceHandler:D.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)}},Bt.registerComponent("Tech",Ai),Ai.registerTech("Tech",Ai),Ai.defaultTechOrder_=[];const Li={},Pi={},Oi={};function ji(e,t,i){e.setTimeout((()=>Ui(t,Li[t.type],i,e)),1)}function Di(e,t,i,s=null){const n="call"+Rt(i),r=e.reduce(Fi(n),s),o=r===Oi,a=o?null:t[i](r);return function(e,t,i,s){for(let n=e.length-1;n>=0;n--){const r=e[n];r[t]&&r[t](s,i)}}(e,i,a,o),a}const Mi={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Ni={setCurrentTime:1,setMuted:1,setVolume:1},Ri={play:1,pause:1};function Fi(e){return(t,i)=>t===Oi?Oi:i[e]?i[e](t):t}function Ui(e={},t=[],i,s,n=[],r=!1){const[o,...a]=t;if("string"==typeof o)Ui(e,Li[o],i,s,n,r);else if(o){const t=function(e,t){const i=Pi[e.id()];let s=null;if(null==i)return s=t(e),Pi[e.id()]=[[t,s]],s;for(let e=0;e<i.length;e++){const[n,r]=i[e];n===t&&(s=r)}return null===s&&(s=t(e),i.push([t,s])),s}(s,o);if(!t.setSource)return n.push(t),Ui(e,a,i,s,n,r);t.setSource(Object.assign({},e),(function(o,l){if(o)return Ui(e,a,i,s,n,r);n.push(t),Ui(l,e.type===l.type?a:Li[l.type],i,s,n,r)}))}else a.length?Ui(e,a,i,s,n,r):r?i(e,n):Ui(e,Li["*"],i,s,n,!0)}const Bi={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",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},$i=function(e=""){const t=_i(e);return Bi[t.toLowerCase()]||""},qi=function(e){if(Array.isArray(e)){let t=[];e.forEach((function(e){e=qi(e),Array.isArray(e)?t=t.concat(e):B(e)&&t.push(e)})),e=t}else e="string"==typeof e&&e.trim()?[Vi({src:e})]:B(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[Vi(e)]:[];return e};function Vi(e){if(!e.type){const t=$i(e.src);t&&(e.type=t)}return e}const Hi=le?10009:ue?461:8,zi={codes:{play:415,pause:19,ff:417,rw:412,back:Hi},names:{415:"play",19:"pause",417:"ff",412:"rw",[Hi]:"back"},isEventKey(e,t){return t=t.toLowerCase(),!(!this.names[e.keyCode]||this.names[e.keyCode]!==t)},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){const t=this.codes[e.code];return this.names[t]}return null}};class Wi extends wt{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",(()=>{this.focus(this.updateFocusableComponents()[0])})),this.player_.on("modalclose",(()=>{this.refocusComponent()})),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0)}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){const t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();const e=t.key.substring(5).toLowerCase();this.move(e)}else if(zi.isEventKey(t,"play")||zi.isEventKey(t,"pause")||zi.isEventKey(t,"ff")||zi.isEventKey(t,"rw")){t.preventDefault();const e=zi.getEventName(t);this.performMediaAction_(e)}else zi.isEventKey(t,"Back")&&e.target&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+5);break;case"rw":this.userSeek_(this.player_.currentTime()-5)}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){const t=e.relatedTarget;let i=null;const s=this.getCurrentComponent(e.target);t&&(i=Boolean(t.closest(".video-js")),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(e.currentTarget.contains(e.relatedTarget)||i)&&t||("CloseButton"===s.name()?this.refocusComponent():(this.pause(),s&&s.el()&&(this.lastFocusedComponent_=s)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const e=this.player_,t=[];function i(e){for(const s of e)s.hasOwnProperty("el_")&&s.getIsFocusable()&&s.getIsAvailableToBeFocused(s.el())&&t.push(s),s.hasOwnProperty("children_")&&s.children_.length>0&&i(s.children_)}return e.children_.forEach((e=>{if(e.hasOwnProperty("el_")){if(e.getIsFocusable&&e.getIsAvailableToBeFocused&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el()))return void t.push(e);e.hasOwnProperty("children_")&&e.children_.length>0?i(e.children_):e.hasOwnProperty("items")&&e.items.length>0?i(e.items):this.findSuitableDOMChild(e)&&t.push(e)}})),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){return function t(i){if(e.getIsFocusable(i)&&e.getIsAvailableToBeFocused(i))return i;for(let e=0;e<i.children.length;e++){const s=t(i.children[e]);if(s)return s}return null}(e.el())}getCurrentComponent(e){this.updateFocusableComponents();const t=e||document.activeElement;if(this.focusableComponents.length)for(const e of this.focusableComponents)if(e.el()===t)return e}add(e){const t=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name())return this.focusableComponents.splice(t,1),void this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(e){const t=this.getCurrentComponent();if(!t)return;const i=t.getPositions(),s=this.focusableComponents.filter((s=>s!==t&&this.isInDirection_(i.boundingClientRect,s.getPositions().boundingClientRect,e))),n=this.findBestCandidate_(i.center,s,e);n?this.focus(n):this.trigger({type:"endOfFocusableComponents",direction:e,focusedComponent:t})}findBestCandidate_(e,t,i){let s=1/0,n=null;for(const r of t){const t=r.getPositions().center,o=this.calculateDistance_(e,t,i);o<s&&(s=o,n=r)}return n}isInDirection_(e,t,i){switch(i){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name())return void this.focus(this.focusableComponents[e])}else this.focus(this.updateFocusableComponents()[0])}focus(e){e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus()}calculateDistance_(e,t,i){const s=Math.abs(e.x-t.x),n=Math.abs(e.y-t.y);let r;switch(i){case"right":case"left":r=s+100*n;break;case"up":r=2*n+.5*s;break;case"down":r=5*n+s;break;default:r=s+n}return r}searchForTrackSelect_(){const e=this;for(const t of e.updateFocusableComponents())if("TextTrackSelect"===t.constructor.name){e.focus(t);break}}}Bt.registerComponent("MediaLoader",class extends Bt{constructor(e,t,i){if(super(e,q({createEl:!1},t),i),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let i=0,s=t.playerOptions.techOrder;i<s.length;i++){const t=Rt(s[i]);let n=Ai.getTech(t);if(t||(n=Bt.getComponent(t)),n&&n.isSupported()){e.loadTech_(t);break}}}});class Gi extends Bt{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},i={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&D.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=t.tabIndex;const s=Te(e,t,i);return this.player_.options_.experimentalSvgIcons||s.appendChild(Te("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Te("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,Se(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){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_))}disable(){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_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){" "===e.key||"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Bt.registerComponent("ClickableComponent",Gi);class Xi extends Gi{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Te("div",{className:"vjs-poster"})}crossOrigin(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(Te("picture",{className:"vjs-poster",tabIndex:-1},{},Te("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?Zt(this.player_.play()):this.player_.pause())}}Xi.prototype.crossorigin=Xi.prototype.crossOrigin,Bt.registerComponent("PosterImage",Xi);const Ki="#222",Yi="#ccc",Qi={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',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Ji(e,t){let 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 Zi(e,t,i){try{e.style[t]=i}catch(e){return}}function es(e){return e?`${e}px`:""}Bt.registerComponent("TextTrackDisplay",class extends Bt{constructor(e,t,i){super(e,t,i);const s=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",(e=>this.toggleDisplay(e))),e.on("texttrackchange",(e=>this.updateDisplay(e))),e.on("loadedmetadata",(e=>{this.updateDisplayOverlay(),this.preselectTrack(e)})),e.ready(yt(this,(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",s),e.on("playerresize",s);const t=n().screen.orientation||n(),i=n().screen.orientation?"change":"orientationchange";t.addEventListener(i,s),e.on("dispose",(()=>t.removeEventListener(i,s)));const r=this.options_.playerOptions.tracks||[];for(let e=0;e<r.length;e++)this.player_.addRemoteTextTrack(r[e],!0);this.preselectTrack()})))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let s,n,r;for(let o=0;o<t.length;o++){const a=t[o];i&&i.enabled&&i.language&&i.language===a.language&&a.kind in e?a.kind===i.kind?r=a:r||(r=a):i&&!i.enabled?(r=null,s=null,n=null):a.default&&("descriptions"!==a.kind||s?a.kind in e&&!n&&(n=a):s=a)}r?r.mode="showing":n?n.mode="showing":s&&(s.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof n().WebVTT&&n().WebVTT.processCues(n(),[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const t=[];for(let i=0;i<e.length;++i){const s=e[i];"showing"===s.mode&&t.push(s)}return void this.updateForTrack(t)}let i=null,s=null,n=e.length;for(;n--;){const t=e[n];"showing"===t.mode&&("descriptions"===t.kind?i=t:s=t)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!n().CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,s=this.player_.videoWidth()/this.player_.videoHeight();let r=0,o=0;Math.abs(i-s)>.1&&(i>s?r=Math.round((e-t*s)/2):o=Math.round((t-e/s)/2)),Zi(this.el_,"insetInline",es(r)),Zi(this.el_,"insetBlock",es(o))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),i=e.activeCues;let s=i.length;for(;s--;){const e=i[s];if(!e)continue;const r=e.displayState;if(t.color&&(r.firstChild.style.color=t.color),t.textOpacity&&Zi(r.firstChild,"color",Ji(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(r.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Zi(r.firstChild,"backgroundColor",Ji(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Zi(r,"backgroundColor",Ji(t.windowColor,t.windowOpacity)):r.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?r.firstChild.style.textShadow=`2px 2px 3px ${Ki}, 2px 2px 4px ${Ki}, 2px 2px 5px ${Ki}`:"raised"===t.edgeStyle?r.firstChild.style.textShadow=`1px 1px ${Ki}, 2px 2px ${Ki}, 3px 3px ${Ki}`:"depressed"===t.edgeStyle?r.firstChild.style.textShadow=`1px 1px ${Yi}, 0 1px ${Yi}, -1px -1px ${Ki}, 0 -1px ${Ki}`:"uniform"===t.edgeStyle&&(r.firstChild.style.textShadow=`0 0 4px ${Ki}, 0 0 4px ${Ki}, 0 0 4px ${Ki}, 0 0 4px ${Ki}`)),t.fontPercent&&1!==t.fontPercent){const e=n().parseFloat(r.style.fontSize);r.style.fontSize=e*t.fontPercent+"px",r.style.height="auto",r.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?r.firstChild.style.fontVariant="small-caps":r.firstChild.style.fontFamily=Qi[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof n().WebVTT||e.every((e=>!e.activeCues)))return;const t=[];for(let i=0;i<e.length;++i){const s=e[i];for(let e=0;e<s.activeCues.length;++e)t.push(s.activeCues[e])}n().WebVTT.processCues(n(),t,this.el_);for(let t=0;t<e.length;++t){const i=e[t];for(let e=0;e<i.activeCues.length;++e){const s=i.activeCues[e].displayState;Ce(s,"vjs-text-track-cue","vjs-text-track-cue-"+(i.language?i.language:t)),i.language&&Pe(s,"lang",i.language)}this.player_.textTrackSettings&&this.updateDisplayState(i)}}});Bt.registerComponent("LoadingSpinner",class extends Bt{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=Te("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),s=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return s.appendChild(i),s}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class ts extends Gi{createEl(e,t={},i={}){const s=Te("button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i));return this.player_.options_.experimentalSvgIcons||s.appendChild(Te("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}addChild(e,t={}){const i=this.constructor.name;return D.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),Bt.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){" "!==e.key&&"Enter"!==e.key?super.handleKeyDown(e):e.stopPropagation()}}Bt.registerComponent("Button",ts);class is extends ts{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",(e=>this.handleMouseDown(e)))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return Zt(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const i=this.player_.getChild("controlBar"),s=i&&i.getChild("playToggle");if(!s)return void this.player_.tech(!0).focus();const n=()=>s.focus();Jt(t)?t.then(n,(()=>{})):this.setTimeout(n,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}is.prototype.controlText_="Play Video",Bt.registerComponent("BigPlayButton",is);Bt.registerComponent("CloseButton",class extends ts{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class ss extends ts{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",(e=>this.handlePlay(e))),this.on(e,"pause",(e=>this.handlePause(e))),t.replay&&this.on(e,"ended",(e=>this.handleEnded(e)))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?Zt(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",(e=>this.handleSeeked(e)))}}ss.prototype.controlText_="Play",Bt.registerComponent("PlayToggle",ss);class ns extends Bt{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],(e=>this.update(e))),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=Te("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return t.appendChild(i),this.contentEl_=Te("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=Xt(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,D.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=o().createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))})))}updateContent(e){}}ns.prototype.labelText_="Time",ns.prototype.controlText_="Time",Bt.registerComponent("TimeDisplay",ns);class rs extends ns{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}rs.prototype.labelText_="Current Time",rs.prototype.controlText_="Current Time",Bt.registerComponent("CurrentTimeDisplay",rs);class os extends ns{constructor(e,t){super(e,t);const i=e=>this.updateContent(e);this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}os.prototype.labelText_="Duration",os.prototype.controlText_="Duration",Bt.registerComponent("DurationDisplay",os);Bt.registerComponent("TimeDivider",class extends Bt{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e}});class as extends ns{constructor(e,t){super(e,t),this.on(e,"durationchange",(e=>this.updateContent(e)))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(Te("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}as.prototype.labelText_="Remaining Time",as.prototype.controlText_="Remaining Time",Bt.registerComponent("RemainingTimeDisplay",as);Bt.registerComponent("LiveDisplay",class extends Bt{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",(e=>this.updateShowing(e)))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Te("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Te("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(o().createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});class ls extends ts{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=Te("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!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"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function us(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}ls.prototype.controlText_="Seek to live, currently playing live",Bt.registerComponent("SeekToLive",ls);var ds=Object.freeze({__proto__:null,clamp:us});class cs extends Bt{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){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)}disable(){if(!this.enabled())return;const 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}createEl(e,t={},i={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,t,i)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Z||e.preventDefault(),je(),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,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;De(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",(()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"}))),e}getProgress(){return Number(us(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=Re(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){const t=this.options_.playerOptions.spatialNavigation,i=t&&t.enabled,s=t&&t.horizontalSeek;i?s&&"ArrowLeft"===e.key||!s&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):s&&"ArrowRight"===e.key||!s&&"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):"ArrowUp"===e.key||"ArrowRight"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}Bt.registerComponent("Slider",cs);const hs=(e,t)=>us(e/t*100,0,100).toFixed(2)+"%";Bt.registerComponent("LoadProgressBar",class extends Bt{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",(e=>this.update(e)))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=Te("span",{className:"vjs-control-text"}),i=Te("span",{textContent:this.localize("Loaded")}),s=o().createTextNode(": ");return this.percentageEl_=Te("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(s),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",(()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():this.player_.duration(),s=this.player_.bufferedEnd(),n=this.partEls_,r=hs(s,i);this.percent_!==r&&(this.el_.style.width=r,Se(this.percentageEl_,r),this.percent_=r);for(let e=0;e<t.length;e++){const i=t.start(e),r=t.end(e);let o=n[e];o||(o=this.el_.appendChild(Te()),n[e]=o),o.dataset.start===i&&o.dataset.end===r||(o.dataset.start=i,o.dataset.end=r,o.style.left=hs(i,s),o.style.width=hs(r-i,s))}for(let e=n.length;e>t.length;e--)this.el_.removeChild(n[e-1]);n.length=t.length}))}});Bt.registerComponent("TimeTooltip",class extends Bt{constructor(e,t){super(e,t),this.update=bt(yt(this,this.update),_t)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,i){const s=Ne(this.el_),n=Me(this.player_.el()),r=e.width*t;if(!n||!s)return;let o=e.left-n.left+r,a=e.width-r+(n.right-e.right);a||(a=e.width-r,o=r);let l=s.width/2;o<l?l+=l-o:a<l&&(l=a),l<0?l=0:l>s.width&&(l=s.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(i)}write(e){Se(this.el_,e)}updateTime(e,t,i,s){this.requestNamedAnimationFrame("TimeTooltip#updateTime",(()=>{let n;const r=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),i=e-t*e;n=(i<1?"":"-")+Xt(i,e)}else n=Xt(i,r);this.update(e,t,n),s&&s()}))}});class ps extends Bt{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=bt(yt(this,this.update),_t)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const i=this.getChild("timeTooltip");if(!i)return;const s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,s)}}ps.prototype.options_={children:[]},pe||K||ps.prototype.options_.children.push("timeTooltip"),Bt.registerComponent("PlayProgressBar",ps);class fs extends Bt{constructor(e,t){super(e,t),this.update=bt(yt(this,this.update),_t)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(()=>{this.el_.style.left=e.width*t+"px"}))}}fs.prototype.options_={children:["timeTooltip"]},Bt.registerComponent("MouseTimeDisplay",fs);class ms extends cs{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=yt(this,this.update),this.update=bt(this.update_,_t),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.on(o(),"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===o().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,_t))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===o().visibilityState)return;const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",(()=>{const e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),i=this.player_.liveTracker;let s=this.player_.duration();i&&i.isLive()&&(s=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===e&&this.duration_===s||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Xt(e,s),Xt(s,s)],"{1} of {2}")),this.currentTime_=e,this.duration_=s),this.bar&&this.bar.update(Me(this.el()),this.getProgress())})),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let t;const i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){Ve(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!Ve(e)||isNaN(this.player_.duration()))return;let i;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const s=this.calculateDistance(e),n=this.player_.liveTracker;if(n&&n.isLive()){if(s>=.99)return void n.seekToLiveEdge();const e=n.seekableStart(),t=n.liveCurrentTime();if(i=e+s*n.liveWindow(),i>=t&&(i=t),i<=e&&(i=e+.1),i===1/0)return}else i=s*this.player_.duration(),i===this.player_.duration()&&(i-=.1);this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Zt(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+5)}stepBack(){this.userSeek_(this.player_.currentTime()-5)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(" "===e.key||"Enter"===e.key)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if("Home"===e.key)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if("End"===e.key)e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();const i=.1*parseInt(e.key,10);t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else"PageDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):"PageUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],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 o()&&"visibilityState"in o()&&this.off(o(),"visibilitychange",this.toggleVisibility_),super.dispose()}}ms.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},pe||K||ms.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Bt.registerComponent("SeekBar",ms);class gs extends Bt{constructor(e,t){super(e,t),this.handleMouseMove=bt(yt(this,this.handleMouseMove),_t),this.throttledHandleMouseSeek=bt(yt(this,this.handleMouseSeek),_t),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const i=t.getChild("playProgressBar"),s=t.getChild("mouseTimeDisplay");if(!i&&!s)return;const n=t.el(),r=Ne(n);let o=Re(n,e).x;o=us(o,0,1),s&&s.update(r,o),i&&i.update(r,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach((e=>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())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Zt(this.player_.play())}}enable(){this.children().forEach((e=>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)}removeListenersAddedOnMousedownAndTouchstart(){const 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_)}handleMouseDown(e){const 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_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}gs.prototype.options_={children:["seekBar"]},Bt.registerComponent("ProgressControl",gs);class _s extends ts{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],(e=>this.handlePictureInPictureChange(e))),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],(e=>this.handlePictureInPictureEnabledChange(e))),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(()=>this.handlePictureInPictureAudioModeChange())),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){o().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in n()?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof o().exitPictureInPicture&&super.show()}}_s.prototype.controlText_="Picture-in-Picture",Bt.registerComponent("PictureInPictureToggle",_s);class ys extends ts{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",(e=>this.handleFullscreenChange(e))),!1===o()[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}ys.prototype.controlText_="Fullscreen",Bt.registerComponent("FullscreenToggle",ys);Bt.registerComponent("VolumeLevel",class extends Bt{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}});Bt.registerComponent("VolumeLevelTooltip",class extends Bt{constructor(e,t){super(e,t),this.update=bt(yt(this,this.update),_t)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,i,s){if(!i){const i=Me(this.el_),s=Me(this.player_.el()),n=e.width*t;if(!s||!i)return;const r=e.left-s.left+n,o=e.width-n+(s.right-e.right);let a=i.width/2;r<a?a+=a-r:o<a&&(a=o),a<0?a=0:a>i.width&&(a=i.width),this.el_.style.right=`-${a}px`}this.write(`${s}%`)}write(e){Se(this.el_,e)}updateVolume(e,t,i,s,n){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(()=>{this.update(e,t,i,s.toFixed(0)),n&&n()}))}});class bs extends Bt{constructor(e,t){super(e,t),this.update=bt(yt(this,this.update),_t)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,i){const s=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,s,(()=>{i?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"}))}}bs.prototype.options_={children:["volumeLevelTooltip"]},Bt.registerComponent("MouseVolumeLevelDisplay",bs);class vs extends cs{constructor(e,t){super(e,t),this.on("slideractive",(e=>this.updateLastVolume_(e))),this.on(e,"volumechange",(e=>this.updateARIAAttributes(e))),e.ready((()=>this.updateARIAAttributes()))}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){Ve(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const i=this.el(),s=Me(i),n=this.vertical();let r=Re(i,e);r=n?r.y:r.x,r=us(r,0,1),t.update(s,r,n)}Ve(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",(()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)}))}}vs.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},pe||K||vs.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),vs.prototype.playerEvent="volumechange",Bt.registerComponent("VolumeBar",vs);class Ts extends Bt{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||$(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),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")}))}(this,e),this.throttledHandleMouseMove=bt(yt(this,this.handleMouseMove),_t),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",(e=>this.handleMouseDown(e))),this.on("touchstart",(e=>this.handleMouseDown(e))),this.on("mousemove",(e=>this.handleMouseMove(e))),this.on(this.volumeBar,["focus","slideractive"],(()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")})),this.on(this.volumeBar,["blur","sliderinactive"],(()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")}))}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const 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_)}handleMouseUp(e){const 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_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}Ts.prototype.options_={children:["volumeBar"]},Bt.registerComponent("VolumeControl",Ts);class Ss extends ts{constructor(e,t){super(e,t),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")}))}(this,e),this.on(e,["loadstart","volumechange"],(e=>this.update(e)))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){const e=i<.1?.1:i;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),pe&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),ke(this.el_,[0,1,2,3].reduce(((e,t)=>e+`${t?" ":""}vjs-vol-${t}`),"")),Ce(this.el_,`vjs-vol-${t}`)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}Ss.prototype.controlText_="Mute",Bt.registerComponent("MuteToggle",Ss);class ws extends Bt{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||$(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],(e=>this.volumePanelState_(e))),this.on(this.muteToggle,"keyup",(e=>this.handleKeyPress(e))),this.on(this.volumeControl,"keyup",(e=>this.handleVolumeControlKeyUp(e))),this.on("keydown",(e=>this.handleKeyPress(e))),this.on("mouseover",(e=>this.handleMouseOver(e))),this.on("mouseout",(e=>this.handleMouseOut(e))),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){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")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){"Escape"===e.key&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),ct(o(),"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),ht(o(),"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){"Escape"===e.key&&this.handleMouseOut()}}ws.prototype.options_={children:["muteToggle","volumeControl"]},Bt.registerComponent("VolumePanel",ws);class Es extends ts{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()?i.seekableEnd():this.player_.duration();let n;n=t+this.skipTime<=s?t+this.skipTime:s,this.player_.currentTime(n)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}Es.prototype.controlText_="Skip Forward",Bt.registerComponent("SkipForward",Es);class Cs extends ts{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()&&i.seekableStart();let n;n=s&&t-this.skipTime<=s?s:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(n)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}Cs.prototype.controlText_="Skip Backward",Bt.registerComponent("SkipBackward",Cs);class ks extends Bt{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",(e=>this.handleKeyDown(e))),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof Bt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Bt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=Te(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),ct(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||o().activeElement;if(!this.children().some((e=>e.el()===t))){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const i=t.filter((t=>t.el()===e.target))[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}handleKeyDown(e){"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const 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())}}Bt.registerComponent("Menu",ks);class xs extends Bt{constructor(e,t={}){super(e,t),this.menuButton_=new ts(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=ts.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const s=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",s),this.on(this.menuButton_,"click",s),this.on(this.menuButton_,"keydown",(e=>this.handleKeyDown(e))),this.on(this.menuButton_,"mouseenter",(()=>{this.addClass("vjs-hover"),this.menu.show(),ct(o(),"keyup",this.handleMenuKeyUp_)})),this.on("mouseleave",(e=>this.handleMouseLeave(e))),this.on("keydown",(e=>this.handleSubmenuKeyDown(e)))}update(){const 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.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new ks(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=Te("li",{className:"vjs-menu-title",textContent:Rt(this.options_.title),tabIndex:-1}),i=new Bt(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";return`vjs-menu-button ${e} ${ts.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),ht(o(),"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){"Esc"===e.key||"Tab"===e.key?(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus())):"Up"!==e.key&&("Down"!==e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)||this.buttonPressed_||(e.preventDefault(),this.pressButton())}handleMenuKeyUp(e){"Esc"!==e.key&&"Tab"!==e.key||this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){"Esc"!==e.key&&"Tab"!==e.key||(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),pe&&be())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}Bt.registerComponent("MenuButton",xs);class Is extends xs{constructor(e,t){const i=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!i)return;const s=yt(this,this.update);i.addEventListener("removetrack",s),i.addEventListener("addtrack",s),i.addEventListener("labelchange",s),this.player_.on("ready",s),this.player_.on("dispose",(function(){i.removeEventListener("removetrack",s),i.removeEventListener("addtrack",s),i.removeEventListener("labelchange",s)}))}}Bt.registerComponent("TrackButton",Is);class As extends Gi{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,i){this.nonIconControl=!0;const s=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),i),n=Te("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?s.appendChild(n):s.replaceChild(n,s.querySelector(".vjs-icon-placeholder")),s}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.key)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(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))}}Bt.registerComponent("MenuItem",As);class Ls extends As{constructor(e,t){const i=t.track,s=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,super(e,t),this.track=i,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const r=(...e)=>{this.handleTracksChange.apply(this,e)},a=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],r),s.addEventListener("change",r),s.addEventListener("selectedlanguagechange",a),this.on("dispose",(function(){e.off(["loadstart","texttrackchange"],r),s.removeEventListener("change",r),s.removeEventListener("selectedlanguagechange",a)})),void 0===s.onchange){let e;this.on(["tap","click"],(function(){if("object"!=typeof n().Event)try{e=new(n().Event)("change")}catch(e){}e||(e=o().createEvent("Event"),e.initEvent("change",!0,!0)),s.dispatchEvent(e)}))}this.handleTracksChange()}handleClick(e){const t=this.track,i=this.player_.textTracks();if(super.handleClick(e),i)for(let e=0;e<i.length;e++){const s=i[e];-1!==this.kinds.indexOf(s.kind)&&(s===t?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}Bt.registerComponent("TextTrackMenuItem",Ls);class Ps extends Ls{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let i=!0;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(this.options_.kinds.indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let i=!0;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}Bt.registerComponent("OffTextTrackMenuItem",Ps);class Os extends Is{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=Ls){let i;this.label_&&(i=`${this.label_} off`),e.push(new Ps(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const s=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let i=0;i<s.length;i++){const n=s[i];if(this.kinds_.indexOf(n.kind)>-1){const i=new t(this.player_,{track:n,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});i.addClass(`vjs-${n.kind}-menu-item`),e.push(i)}}return e}}Bt.registerComponent("TextTrackButton",Os);class js extends As{constructor(e,t){const i=t.track,s=t.cue,n=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=s.text,t.selected=s.startTime<=n&&n<s.endTime,super(e,t),this.track=i,this.cue=s}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Bt.registerComponent("ChaptersTrackMenuItem",js);class Ds extends Os{constructor(e,t,i){super(e,t,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach((e=>{e.selected(this.track_.activeCues[0]===e.cue)}))}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const i=e[t];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Rt(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let i=0,s=t.length;i<s;i++){const s=t[i],n=new js(this.player_,{track:this.track_,cue:s});e.push(n)}return e}}Ds.prototype.kind_="chapters",Ds.prototype.controlText_="Chapters",Bt.registerComponent("ChaptersButton",Ds);class Ms extends Os{constructor(e,t,i){super(e,t,i),this.setIcon("audio-description");const s=e.textTracks(),n=yt(this,this.handleTracksChange);s.addEventListener("change",n),this.on("dispose",(function(){s.removeEventListener("change",n)}))}handleTracksChange(e){const t=this.player().textTracks();let i=!1;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(s.kind!==this.kind_&&"showing"===s.mode){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Ms.prototype.kind_="descriptions",Ms.prototype.controlText_="Descriptions",Bt.registerComponent("DescriptionsButton",Ms);class Ns extends Os{constructor(e,t,i){super(e,t,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}Ns.prototype.kind_="subtitles",Ns.prototype.controlText_="Subtitles",Bt.registerComponent("SubtitlesButton",Ns);class Rs extends Ls{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}Bt.registerComponent("CaptionSettingsMenuItem",Rs);class Fs extends Os{constructor(e,t,i){super(e,t,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Rs(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}Fs.prototype.kind_="captions",Fs.prototype.controlText_="Captions",Bt.registerComponent("CaptionsButton",Fs);class Us extends Ls{createEl(e,t,i){const s=super.createEl(e,t,i),n=s.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",s):n.appendChild(Te("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(Te("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),s}}Bt.registerComponent("SubsCapsMenuItem",Us);class Bs extends Os{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Rt(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Rs(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,Us),e}}Bs.prototype.kinds_=["captions","subtitles"],Bs.prototype.controlText_="Subtitles",Bt.registerComponent("SubsCapsButton",Bs);class $s extends As{constructor(e,t){const i=t.track,s=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,super(e,t),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const n=(...e)=>{this.handleTracksChange.apply(this,e)};s.addEventListener("change",n),this.on("dispose",(()=>{s.removeEventListener("change",n)}))}createEl(e,t,i){const s=super.createEl(e,t,i),n=s.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(n.appendChild(Te("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(Te("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),s}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const i=e[t];i!==this.track&&(i.enabled=i===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}Bt.registerComponent("AudioTrackMenuItem",$s);class qs extends Is{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let i=0;i<t.length;i++){const s=t[i];e.push(new $s(this.player_,{track:s,selectable:!0,multiSelectable:!1}))}return e}}qs.prototype.controlText_="Audio Track",Bt.registerComponent("AudioTrackButton",qs);class Vs extends As{constructor(e,t){const i=t.rate,s=parseFloat(i,10);t.label=i,t.selected=s===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=i,this.rate=s,this.on(e,"ratechange",(e=>this.update(e)))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}Vs.prototype.contentElType="button",Bt.registerComponent("PlaybackRateMenuItem",Vs);class Hs extends xs{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",(e=>this.updateVisibility(e))),this.on(e,"ratechange",(e=>this.updateLabel(e))),this.on(e,"playbackrateschange",(e=>this.handlePlaybackRateschange(e)))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Te("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let i=e.length-1;i>=0;i--)t.push(new Vs(this.player(),{rate:e[i]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}Hs.prototype.controlText_="Playback Rate",Bt.registerComponent("PlaybackRateMenuButton",Hs);class zs extends Bt{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},i={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,i)}}Bt.registerComponent("Spacer",zs);Bt.registerComponent("CustomControlSpacer",class extends zs{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}});class Ws extends Bt{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}Ws.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},Bt.registerComponent("ControlBar",Ws);class Gs extends ni{constructor(e,t){super(e,t),this.on(e,"error",(e=>{this.open(e)}))}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}Gs.prototype.options_=Object.assign({},ni.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Bt.registerComponent("ErrorDisplay",Gs);class Xs extends Bt{constructor(e,t={}){super(e,t),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim();return Te("select",{id:this.options_.id},{},this.options_.SelectOptions.map((e=>{const t=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${rt()}`)+"-"+e[1].replace(/\W+/g,""),i=Te("option",{id:t,value:this.localize(e[0]),textContent:e[1]});return i.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${t}`),i})))}}Bt.registerComponent("TextTrackSelect",Xs);class Ks extends Bt{constructor(e,t={}){super(e,t);const i=Te("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(i);const s=this.options_.selects;for(const t of s){const i=this.options_.selectConfigs[t],s=i.className,n=i.id.replace("%s",this.options_.id_);let r=null;const o=`vjs_select_${rt()}`;if("colors"===this.options_.type){r=Te("span",{className:s});const e=Te("label",{id:n,className:"vjs-label",textContent:i.label});e.setAttribute("for",o),r.appendChild(e)}const a=new Xs(e,{SelectOptions:i.options,legendId:this.options_.legendId,id:o,labelId:n});this.addChild(a),"colors"===this.options_.type&&(r.appendChild(a.el()),this.el().appendChild(r))}}createEl(){return Te("fieldset",{className:this.options_.className})}}Bt.registerComponent("TextTrackFieldset",Ks);class Ys extends Bt{constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,s=new Ks(e,{id_:i,legendId:`captions-text-legend-${i}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(s);const n=new Ks(e,{id_:i,legendId:`captions-background-${i}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(n);const r=new Ks(e,{id_:i,legendId:`captions-window-${i}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(r)}createEl(){return Te("div",{className:"vjs-track-settings-colors"})}}Bt.registerComponent("TextTrackSettingsColors",Ys);class Qs extends Bt{constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,s=new Ks(e,{id_:i,legendId:`captions-font-size-${i}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(s);const n=new Ks(e,{id_:i,legendId:`captions-edge-style-${i}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(n);const r=new Ks(e,{id_:i,legendId:`captions-font-family-${i}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(r)}createEl(){return Te("div",{className:"vjs-track-settings-font"})}}Bt.registerComponent("TextTrackSettingsFont",Qs);class Js extends Bt{constructor(e,t={}){super(e,t);const i=this.localize("restore all settings to the default values"),s=new ts(e,{controlText:i,className:"vjs-default-button"});s.el().classList.remove("vjs-control","vjs-button"),s.el().textContent=this.localize("Reset"),this.addChild(s);const n=new ts(e,{controlText:i,className:"vjs-done-button"});n.el().classList.remove("vjs-control","vjs-button"),n.el().textContent=this.localize("Done"),this.addChild(n)}createEl(){return Te("div",{className:"vjs-track-settings-controls"})}}Bt.registerComponent("TrackSettingsControls",Js);const Zs="vjs-text-track-settings",en=["#000","Black"],tn=["#00F","Blue"],sn=["#0FF","Cyan"],nn=["#0F0","Green"],rn=["#F0F","Magenta"],on=["#F00","Red"],an=["#FFF","White"],ln=["#FF0","Yellow"],un=["1","Opaque"],dn=["0.5","Semi-Transparent"],cn=["0","Transparent"],hn={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[en,an,on,nn,tn,ln,rn,sn],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[un,dn,cn],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[an,en,on,nn,tn,ln,rn,sn],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",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:"",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:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[un,dn],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[cn,dn,un],className:"vjs-window-opacity vjs-opacity"}};function pn(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}hn.windowColor.options=hn.backgroundColor.options;Bt.registerComponent("TextTrackSettings",class extends ni{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=Te("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){const t=new Ys(e,{textTrackComponentid:this.id_,selectConfigs:hn,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);const i=new Qs(e,{textTrackComponentid:this.id_,selectConfigs:hn,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(i);const s=new Js(e);this.addChild(s)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),"click",(()=>{this.saveSettings(),this.close()})),this.on(this.$(".vjs-default-button"),"click",(()=>{this.setDefaults(),this.updateDisplay()})),F(hn,(e=>{this.on(this.$(e.selector),"change",this.updateDisplay)}))}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return U(hn,((e,t,i)=>{const s=(n=this.$(t.selector),r=t.parser,pn(n.options[n.options.selectedIndex].value,r));var n,r;return void 0!==s&&(e[i]=s),e}),{})}setValues(e){F(hn,((t,i)=>{!function(e,t,i){if(t)for(let s=0;s<e.options.length;s++)if(pn(e.options[s].value,i)===t){e.selectedIndex=s;break}}(this.$(t.selector),e[i],t.parser)}))}setDefaults(){F(hn,(e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t}))}restoreSettings(){let e;try{e=JSON.parse(n().localStorage.getItem(Zs))}catch(e){D.warn(e)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?n().localStorage.setItem(Zs,JSON.stringify(e)):n().localStorage.removeItem(Zs)}catch(e){D.warn(e)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}});Bt.registerComponent("ResizeManager",class extends Bt{constructor(e,t){let i=t.ResizeObserver||n().ResizeObserver;null===t.ResizeObserver&&(i=!1);super(e,q({createEl:!i,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||n().ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=vt((()=>{this.resizeHandler()}),100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){ht(this,"resize",e),ht(this,"unload",t),t=null};ct(this.el_.contentWindow,"unload",t),ct(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){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,super.dispose()}});const fn={trackingThreshold:20,liveTolerance:15};Bt.registerComponent("LiveTracker",class extends Bt{constructor(e,t){super(e,q(fn,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",(e=>this.handleDurationchange(e))),this.on(this.player_,"canplay",(()=>this.toggleTracking()))}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(n().performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;const s=this.liveCurrentTime(),r=this.player_.currentTime();let o=this.player_.paused()||this.seekedBehindLive_||Math.abs(s-r)>this.options_.liveTolerance;this.timeupdateSeen_&&s!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){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())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,_t),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_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){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_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}});Bt.registerComponent("TitleBar",class extends Bt{constructor(e,t){super(e,t),this.on("statechanged",(e=>this.updateDom_())),this.updateDom_()}createEl(){return this.els={title:Te("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${rt()}`}),description:Te("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${rt()}`})},Te("div",{className:"vjs-title-bar"},{},V(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach((e=>{const s=this.state[e],n=this.els[e],r=i[e];Ue(n),s&&Se(n,s),t&&(t.removeAttribute(r),s&&t.setAttribute(r,n.id))})),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});const mn=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const i=e.$$("source"),s=[];let n="";if(!i.length)return!1;for(let e=0;e<i.length;e++){const t=i[e].src;t&&-1===s.indexOf(t)&&s.push(t)}return!!s.length&&(1===s.length&&(n=s[0]),e.triggerSourceset(n),!0)},gn=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=o().createElement(this.nodeName.toLowerCase());t.innerHTML=e;const i=o().createDocumentFragment();for(;t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",n().Element.prototype.appendChild.call(this,i),this.innerHTML}}),_n=(e,t)=>{let i={};for(let s=0;s<e.length&&(i=Object.getOwnPropertyDescriptor(e[s],t),!(i&&i.set&&i.get));s++);return i.enumerable=!0,i.configurable=!0,i},yn=function(e){const t=e.el();if(t.resetSourceWatch_)return;const i={},s=(e=>_n([e.el(),n().HTMLMediaElement.prototype,n().Element.prototype,gn],"innerHTML"))(e),r=i=>(...s)=>{const n=i.apply(t,s);return mn(e),n};["append","appendChild","insertAdjacentHTML"].forEach((e=>{t[e]&&(i[e]=t[e],t[e]=r(i[e]))})),Object.defineProperty(t,"innerHTML",q(s,{set:r(s.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(i).forEach((e=>{t[e]=i[e]})),Object.defineProperty(t,"innerHTML",s)},e.one("sourceset",t.resetSourceWatch_)},bn=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?gi(n().Element.prototype.getAttribute.call(this,"src")):""},set(e){return n().Element.prototype.setAttribute.call(this,"src",e),e}}),vn=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const i=(e=>_n([e.el(),n().HTMLMediaElement.prototype,bn],"src"))(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",q(i,{set:s=>{const n=i.set.call(t,s);return e.triggerSourceset(t.src),n}})),t.setAttribute=(i,n)=>{const r=s.call(t,i,n);return/src/i.test(i)&&e.triggerSourceset(t.src),r},t.load=()=>{const i=r.call(t);return mn(e)||(e.triggerSourceset(""),yn(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):mn(e)||yn(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}};class Tn extends Ai{constructor(e,t){super(e,t);const i=e.source;let s=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,i&&(this.el_.currentSrc!==i.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const i=[];for(;t--;){const n=e[t];"track"===n.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),this.textTracks().addTrack(n.track),s||this.el_.hasAttribute("crossorigin")||!yi(n.src)||(s=!0)):i.push(n))}for(let e=0;e<i.length;e++)this.el_.removeChild(i[e])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&s&&D.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(ce||ae)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),Tn.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){vn(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let i=0;i<e.length;i++){const s=e[i];"metadata"===s.kind&&t.push({track:s,storedMode:s.mode})}};i(),e.addEventListener("change",i),this.on("dispose",(()=>e.removeEventListener("change",i)));const s=()=>{for(let e=0;e<t.length;e++){const i=t[e];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}e.removeEventListener("change",s)};this.on("webkitbeginfullscreen",(()=>{e.removeEventListener("change",i),e.removeEventListener("change",s),e.addEventListener("change",s)})),this.on("webkitendfullscreen",(()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",s)}))}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach((e=>{this.el()[`${i}Tracks`].removeEventListener(e,this[`${i}TracksListeners_`][e])})),this[`featuresNative${e}Tracks`]=!t,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=ki[e],i=this.el()[t.getterName],s=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const n={change:t=>{const i={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(i),"text"===e&&this[xi.remoteText.getterName]().trigger(i)},addtrack(e){s.addTrack(e.track)},removetrack(e){s.removeTrack(e.track)}},r=function(){const e=[];for(let t=0;t<s.length;t++){let n=!1;for(let e=0;e<i.length;e++)if(i[e]===s[t]){n=!0;break}n||e.push(s[t])}for(;e.length;)s.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=n,Object.keys(n).forEach((e=>{const t=n[e];i.addEventListener(e,t),this.on("dispose",(s=>i.removeEventListener(e,t)))})),this.on("loadstart",r),this.on("dispose",(e=>this.off("loadstart",r)))}proxyNativeTracks_(){ki.names.forEach((e=>{this.proxyNativeTracksForType_(e)}))}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),Tn.disposeMediaElement(e),e=t}else{e=o().createElement("video");const t=q({},this.options_.tag&&Ae(this.options_.tag));ce&&!0===this.options_.nativeControlsForTouch||delete t.controls,Ie(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Pe(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let i=0;i<t.length;i++){const s=t[i],n=this.options_[s];void 0!==n&&(n?Pe(e,s,s):Oe(e,s),e[s]=n)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=function(){e=!0};this.on("loadstart",t);const i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",t),this.off("loadedmetadata",i),e||this.trigger("loadstart")}))}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready((function(){t.forEach((function(e){this.trigger(e)}),this)}))}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&fe?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){D(e,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&K&&Z&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",(()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)}))}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Zt(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)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}reset(){Tn.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):super.addTextTrack(e,t,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=o().createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const i=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let i=t.length;for(;i--;)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),n().performance&&(e.creationTime=n().performance.now()),e}}H(Tn,"TEST_VID",(function(){if(!_e())return;const e=o().createElement("video"),t=o().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e})),Tn.isSupported=function(){try{Tn.TEST_VID.volume=.5}catch(e){return!1}return!(!Tn.TEST_VID||!Tn.TEST_VID.canPlayType)},Tn.canPlayType=function(e){return Tn.TEST_VID.canPlayType(e)},Tn.canPlaySource=function(e,t){return Tn.canPlayType(e.type)},Tn.canControlVolume=function(){try{const e=Tn.TEST_VID.volume;Tn.TEST_VID.volume=e/2+.1;const t=e!==Tn.TEST_VID.volume;return t&&pe?(n().setTimeout((()=>{Tn&&Tn.prototype&&(Tn.prototype.featuresVolumeControl=e!==Tn.TEST_VID.volume)})),!1):t}catch(e){return!1}},Tn.canMuteVolume=function(){try{const e=Tn.TEST_VID.muted;return Tn.TEST_VID.muted=!e,Tn.TEST_VID.muted?Pe(Tn.TEST_VID,"muted","muted"):Oe(Tn.TEST_VID,"muted"),e!==Tn.TEST_VID.muted}catch(e){return!1}},Tn.canControlPlaybackRate=function(){if(K&&Z&&te<58)return!1;try{const e=Tn.TEST_VID.playbackRate;return Tn.TEST_VID.playbackRate=e/2+.1,e!==Tn.TEST_VID.playbackRate}catch(e){return!1}},Tn.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(o().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Tn.supportsNativeTextTracks=function(){return fe||pe&&Z},Tn.supportsNativeVideoTracks=function(){return!(!Tn.TEST_VID||!Tn.TEST_VID.videoTracks)},Tn.supportsNativeAudioTracks=function(){return!(!Tn.TEST_VID||!Tn.TEST_VID.audioTracks)},Tn.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function([e,t]){H(Tn.prototype,e,(()=>Tn[t]()),!0)})),Tn.prototype.featuresVolumeControl=Tn.canControlVolume(),Tn.prototype.movingMediaElementInDOM=!pe,Tn.prototype.featuresFullscreenResize=!0,Tn.prototype.featuresProgressEvents=!0,Tn.prototype.featuresTimeupdateEvents=!0,Tn.prototype.featuresVideoFrameCallback=!(!Tn.TEST_VID||!Tn.TEST_VID.requestVideoFrameCallback),Tn.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){}}()}},Tn.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let i=t.length;for(;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){Tn.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Tn.prototype["set"+Rt(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){Tn.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Tn.prototype["set"+Rt(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Tn.prototype[e]=function(){return this.el_[e]()}})),Ai.withSourceHandlers(Tn),Tn.nativeSourceHandler={},Tn.nativeSourceHandler.canPlayType=function(e){try{return Tn.TEST_VID.canPlayType(e)}catch(e){return""}},Tn.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Tn.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=_i(e.src);return Tn.nativeSourceHandler.canPlayType(`video/${t}`)}return""},Tn.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Tn.nativeSourceHandler.dispose=function(){},Tn.registerSourceHandler(Tn.nativeSourceHandler),Ai.registerTech("Html5",Tn);const Sn=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],wn={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},En=["tiny","xsmall","small","medium","large","xlarge","huge"],Cn={};En.forEach((e=>{const t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;Cn[e]=`vjs-layout-${t}`}));const kn={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class xn extends Bt{constructor(e,t,i){if(e.id=e.id||t.id||`vjs_video_${rt()}`,(t=Object.assign(xn.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const i=e.closest("[lang]");i&&(t.language=i.getAttribute("lang"))}if(super(null,t,i),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.boundUpdatePlayerHeightOnAudioOnlyMode_=e=>this.updatePlayerHeightOnAudioOnlyMode_(e),this.isFullscreen_=!1,this.log=M(this.id_),this.fsApi_=A,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.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(this.tag=e,this.tagAttributes=e&&Ae(e),this.language(this.options_.language),t.languages){const e={};Object.getOwnPropertyNames(t.languages).forEach((function(i){e[i.toLowerCase()]=t.languages[i]})),this.languages_=e}else this.languages_=xn.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach((e=>{if("function"!=typeof this[e])throw new Error(`plugin "${e}" does not exist`)})),this.scrubbing_=!1,this.el_=this.createEl(),jt(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(ct(o(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const s=q(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach((e=>{this[e](t.plugins[e])})),t.debug&&this.debug(!0),this.options_.playerOptions=s,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const e=(new(n().DOMParser)).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n      <path d="M16 10v28l22-14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n    </symbol>\n    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n      <circle cx="24" cy="24" r="20"></circle>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n    </symbol>\n    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n      <path fill="none" d="M-1-3h24v24H-1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">\n      <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n    </symbol>\n  </defs>\n</svg>',"image/svg+xml");if(e.querySelector("parsererror"))D.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),t.spatialNavigation&&t.spatialNavigation.enabled&&(this.spatialNavigation=new Wi(this),this.addClass("vjs-spatial-navigation-enabled")),ce&&this.addClass("vjs-touch-enabled"),pe||this.addClass("vjs-workinghover"),xn.players[this.id_]=this;const r=C.split(".")[0];this.addClass(`vjs-v${r}`),this.userActive(!0),this.reportUserActivity(),this.one("play",(e=>this.listenForUserActivity_(e))),this.on("keydown",(e=>this.handleKeyDown(e))),this.on("languagechange",(e=>this.handleLanguagechange(e))),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",(()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)}))}dispose(){this.trigger("dispose"),this.off("dispose"),ht(o(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),ht(o(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),xn.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),Pi[this.id()]=null,Ii.names.forEach((e=>{const t=this[Ii[e].getterName]();t&&t.off&&t.off()})),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const s="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=t.parentNode:s||(e=this.el_=super.createEl("div"));const r=Ae(t);if(s){for(e=this.el_=t,t=this.tag=o().createElement("video");e.children.length;)t.appendChild(e.firstChild);Ee(e,"video-js")||Ce(e,"video-js"),e.appendChild(t),i=this.playerElIngest_=e,Object.keys(e).forEach((i=>{try{t[i]=e[i]}catch(e){}}))}t.setAttribute("tabindex","-1"),r.tabindex="-1",Z&&re&&(t.setAttribute("role","application"),r.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in r&&delete r.width,"height"in r&&delete r.height,Object.getOwnPropertyNames(r).forEach((function(i){s&&"class"===i||e.setAttribute(i,r[i]),s&&t.setAttribute(i,r[i])})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused");const a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter((e=>me[e])).map((e=>"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-")));if(this.addClass(...a),!0!==n().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=et("vjs-styles-dimensions");const e=He(".vjs-styles-defaults"),t=He("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.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);const l=t.getElementsByTagName("a");for(let e=0;e<l.length;e++){const t=l.item(e);Ce(t,"vjs-hidden"),t.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(e,t),we(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if(void 0===e)return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):D.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();const s=parseFloat(t);isNaN(s)?D.error(`Improper value "${t}" supplied for for ${e}`):(this[i]=s,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;var t,i;this.fluid_=!!e,Ct(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),i=()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)},Ct(t=this)?i():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(i))):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(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_()}updateStyleEl_(){if(!0===n().VIDEOJS_NO_DYNAMIC_STYLE){const e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();return void(i&&(e>=0&&(i.width=e),t>=0&&(i.height=t)))}let e,t,i,s;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const r=i.split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),tt(this.styleEl_,`\n      .${s} {\n        width: ${e}px;\n        height: ${t}px;\n      }\n\n      .${s}.vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: ${100*o}%;\n      }\n    `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=Rt(e),s=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Ai.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let n=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(n=!1);const r={source:t,autoplay:n,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${s}_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};Ii.names.forEach((e=>{const t=Ii[e];r[t.getterName]=this[t.privateName]})),Object.assign(r,this.options_[i]),Object.assign(r,this.options_[s]),Object.assign(r,this.options_[e.toLowerCase()]),this.tag&&(r.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(r.startTime=this.cache_.currentTime);const o=Ai.getTech(e);if(!o)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new o(r),this.tech_.ready(yt(this,this.handleTechReady_),!0),ii(this.textTracksJson_||[],this.tech_),Sn.forEach((e=>{this.on(this.tech_,e,(t=>this[`handleTech${Rt(e)}_`](t)))})),Object.keys(wn).forEach((e=>{this.on(this.tech_,e,(t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${wn[e]}_`].bind(this),event:t}):this[`handleTech${wn[e]}_`](t)}))})),this.on(this.tech_,"loadstart",(e=>this.handleTechLoadStart_(e))),this.on(this.tech_,"sourceset",(e=>this.handleTechSourceset_(e))),this.on(this.tech_,"waiting",(e=>this.handleTechWaiting_(e))),this.on(this.tech_,"ended",(e=>this.handleTechEnded_(e))),this.on(this.tech_,"seeking",(e=>this.handleTechSeeking_(e))),this.on(this.tech_,"play",(e=>this.handleTechPlay_(e))),this.on(this.tech_,"pause",(e=>this.handleTechPause_(e))),this.on(this.tech_,"durationchange",(e=>this.handleTechDurationChange_(e))),this.on(this.tech_,"fullscreenchange",((e,t)=>this.handleTechFullscreenChange_(e,t))),this.on(this.tech_,"fullscreenerror",((e,t)=>this.handleTechFullscreenError_(e,t))),this.on(this.tech_,"enterpictureinpicture",(e=>this.handleTechEnterPictureInPicture_(e))),this.on(this.tech_,"leavepictureinpicture",(e=>this.handleTechLeavePictureInPicture_(e))),this.on(this.tech_,"error",(e=>this.handleTechError_(e))),this.on(this.tech_,"posterchange",(e=>this.handleTechPosterChange_(e))),this.on(this.tech_,"textdata",(e=>this.handleTechTextData_(e))),this.on(this.tech_,"ratechange",(e=>this.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"===i&&this.tag||we(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){Ii.names.forEach((e=>{const t=Ii[e];this[t.privateName]=this[t.getterName]()})),this.textTracksJson_=ti(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&D.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":C}}addTechControlsListeners_(){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_)}removeTechControlsListeners_(){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_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=()=>{const e=this.muted();this.muted(!0);const t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);const i=this.play();if(Jt(i))return i.catch((e=>{throw t(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)}))};let i;return"any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():t():(i=this.play(),Jt(i)&&(i=i.catch(t))),Jt(i)?i.then((()=>{this.trigger({type:"autoplay-success",autoplay:e})})).catch((()=>{this.trigger({type:"autoplay-failure",autoplay:e})})):void 0}updateSourceCaches_(e=""){let 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=((e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const i=e.cache_.sources.filter((e=>e.src===t));if(i.length)return i[0].type;const s=e.$$("source");for(let e=0;e<s.length;e++){const i=s[e];if(i.type&&i.src&&i.src===t)return i.type}return $i(t)})(this,t)),this.cache_.source=q({},e,{src:t,type:i});const s=this.cache_.sources.filter((e=>e.src&&e.src===t)),n=[],r=this.$$("source"),o=[];for(let e=0;e<r.length;e++){const i=Ae(r[e]);n.push(i),i.src&&i.src===t&&o.push(i.src)}o.length&&!s.length?this.cache_.sources=n:s.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e);const i=this.currentSource().src,s=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(s)&&(!this.lastSource_||this.lastSource_.tech!==s&&this.lastSource_.player!==i)&&(t=()=>{}),t(s),e.src||this.tech_.any(["sourceset","loadstart"],(e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((e=>e.callback(e.event))),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Zt(this.play()):this.pause()))}handleTechDoubleClick_(e){if(!this.controls_)return;Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(t=>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())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const i=this.el();let s=o()[this.fsApi_.fullscreenElement]===i;!s&&i.matches&&(s=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(s)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(()=>{this.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){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}}techCall_(e,t){this.ready((function(){if(e in Ni)return function(e,t,i,s){return t[i](e.reduce(Fi(i),s))}(this.middleware_,this.tech_,e,t);if(e in Ri)return Di(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw D(e),e}}),!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in Mi)return function(e,t,i){return e.reduceRight(Fi(i),t[i]())}(this.middleware_,this.tech_,e);if(e in Ri)return Di(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw D(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw D(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw D(t),t}}}play(){return new Promise((e=>{this.play_(e)}))}play_(e=Zt){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(fe||pe);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&i&&this.load());const s=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===s?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(s)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||Vt(0,0)}scrubbing(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")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(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"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=Vt(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=Vt(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return Yt(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let i=e.end(e.length-1);return i>t&&(i=t),i}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise(((i,s)=>{function n(){t.off("fullscreenerror",o),t.off("fullscreenchange",r)}function r(){n(),i()}function o(e,t){n(),s(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",o);const a=t.requestFullscreenHelper_(e);a&&(a.then(n,n),a.then(i,s))}))}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then((()=>this.isFullscreen(!0)),(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise(((t,i)=>{function s(){e.off("fullscreenerror",r),e.off("fullscreenchange",n)}function n(){s(),t()}function r(e,t){s(),i(t)}e.one("fullscreenchange",n),e.one("fullscreenerror",r);const o=e.exitFullscreenHelper_();o&&(o.then(s,s),o.then(t,i))}))}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=o()[this.fsApi_.exitFullscreen]();return e&&Zt(e.then((()=>this.isFullscreen(!1)))),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=o().documentElement.style.overflow,ct(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow="hidden",Ce(o().body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){"Escape"===e.key&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,ht(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow=this.docOrigOverflow,ke(o().body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&n().documentPictureInPicture){const e=o().createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(Te("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),n().documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then((t=>(Ge(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",(t=>{const i=t.target.querySelector(".video-js");e.parentNode.replaceChild(i,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")})),t)))}return"pictureInPictureEnabled"in o()&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return n().documentPictureInPicture&&n().documentPictureInPicture.window?(n().documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in o()?o().exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;if(!t||!t.hotkeys)return;(e=>{const t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("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))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=t=>"f"===e.key.toLowerCase(),muteKey:s=t=>"m"===e.key.toLowerCase(),playPauseKey:n=t=>"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}=t;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Bt.getComponent("FullscreenToggle");!1!==o()[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else if(s.call(this,e)){e.preventDefault(),e.stopPropagation();Bt.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(n.call(this,e)){e.preventDefault(),e.stopPropagation();Bt.getComponent("PlayToggle").prototype.handleClick.call(this,e)}}canPlayType(e){let t;for(let i=0,s=this.options_.techOrder;i<s.length;i++){const n=s[i];let r=Ai.getTech(n);if(r||(r=Bt.getComponent(n)),r){if(r.isSupported()&&(t=r.canPlayType(e),t))return t}else D.error(`The "${n}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map((e=>[e,Ai.getTech(e)])).filter((([e,t])=>t?t.isSupported():(D.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1))),i=function(e,t,i){let s;return e.some((e=>t.some((t=>{if(s=i(e,t),s)return!0})))),s};let s;const n=([e,t],i)=>{if(t.canPlaySource(i,this.options_[e.toLowerCase()]))return{source:i,tech:e}};var r;return s=this.options_.sourceOrder?i(e,t,(r=n,(e,t)=>r(t,e))):i(t,e,n),s||!1}handleSrc_(e,t){if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=qi(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),ji(this,i[0],((e,s)=>{this.middleware_=s,t||(this.cache_.sources=i),this.updateSourceCaches_(e);if(this.src_(e))return i.length>1?this.handleSrc_(i.slice(1)):(this.changingSrc_=!1,this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void this.triggerReady());var n,r;n=s,r=this.tech_,n.forEach((e=>e.setTech&&e.setTech(r)))})),i.length>1){const e=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(Ft(t.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready((()=>{this.changingSrc_=!1})),!1))}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{Zt(this.play().then((()=>this.doReset_())))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Ct(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:i,remainingTimeDisplay:s}=this.controlBar||{},{seekBar:n}=i||{};e&&e.updateContent(),t&&t.updateContent(),s&&s.updateContent(),n&&(n.update(),n.loadProgressBar&&n.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let 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)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(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"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(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.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(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")))}error(e){if(void 0===e)return this.error_||null;if(x("beforeerror").forEach((t=>{const i=t(this,e);B(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:this.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Qt(e),this.addClass("vjs-error"),D.error(`(CODE:${this.error_.code} ${Qt.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),x("error").forEach((e=>e(this,this.error_)))}reportUserActivity(e){this.userActivity_=!0}userActive(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")}}listenForUserActivity_(){let e,t,i;const s=yt(this,this.reportUserActivity),n=function(t){s(),this.clearInterval(e)};this.on("mousedown",(function(){s(),this.clearInterval(e),e=this.setInterval(s,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,s())})),this.on("mouseup",n),this.on("mouseleave",n);const r=this.getChild("controlBar");let o;!r||pe||K||(r.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),r.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",s),this.on("keyup",s);this.setInterval((function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);const e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}),250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}updatePlayerHeightOnAudioOnlyMode_(){const e=this.getChild("ControlBar");e&&this.audioOnlyCache_.controlBarHeight!==e.currentHeight()&&(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),i=t&&t.currentHeight();e.forEach((e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=i,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach((e=>e.show())),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then((()=>this.enableAudioOnlyUI_()))}return Promise.resolve().then((()=>this.disableAudioOnlyUI_()))}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;if(this.audioPosterMode_=e,e){if(this.audioOnlyMode()){return this.audioOnlyMode(!1).then((()=>{this.enablePosterModeUI_()}))}return Promise.resolve().then((()=>{this.enablePosterModeUI_()}))}return Promise.resolve().then((()=>{this.disablePosterModeUI_()}))}addTextTrack(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ct(this)&&this.trigger("languagechange"))}languages(){return q(xn.prototype.options_.languages,this.languages_)}toJSON(){const e=q(this.options_),t=e.tracks;e.tracks=[];for(let i=0;i<t.length;i++){let s=t[i];s=q(s),s.player=void 0,e.tracks[i]=s}return e}createModal(e,t){(t=t||{}).content=e||"";const i=new ni(this,t);return this.addChild(i),i.on("dispose",(()=>{this.removeChild(i)})),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let i=0;i<En.length;i++){const s=En[i];if(t<=this.breakpoints_[s]){if(e===s)return;e&&this.removeClass(Cn[e]),this.addClass(Cn[s]),this.breakpoint_=s;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},kn,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){if(void 0===e)return this.responsive_;return(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}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return Cn[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const i=this.crossOrigin();this.reset(),this.cache_.media=q(e);const{artist:s,artwork:n,description:r,poster:o,src:a,textTracks:l,title:u}=this.cache_.media;!n&&o&&(this.cache_.media.artwork=[{src:o,type:$i(o)}]),i&&this.crossOrigin(i),a&&this.src(a),o&&this.poster(o),Array.isArray(l)&&l.forEach((e=>this.addRemoteTextTrack(e,!1))),this.titleBar&&this.titleBar.update({title:u,description:r||s||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(e=>({kind:e.kind,label:e.label,language:e.language,src:e.src})))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:$i(t.poster)}]),t}return q(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},i=Ae(e),s=i["data-setup"];if(Ee(e,"vjs-fill")&&(i.fill=!0),Ee(e,"vjs-fluid")&&(i.fluid=!0),null!==s){const[e,t]=l()(s||"{}");e&&D.error(e),Object.assign(i,t)}if(Object.assign(t,i),e.hasChildNodes()){const i=e.childNodes;for(let e=0,s=i.length;e<s;e++){const s=i[e],n=s.nodeName.toLowerCase();"source"===n?t.sources.push(Ae(s)):"track"===n&&t.tracks.push(Ae(s))}}return t}debug(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)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((e=>"number"==typeof e))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}Ii.names.forEach((function(e){const t=Ii[e];xn.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),xn.prototype.crossorigin=xn.prototype.crossOrigin,xn.players={};const In=n().navigator;xn.prototype.options_={techOrder:Ai.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:In&&(In.languages&&In.languages[0]||In.userLanguage||In.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1},Sn.forEach((function(e){xn.prototype[`handleTech${Rt(e)}_`]=function(){return this.trigger(e)}})),Bt.registerComponent("Player",xn);const An="plugin",Ln="activePlugins_",Pn={},On=e=>Pn.hasOwnProperty(e),jn=e=>On(e)?Pn[e]:void 0,Dn=(e,t)=>{e[Ln]=e[Ln]||{},e[Ln][t]=!0},Mn=(e,t,i)=>{const s=(i?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},Nn=(e,t)=>(t.prototype.name=e,function(...i){Mn(this,{name:e,plugin:t,instance:null},!0);const s=new t(...[this,...i]);return this[e]=()=>s,Mn(this,s.getEventHash()),s});class Rn{constructor(e){if(this.constructor===Rn)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),jt(this),delete this.trigger,Mt(this,this.constructor.defaultState),Dn(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return pt(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Ln][e]=!1,this.player=this.state=null,t[e]=Nn(e,Pn[e])}static isBasic(e){const t="string"==typeof e?jn(e):e;return"function"==typeof t&&!Rn.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!=typeof e)throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(On(e))D.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(xn.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!=typeof t)throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return Pn[e]=t,e!==An&&(Rn.isBasic(t)?xn.prototype[e]=function(e,t){const i=function(){Mn(this,{name:e,plugin:t,instance:null},!0);const i=t.apply(this,arguments);return Dn(this,e),Mn(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach((function(e){i[e]=t[e]})),i}(e,t):xn.prototype[e]=Nn(e,t)),t}static deregisterPlugin(e){if(e===An)throw new Error("Cannot de-register base plugin.");On(e)&&(delete Pn[e],delete xn.prototype[e])}static getPlugins(e=Object.keys(Pn)){let t;return e.forEach((e=>{const i=jn(e);i&&(t=t||{},t[e]=i)})),t}static getPluginVersion(e){const t=jn(e);return t&&t.VERSION||""}}function Fn(e,t,i,s){return function(e,t){let i=!1;return function(...s){return i||D.warn(e),i=!0,t.apply(this,s)}}(`${t} is deprecated and will be removed in ${e}.0; please use ${i} instead.`,s)}Rn.getPlugin=jn,Rn.BASE_PLUGIN_NAME=An,Rn.registerPlugin(An,Rn),xn.prototype.usingPlugin=function(e){return!!this[Ln]&&!0===this[Ln][e]},xn.prototype.hasPlugin=function(e){return!!On(e)};const Un=e=>0===e.indexOf("#")?e.slice(1):e;function Bn(e,t,i){let s=Bn.getPlayer(e);if(s)return t&&D.warn(`Player "${e}" is already initialised. Options will not be applied.`),i&&s.ready(i),s;const r="string"==typeof e?He("#"+Un(e)):e;if(!ye(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const o="getRootNode"in r&&r.getRootNode()instanceof n().ShadowRoot?r.getRootNode():r.ownerDocument.body;r.ownerDocument.defaultView&&o.contains(r)||D.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),x("beforesetup").forEach((e=>{const i=e(r,q(t));B(i)&&!Array.isArray(i)?t=q(t,i):D.error("please return an object in beforesetup hooks")}));const a=Bt.getComponent("Player");return s=new a(r,t,i),x("setup").forEach((e=>e(s))),s}if(Bn.hooks_=k,Bn.hooks=x,Bn.hook=function(e,t){x(e,t)},Bn.hookOnce=function(e,t){x(e,[].concat(t).map((t=>{const i=(...s)=>(I(e,i),t(...s));return i})))},Bn.removeHook=I,!0!==n().VIDEOJS_NO_DYNAMIC_STYLE&&_e()){let e=He(".vjs-styles-defaults");if(!e){e=et("vjs-styles-defaults");const t=He("head");t&&t.insertBefore(e,t.firstChild),tt(e,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: 56.25%\n      }\n    ")}}Je(1,Bn),Bn.VERSION=C,Bn.options=xn.prototype.options_,Bn.getPlayers=()=>xn.players,Bn.getPlayer=e=>{const t=xn.players;let i;if("string"==typeof e){const s=Un(e),n=t[s];if(n)return n;i=He("#"+s)}else i=e;if(ye(i)){const{player:e,playerId:s}=i;if(e||t[s])return e||t[s]}},Bn.getAllPlayers=()=>Object.keys(xn.players).map((e=>xn.players[e])).filter(Boolean),Bn.players=xn.players,Bn.getComponent=Bt.getComponent,Bn.registerComponent=(e,t)=>(Ai.isTech(t)&&D.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Bt.registerComponent.call(Bt,e,t)),Bn.getTech=Ai.getTech,Bn.registerTech=Ai.registerTech,Bn.use=function(e,t){Li[e]=Li[e]||[],Li[e].push(t)},Object.defineProperty(Bn,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Bn.middleware,"TERMINATOR",{value:Oi,writeable:!1,enumerable:!0}),Bn.browser=me,Bn.obj=z,Bn.mergeOptions=Fn(9,"videojs.mergeOptions","videojs.obj.merge",q),Bn.defineLazyProperty=Fn(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",H),Bn.bind=Fn(9,"videojs.bind","native Function.prototype.bind",yt),Bn.registerPlugin=Rn.registerPlugin,Bn.deregisterPlugin=Rn.deregisterPlugin,Bn.plugin=(e,t)=>(D.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Rn.registerPlugin(e,t)),Bn.getPlugins=Rn.getPlugins,Bn.getPlugin=Rn.getPlugin,Bn.getPluginVersion=Rn.getPluginVersion,Bn.addLanguage=function(e,t){return e=(""+e).toLowerCase(),Bn.options.languages=q(Bn.options.languages,{[e]:t}),Bn.options.languages[e]},Bn.log=D,Bn.createLogger=M,Bn.time=Kt,Bn.createTimeRange=Fn(9,"videojs.createTimeRange","videojs.time.createTimeRanges",Vt),Bn.createTimeRanges=Fn(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",Vt),Bn.formatTime=Fn(9,"videojs.formatTime","videojs.time.formatTime",Xt),Bn.setFormatTime=Fn(9,"videojs.setFormatTime","videojs.time.setFormatTime",Wt),Bn.resetFormatTime=Fn(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",Gt),Bn.parseUrl=Fn(9,"videojs.parseUrl","videojs.url.parseUrl",mi),Bn.isCrossOrigin=Fn(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",yi),Bn.EventTarget=wt,Bn.any=mt,Bn.on=ct,Bn.one=ft,Bn.off=ht,Bn.trigger=pt,Bn.xhr=d(),Bn.TextTrack=Si,Bn.AudioTrack=wi,Bn.VideoTrack=Ei,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((e=>{Bn[e]=function(){return D.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),Xe[e].apply(null,arguments)}})),Bn.computedStyle=Fn(9,"videojs.computedStyle","videojs.dom.computedStyle",We),Bn.dom=Xe,Bn.fn=Tt,Bn.num=ds,Bn.str=Ut,Bn.url=bi,Bn.Error={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};class $n{constructor(e){let 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:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class qn extends Bn.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const i=this.levels_.length;return t=new $n(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let i=0,s=this.length;i<s;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}getQualityLevelById(e){for(let t=0,i=this.length;t<i;t++){const i=this[t];if(i.id===e)return i}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}qn.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const e in qn.prototype.allowedEvents_)qn.prototype["on"+e]=null;var Vn="4.1.0";const Hn=function(e){return function(e,t){const i=e.qualityLevels,s=new qn,n=function(){s.dispose(),e.qualityLevels=i,e.off("dispose",n)};return e.on("dispose",n),e.qualityLevels=()=>s,e.qualityLevels.VERSION=Vn,s}(this,Bn.obj.merge({},e))};Bn.registerPlugin("qualityLevels",Hn),Hn.VERSION=Vn;const zn=f.default,Wn=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,Gn=e=>Bn.log.debug?Bn.log.debug.bind(Bn,"VHS:",`${e} >`):function(){};function Xn(...e){const t=Bn.obj||Bn;return(t.merge||t.mergeOptions).apply(t,e)}function Kn(...e){const t=Bn.time||Bn;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const Yn=1/30,Qn=.1,Jn=function(e,t){const i=[];let s;if(e&&e.length)for(s=0;s<e.length;s++)t(e.start(s),e.end(s))&&i.push([e.start(s),e.end(s)]);return Kn(i)},Zn=function(e,t){return Jn(e,(function(e,i){return e-Qn<=t&&i+Qn>=t}))},er=function(e,t){return Jn(e,(function(e){return e-Yn>=t}))},tr=e=>{const t=[];if(!e||!e.length)return"";for(let i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")},ir=e=>{const t=[];for(let i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t},sr=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},nr=function(e,t){let i=0;if(!e||!e.length)return i;for(let s=0;s<e.length;s++){const n=e.start(s),r=e.end(s);t>r||(i+=t>n&&t<=r?r-t:r-n)}return i},rr=(e,t)=>{if(!t.preload)return t.duration;let i=0;return(t.parts||[]).forEach((function(e){i+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(i+=e.partTargetDuration)})),i},or=e=>(e.segments||[]).reduce(((e,t,i)=>(t.parts?t.parts.forEach((function(s,n){e.push({duration:s.duration,segmentIndex:i,partIndex:n,part:s,segment:t})})):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e)),[]),ar=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},lr=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:i}=e;let s=(i||[]).reduce(((e,t)=>e+("PART"===t.type?1:0)),0);return s+=t&&t.length?t.length:0,s},ur=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const i=ar(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},dr=function(e,t,i){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const s=function(e,t){let i=0,s=t-e.mediaSequence,n=e.segments[s];if(n){if(void 0!==n.start)return{result:n.start,precise:!0};if(void 0!==n.end)return{result:n.end-n.duration,precise:!0}}for(;s--;){if(n=e.segments[s],void 0!==n.end)return{result:i+n.end,precise:!0};if(i+=rr(e,n),void 0!==n.start)return{result:i+n.start,precise:!0}}return{result:i,precise:!1}}(e,t);if(s.precise)return s.result;const n=function(e,t){let i,s=0,n=t-e.mediaSequence;for(;n<e.segments.length;n++){if(i=e.segments[n],void 0!==i.start)return{result:i.start-s,precise:!0};if(s+=rr(e,i),void 0!==i.end)return{result:i.end-s,precise:!0}}return{result:-1,precise:!1}}(e,t);return n.precise?n.result:s.result+i},cr=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 n()[1/0]}return dr(e,t,i)},hr=function({defaultDuration:e,durationList:t,startIndex:i,endIndex:s}){let n=0;if(i>s&&([i,s]=[s,i]),i<0){for(let t=i;t<Math.min(0,s);t++)n+=e;i=0}for(let e=i;e<s;e++)n+=t[e].duration;return n},pr=function(e,t,i,s){if(!e||!e.segments)return null;if(e.endList)return cr(e);if(null===t)return null;t=t||0;let n=dr(e,e.mediaSequence+e.segments.length,t);return i&&(n-=s="number"==typeof s?s:ur(null,e)),Math.max(0,n)},fr=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},mr=function(e){return e.excludeUntil&&e.excludeUntil===1/0},gr=function(e){const t=fr(e);return!e.disabled&&!t},_r=function(e,t){return t.attributes&&t.attributes[e]},yr=(e,t)=>{if(1===e.playlists.length)return!0;const i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((e=>!!gr(e)&&(e.attributes.BANDWIDTH||0)<i)).length},br=(e,t)=>!(!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)))),vr=function(e,t){const i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let s=!1;for(const e in i){for(const n in i[e])if(s=t(i[e][n]),s)break;if(s)break}return!!s},Tr=e=>{if(!e||!e.playlists||!e.playlists.length){return vr(e,(e=>e.playlists&&e.playlists.length||e.uri))}for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t],s=i.attributes&&i.attributes.CODECS;if(s&&s.split(",").every((e=>(0,g.isAudioCodec)(e))))continue;if(!vr(e,(e=>br(i,e))))return!1}return!0};var Sr={liveEdgeDelay:ur,duration:cr,seekable:function(e,t,i){const s=t||0;let n=pr(e,t,!0,i);return null===n?Kn():(n<s&&(n=s),Kn(s,n))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:i,startingPartIndex:s,startTime:n,exactManifestTimings:r}){let o=t-n;const a=or(e);let l=0;for(let e=0;e<a.length;e++){const t=a[e];if(i===t.segmentIndex&&("number"!=typeof s||"number"!=typeof t.partIndex||s===t.partIndex)){l=e;break}}if(o<0){if(l>0)for(let t=l-1;t>=0;t--){const i=a[t];if(o+=i.duration,r){if(o<0)continue}else if(o+Yn<=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:n-hr({defaultDuration:e.targetDuration,durationList:a,startIndex:l,endIndex:t})}}return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:t}}if(l<0){for(let i=l;i<0;i++)if(o-=e.targetDuration,o<0)return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:t};l=0}for(let t=l;t<a.length;t++){const i=a[t];o-=i.duration;const s=i.duration>Yn;if(!(0===o)&&!(s&&o+Yn>=0)||t===a.length-1){if(r){if(o>0)continue}else if(o-Yn>=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:n+hr({defaultDuration:e.targetDuration,durationList:a,startIndex:l,endIndex:t})}}}return{segmentIndex:a[a.length-1].segmentIndex,partIndex:a[a.length-1].partIndex,startTime:t}},isEnabled:gr,isDisabled:function(e){return e.disabled},isExcluded:fr,isIncompatible:mr,playlistEnd:pr,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:_r,estimateSegmentRequestTime:function(e,t,i,s=0){if(!_r("BANDWIDTH",i))return NaN;return(e*i.attributes.BANDWIDTH-8*s)/t},isLowestEnabledRendition:yr,isAudioOnly:Tr,playlistMatch:br,segmentDurationWithParts:rr};const{log:wr}=Bn,Er=(e,t)=>`${e}-${t}`,Cr=(e,t,i)=>`placeholder-uri-${e}-${t}-${i}`,kr=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((i=>{if(e.mediaGroups[i])for(const s in e.mediaGroups[i])for(const n in e.mediaGroups[i][s]){const r=e.mediaGroups[i][s][n];t(r,i,s,n)}}))},xr=({playlist:e,uri:t,id:i})=>{e.id=i,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},Ir=(e,t,i=Cr)=>{e.uri=t;for(let t=0;t<e.playlists.length;t++)if(!e.playlists[t].uri){const i=`placeholder-uri-${t}`;e.playlists[t].uri=i}const s=Tr(e);kr(e,((t,n,r,o)=>{if(!t.playlists||!t.playlists.length){if(s&&"AUDIO"===n&&!t.uri)for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t];if(i.attributes&&i.attributes.AUDIO&&i.attributes.AUDIO===r)return}t.playlists=[(0,p.default)({},t)]}t.playlists.forEach((function(t,s){const a=i(n,r,o,t),l=Er(s,a);t.uri?t.resolvedUri=t.resolvedUri||zn(e.uri,t.uri):(t.uri=0===s?a:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),(e=>{let t=e.playlists.length;for(;t--;){const i=e.playlists[t];xr({playlist:i,id:Er(t,i.uri)}),i.resolvedUri=zn(e.uri,i.uri),e.playlists[i.id]=i,e.playlists[i.uri]=i,i.attributes.BANDWIDTH||wr.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(e),(e=>{kr(e,(t=>{t.uri&&(t.resolvedUri=zn(e.uri,t.uri))}))})(e)};class Ar{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_)return;if(!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,i=t.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce(((e,t)=>(e.set(t.id,t),e)),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach(((i,s)=>{if(!this.processedDateRanges_.has(s)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),t.push(i),i.class))if(e[i.class]){const t=e[i.class].push(i);i.classListIndex=t-1}else e[i.class]=[i],i.classListIndex=0}));for(const i of t){const t=e[i.class]||[];i.endDate?i.endTime=i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&t[i.classListIndex+1]?i.endTime=t[i.classListIndex+1].startTime:i.duration?i.endTime=i.startTime+i.duration:i.plannedDuration?i.endTime=i.startTime+i.plannedDuration:i.endTime=i.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach(((t,i)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(i)}))}}const Lr=({requestType:e,request:t,error:i,parseFailure:s})=>{const n=t.status<200||t.status>299,r=t.status>=400&&t.status<=499,o={uri:t.uri,requestType:e},a=n&&!r||s;if(i&&r)o.error=(0,p.default)({},i),o.errorType=Bn.Error.NetworkRequestFailed;else if(t.aborted)o.errorType=Bn.Error.NetworkRequestAborted;else if(t.timedout)o.erroType=Bn.Error.NetworkRequestTimeout;else if(a){const e=s?Bn.Error.NetworkBodyParserFailed:Bn.Error.NetworkBadStatus;o.errorType=e,o.status=t.status,o.headers=t.headers}return o},{EventTarget:Pr}=Bn,Or=(e,t)=>{if(!e)return t;const i=Xn(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(let s=0;s<t.parts.length;s++)e.parts&&e.parts[s]&&(i.parts[s]=Xn(e.parts[s],t.parts[s]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},jr=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=zn(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=zn(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=zn(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=zn(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((e=>{e.resolvedUri||(e.resolvedUri=zn(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((e=>{e.resolvedUri||(e.resolvedUri=zn(t,e.uri))}))},Dr=function(e){const t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(let e=0;e<i.preloadHints.length;e++)if("MAP"===i.preloadHints[e].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t},Mr=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,Nr=(e,t,i=Mr)=>{const s=Xn(e,{}),n=s.playlists[t.id];if(!n)return null;if(i(n,t))return null;t.segments=Dr(t);const r=Xn(n,t);if(r.preloadSegment&&!t.preloadSegment&&delete r.preloadSegment,n.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}r.segments=((e,t,i)=>{const s=e.slice(),n=t.slice();i=i||0;const r=[];let o;for(let e=0;e<n.length;e++){const t=s[e+i],a=n[e];t?(o=t.map||o,r.push(Or(t,a))):(o&&!a.map&&(a.map=o),r.push(a))}return r})(n.segments,t.segments,t.mediaSequence-n.mediaSequence)}r.segments.forEach((e=>{jr(e,r.resolvedUri)}));for(let e=0;e<s.playlists.length;e++)s.playlists[e].id===t.id&&(s.playlists[e]=r);return s.playlists[t.id]=r,s.playlists[t.uri]=r,kr(e,((e,i,s,n)=>{if(e.playlists)for(let i=0;i<e.playlists.length;i++)t.id===e.playlists[i].id&&(e.playlists[i]=r)})),s},Rr=(e,t)=>{const i=e.segments||[],s=i[i.length-1],n=s&&s.parts&&s.parts[s.parts.length-1],r=n&&n.duration||s&&s.duration;return t&&r?1e3*r:500*(e.partTargetDuration||e.targetDuration||10)},Fr=(e,t,i)=>{if(!e)return;const s=[];return e.forEach((e=>{if(!e.attributes)return;const{BANDWIDTH:t,RESOLUTION:i,CODECS:n}=e.attributes;s.push({id:e.id,bandwidth:t,resolution:i,codecs:n})})),{type:t,isLive:i,renditions:s}};class Ur extends Pr{constructor(e,t,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=Gn("PlaylistLoader");const{withCredentials:s=!1}=i;this.src=e,this.vhs_=t,this.withCredentials=s,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const n=t.options_;this.customTagParsers=n&&n.customTagParsers||[],this.customTagMappers=n&&n.customTagMappers||[],this.llhls=n&&n.llhls,this.dateRangesStorage_=new Ar,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=zn(this.main.uri,e.uri);this.llhls&&(t=((e,t)=>{if(t.endList||!t.serverControl)return e;const i={};if(t.serverControl.canBlockReload){const{preloadSegment:e}=t;let s=t.mediaSequence+t.segments.length;if(e){const n=e.parts||[],r=lr(t)-1;r>-1&&r!==n.length-1&&(i._HLS_part=r),(r>-1||n.length)&&s--}i._HLS_msn=s}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){const t=new(n().URL)(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){i.hasOwnProperty(e)&&t.searchParams.set(e,i[e])})),e=t.toString()}return e})(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:"hls-playlist"},((e,t)=>{if(this.request)return e?this.playlistRequestError(this.request,this.media(),"HAVE_METADATA"):void this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}))}playlistRequestError(e,t,i){const{uri:s,id:n}=t;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[n],status:e.status,message:`HLS playlist request error at URL: ${s}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:Lr({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:t}){try{return(({onwarn:e,oninfo:t,manifestString:i,customTagParsers:s=[],customTagMappers:n=[],llhls:r})=>{const o=new m.Parser;e&&o.on("warn",e),t&&o.on("info",t),s.forEach((e=>o.addParser(e))),n.forEach((e=>o.addTagMapper(e))),o.push(i),o.end();const a=o.manifest;if(r||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){a.hasOwnProperty(e)&&delete a[e]})),a.segments&&a.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!a.targetDuration){let t=10;a.segments&&a.segments.length&&(t=a.segments.reduce(((e,t)=>Math.max(e,t.duration)),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),a.targetDuration=t}const l=ar(a);if(l.length&&!a.partTargetDuration){const t=l.reduce(((e,t)=>Math.max(e,t.duration)),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),wr.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.")),a.partTargetDuration=t}return a})({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}catch(e){this.error=e,this.error.metadata={errorType:Bn.Error.StreamingHlsPlaylistParserError,error:e}}}haveMetadata({playlistString:e,playlistObject:t,url:i,id:s}){this.request=null,this.state="HAVE_METADATA";const n={playlistInfo:{type:"media",uri:i}};this.trigger({type:"playlistparsestart",metadata:n});const r=t||this.parseManifest_({url:i,manifestString:e});r.lastRequest=Date.now(),xr({playlist:r,uri:i,id:s});const o=Nr(this.main,r);this.targetDuration=r.partTargetDuration||r.targetDuration,this.pendingMedia_=null,o?(this.main=o,this.media_=this.main.playlists[s]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Rr(this.media(),!!o)),n.parsedPlaylist=Fr(this.main.playlists,n.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:n}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),n().clearTimeout(this.mediaUpdateTimeout),n().clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new Ar,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){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.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(n().clearTimeout(this.finalRenditionTimeout),t){const t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=n().setTimeout(this.media.bind(this,e,!1),t))}const i=this.state,s=!this.media_||e.id!==this.media_.id,r=this.main.playlists[e.id];if(r&&r.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_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(Rr(e,!0)),!s)return;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.pendingMedia_=e;const o={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:o}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},((t,s)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=Wn(e.resolvedUri,s),t)return this.playlistRequestError(this.request,e,i);this.trigger({type:"playlistrequestcomplete",metadata:o}),this.haveMetadata({playlistString:s.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")}}))}pause(){this.mediaUpdateTimeout&&(n().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_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(n().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=n().setTimeout((()=>{this.mediaUpdateTimeout=null,this.load()}),e)}else this.started?t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(n().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=n().setTimeout((()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)}),e))}start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=n().location.href),this.src.resolvedUri=this.src.uri,void setTimeout((()=>{this.setupInitialPlaylist(this.src)}),0);const e={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},((t,i)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:i.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:i.responseText,code:2,metadata:Lr({requestType:i.requestType,request:i,error:t})},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=Wn(this.src,i),this.trigger({type:"playlistparsestart",metadata:e});const s=this.parseManifest_({manifestString:i.responseText,url:this.src});e.parsedPlaylist=Fr(s.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(s)}))}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,Ir(this.main,this.srcUri()),e.playlists.forEach((e=>{e.segments=Dr(e),e.segments.forEach((t=>{jr(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||n().location.href;this.main=((e,t)=>{const i=Er(0,t),s={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:n().location.href,resolvedUri:n().location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return s.playlists[i]=s.playlists[0],s.playlists[t]=s.playlists[0],s})(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const i=this.main,s=e.ID;let n=i.playlists.length;for(;n--;){const r=i.playlists[n];if(r.attributes["PATHWAY-ID"]===s){const o=r.resolvedUri,a=r.id;if(t){const t=this.createCloneURI_(r.resolvedUri,e),o=Er(s,t),a=this.createCloneAttributes_(s,r.attributes),l=this.createClonePlaylist_(r,o,e,a);i.playlists[n]=l,i.playlists[o]=l,i.playlists[t]=l}else i.playlists.splice(n,1);delete i.playlists[a],delete i.playlists[o]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const i=this.main,s=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((e=>{if(i.mediaGroups[e]&&i.mediaGroups[e][s])for(const t in i.mediaGroups[e])if(t===s){for(const s in i.mediaGroups[e][t]){i.mediaGroups[e][t][s].playlists.forEach(((e,t)=>{const s=i.playlists[e.id],n=s.id,r=s.resolvedUri;delete i.playlists[n],delete i.playlists[r]}))}delete i.mediaGroups[e][t]}})),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const i=this.main,s=i.playlists.length,n=this.createCloneURI_(t.resolvedUri,e),r=Er(e.ID,n),o=this.createCloneAttributes_(e.ID,t.attributes),a=this.createClonePlaylist_(t,r,e,o);i.playlists[s]=a,i.playlists[r]=a,i.playlists[n]=a,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,i=e["BASE-ID"],s=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((n=>{if(s.mediaGroups[n]&&!s.mediaGroups[n][t])for(const r in s.mediaGroups[n])if(r===i){s.mediaGroups[n][t]={};for(const i in s.mediaGroups[n][r]){const o=s.mediaGroups[n][r][i];s.mediaGroups[n][t][i]=(0,p.default)({},o);const a=s.mediaGroups[n][t][i],l=this.createCloneURI_(o.resolvedUri,e);a.resolvedUri=l,a.uri=l,a.playlists=[],o.playlists.forEach(((r,o)=>{const l=s.playlists[r.id],u=Cr(n,t,i),d=Er(t,u);if(l&&!s.playlists[d]){const t=this.createClonePlaylist_(l,d,e),i=t.resolvedUri;s.playlists[d]=t,s.playlists[i]=t}a.playlists[o]=this.createClonePlaylist_(r,d,e)}))}}}))}createClonePlaylist_(e,t,i,s){const n=this.createCloneURI_(e.resolvedUri,i),r={resolvedUri:n,uri:n,id:t};return e.segments&&(r.segments=[]),s&&(r.attributes=s),Xn(e,r)}createCloneURI_(e,t){const i=new URL(e);i.hostname=t["URI-REPLACEMENT"].HOST;const s=t["URI-REPLACEMENT"].PARAMS;for(const e of Object.keys(s))i.searchParams.set(e,s[e]);return i.href}createCloneAttributes_(e,t){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((s=>{t[s]&&(i[s]=e)})),i}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const s=e.contentProtection[i].attributes.keyId;s&&t.add(s.toLowerCase())}return t}}}const Br=function(e,t,i,s){const n="arraybuffer"===e.responseType?e.response:e.responseText;!t&&n&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=n.byteLength||n.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&&(n||e.responseText)))),s(t,e)},$r=function(){const e=function e(t,i){t=Xn({timeout:45e3},t);const s=e.beforeRequest||Bn.Vhs.xhr.beforeRequest,n=e._requestCallbackSet||Bn.Vhs.xhr._requestCallbackSet||new Set,r=e._responseCallbackSet||Bn.Vhs.xhr._responseCallbackSet;s&&"function"==typeof s&&(Bn.log.warn("beforeRequest is deprecated, use onRequest instead."),n.add(s));const o=!0===Bn.Vhs.xhr.original?Bn.xhr:Bn.Vhs.xhr,a=((e,t)=>{if(!e||!e.size)return;let i=t;return e.forEach((e=>{i=e(i)})),i})(n,t);n.delete(s);const l=o(a||t,(function(e,t){return((e,t,i,s)=>{e&&e.size&&e.forEach((e=>{e(t,i,s)}))})(r,l,e,t),Br(l,e,t,i)})),u=l.abort;return l.abort=function(){return l.aborted=!0,u.apply(l,arguments)},l.uri=t.uri,l.requestType=t.requestType,l.requestTime=Date.now(),l};return e.original=!0,e},qr=function(e){const t={};return e.byterange&&(t.Range=function(e){let t;const i=e.offset;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?n().BigInt(e.offset)+n().BigInt(e.length)-n().BigInt(1):e.offset+e.length-1,"bytes="+i+"-"+t}(e.byterange)),t},Vr=function(e,t){return e.start(t)+"-"+e.end(t)},Hr=function(e,t){const i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},zr=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Wr=function(e){const t={};return Object.keys(e).forEach((i=>{const s=e[i];(0,y.isArrayBufferView)(s)?t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[i]=s})),t},Gr=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Xr=function(e){return e.resolvedUri},Kr=e=>{const t=Array.prototype.slice.call(e),i=16;let s,n,r="";for(let e=0;e<t.length/i;e++)s=t.slice(e*i,e*i+i).map(Hr).join(""),n=t.slice(e*i,e*i+i).map(zr).join(""),r+=s+" "+n+"\n";return r};var Yr=Object.freeze({__proto__:null,createTransferableMessage:Wr,initSegmentId:Gr,segmentKeyId:Xr,hexDump:Kr,tagDump:({bytes:e})=>Kr(e),textRanges:e=>{let t,i="";for(t=0;t<e.length;t++)i+=Vr(e,t)+" ";return i}});const Qr=({playlist:e,time:t,callback:i})=>{if(!i)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===t)return i({message:"getProgramTime: playlist and time must be provided"});const s=((e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let i,s=0;for(let n=0;n<t.segments.length&&(i=t.segments[n],s=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:s+i.duration,!(e<=s));n++);const n=t.segments[t.segments.length-1];if(n.videoTimingInfo&&n.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>s){if(e>s+.25*n.duration)return null;i=n}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:s-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}})(t,e);if(!s)return i({message:"valid programTime was not found"});if("estimate"===s.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});const n={mediaSeconds:t},r=((e,t)=>{if(!t.dateTimeObject)return null;const i=t.videoTimingInfo.transmuxerPrependedSeconds,s=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*s)})(t,s.segment);return r&&(n.programDateTime=r.toISOString()),i(null,n)},Jr=({programTime:e,playlist:t,retryCount:i=2,seekTo:s,pauseAfterSeek:n=!0,tech:r,callback:o})=>{if(!o)throw new Error("seekToProgramTime: callback must be provided");if(void 0===e||!t||!s)return o({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!r.hasStarted_)return o({message:"player must be playing a live stream to start buffering"});if(!(e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0})(t))return o({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const a=((e,t)=>{let i;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;let s=t.segments[0];if(i<new Date(s.dateTimeObject))return null;for(let e=0;e<t.segments.length-1&&(s=t.segments[e],!(i<new Date(t.segments[e+1].dateTimeObject)));e++);const n=t.segments[t.segments.length-1],r=n.dateTimeObject,o=n.videoTimingInfo?(a=n.videoTimingInfo).transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds:n.duration+.25*n.duration;var a;return i>new Date(r.getTime()+1e3*o)?null:(i>new Date(r)&&(s=n),{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:Sr.duration(t,t.mediaSequence+t.segments.indexOf(s)),type:s.videoTimingInfo?"accurate":"estimate"})})(e,t);if(!a)return o({message:`${e} was not found in the stream`});const l=a.segment,u=((e,t)=>{let i,s;try{i=new Date(e),s=new Date(t)}catch(e){}const n=i.getTime();return(s.getTime()-n)/1e3})(l.dateTimeObject,e);if("estimate"===a.type)return 0===i?o({message:`${e} is not buffered yet. Try again`}):(s(a.estimatedStart+u),void r.one("seeked",(()=>{Jr({programTime:e,playlist:t,retryCount:i-1,seekTo:s,pauseAfterSeek:n,tech:r,callback:o})})));const d=l.start+u;r.one("seeked",(()=>o(null,r.currentTime()))),n&&r.pause(),s(d)},Zr=(e,t)=>{if(4===e.readyState)return t()},{EventTarget:eo}=Bn,to=function(e,t){if(!Mr(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(let i=0;i<e.segments.length;i++){const s=e.segments[i],n=t.segments[i];if(s.uri!==n.uri)return!1;if(!s.byterange&&!n.byterange)continue;const r=s.byterange,o=n.byterange;if(r&&!o||!r&&o)return!1;if(r.offset!==o.offset||r.length!==o.length)return!1}return!0},io=(e,t,i,s)=>`placeholder-uri-${e}-${t}-${s.attributes.NAME||i}`,so=(e,t,i)=>{let s=!0,n=Xn(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let e=0;e<t.playlists.length;e++){const r=t.playlists[e];if(r.sidx){const e=(0,b.generateSidxKey)(r.sidx);i&&i[e]&&i[e].sidx&&(0,b.addSidxSegmentsToPlaylist)(r,i[e].sidx,r.sidx.resolvedUri)}const o=Nr(n,r,to);o&&(n=o,s=!1)}return kr(t,((e,t,i,r)=>{if(e.playlists&&e.playlists.length){const o=e.playlists[0].id,a=Nr(n,e.playlists[0],to);a&&(n=a,r in n.mediaGroups[t][i]||(n.mediaGroups[t][i][r]=e),n.mediaGroups[t][i][r].playlists[0]=n.playlists[o],s=!1)}})),((e,t)=>{kr(e,((i,s,n,r)=>{r in t.mediaGroups[s][n]||delete e.mediaGroups[s][n][r]}))})(n,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:n},no=(e,t)=>{const i={};for(const r in e){const o=e[r].sidx;if(o){const e=(0,b.generateSidxKey)(o);if(!t[e])break;const r=t[e].sidxInfo;s=r,n=o,(Boolean(!s.map&&!n.map)||Boolean(s.map&&n.map&&s.map.byterange.offset===n.map.byterange.offset&&s.map.byterange.length===n.map.byterange.length))&&s.uri===n.uri&&s.byterange.offset===n.byterange.offset&&s.byterange.length===n.byterange.length&&(i[e]=t[e])}}var s,n;return i};class ro extends eo{constructor(e,t,i={},s){super(),this.mainPlaylistLoader_=s||this,s||(this.isMain_=!0);const{withCredentials:n=!1}=i;if(this.vhs_=t,this.withCredentials=n,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",(()=>{this.refreshXml_()})),this.on("mediaupdatetimeout",(()=>{this.refreshMedia_(this.media().id)})),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=Gn("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(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,metadata:e.metadata}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,i){const s=e.sidx&&(0,b.generateSidxKey)(e.sidx);if(!e.sidx||!s||this.mainPlaylistLoader_.sidxMapping_[s])return void(this.mediaRequest_=n().setTimeout((()=>i(!1)),0));const r=Wn(e.sidx.resolvedUri),o=(n,r)=>{if(this.requestErrored_(n,r,t))return;const o=this.mainPlaylistLoader_.sidxMapping_,{requestType:a}=r;let l;try{l=T()((0,y.toUint8)(r.response).subarray(8))}catch(e){return e.metadata=Lr({requestType:a,request:r,parseFailure:!0}),void this.requestErrored_(e,r,t)}return o[s]={sidxInfo:e.sidx,sidx:l},(0,b.addSidxSegmentsToPlaylist)(e,l,e.sidx.resolvedUri),i(!0)};this.request=((e,t,i,s)=>{let n,r=[],o=!1;const a=function(e,t,s,n){return t.abort(),o=!0,i(e,t,s,n)},l=function(e,t){if(o)return;if(e)return e.metadata=Lr({requestType:s,request:t,error:e}),a(e,t,"",r);const i=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=(0,y.concatTypedArrays)(r,(0,y.stringToBytes)(i,!0)),n=n||(0,S.getId3Offset)(r),r.length<10||n&&r.length<n+2)return Zr(t,(()=>a(e,t,"",r)));const l=(0,w.detectContainerForBytes)(r);return"ts"===l&&r.length<188||!l&&r.length<376?Zr(t,(()=>a(e,t,"",r))):a(null,t,l,r)},u={uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function({total:t,loaded:i}){return Br(e,null,{statusCode:e.status},l)}))}},d=t(u,(function(e,t){return Br(d,e,t,l)}));return d})(r,this.vhs_.xhr,((t,i,s,n)=>{if(t)return o(t,i);if(!s||"mp4"!==s){const t=s||"unknown";return o({status:i.status,message:`Unsupported ${t} container type for sidx segment at URL: ${r}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},i)}const{offset:a,length:l}=e.sidx.byterange;if(n.length>=l+a)return o(t,{response:n.subarray(a,a+l),status:i.status,uri:i.uri});this.request=this.vhs_.xhr({uri:r,responseType:"arraybuffer",requestType:"dash-sidx",headers:qr({byterange:e.sidx.byterange})},o)}),"dash-sidx")}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},n().clearTimeout(this.minimumUpdatePeriodTimeout_),n().clearTimeout(this.mediaRequest_),n().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,(i=>{this.haveMetadata({startingState:t,playlist:e})})))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),n().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(n().clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){n().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const e=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=n().setTimeout((()=>this.load()),e)}else this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){this.started=!0,this.isMain_?this.requestMain_(((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])})):this.mediaRequest_=n().setTimeout((()=>this.haveMain_()),0)}requestMain_(e){const t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},((i,s)=>{if(i){const{requestType:e}=s;i.metadata=Lr({requestType:e,request:s,error:i})}if(this.requestErrored_(i,s))return void("HAVE_NOTHING"===this.state&&(this.started=!1));this.trigger({type:"manifestrequestcomplete",metadata:t});const n=s.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=s.responseText,s.responseHeaders&&s.responseHeaders.date?this.mainLoaded_=Date.parse(s.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=Wn(this.mainPlaylistLoader_.srcUrl,s),n?(this.handleMain_(),void this.syncClientServerClock_((()=>e(s,n)))):e(s,n)}))}syncClientServerClock_(e){const t=(0,b.parseUTCTiming)(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:zn(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},((i,s)=>{if(!this.request)return;if(i){const{requestType:t}=s;return this.error.metadata=Lr({requestType:t,request:s,error:i}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let n;n="HEAD"===t.method?s.responseHeaders&&s.responseHeaders.date?Date.parse(s.responseHeaders.date):this.mainLoaded_:Date.parse(s.responseText),this.mainPlaylistLoader_.clientOffset_=n-Date.now(),e()})))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main,t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};let i;this.trigger({type:"manifestparsestart",metadata:t});try{i=(({mainXml:e,srcUrl:t,clientOffset:i,sidxMapping:s,previousManifest:n})=>{const r=(0,b.parse)(e,{manifestUri:t,clientOffset:i,sidxMapping:s,previousManifest:n});return Ir(r,t,io),r})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(e){this.error=e,this.error.metadata={errorType:Bn.Error.StreamingDashManifestParserError,error:e},this.trigger("error")}e&&(i=so(e,i,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=i||e;const s=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(s&&s!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=s),(!e||i&&i.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(i),i){const{duration:e,endList:s}=i,n=[];i.playlists.forEach((e=>{n.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})}));const r={duration:e,isLive:!s,renditions:n};t.parsedManifest=r,this.trigger({type:"manifestparsecomplete",metadata:t})}return Boolean(i)}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(n().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;0===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)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=n().setTimeout((()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)}refreshXml_(){this.requestMain_(((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=((e,t)=>{let i=no(e.playlists,t);return kr(e,((e,s,n,r)=>{if(e.playlists&&e.playlists.length){const s=e.playlists;i=Xn(i,no(s,t))}})),i})(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,(e=>{this.refreshMedia_(this.media().id)})))}))}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==t[e];if(i?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const e=()=>{this.media().endList||(this.mediaUpdateTimeout=n().setTimeout((()=>{this.trigger("mediaupdatetimeout"),e()}),Rr(this.media(),Boolean(i))))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const e=this.mainPlaylistLoader_.main.eventStream.map((e=>({cueTime:e.start,frames:[{data:e.messageData}]})));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const s=e.contentProtection[i].attributes["cenc:default_KID"];s&&t.add(s.replace(/-/g,"").toLowerCase())}return t}}}var oo={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};const ao=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},lo=function(e){return function(){const t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(t){const i=new BlobBuilder;return i.append(e),URL.createObjectURL(i.getBlob())}}(e),i=ao(new Worker(t));i.objURL=t;const s=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),s.call(this)},i}},uo=function(e){return`var browserWorkerPolyFill = ${ao.toString()};\nbrowserWorkerPolyFill(self);\n`+e},co=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},ho=uo(co((function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},t=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 s;return!!e[t]&&(s=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(s,1),s>-1)},this.trigger=function(t){var i,s,n,r;if(i=e[t])if(2===arguments.length)for(n=i.length,s=0;s<n;++s)i[s].call(this,arguments[1]);else{for(r=[],s=arguments.length,s=1;s<arguments.length;++s)r.push(arguments[s]);for(n=i.length,s=0;s<n;++s)i[s].apply(this,r)}},this.dispose=function(){e={}}}};t.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},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var s,n,r,o,a,l,u,d,c,h,p,f,m,g,_,y,b,v,T,S,w,E,C,k,x,I,A,L,P,O,j,D,M,N,R,F,U,B,$,q,V=t,H=Math.pow(2,32),z={getUint64:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(t=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:i.getUint32(0)*H+i.getUint32(4)},MAX_UINT32:H},W=z.MAX_UINT32;!function(){var e;if(E={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 E)E.hasOwnProperty(e)&&(E[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),x=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),k=new Uint8Array([0,0,0,1]),I=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]),A=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]),L={video:I,audio:A},j=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),O=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),M=D,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=D,P=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),s=function(e){var t,i,s=[],n=0;for(t=1;t<arguments.length;t++)s.push(arguments[t]);for(t=s.length;t--;)n+=s[t].byteLength;for(i=new Uint8Array(n+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(e,4),t=0,n=8;t<s.length;t++)i.set(s[t],n),n+=s[t].byteLength;return i},n=function(){return s(E.dinf,s(E.dref,j))},r=function(e){return s(E.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]))},_=function(e){return s(E.hdlr,L[e])},g=function(e){var t=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&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),s(E.mdhd,t)},m=function(e){return s(E.mdia,g(e),_(e.type),l(e))},a=function(e){return s(E.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},l=function(e){return s(E.minf,"video"===e.type?s(E.vmhd,P):s(E.smhd,O),n(),b(e))},u=function(e,t){for(var i=[],n=t.length;n--;)i[n]=T(t[n]);return s.apply(null,[E.moof,a(e)].concat(i))},d=function(e){for(var t=e.length,i=[];t--;)i[t]=p(e[t]);return s.apply(null,[E.moov,h(4294967295)].concat(i).concat(c(e)))},c=function(e){for(var t=e.length,i=[];t--;)i[t]=S(e[t]);return s.apply(null,[E.mvex].concat(i))},h=function(e){var t=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 s(E.mvhd,t)},y=function(e){var t,i,n=e.samples||[],r=new Uint8Array(4+n.length);for(i=0;i<n.length;i++)t=n[i].flags,r[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return s(E.sdtp,r)},b=function(e){return s(E.stbl,v(e),s(E.stts,R),s(E.stsc,M),s(E.stsz,N),s(E.stco,D))},v=function(e){return s(E.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?F(e):U(e))},F=function(e){var t,i,n=e.sps||[],r=e.pps||[],o=[],a=[];for(t=0;t<n.length;t++)o.push((65280&n[t].byteLength)>>>8),o.push(255&n[t].byteLength),o=o.concat(Array.prototype.slice.call(n[t]));for(t=0;t<r.length;t++)a.push((65280&r[t].byteLength)>>>8),a.push(255&r[t].byteLength),a=a.concat(Array.prototype.slice.call(r[t]));if(i=[E.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]),s(E.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length],o,[r.length],a))),s(E.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];i.push(s(E.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return s.apply(null,i)},U=function(e){return s(E.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]),r(e))},f=function(e){var t=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 s(E.tkhd,t)},T=function(e){var t,i,n,r,o,a;return t=s(E.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])),o=Math.floor(e.baseMediaDecodeTime/W),a=Math.floor(e.baseMediaDecodeTime%W),i=s(E.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a])),"audio"===e.type?(n=w(e,92),s(E.traf,t,i,n)):(r=y(e),n=w(e,r.length+92),s(E.traf,t,i,n,r))},p=function(e){return e.duration=e.duration||4294967295,s(E.trak,f(e),m(e))},S=function(e){var t=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&&(t[t.length-1]=0),s(E.trex,t)},q=function(e,t){var i=0,s=0,n=0,r=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(s=2),void 0!==e[0].flags&&(n=4),void 0!==e[0].compositionTimeOffset&&(r=8)),[0,0,i|s|n|r,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]},$=function(e,t){var i,n,r,o,a,l;for(t+=20+16*(o=e.samples||[]).length,r=q(o,t),(n=new Uint8Array(r.length+16*o.length)).set(r),i=r.length,l=0;l<o.length;l++)a=o[l],n[i++]=(4278190080&a.duration)>>>24,n[i++]=(16711680&a.duration)>>>16,n[i++]=(65280&a.duration)>>>8,n[i++]=255&a.duration,n[i++]=(4278190080&a.size)>>>24,n[i++]=(16711680&a.size)>>>16,n[i++]=(65280&a.size)>>>8,n[i++]=255&a.size,n[i++]=a.flags.isLeading<<2|a.flags.dependsOn,n[i++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,n[i++]=61440&a.flags.degradationPriority,n[i++]=15&a.flags.degradationPriority,n[i++]=(4278190080&a.compositionTimeOffset)>>>24,n[i++]=(16711680&a.compositionTimeOffset)>>>16,n[i++]=(65280&a.compositionTimeOffset)>>>8,n[i++]=255&a.compositionTimeOffset;return s(E.trun,n)},B=function(e,t){var i,n,r,o,a,l;for(t+=20+8*(o=e.samples||[]).length,r=q(o,t),(i=new Uint8Array(r.length+8*o.length)).set(r),n=r.length,l=0;l<o.length;l++)a=o[l],i[n++]=(4278190080&a.duration)>>>24,i[n++]=(16711680&a.duration)>>>16,i[n++]=(65280&a.duration)>>>8,i[n++]=255&a.duration,i[n++]=(4278190080&a.size)>>>24,i[n++]=(16711680&a.size)>>>16,i[n++]=(65280&a.size)>>>8,i[n++]=255&a.size;return s(E.trun,i)},w=function(e,t){return"audio"===e.type?B(e,t):$(e,t)};var G,X,K,Y,Q,J,Z,ee,te={ftyp:o=function(){return s(E.ftyp,C,k,C,x)},mdat:function(e){return s(E.mdat,e)},moof:u,moov:d,initSegment:function(e){var t,i=o(),s=d(e);return(t=new Uint8Array(i.byteLength+s.byteLength)).set(i),t.set(s,i.byteLength),t}},ie=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},se={groupNalsIntoFrames:function(e){var t,i,s=[],n=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,s.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(s.length&&(s.duration=i.dts-s.dts,n.byteLength+=s.byteLength,n.nalCount+=s.length,n.duration+=s.duration,n.push(s)),(s=[i]).byteLength=i.data.byteLength,s.pts=i.pts,s.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(s.keyFrame=!0),s.duration=i.dts-s.dts,s.byteLength+=i.data.byteLength,s.push(i));return n.length&&(!s.duration||s.duration<=0)&&(s.duration=n[n.length-1].duration),n.byteLength+=s.byteLength,n.nalCount+=s.length,n.duration+=s.duration,n.push(s),n},groupFramesIntoGops:function(e){var t,i,s=[],n=[];for(s.byteLength=0,s.nalCount=0,s.duration=0,s.pts=e[0].pts,s.dts=e[0].dts,n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(s.length&&(n.push(s),n.byteLength+=s.byteLength,n.nalCount+=s.nalCount,n.duration+=s.duration),(s=[i]).nalCount=i.length,s.byteLength=i.byteLength,s.pts=i.pts,s.dts=i.dts,s.duration=i.duration):(s.duration+=i.duration,s.nalCount+=i.length,s.byteLength+=i.byteLength,s.push(i));return n.length&&s.duration<=0&&(s.duration=n[n.length-1].duration),n.byteLength+=s.byteLength,n.nalCount+=s.nalCount,n.duration+=s.duration,n.push(s),n},extendFirstKeyFrame: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},generateSampleTable:function(e,t){var i,s,n,r,o,a=t||0,l=[];for(i=0;i<e.length;i++)for(r=e[i],s=0;s<r.length;s++)o=r[s],a+=(n=ie(o,a)).size,l.push(n);return l},concatenateNalData:function(e){var t,i,s,n,r,o,a=0,l=e.byteLength,u=e.nalCount,d=new Uint8Array(l+4*u),c=new DataView(d.buffer);for(t=0;t<e.length;t++)for(n=e[t],i=0;i<n.length;i++)for(r=n[i],s=0;s<r.length;s++)o=r[s],c.setUint32(a,o.data.byteLength),a+=4,d.set(o.data,a),a+=o.data.byteLength;return d},generateSampleTableForFrame:function(e,t){var i,s=[];return i=ie(e,t||0),s.push(i),s},concatenateNalDataForFrame:function(e){var t,i,s=0,n=e.byteLength,r=e.length,o=new Uint8Array(n+4*r),a=new DataView(o.buffer);for(t=0;t<e.length;t++)i=e[t],a.setUint32(s,i.data.byteLength),s+=4,o.set(i.data,s),s+=i.data.byteLength;return o}},ne=[33,16,5,32,164,27],re=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],oe=function(e){for(var t=[];e--;)t.push(0);return t},ae=9e4;J=function(e,t){return X(Q(e,t))},Z=function(e,t){return K(Y(e),t)},ee=function(e,t,i){return Y(i?e:e-t)};var le={ONE_SECOND_IN_TS:ae,secondsToVideoTs:X=function(e){return e*ae},secondsToAudioTs:K=function(e,t){return e*t},videoTsToSeconds:Y=function(e){return e/ae},audioTsToSeconds:Q=function(e,t){return e/t},audioTsToVideoTs:J,videoTsToAudioTs:Z,metadataTsToSeconds:ee},ue=function(){if(!G){var e={96e3:[ne,[227,64],oe(154),[56]],88200:[ne,[231],oe(170),[56]],64e3:[ne,[248,192],oe(240),[56]],48e3:[ne,[255,192],oe(268),[55,148,128],oe(54),[112]],44100:[ne,[255,192],oe(268),[55,163,128],oe(84),[112]],32e3:[ne,[255,192],oe(268),[55,234],oe(226),[112]],24e3:[ne,[255,192],oe(268),[55,255,128],oe(268),[111,112],oe(126),[224]],16e3:[ne,[255,192],oe(268),[55,255,128],oe(268),[111,255],oe(269),[223,108],oe(195),[1,192]],12e3:[re,oe(268),[3,127,248],oe(268),[6,255,240],oe(268),[13,255,224],oe(268),[27,253,128],oe(259),[56]],11025:[re,oe(268),[3,127,248],oe(268),[6,255,240],oe(268),[13,255,224],oe(268),[27,255,192],oe(268),[55,175,128],oe(108),[112]],8e3:[re,oe(268),[3,121,16],oe(47),[7]]};t=e,G=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 G},de=le,ce={prefixWithSilence:function(e,t,i,s){var n,r,o,a,l,u=0,d=0,c=0;if(t.length&&(n=de.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),r=Math.ceil(de.ONE_SECOND_IN_TS/(e.samplerate/1024)),i&&s&&(u=n-Math.max(i,s),c=(d=Math.floor(u/r))*r),!(d<1||c>de.ONE_SECOND_IN_TS/2))){for((o=ue()[e.samplerate])||(o=t[0].data),a=0;a<d;a++)l=t[0],t.splice(0,0,{data:o,dts:l.dts-r,pts:l.pts-r});return e.baseMediaDecodeTime-=Math.floor(de.videoTsToAudioTs(c,e.samplerate)),c}},trimAdtsFramesByEarliestDts: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)})))},generateSampleTable:function(e){var t,i,s=[];for(t=0;t<e.length;t++)i=e[t],s.push({size:i.data.byteLength,duration:1024});return s},concatenateFrameData:function(e){var t,i,s=0,n=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],n.set(i.data,s),s+=i.data.byteLength;return n}},he=le.ONE_SECOND_IN_TS,pe={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var i,s=e.minSegmentDts;return t||(s-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=s,i=Math.max(0,i),"audio"===e.type&&(i*=e.samplerate/he,i=Math.floor(i)),i},collectDtsInfo: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))}},fe={parseSei:function(e){for(var t=0,i={payloadType:-1,payloadSize:0},s=0,n=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)s+=255,t++;for(s+=e[t++];255===e[t];)n+=255,t++;if(n+=e[t++],!i.payload&&4===s){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=s,i.payloadSize=n,i.payload=e.subarray(t,t+n);break}i.payload=void 0}t+=n,s=0,n=0}return i},parseUserData: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)},parseCaptionPackets:function(e,t){var i,s,n,r,o=[];if(!(64&t[0]))return o;for(s=31&t[0],i=0;i<s;i++)r={type:3&t[(n=3*i)+2],pts:e},4&t[n+2]&&(r.ccData=t[n+3]<<8|t[n+4],o.push(r));return o},discardEmulationPreventionBytes:function(e){for(var t,i,s=e.byteLength,n=[],r=1;r<s-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;t=s-n.length,i=new Uint8Array(t);var o=0;for(r=0;r<t;o++,r++)o===n[0]&&(o++,n.shift()),i[r]=e[o];return i},USER_DATA_REGISTERED_ITU_T_T35:4},me=V,ge=fe,_e=function(e){e=e||{},_e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new xe(0,0),new xe(0,1),new xe(1,0),new xe(1,1)],this.parse708captions_&&(this.cc708Stream_=new Se({captionServices:e.captionServices})),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")))};_e.prototype=new me,_e.prototype.push=function(e){var t,i,s;if("sei_rbsp"===e.nalUnitType&&(t=ge.parseSei(e.escapedRBSP)).payload&&t.payloadType===ge.USER_DATA_REGISTERED_ITU_T_T35&&(i=ge.parseUserData(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));s=ge.parseCaptionPackets(e.pts,i),this.captionPackets_=this.captionPackets_.concat(s),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},_e.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},_e.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)},_e.prototype.flush=function(){return this.flushStream("flush")},_e.prototype.partialFlush=function(){return this.flushStream("partialFlush")},_e.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},_e.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)},_e.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},_e.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},_e.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},_e.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var ye={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},be=function(e){return 32<=e&&e<=127||160<=e&&e<=255},ve=function(e){this.windowNum=e,this.reset()};ve.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},ve.prototype.getText=function(){return this.rows.join("\n")},ve.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ve.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--},ve.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},ve.prototype.addText=function(e){this.rows[this.rowIdx]+=e},ve.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Te=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new ve(-1),this.windows=[],this.stream=i,"string"==typeof t&&this.createTextDecoder(t)};Te.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new ve(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},Te.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Te.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var Se=function(e){e=e||{},Se.prototype.init.call(this);var t,i=this,s=e.captionServices||{},n={};Object.keys(s).forEach((e=>{t=s[e],/^SERVICE/.test(e)&&(n[e]=t.encoding)})),this.serviceEncodings=n,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};Se.prototype=new me,Se.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Se.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,s=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(s)},Se.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,s=null,n=0,r=t[n++];for(e.seq=r>>6,e.sizeCode=63&r;n<t.length;n++)s=31&(r=t[n++]),7===(i=r>>5)&&s>0&&(i=r=t[n++]),this.pushServiceBlock(i,n,s),s>0&&(n+=s-1)},Se.prototype.pushServiceBlock=function(e,t,i){var s,n=t,r=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,n));n<t+i&&n<r.length;n++)s=r[n],be(s)?n=this.handleText(n,o):24===s?n=this.multiByteCharacter(n,o):16===s?n=this.extendedCommands(n,o):128<=s&&s<=135?n=this.setCurrentWindow(n,o):152<=s&&s<=159?n=this.defineWindow(n,o):136===s?n=this.clearWindows(n,o):140===s?n=this.deleteWindows(n,o):137===s?n=this.displayWindows(n,o):138===s?n=this.hideWindows(n,o):139===s?n=this.toggleWindows(n,o):151===s?n=this.setWindowAttributes(n,o):144===s?n=this.setPenAttributes(n,o):145===s?n=this.setPenColor(n,o):146===s?n=this.setPenLocation(n,o):143===s?o=this.reset(n,o):8===s?o.currentWindow.backspace():12===s?o.currentWindow.clearText():13===s?o.currentWindow.pendingNewLine=!0:14===s?o.currentWindow.clearText():141===s&&n++},Se.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data[++e];return be(i)&&(e=this.handleText(e,t,{isExtended:!0})),e},Se.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Se.prototype.initService=function(e,t){var i,s,n=this;return(i="SERVICE"+e)in this.serviceEncodings&&(s=this.serviceEncodings[i]),this.services[e]=new Te(e,s,n),this.services[e].init(this.getPts(t),(function(t){n.flushDisplayed(t,n.services[e])})),this.services[e]},Se.prototype.handleText=function(e,t,i){var s,n,r,o,a=i&&i.isExtended,l=i&&i.isMultiByte,u=this.current708Packet.data,d=a?4096:0,c=u[e],h=u[e+1],p=t.currentWindow;if(l?(n=[c,h],e++):n=[c],t.textDecoder_&&!a)s=t.textDecoder_.decode(new Uint8Array(n));else if(l){const e=n.map((e=>("0"+(255&e).toString(16)).slice(-2))).join("");s=String.fromCharCode(parseInt(e,16))}else o=ye[r=d|c]||r,s=4096&r&&r===o?"":String.fromCharCode(o);return p.pendingNewLine&&!p.isEmpty()&&p.newLine(this.getPts(e)),p.pendingNewLine=!1,p.addText(s),e},Se.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data,s=i[e+1],n=i[e+2];return be(s)&&be(n)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Se.prototype.setCurrentWindow=function(e,t){var i=7&this.current708Packet.data[e];return t.setCurrentWindow(i),e},Se.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,s=i[e],n=7&s;t.setCurrentWindow(n);var r=t.currentWindow;return s=i[++e],r.visible=(32&s)>>5,r.rowLock=(16&s)>>4,r.columnLock=(8&s)>>3,r.priority=7&s,s=i[++e],r.relativePositioning=(128&s)>>7,r.anchorVertical=127&s,s=i[++e],r.anchorHorizontal=s,s=i[++e],r.anchorPoint=(240&s)>>4,r.rowCount=15&s,s=i[++e],r.columnCount=63&s,s=i[++e],r.windowStyle=(56&s)>>3,r.penStyle=7&s,r.virtualRowCount=r.rowCount+1,e},Se.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,s=i[e],n=t.currentWindow.winAttr;return s=i[++e],n.fillOpacity=(192&s)>>6,n.fillRed=(48&s)>>4,n.fillGreen=(12&s)>>2,n.fillBlue=3&s,s=i[++e],n.borderType=(192&s)>>6,n.borderRed=(48&s)>>4,n.borderGreen=(12&s)>>2,n.borderBlue=3&s,s=i[++e],n.borderType+=(128&s)>>5,n.wordWrap=(64&s)>>6,n.printDirection=(48&s)>>4,n.scrollDirection=(12&s)>>2,n.justify=3&s,s=i[++e],n.effectSpeed=(240&s)>>4,n.effectDirection=(12&s)>>2,n.displayEffect=3&s,e},Se.prototype.flushDisplayed=function(e,t){for(var i=[],s=0;s<8;s++)t.windows[s].visible&&!t.windows[s].isEmpty()&&i.push(t.windows[s].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},Se.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)},Se.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var n=0;n<8;n++)i&1<<n&&(t.windows[n].visible=1);return e},Se.prototype.hideWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var n=0;n<8;n++)i&1<<n&&(t.windows[n].visible=0);return e},Se.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var n=0;n<8;n++)i&1<<n&&(t.windows[n].visible^=1);return e},Se.prototype.clearWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var n=0;n<8;n++)i&1<<n&&t.windows[n].clearText();return e},Se.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data[++e],s=this.getPts(e);this.flushDisplayed(s,t);for(var n=0;n<8;n++)i&1<<n&&t.windows[n].reset();return e},Se.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,s=i[e],n=t.currentWindow.penAttr;return s=i[++e],n.textTag=(240&s)>>4,n.offset=(12&s)>>2,n.penSize=3&s,s=i[++e],n.italics=(128&s)>>7,n.underline=(64&s)>>6,n.edgeType=(56&s)>>3,n.fontStyle=7&s,e},Se.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,s=i[e],n=t.currentWindow.penColor;return s=i[++e],n.fgOpacity=(192&s)>>6,n.fgRed=(48&s)>>4,n.fgGreen=(12&s)>>2,n.fgBlue=3&s,s=i[++e],n.bgOpacity=(192&s)>>6,n.bgRed=(48&s)>>4,n.bgGreen=(12&s)>>2,n.bgBlue=3&s,s=i[++e],n.edgeRed=(48&s)>>4,n.edgeGreen=(12&s)>>2,n.edgeBlue=3&s,e},Se.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,s=i[e],n=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,s=i[++e],n.row=15&s,s=i[++e],n.column=63&s,e},Se.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var we={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},Ee=function(e){return null===e?"":(e=we[e]||e,String.fromCharCode(e))},Ce=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ke=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},xe=function(e,t){xe.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,s,n,r;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),s=t>>>8,n=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_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=ke();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ke();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=ke()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(s,n))r=Ee((s=(3&s)<<8)|n),this[this.mode_](e.pts,r),this.column_++;else if(this.isExtCharacter(s,n))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),r=Ee((s=(3&s)<<8)|n),this[this.mode_](e.pts,r),this.column_++;else if(this.isMidRowCode(s,n))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~n||this.addFormatting(e.pts,["i"]),1&~n||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(s,n)){const e=3&n;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(s,n)){var o=Ce.indexOf(7968&t);if("rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&o>=0&&o<=14&&(this.clearFormatting(e.pts),this.row_=o),1&n&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),!(16&~t)){const e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(n)&&(14&~n||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(s)&&(0===n&&(n=null),r=Ee(s),r+=Ee(n),this[this.mode_](e.pts,r),this.column_+=r.length)}else this.lastControlCode_=null}};xe.prototype=new me,xe.prototype.flushDisplayed=function(e){const t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},i=[];this.displayed_.forEach(((e,s)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){t(s)}e.text.length&&i.push({text:e.text,line:s+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(s)})),i.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:i,stream:this.name_})},xe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ke(),this.nonDisplayed_=ke(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},xe.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_},xe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},xe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},xe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},xe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},xe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},xe.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},xe.prototype.isNormalChar=function(e){return e>=32&&e<=127},xe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=ke(),this.displayed_=ke()),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]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},xe.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)},xe.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)}},xe.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_].text;i+=t,this.nonDisplayed_[this.row_].text=i},xe.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i},xe.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},xe.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i};var Ie={CaptionStream:_e,Cea608Stream:xe,Cea708Stream:Se},Ae={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Le=V,Pe="shared",Oe=function(e,t){var i=1;for(e>t&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},je=function(e){var t,i;je.prototype.init.call(this),this.type_=e||Pe,this.push=function(e){"metadata"!==e.type?this.type_!==Pe&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Oe(e.dts,i),e.pts=Oe(e.pts,i),t=e.dts,this.trigger("data",e)):this.trigger("data",e)},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};je.prototype=new Le;var De,Me={TimestampRolloverStream:je,handleRollover:Oe},Ne=(e,t,i)=>{if(!e)return-1;for(var s=i;s<e.length;s++)if(e[s]===t)return s;return-1},Re=Ne,Fe=3,Ue=function(e,t,i){var s,n="";for(s=t;s<i;s++)n+="%"+("00"+e[s].toString(16)).slice(-2);return n},Be=function(e,t,i){return decodeURIComponent(Ue(e,t,i))},$e=function(e,t,i){return unescape(Ue(e,t,i))},qe=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Ve={APIC:function(e){var t,i,s=1;e.data[0]===Fe&&((t=Re(e.data,0,s))<0||(e.mimeType=$e(e.data,s,t),s=t+1,e.pictureType=e.data[s],s++,(i=Re(e.data,0,s))<0||(e.description=Be(e.data,s,i),s=i+1,"--\x3e"===e.mimeType?e.url=$e(e.data,s,e.data.length):e.pictureData=e.data.subarray(s,e.data.length))))},"T*":function(e){e.data[0]===Fe&&(e.value=Be(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;e.data[0]===Fe&&-1!==(t=Re(e.data,0,1))&&(e.description=Be(e.data,1,t),e.value=Be(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=$e(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;e.data[0]===Fe&&-1!==(t=Re(e.data,0,1))&&(e.description=Be(e.data,1,t),e.url=$e(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=$e(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},He={parseId3Frames:function(e){var t,i=10,s=0,n=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){s=qe(e.subarray(6,10)),s+=10,64&e[5]&&(i+=4,i+=qe(e.subarray(10,14)),s-=qe(e.subarray(16,20)));do{if((t=qe(e.subarray(i+4,i+8)))<1)break;var r={id:String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]),data:e.subarray(i+10,i+t+10)};r.key=r.id,Ve[r.id]?Ve[r.id](r):"T"===r.id[0]?Ve["T*"](r):"W"===r.id[0]&&Ve["W*"](r),n.push(r),i+=10,i+=t}while(i<s);return n}},parseSyncSafeInteger:qe,frameParsers:Ve},ze=Ae,We=He;(De=function(e){var t,i={descriptor:e&&e.descriptor},s=0,n=[],r=0;if(De.prototype.init.call(this),this.dispatchType=ze.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,o,a,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(r=0,n.length=0),0===n.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(n.push(e),r+=e.data.byteLength,1===n.length&&(s=We.parseSyncSafeInteger(e.data.subarray(6,10)),s+=10),!(r<s)){for(t={data:new Uint8Array(s),frames:[],pts:n[0].pts,dts:n[0].dts},l=0;l<s;)t.data.set(n[0].data.subarray(0,s-l),l),l+=n[0].data.byteLength,r-=n[0].data.byteLength,n.shift();i=10,64&t.data[5]&&(i+=4,i+=We.parseSyncSafeInteger(t.data.subarray(10,14)),s-=We.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((o=We.parseSyncSafeInteger(t.data.subarray(i+4,i+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((a={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+o+10)}).key=a.id,We.frameParsers[a.id]?We.frameParsers[a.id](a):"T"===a.id[0]?We.frameParsers["T*"](a):"W"===a.id[0]&&We.frameParsers["W*"](a),"com.apple.streaming.transportStreamTimestamp"===a.owner){var u=a.data,d=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;d*=4,d+=3&u[7],a.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=a.timeStamp,t.dts=a.timeStamp),this.trigger("timestamp",a)}t.frames.push(a),i+=10,i+=o}while(i<s);this.trigger("data",t)}}}).prototype=new V;var Ge,Xe,Ke,Ye=De,Qe=V,Je=Ie,Ze=Ae,et=Me.TimestampRolloverStream,tt=188;(Ge=function(){var e=new Uint8Array(tt),t=0;Ge.prototype.init.call(this),this.push=function(i){var s,n=0,r=tt;for(t?((s=new Uint8Array(i.byteLength+t)).set(e.subarray(0,t)),s.set(i,t),t=0):s=i;r<s.byteLength;)71!==s[n]||71!==s[r]?(n++,r++):(this.trigger("data",s.subarray(n,r)),n+=tt,r+=tt);n<s.byteLength&&(e.set(s.subarray(n),0),t=s.byteLength-n)},this.flush=function(){t===tt&&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 Qe,Xe=function(){var e,t,i,s;Xe.prototype.init.call(this),s=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,s){var n=0;s.payloadUnitStartIndicator&&(n+=e[n]+1),"pat"===s.type?t(e.subarray(n),s):i(e.subarray(n),s)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],s.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=s.pmtPid},i=function(e,t){var i,n;if(1&e[5]){for(s.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,n=12+((15&e[10])<<8|e[11]);n<i;){var r=e[n],o=(31&e[n+1])<<8|e[n+2];r===Ze.H264_STREAM_TYPE&&null===s.programMapTable.video?s.programMapTable.video=o:r===Ze.ADTS_STREAM_TYPE&&null===s.programMapTable.audio?s.programMapTable.audio=o:r===Ze.METADATA_STREAM_TYPE&&(s.programMapTable["timed-metadata"][o]=r),n+=5+((15&e[n+3])<<8|e[n+4])}t.programMapTable=s.programMapTable}},this.push=function(t){var i={},s=4;if(i.payloadUnitStartIndicator=!!(64&t[1]),i.pid=31&t[1],i.pid<<=8,i.pid|=t[2],(48&t[3])>>>4>1&&(s+=t[s]+1),0===i.pid)i.type="pat",e(t.subarray(s),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(s),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,s,i]):this.processPes_(t,s,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=Ze.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=Ze.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},Xe.prototype=new Qe,Xe.STREAM_TYPES={h264:27,adts:15},Ke=function(){var e,t=this,i=!1,s={data:[],size:0},n={data:[],size:0},r={data:[],size:0},o=function(e,i,s){var n,r,o=new Uint8Array(e.size),a={type:i},l=0,u=0;if(e.data.length&&!(e.size<9)){for(a.trackId=e.data[0].pid,l=0;l<e.data.length;l++)r=e.data[l],o.set(r.data,u),u+=r.data.byteLength;!function(e,t){var i;const s=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===s&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=!!(4&e[6]),192&(i=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))}(o,a),n="video"===i||a.packetLength<=e.size,(s||n)&&(e.size=0,e.data.length=0),n&&t.trigger("data",a)}};Ke.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case Ze.H264_STREAM_TYPE:e=s,t="video";break;case Ze.ADTS_STREAM_TYPE:e=n,t="audio";break;case Ze.METADATA_STREAM_TYPE:e=r,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var s={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",s)}})[a.type]()},this.reset=function(){s.size=0,s.data.length=0,n.size=0,n.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(s,"video"),o(n,"audio"),o(r,"timed-metadata")},this.flush=function(){if(!i&&e){var s={type:"metadata",tracks:[]};null!==e.video&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",s)}i=!1,this.flushStreams_(),this.trigger("done")}},Ke.prototype=new Qe;var it={PAT_PID:0,MP2T_PACKET_LENGTH:tt,TransportPacketStream:Ge,TransportParseStream:Xe,ElementaryStream:Ke,TimestampRolloverStream:et,CaptionStream:Je.CaptionStream,Cea608Stream:Je.Cea608Stream,Cea708Stream:Je.Cea708Stream,MetadataStream:Ye};for(var st in Ze)Ze.hasOwnProperty(st)&&(it[st]=Ze[st]);var nt,rt=it,ot=le.ONE_SECOND_IN_TS,at=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(nt=function(e){var t,i=0;nt.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(s){var n,r,o,a,l,u=0;if(e||(i=0),"audio"===s.type){var d;for(t&&t.length?(o=t,(t=new Uint8Array(o.byteLength+s.data.byteLength)).set(o),t.set(s.data,o.byteLength)):t=s.data;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof d&&(this.skipWarn_(d,u),d=null),r=2*(1&~t[u+1]),n=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,l=(a=1024*(1+(3&t[u+6])))*ot/at[(60&t[u+2])>>>2],t.byteLength-u<n)break;this.trigger("data",{pts:s.pts+i*l,dts:s.dts+i*l,sampleCount:a,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:at[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+r,u+n)}),i++,u+=n}else"number"!=typeof d&&(d=u),u++;"number"==typeof d&&(this.skipWarn_(d,u),d=null),t=t.subarray(u)}},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 V;var lt,ut,dt,ct=nt,ht=V,pt=function(e){var t=e.byteLength,i=0,s=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+s},this.loadWord=function(){var n=e.byteLength-t,r=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");r.set(e.subarray(n,n+o)),i=new DataView(r.buffer).getUint32(0),s=8*o,t-=o},this.skipBits=function(e){var n;s>e?(i<<=e,s-=e):(e-=s,e-=8*(n=Math.floor(e/8)),t-=n,this.loadWord(),i<<=e,s-=e)},this.readBits=function(e){var n=Math.min(s,e),r=i>>>32-n;return(s-=n)>0?i<<=n:t>0&&this.loadWord(),(n=e-n)>0?r<<n|this.readBits(n):r},this.skipLeadingZeros=function(){var e;for(e=0;e<s;++e)if(i&2147483648>>>e)return i<<=e,s-=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()};(ut=function(){var e,t,i=0;ut.prototype.init.call(this),this.push=function(s){var n;t?((n=new Uint8Array(t.byteLength+s.data.byteLength)).set(t),n.set(s.data,t.byteLength),t=n):t=s.data;for(var r=t.byteLength;i<r-3;i++)if(1===t[i+2]){e=i+5;break}for(;e<r;)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<r);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 ht,dt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},lt=function(){var e,t,i,s,n,r,o,a=new ut;lt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,s=e.dts,a.push(e))},a.on("data",(function(o){var a={trackId:t,pts:i,dts:s,data:o,nalUnitTypeCode:31&o[0]};switch(a.nalUnitTypeCode){case 5:a.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:a.nalUnitType="sei_rbsp",a.escapedRBSP=n(o.subarray(1));break;case 7:a.nalUnitType="seq_parameter_set_rbsp",a.escapedRBSP=n(o.subarray(1)),a.config=r(a.escapedRBSP);break;case 8:a.nalUnitType="pic_parameter_set_rbsp";break;case 9:a.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",a)})),a.on("done",(function(){e.trigger("done")})),a.on("partialdone",(function(){e.trigger("partialdone")})),a.on("reset",(function(){e.trigger("reset")})),a.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){a.flush()},this.partialFlush=function(){a.partialFlush()},this.reset=function(){a.reset()},this.endTimeline=function(){a.endTimeline()},o=function(e,t){var i,s=8,n=8;for(i=0;i<e;i++)0!==n&&(n=(s+t.readExpGolomb()+256)%256),s=0===n?s:n},n=function(e){for(var t,i,s=e.byteLength,n=[],r=1;r<s-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;t=s-n.length,i=new Uint8Array(t);var o=0;for(r=0;r<t;o++,r++)o===n[0]&&(o++,n.shift()),i[r]=e[o];return i},r=function(e){var t,i,s,n,r,a,l,u,d,c,h,p,f=0,m=0,g=0,_=0,y=[1,1];if(i=(t=new pt(e)).readUnsignedByte(),n=t.readUnsignedByte(),s=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),dt[i]&&(3===(r=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==r?8:12,p=0;p<h;p++)t.readBoolean()&&o(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(a=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===a)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),d=t.readUnsignedExpGolomb(),0===(c=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),_=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:s,profileCompatibility:n,width:16*(u+1)-2*f-2*m,height:(2-c)*(d+1)*16-2*g-2*_,sarRatio:y}}},lt.prototype=new ht;var ft,mt={H264Stream:lt,NalByteStream:ut},gt=[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},yt=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=_t(e,t),yt(e,t))},bt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},vt={isLikelyAacData:function(e){var t=yt(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,s=e[t+4]<<3;return 6144&e[t+3]|s|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 gt[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i,s;t=10,64&e[5]&&(t+=4,t+=bt(e.subarray(10,14)));do{if((i=bt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){s=e.subarray(t+10,t+i+10);for(var n=0;n<s.byteLength;n++)if(0===s[n]){var r=unescape(function(e,t,i){var s,n="";for(s=t;s<i;s++)n+="%"+("00"+e[s].toString(16)).slice(-2);return n}(s,0,n));if("com.apple.streaming.transportStreamTimestamp"===r){var o=s.subarray(n+1),a=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return a*=4,a+=3&o[7]}break}}t+=10,t+=i}while(t<e.byteLength);return null}},Tt=vt;(ft=function(){var e=new Uint8Array,t=0;ft.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(i){var s,n,r,o,a=0,l=0;for(e.length?(o=e.length,(e=new Uint8Array(i.byteLength+o)).set(e.subarray(0,o)),e.set(i,o)):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+(a=Tt.parseAdtsSize(e,l))>e.length)break;r={type:"audio",data:e.subarray(l,l+a),pts:t,dts:t},this.trigger("data",r),l+=a}else{if(e.length-l<10)break;if(l+(a=Tt.parseId3TagSize(e,l))>e.length)break;n={type:"timed-metadata",data:e.subarray(l,l+a)},this.trigger("data",n),l+=a}s=e.length-l,e=s>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 V;var St,wt,Et,Ct,kt=V,xt=te,It=se,At=ce,Lt=pe,Pt=rt,Ot=le,jt=ct,Dt=mt.H264Stream,Mt=ft,Nt=vt.isLikelyAacData,Rt=le.ONE_SECOND_IN_TS,Ft=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ut=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Bt=function(e,t){t.stream=e,this.trigger("log",t)},$t=function(e,t){for(var i=Object.keys(t),s=0;s<i.length;s++){var n=i[s];"headOfPipeline"!==n&&t[n].on&&t[n].on("log",Bt.bind(e,n))}},qt=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},Vt=function(e,t,i,s,n,r){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(s-t),pts:e+(n-i)},prependedContentDuration:r,baseMediaDecodeTime:e}};wt=function(e,t){var i,s=[],n=0,r=0,o=1/0;i=(t=t||{}).firstSequenceNumber||0,wt.prototype.init.call(this),this.push=function(t){Lt.collectDtsInfo(e,t),e&&Ft.forEach((function(i){e[i]=t[i]})),s.push(t)},this.setEarliestDts=function(e){n=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){r=e},this.flush=function(){var a,l,u,d,c,h,p;0!==s.length?(a=At.trimAdtsFramesByEarliestDts(s,e,n),e.baseMediaDecodeTime=Lt.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=At.prefixWithSilence(e,a,r,o),e.samples=At.generateSampleTable(a),u=xt.mdat(At.concatenateFrameData(a)),s=[],l=xt.moof(i,[e]),d=new Uint8Array(l.byteLength+u.byteLength),i++,d.set(l),d.set(u,l.byteLength),Lt.clearDtsInfo(e),c=Math.ceil(1024*Rt/e.samplerate),a.length&&(h=a.length*c,this.trigger("segmentTimingInfo",Vt(Ot.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),a[0].dts,a[0].pts,a[0].dts+h,a[0].pts+h,p||0)),this.trigger("timingInfo",{start:a[0].pts,end:a[0].pts+h})),this.trigger("data",{track:e,boxes:d}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Lt.clearDtsInfo(e),s=[],this.trigger("reset")}},wt.prototype=new kt,St=function(e,t){var i,s,n,r=[],o=[];i=(t=t||{}).firstSequenceNumber||0,St.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Lt.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||s||(s=t.config,e.sps=[t.data],Ut.forEach((function(t){e[t]=s[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.data,e.pps=[t.data]),r.push(t)},this.flush=function(){for(var s,n,a,l,u,d,c,h,p=0;r.length&&"access_unit_delimiter_rbsp"!==r[0].nalUnitType;)r.shift();if(0===r.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(s=It.groupNalsIntoFrames(r),(a=It.groupFramesIntoGops(s))[0][0].keyFrame||((n=this.getGopForFusion_(r[0],e))?(p=n.duration,a.unshift(n),a.byteLength+=n.byteLength,a.nalCount+=n.nalCount,a.pts=n.pts,a.dts=n.dts,a.duration+=n.duration):a=It.extendFirstKeyFrame(a)),o.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(a):this.alignGopsAtStart_(a)))return this.gopCache_.unshift({gop:a.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),r=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Lt.clearDtsInfo(e),a=f}Lt.collectDtsInfo(e,a),e.samples=It.generateSampleTable(a),u=xt.mdat(It.concatenateNalData(a)),e.baseMediaDecodeTime=Lt.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",a.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),c=a[0],h=a[a.length-1],this.trigger("segmentTimingInfo",Vt(e.baseMediaDecodeTime,c.dts,c.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:a[0].pts,end:a[a.length-1].pts+a[a.length-1].duration}),this.gopCache_.unshift({gop:a.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),r=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=xt.moof(i,[e]),d=new Uint8Array(l.byteLength+u.byteLength),i++,d.set(l),d.set(u,l.byteLength),this.trigger("data",{track:e,boxes:d}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),r=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){Lt.clearDtsInfo(e),s=void 0,n=void 0},this.getGopForFusion_=function(t){var i,s,n,r,o,a=1/0;for(o=0;o<this.gopCache_.length;o++)n=(r=this.gopCache_[o]).gop,e.pps&&qt(e.pps[0],r.pps[0])&&e.sps&&qt(e.sps[0],r.sps[0])&&(n.dts<e.timelineStartInfo.dts||(i=t.dts-n.dts-n.duration)>=-1e4&&i<=45e3&&(!s||a>i)&&(s=r,a=i));return s?s.gop:null},this.alignGopsAtStart_=function(e){var t,i,s,n,r,a,l,u;for(r=e.byteLength,a=e.nalCount,l=e.duration,t=i=0;t<o.length&&i<e.length&&(s=o[t],n=e[i],s.pts!==n.pts);)n.pts>s.pts?t++:(i++,r-=n.byteLength,a-=n.nalCount,l-=n.duration);return 0===i?e:i===e.length?null:((u=e.slice(i)).byteLength=r,u.duration=l,u.nalCount=a,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,i,s,n,r,a,l;for(t=o.length-1,i=e.length-1,r=null,a=!1;t>=0&&i>=0;){if(s=o[t],n=e[i],s.pts===n.pts){a=!0;break}s.pts>n.pts?t--:(t===o.length-1&&(r=i),i--)}if(!a&&null===r)return null;if(0===(l=a?i:r))return e;var u=e.slice(l),d=u.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 u.byteLength=d.byteLength,u.duration=d.duration,u.nalCount=d.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){o=e}},St.prototype=new kt,Ct=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,Ct.prototype.init.call(this),this.push=function(e){return e.content||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))))}},Ct.prototype=new kt,Ct.prototype.flush=function(e){var t,i,s,n,r=0,o={captions:[],captionStreams:{},metadata:[],info:{}},a=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?(a=this.videoTrack.timelineStartInfo.pts,Ut.forEach((function(e){o.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(a=this.audioTrack.timelineStartInfo.pts,Ft.forEach((function(e){o.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,s=xt.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(s.byteLength),o.initSegment.set(s),o.data=new Uint8Array(this.pendingBytes),n=0;n<this.pendingBoxes.length;n++)o.data.set(this.pendingBoxes[n],r),r+=this.pendingBoxes[n].byteLength;for(n=0;n<this.pendingCaptions.length;n++)(t=this.pendingCaptions[n]).startTime=Ot.metadataTsToSeconds(t.startPts,a,this.keepOriginalTimestamps),t.endTime=Ot.metadataTsToSeconds(t.endPts,a,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(n=0;n<this.pendingMetadata.length;n++)(i=this.pendingMetadata[n]).cueTime=Ot.metadataTsToSeconds(i.pts,a,this.keepOriginalTimestamps),o.metadata.push(i);for(o.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",o),n=0;n<o.captions.length;n++)t=o.captions[n],this.trigger("caption",t);for(n=0;n<o.metadata.length;n++)i=o.metadata[n],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Ct.prototype.setRemux=function(e){this.remuxTracks=e},(Et=function(e){var t,i,s=this,n=!0;Et.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var n={};this.transmuxPipeline_=n,n.type="aac",n.metadataStream=new Pt.MetadataStream,n.aacStream=new Mt,n.audioTimestampRolloverStream=new Pt.TimestampRolloverStream("audio"),n.timedMetadataTimestampRolloverStream=new Pt.TimestampRolloverStream("timed-metadata"),n.adtsStream=new jt,n.coalesceStream=new Ct(e,n.metadataStream),n.headOfPipeline=n.aacStream,n.aacStream.pipe(n.audioTimestampRolloverStream).pipe(n.adtsStream),n.aacStream.pipe(n.timedMetadataTimestampRolloverStream).pipe(n.metadataStream).pipe(n.coalesceStream),n.metadataStream.on("timestamp",(function(e){n.aacStream.setTimestamp(e.timeStamp)})),n.aacStream.on("data",(function(r){"timed-metadata"!==r.type&&"audio"!==r.type||n.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},n.coalesceStream.numberOfTracks++,n.audioSegmentStream=new wt(i,e),n.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),n.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),n.adtsStream.pipe(n.audioSegmentStream).pipe(n.coalesceStream),s.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))})),n.coalesceStream.on("data",this.trigger.bind(this,"data")),n.coalesceStream.on("done",this.trigger.bind(this,"done")),$t(this,n)},this.setupTsPipeline=function(){var n={};this.transmuxPipeline_=n,n.type="ts",n.metadataStream=new Pt.MetadataStream,n.packetStream=new Pt.TransportPacketStream,n.parseStream=new Pt.TransportParseStream,n.elementaryStream=new Pt.ElementaryStream,n.timestampRolloverStream=new Pt.TimestampRolloverStream,n.adtsStream=new jt,n.h264Stream=new Dt,n.captionStream=new Pt.CaptionStream(e),n.coalesceStream=new Ct(e,n.metadataStream),n.headOfPipeline=n.packetStream,n.packetStream.pipe(n.parseStream).pipe(n.elementaryStream).pipe(n.timestampRolloverStream),n.timestampRolloverStream.pipe(n.h264Stream),n.timestampRolloverStream.pipe(n.adtsStream),n.timestampRolloverStream.pipe(n.metadataStream).pipe(n.coalesceStream),n.h264Stream.pipe(n.captionStream).pipe(n.coalesceStream),n.elementaryStream.on("data",(function(r){var o;if("metadata"===r.type){for(o=r.tracks.length;o--;)t||"video"!==r.tracks[o].type?i||"audio"!==r.tracks[o].type||((i=r.tracks[o]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(t=r.tracks[o]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime;t&&!n.videoSegmentStream&&(n.coalesceStream.numberOfTracks++,n.videoSegmentStream=new St(t,e),n.videoSegmentStream.on("log",s.getLogTrigger_("videoSegmentStream")),n.videoSegmentStream.on("timelineStartInfo",(function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,n.audioSegmentStream.setEarliestDts(t.dts-s.baseMediaDecodeTime))})),n.videoSegmentStream.on("processedGopsInfo",s.trigger.bind(s,"gopInfo")),n.videoSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"videoSegmentTimingInfo")),n.videoSegmentStream.on("baseMediaDecodeTime",(function(e){i&&n.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),n.videoSegmentStream.on("timingInfo",s.trigger.bind(s,"videoTimingInfo")),n.h264Stream.pipe(n.videoSegmentStream).pipe(n.coalesceStream)),i&&!n.audioSegmentStream&&(n.coalesceStream.numberOfTracks++,n.audioSegmentStream=new wt(i,e),n.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),n.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),n.audioSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"audioSegmentTimingInfo")),n.adtsStream.pipe(n.audioSegmentStream).pipe(n.coalesceStream)),s.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}})),n.coalesceStream.on("data",this.trigger.bind(this,"data")),n.coalesceStream.on("id3Frame",(function(e){e.dispatchType=n.metadataStream.dispatchType,s.trigger("id3Frame",e)})),n.coalesceStream.on("caption",this.trigger.bind(this,"caption")),n.coalesceStream.on("done",this.trigger.bind(this,"done")),$t(this,n)},this.setBaseMediaDecodeTime=function(s){var n=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=s),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,Lt.clearDtsInfo(i),n.audioTimestampRolloverStream&&n.audioTimestampRolloverStream.discontinuity()),t&&(n.videoSegmentStream&&(n.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Lt.clearDtsInfo(t),n.captionStream.reset()),n.timestampRolloverStream&&n.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(n){var t=Nt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),n=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){n=!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 kt;var Ht,zt,Wt,Gt,Xt,Kt={Transmuxer:Et,VideoSegmentStream:St,AudioSegmentStream:wt,AUDIO_PROPERTIES:Ft,VIDEO_PROPERTIES:Ut,generateSegmentTimingInfo:Vt},Yt=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])},Jt=Yt,Zt=Qt,ei=function(e,t){var i,s,n,r,o,a=[];if(!t.length)return null;for(i=0;i<e.byteLength;)s=Jt(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),n=Zt(e.subarray(i+4,i+8)),r=s>1?i+s:e.byteLength,n===t[0]&&(1===t.length?a.push(e.subarray(i+8,r)):(o=ei(e.subarray(i+8,r),t.slice(1))).length&&(a=a.concat(o))),i=r;return a},ti=Yt,ii=z.getUint64,si=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=ii(e.subarray(4)):t.baseMediaDecodeTime=ti(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},ni=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]}},ri=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},s=new DataView(e.buffer,e.byteOffset,e.byteLength),n=1&i.flags[2],r=4&i.flags[2],o=1&i.flags[1],a=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],d=s.getUint32(4),c=8;for(n&&(i.dataOffset=s.getInt32(c),c+=4),r&&d&&(t={flags:ni(e.subarray(c,c+4))},c+=4,o&&(t.duration=s.getUint32(c),c+=4),a&&(t.size=s.getUint32(c),c+=4),u&&(1===i.version?t.compositionTimeOffset=s.getInt32(c):t.compositionTimeOffset=s.getUint32(c),c+=4),i.samples.push(t),d--);d--;)t={},o&&(t.duration=s.getUint32(c),c+=4),a&&(t.size=s.getUint32(c),c+=4),l&&(t.flags=ni(e.subarray(c,c+4)),c+=4),u&&(1===i.version?t.compositionTimeOffset=s.getInt32(c):t.compositionTimeOffset=s.getUint32(c),c+=4),i.samples.push(t);return i},oi=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),s={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},n=1&s.flags[2],r=2&s.flags[2],o=8&s.flags[2],a=16&s.flags[2],l=32&s.flags[2],u=65536&s.flags[0],d=131072&s.flags[0];return t=8,n&&(t+=4,s.baseDataOffset=i.getUint32(12),t+=4),r&&(s.sampleDescriptionIndex=i.getUint32(t),t+=4),o&&(s.defaultSampleDuration=i.getUint32(t),t+=4),a&&(s.defaultSampleSize=i.getUint32(t),t+=4),l&&(s.defaultSampleFlags=i.getUint32(t)),u&&(s.durationIsEmpty=!0),!n&&d&&(s.baseDataOffsetIsMoof=!0),s},ai=(Ht="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},fe.discardEmulationPreventionBytes),li=Ie.CaptionStream,ui=ei,di=si,ci=ri,hi=oi,pi=Ht,fi=function(e,t){for(var i=e,s=0;s<t.length;s++){var n=t[s];if(i<n.size)return n;i-=n.size}return null},mi=function(e,t){var i=ui(e,["moof","traf"]),s=ui(e,["mdat"]),n={},r=[];return s.forEach((function(e,t){var s=i[t];r.push({mdat:e,traf:s})})),r.forEach((function(e){var i,s,r=e.mdat,o=e.traf,a=ui(o,["tfhd"]),l=hi(a[0]),u=l.trackId,d=ui(o,["tfdt"]),c=d.length>0?di(d[0]).baseMediaDecodeTime:0,h=ui(o,["trun"]);t===u&&h.length>0&&(i=function(e,t,i){var s=t,n=i.defaultSampleDuration||0,r=i.defaultSampleSize||0,o=i.trackId,a=[];return e.forEach((function(e){var t=ci(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=n),void 0===e.size&&(e.size=r),e.trackId=o,e.dts=s,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof s?(e.pts=s+pi.BigInt(e.compositionTimeOffset),s+=pi.BigInt(e.duration)):(e.pts=s+e.compositionTimeOffset,s+=e.duration)})),a=a.concat(t)})),a}(h,c,l),s=function(e,t,i){var s,n,r,o,a=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(n=0;n+4<e.length;n+=r)if(r=a.getUint32(n),n+=4,!(r<=0))switch(31&e[n]){case 6:var u=e.subarray(n+1,n+1+r),d=fi(n,t);if(s={nalUnitType:"sei_rbsp",size:r,data:u,escapedRBSP:ai(u),trackId:i},d)s.pts=d.pts,s.dts=d.dts,o=d;else{if(!o){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+n+" for trackId "+i+". See mux.js#223."});break}s.pts=o.pts,s.dts=o.dts}l.seiNals.push(s)}return l}(r,i,u),n[u]||(n[u]={seiNals:[],logs:[]}),n[u].seiNals=n[u].seiNals.concat(s.seiNals),n[u].logs=n[u].logs.concat(s.logs))})),n},gi=function(){var e,t,i,s,n,r,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new li,o=!0,r=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/s,e.endTime=e.endPts/s,n.captions.push(e),n.captionStreams[e.stream]=!0})),e.on("log",(function(e){n.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]||s!==t[i])},this.parse=function(e,r,o){var a;if(!this.isInitialized())return null;if(!r||!o)return null;if(this.isNewInit(r,o))i=r[0],s=o[i];else if(null===i||!s)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,r,o)}return a=function(e,t,i){if(null===t)return null;var s=mi(e,t)[t]||{};return{seiNals:s.seiNals,logs:s.logs,timescale:i}}(e,i,s),a&&a.logs&&(n.logs=n.logs.concat(a.logs)),null!==a&&a.seiNals?(this.pushNals(a.seiNals),this.flushStream(),n):n.logs.length?{logs:n.logs,captions:[],captionStreams:[]}: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;r?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){n.captions=[],n.captionStreams={},n.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,s=null,n?this.clearParsedCaptions():n={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},_i=function(e){for(var t=0,i=String.fromCharCode(e[t]),s="";"\0"!==i;)s+=i,t++,i=String.fromCharCode(e[t]);return s+=i},yi=z.getUint64,bi=function(e,t){var i="\0"!==t.scheme_id_uri,s=0===e&&vi(t.presentation_time_delta)&&i,n=1===e&&vi(t.presentation_time)&&i;return!(e>1)&&s||n},vi=function(e){return void 0!==e||null!==e},Ti={parseEmsgBox:function(e){var t,i,s,n,r,o,a,l=4,u=e[0];if(0===u)l+=(t=_i(e.subarray(l))).length,l+=(i=_i(e.subarray(l))).length,s=(d=new DataView(e.buffer)).getUint32(l),l+=4,r=d.getUint32(l),l+=4,o=d.getUint32(l),l+=4,a=d.getUint32(l),l+=4;else if(1===u){var d;s=(d=new DataView(e.buffer)).getUint32(l),l+=4,n=yi(e.subarray(l)),l+=8,o=d.getUint32(l),l+=4,a=d.getUint32(l),l+=4,l+=(t=_i(e.subarray(l))).length,l+=(i=_i(e.subarray(l))).length}var c={scheme_id_uri:t,value:i,timescale:s||1,presentation_time:n,presentation_time_delta:r,event_duration:o,id:a,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return bi(u,c)?c:void 0},scaleTime:function(e,t,i,s){return e||0===e?e/t:s+i/t}},Si=Yt,wi=function(e){return("00"+e.toString(16)).slice(-2)},Ei=ei,Ci=Qt,ki=Ti,xi=oi,Ii=ri,Ai=si,Li=z.getUint64,Pi=Ht,Oi=He.parseId3Frames;zt=function(e,t){var i=Ei(t,["moof","traf"]).reduce((function(t,i){var s,n=Ei(i,["tfhd"])[0],r=Si(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),o=e[r]||9e4,a=Ei(i,["tfdt"])[0],l=new DataView(a.buffer,a.byteOffset,a.byteLength);let u;return"bigint"==typeof(s=1===a[0]?Li(a.subarray(4,12)):l.getUint32(4))?u=s/Pi.BigInt(o):"number"!=typeof s||isNaN(s)||(u=s/o),u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),u<t&&(t=u),t}),1/0);return"bigint"==typeof i||isFinite(i)?i:0},Gt=function(e){var t=0===e[0]?12:20;return Si(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Wt=function(e){var t=Ei(e,["moov","trak"]),i=[];return t.forEach((function(e){var t,s,n={},r=Ei(e,["tkhd"])[0];r&&(s=(t=new DataView(r.buffer,r.byteOffset,r.byteLength)).getUint8(0),n.id=0===s?t.getUint32(12):t.getUint32(20));var o=Ei(e,["mdia","hdlr"])[0];if(o){var a=Ci(o.subarray(8,12));n.type="vide"===a?"video":"soun"===a?"audio":a}var l=Ei(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);n.codec=Ci(u.subarray(4,8));var d,c=Ei(u,[n.codec])[0];c&&(/^[asm]vc[1-9]$/i.test(n.codec)?(d=c.subarray(78),"avcC"===Ci(d.subarray(4,8))&&d.length>11?(n.codec+=".",n.codec+=wi(d[9]),n.codec+=wi(d[10]),n.codec+=wi(d[11])):n.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(n.codec)?(d=c.subarray(28),"esds"===Ci(d.subarray(4,8))&&d.length>20&&0!==d[19]?(n.codec+="."+wi(d[19]),n.codec+="."+wi(d[20]>>>2&63).replace(/^0/,"")):n.codec="mp4a.40.2"):n.codec=n.codec.toLowerCase())}var h=Ei(e,["mdia","mdhd"])[0];h&&(n.timescale=Gt(h)),i.push(n)})),i},Xt=function(e,t=0){return Ei(e,["emsg"]).map((e=>{var i=ki.parseEmsgBox(new Uint8Array(e)),s=Oi(i.message_data);return{cueTime:ki.scaleTime(i.presentation_time,i.timescale,i.presentation_time_delta,t),duration:ki.scaleTime(i.event_duration,i.timescale),frames:s}}))};var ji=zt,Di=Wt,Mi=Xt,Ni=Ae,Ri=function(e){var t=31&e[1];return t<<=8,t|=e[2]},Fi=function(e){return!!(64&e[1])},Ui=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Bi=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}},$i={parseType:function(e,t){var i=Ri(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=Fi(e),i=4+Ui(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=Fi(e),s=4+Ui(e);if(i&&(s+=e[s]+1),1&e[s+5]){var n;n=3+((15&e[s+1])<<8|e[s+2])-4;for(var r=12+((15&e[s+10])<<8|e[s+11]);r<n;){var o=s+r;t[(31&e[o+1])<<8|e[o+2]]=e[o],r+=5+((15&e[o+3])<<8|e[o+4])}return t}},parsePayloadUnitStartIndicator:Fi,parsePesType:function(e,t){switch(t[Ri(e)]){case Ni.H264_STREAM_TYPE:return"video";case Ni.ADTS_STREAM_TYPE:return"audio";case Ni.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Fi(e))return null;var t=4+Ui(e);if(t>=e.byteLength)return null;var i,s=null;return 192&(i=e[t+7])&&((s={}).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,s.pts*=4,s.pts+=(6&e[t+13])>>>1,s.dts=s.pts,64&i&&(s.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,s.dts*=4,s.dts+=(6&e[t+18])>>>1)),s},videoPacketContainsKeyFrame:function(e){for(var t=4+Ui(e),i=e.subarray(t),s=0,n=0,r=!1;n<i.byteLength-3;n++)if(1===i[n+2]){s=n+5;break}for(;s<i.byteLength;)switch(i[s]){case 0:if(0!==i[s-1]){s+=2;break}if(0!==i[s-2]){s++;break}n+3!==s-2&&"slice_layer_without_partitioning_rbsp_idr"===Bi(31&i[n+3])&&(r=!0);do{s++}while(1!==i[s]&&s<i.length);n=s-2,s+=3;break;case 1:if(0!==i[s-1]||0!==i[s-2]){s+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Bi(31&i[n+3])&&(r=!0),n=s-2,s+=3;break;default:s+=3}return i=i.subarray(n),s-=n,n=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Bi(31&i[n+3])&&(r=!0),r}},qi=Ae,Vi=Me.handleRollover,Hi={};Hi.ts=$i,Hi.aac=vt;var zi=le.ONE_SECOND_IN_TS,Wi=188,Gi=71,Xi=function(e,t,i){for(var s,n,r,o,a=0,l=Wi,u=!1;l<=e.byteLength;)if(e[a]!==Gi||e[l]!==Gi&&l!==e.byteLength)a++,l++;else{if(s=e.subarray(a,l),"pes"===Hi.ts.parseType(s,t.pid))n=Hi.ts.parsePesType(s,t.table),r=Hi.ts.parsePayloadUnitStartIndicator(s),"audio"===n&&r&&(o=Hi.ts.parsePesTime(s))&&(o.type="audio",i.audio.push(o),u=!0);if(u)break;a+=Wi,l+=Wi}for(a=(l=e.byteLength)-Wi,u=!1;a>=0;)if(e[a]!==Gi||e[l]!==Gi&&l!==e.byteLength)a--,l--;else{if(s=e.subarray(a,l),"pes"===Hi.ts.parseType(s,t.pid))n=Hi.ts.parsePesType(s,t.table),r=Hi.ts.parsePayloadUnitStartIndicator(s),"audio"===n&&r&&(o=Hi.ts.parsePesTime(s))&&(o.type="audio",i.audio.push(o),u=!0);if(u)break;a-=Wi,l-=Wi}},Ki=function(e,t,i){for(var s,n,r,o,a,l,u,d=0,c=Wi,h=!1,p={data:[],size:0};c<e.byteLength;)if(e[d]!==Gi||e[c]!==Gi)d++,c++;else{if(s=e.subarray(d,c),"pes"===Hi.ts.parseType(s,t.pid))if(n=Hi.ts.parsePesType(s,t.table),r=Hi.ts.parsePayloadUnitStartIndicator(s),"video"===n&&(r&&!h&&(o=Hi.ts.parsePesTime(s))&&(o.type="video",i.video.push(o),h=!0),!i.firstKeyFrame)){if(r&&0!==p.size){for(a=new Uint8Array(p.size),l=0;p.data.length;)u=p.data.shift(),a.set(u,l),l+=u.byteLength;if(Hi.ts.videoPacketContainsKeyFrame(a)){var f=Hi.ts.parsePesTime(a);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(s),p.size+=s.byteLength}if(h&&i.firstKeyFrame)break;d+=Wi,c+=Wi}for(d=(c=e.byteLength)-Wi,h=!1;d>=0;)if(e[d]!==Gi||e[c]!==Gi)d--,c--;else{if(s=e.subarray(d,c),"pes"===Hi.ts.parseType(s,t.pid))n=Hi.ts.parsePesType(s,t.table),r=Hi.ts.parsePayloadUnitStartIndicator(s),"video"===n&&r&&(o=Hi.ts.parsePesTime(s))&&(o.type="video",i.video.push(o),h=!0);if(h)break;d-=Wi,c-=Wi}},Yi=function(e){var t={pid:null,table:null},i={};for(var s in function(e,t){for(var i,s=0,n=Wi;n<e.byteLength;)if(e[s]!==Gi||e[n]!==Gi)s++,n++;else{switch(i=e.subarray(s,n),Hi.ts.parseType(i,t.pid)){case"pat":t.pid=Hi.ts.parsePat(i);break;case"pmt":var r=Hi.ts.parsePmt(i);t.table=t.table||{},Object.keys(r).forEach((function(e){t.table[e]=r[e]}))}s+=Wi,n+=Wi}}(e,t),t.table){if(t.table.hasOwnProperty(s))switch(t.table[s]){case qi.H264_STREAM_TYPE:i.video=[],Ki(e,t,i),0===i.video.length&&delete i.video;break;case qi.ADTS_STREAM_TYPE:i.audio=[],Xi(e,t,i),0===i.audio.length&&delete i.audio}}return i},Qi=function(e,t){var i;return i=Hi.aac.isLikelyAacData(e)?function(e){for(var t,i=!1,s=0,n=null,r=null,o=0,a=0;e.length-a>=3;){switch(Hi.aac.parseType(e,a)){case"timed-metadata":if(e.length-a<10){i=!0;break}if((o=Hi.aac.parseId3TagSize(e,a))>e.length){i=!0;break}null===r&&(t=e.subarray(a,a+o),r=Hi.aac.parseAacTimestamp(t)),a+=o;break;case"audio":if(e.length-a<7){i=!0;break}if((o=Hi.aac.parseAdtsSize(e,a))>e.length){i=!0;break}null===n&&(t=e.subarray(a,a+o),n=Hi.aac.parseSampleRate(t)),s++,a+=o;break;default:a++}if(i)return null}if(null===n||null===r)return null;var l=zi/n;return{audio:[{type:"audio",dts:r,pts:r},{type:"audio",dts:r+1024*s*l,pts:r+1024*s*l}]}}(e):Yi(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=Vi(e.dts,i),e.pts=Vi(e.pts,i),e.dtsTime=e.dts/zi,e.ptsTime=e.pts/zi}))}if(e.video&&e.video.length){var s=t;if((void 0===s||isNaN(s))&&(s=e.video[0].dts),e.video.forEach((function(e){e.dts=Vi(e.dts,s),e.pts=Vi(e.pts,s),e.dtsTime=e.dts/zi,e.ptsTime=e.pts/zi})),e.firstKeyFrame){var n=e.firstKeyFrame;n.dts=Vi(n.dts,s),n.pts=Vi(n.pts,s),n.dtsTime=n.dts/zi,n.ptsTime=n.pts/zi}}}(i,t),i):null};class Ji{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Kt.Transmuxer(this.options),function(e,t){t.on("data",(function(t){const i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};const s=t.data;t.data=s.buffer,e.postMessage({action:"data",segment:t,byteOffset:s.byteOffset,byteLength:s.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){const i={start:{decode:le.videoTsToSeconds(t.start.dts),presentation:le.videoTsToSeconds(t.start.pts)},end:{decode:le.videoTsToSeconds(t.end.dts),presentation:le.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:le.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=le.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})})),t.on("audioSegmentTimingInfo",(function(t){const i={start:{decode:le.videoTsToSeconds(t.start.dts),presentation:le.videoTsToSeconds(t.start.pts)},end:{decode:le.videoTsToSeconds(t.end.dts),presentation:le.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:le.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=le.videoTsToSeconds(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:le.videoTsToSeconds(t.start),end:le.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:le.videoTsToSeconds(t.start),end:le.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))}(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new gi,this.captionParser.init());const 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])}probeMp4StartTime({timescales:e,data:t}){const i=ji(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=Di(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const i=Mi(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:i,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){const i="number"!=typeof t||isNaN(t)?void 0:t*le.ONE_SECOND_IN_TS,s=Qi(e,i);let n=null;s&&(n={hasVideo:s.video&&2===s.video.length||!1,hasAudio:s.audio&&2===s.audio.length||!1},n.hasVideo&&(n.videoStart=s.video[0].ptsTime),n.hasAudio&&(n.audioStart=s.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:n,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){const t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(le.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(le.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Ji(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new Ji(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})));var po=lo(ho);const fo=e=>{const{transmuxer:t,bytes:i,audioAppendStart:s,gopsToAlignWith:n,remux:r,onData:o,onTrackInfo:a,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:d,onAudioSegmentTimingInfo:c,onId3:h,onCaptions:p,onDone:f,onEndedTimeline:m,onTransmuxerLog:g,isEndOfTimeline:_,segment:y,triggerSegmentEventFn:b}=e,v={buffer:[]};let T=_;if(t.onmessage=i=>{t.currentTransmux===e&&("data"===i.data.action&&((e,t,i)=>{const{type:s,initSegment:n,captions:r,captionStreams:o,metadata:a,videoFrameDtsTime:l,videoFramePtsTime:u}=e.data.segment;t.buffer.push({captions:r,captionStreams:o,metadata:a});const d=e.data.segment.boxes||{data:e.data.segment.data},c={type:s,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(n.data,n.byteOffset,n.byteLength)};void 0!==l&&(c.videoFrameDtsTime=l),void 0!==u&&(c.videoFramePtsTime=u),i(c)})(i,v,o),"trackinfo"===i.data.action&&a(i.data.trackInfo),"gopInfo"===i.data.action&&((e,t)=>{t.gopInfo=e.data.gopInfo})(i,v),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&d(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&c(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&&(T=!1,m()),"log"===i.data.action&&g(i.data.log),"transmuxed"===i.data.type&&(T||(t.onmessage=null,(({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)})({transmuxedData:v,callback:f}),mo(t))))},t.onerror=()=>{const e={message:"Received an error message from the transmuxer worker",metadata:{errorType:Bn.Error.StreamingFailedToTransmuxSegment,segmentInfo:aa({segment:y})}};f(null,e)},s&&t.postMessage({action:"setAudioAppendStart",appendStart:s}),Array.isArray(n)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:n}),void 0!==r&&t.postMessage({action:"setRemux",remux:r}),i.byteLength){const e=i instanceof ArrayBuffer?i:i.buffer,s=i instanceof ArrayBuffer?0:i.byteOffset;b({type:"segmenttransmuxingstart",segment:y}),t.postMessage({action:"push",data:e,byteOffset:s,byteLength:i.byteLength},[e])}_&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},mo=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():fo(e.currentTransmux))},go=(e,t)=>{e.postMessage({action:t}),mo(e)},_o=(e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void go(t,e);t.transmuxQueue.push(go.bind(null,t,e))},yo=e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void fo(e);e.transmuxer.transmuxQueue.push(e)};var bo=e=>{_o("reset",e)},vo=e=>{const t=new po;t.currentTransmux=null,t.transmuxQueue=[];const i=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)),t.postMessage({action:"init",options:e}),t};const To=function(e){const t=e.transmuxer,i=e.endAction||e.action,s=e.callback,n=(0,p.default)({},e,{endAction:null,transmuxer:null,callback:null}),r=n=>{n.data.action===i&&(t.removeEventListener("message",r),n.data.data&&(n.data.data=new Uint8Array(n.data.data,e.byteOffset||0,e.byteLength||n.data.data.byteLength),e.data&&(e.data=n.data.data)),s(n.data))};if(t.addEventListener("message",r),e.data){const i=e.data instanceof ArrayBuffer;n.byteOffset=i?0:e.data.byteOffset,n.byteLength=e.data.byteLength;const s=[i?e.data:e.data.buffer];t.postMessage(n,s)}else t.postMessage(n)},So=2,wo=-101,Eo=-102,Co=e=>{e.forEach((e=>{e.abort()}))},ko=(e,t)=>{const{requestType:i}=t,s=Lr({requestType:i,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:wo,xhr:t,metadata:s}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Eo,xhr:t,metadata:s}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:So,xhr:t,metadata:s}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:So,xhr:t,metadata:s}:null},xo=(e,t,i,s)=>(n,r)=>{const o=r.response,a=ko(n,r);if(a)return i(a,e);if(16!==o.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:So,xhr:r},e);const l=new DataView(o),u=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=u;const d={uri:r.uri};return s({type:"segmentkeyloadcomplete",segment:e,keyInfo:d}),i(null,e)},Io=(e,t)=>{const i=(0,w.detectContainerForBytes)(e.map.bytes);if("mp4"!==i){const s=e.map.resolvedUri||e.map.uri,n=i||"unknown";return t({internal:!0,message:`Found unsupported ${n} container for initialization segment at URL: ${s}`,code:So,metadata:{mediaType:n}})}To({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:i,data:s})=>(e.map.bytes=s,i.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))})},Ao=({segment:e,finishProcessingFn:t,responseType:i,triggerSegmentEventFn:s})=>(n,r)=>{const o=ko(n,r);if(o)return t(o,e);s({type:"segmentloaded",segment:e});const a="arraybuffer"!==i&&r.responseText?(e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer})(r.responseText.substring(e.lastReachedChar||0)):r.response;return e.stats=(e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}))(r),e.key?e.encryptedBytes=new Uint8Array(a):e.bytes=new Uint8Array(a),t(null,e)},Lo=({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:c,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{const f=e.map&&e.map.tracks||{},m=Boolean(f.audio&&f.video);let g=s.bind(null,e,"audio","start");const _=s.bind(null,e,"audio","end");let y=s.bind(null,e,"video","start");const b=s.bind(null,e,"video","end");To({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:s=>{e.bytes=t=s.data;const f=s.result;f&&(i(e,{hasAudio:f.hasAudio,hasVideo:f.hasVideo,isMuxed:m}),i=null),yo({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:m,onData:t=>{t.type="combined"===t.type?"video":t.type,d(e,t)},onTrackInfo:t=>{i&&(m&&(t.isMuxed=!0),i(e,t))},onAudioTimingInfo:e=>{g&&void 0!==e.start&&(g(e.start),g=null),_&&void 0!==e.end&&_(e.end)},onVideoTimingInfo:e=>{y&&void 0!==e.start&&(y(e.start),y=null),b&&void 0!==e.end&&b(e.end)},onVideoSegmentTimingInfo:t=>{const i={pts:{start:t.start.presentation,end:t.end.presentation},dts:{start:t.start.decode,end:t.end.decode}};p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:i}),n(t)},onAudioSegmentTimingInfo:t=>{const i={pts:{start:t.start.pts,end:t.end.pts},dts:{start:t.start.dts,end:t.end.dts}};p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:i}),r(t)},onId3:(t,i)=>{o(e,t,i)},onCaptions:t=>{a(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:h,onDone:(t,i)=>{c&&(t.type="combined"===t.type?"video":t.type,p({type:"segmenttransmuxingcomplete",segment:e}),c(i,e,t))},segment:e,triggerSegmentEventFn:p})}})},Po=({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:c,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{let f=new Uint8Array(t);if((0,w.isLikelyFmp4MediaSegment)(f)){e.isFmp4=!0;const{tracks:n}=e.map,r={isFmp4:!0,hasVideo:!!n.video,hasAudio:!!n.audio};n.audio&&n.audio.codec&&"enca"!==n.audio.codec&&(r.audioCodec=n.audio.codec),n.video&&n.video.codec&&"encv"!==n.video.codec&&(r.videoCodec=n.video.codec),n.video&&n.audio&&(r.isMuxed=!0),i(e,r);const l=(t,i)=>{d(e,{data:f,type:r.hasAudio&&!r.isMuxed?"audio":"video"}),i&&i.length&&o(e,i),t&&t.length&&a(e,t),c(null,e,{})};To({action:"probeMp4StartTime",timescales:e.map.timescales,data:f,transmuxer:e.transmuxer,callback:({data:i,startTime:o})=>{t=i.buffer,e.bytes=f=i,r.hasAudio&&!r.isMuxed&&s(e,"audio","start",o),r.hasVideo&&s(e,"video","start",o),To({action:"probeEmsgID3",data:f,transmuxer:e.transmuxer,offset:o,callback:({emsgData:i,id3Frames:s})=>{t=i.buffer,e.bytes=f=i,n.video&&i.byteLength&&e.transmuxer?To({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:f,timescales:e.map.timescales,trackIds:[n.video.id],callback:i=>{t=i.data.buffer,e.bytes=f=i.data,i.logs.forEach((function(e){h(Xn(e,{stream:"mp4CaptionParser"}))})),l(i.captions,s)}}):l(void 0,s)}})}})}else if(e.transmuxer){if(void 0===e.container&&(e.container=(0,w.detectContainerForBytes)(f)),"ts"!==e.container&&"aac"!==e.container)return i(e,{hasAudio:!1,hasVideo:!1}),void c(null,e,{});Lo({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:c,onTransmuxerLog:h,triggerSegmentEventFn:p})}else c(null,e,{})},Oo=function({id:e,key:t,encryptedBytes:i,decryptionWorker:s,segment:n,doneFn:r},o){const a=t=>{if(t.data.source===e){s.removeEventListener("message",a);const e=t.data.decrypted;o(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};let l;s.onerror=()=>{const e="An error occurred in the decryption worker",t=aa({segment:n}),i={message:e,metadata:{error:new Error(e),errorType:Bn.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:n.key.resolvedUri||n.map.key.resolvedUri}}};r(i,n)},s.addEventListener("message",a),l=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(Wr({source:e,encrypted:i,key:l,iv:t.iv}),[i.buffer,l.buffer])},jo=({activeXhrs:e,decryptionWorker:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:c,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{let f=0,m=!1;return(g,_)=>{if(!m){if(g)return m=!0,Co(e),c(g,_);if(f+=1,f===e.length){const f=function(){if(_.encryptedBytes)return(({decryptionWorker:e,segment:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:c,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{p({type:"segmentdecryptionstart"}),Oo({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:c},(e=>{t.bytes=e,p({type:"segmentdecryptioncomplete",segment:t}),Po({segment:t,bytes:t.bytes,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:c,onTransmuxerLog:h,triggerSegmentEventFn:p})}))})({decryptionWorker:t,segment:_,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:c,onTransmuxerLog:h,triggerSegmentEventFn:p});Po({segment:_,bytes:_.bytes,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:c,onTransmuxerLog:h,triggerSegmentEventFn:p})};if(_.endOfAllRequests=Date.now(),_.map&&_.map.encryptedBytes&&!_.map.bytes)return p({type:"segmentdecryptionstart",segment:_}),Oo({decryptionWorker:t,id:_.requestId+"-init",encryptedBytes:_.map.encryptedBytes,key:_.map.key,segment:_,doneFn:c},(t=>{_.map.bytes=t,p({type:"segmentdecryptioncomplete",segment:_}),Io(_,(t=>{if(t)return Co(e),c(t,_);f()}))}));f()}}}},Do=({segment:e,progressFn:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d})=>i=>{if(!i.target.aborted)return e.stats=Xn(e.stats,(e=>{const 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})(i)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(i,e)},Mo=({xhr:e,xhrOptions:t,decryptionWorker:i,segment:s,abortFn:n,progressFn:r,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:c,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g,triggerSegmentEventFn:_})=>{const y=[],b=jo({activeXhrs:y,decryptionWorker:i,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:c,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g,triggerSegmentEventFn:_});if(s.key&&!s.key.bytes){const i=[s.key];s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri&&i.push(s.map.key);const n=Xn(t,{uri:s.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),r=xo(s,i,b,_);_({type:"segmentkeyloadstart",segment:s,keyInfo:{uri:s.key.resolvedUri}});const o=e(n,r);y.push(o)}if(s.map&&!s.map.bytes){if(s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri)){const i=Xn(t,{uri:s.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),n=xo(s,[s.map.key],b,_);_({type:"segmentkeyloadstart",segment:s,keyInfo:{uri:s.map.key.resolvedUri}});const r=e(i,n);y.push(r)}const i=Xn(t,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:qr(s.map),requestType:"segment-media-initialization"}),n=(({segment:e,finishProcessingFn:t,triggerSegmentEventFn:i})=>(s,n)=>{const r=ko(s,n);if(r)return t(r,e);const o=new Uint8Array(n.response);if(i({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=o,t(null,e);e.map.bytes=o,Io(e,(function(i){if(i)return i.xhr=n,i.status=n.status,t(i,e);t(null,e)}))})({segment:s,finishProcessingFn:b,triggerSegmentEventFn:_});_({type:"segmentloadstart",segment:s});const r=e(i,n);y.push(r)}const v=Xn(t,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:qr(s),requestType:"segment"}),T=Ao({segment:s,finishProcessingFn:b,responseType:v.responseType,triggerSegmentEventFn:_});_({type:"segmentloadstart",segment:s});const S=e(v,T);S.addEventListener("progress",Do({segment:s,progressFn:r,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:c,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f})),y.push(S);const w={};return y.forEach((e=>{e.addEventListener("loadend",(({loadendState:e,abortFn:t})=>i=>{i.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)})({loadendState:w,abortFn:n}))})),()=>Co(y)},No=Gn("CodecUtils"),Ro=(e,t)=>{const i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]},Fo=function(e){const t={};return e.forEach((({mediaType:e,type:i,details:s})=>{t[e]=t[e]||[],t[e].push((0,g.translateLegacyCodec)(`${i}${s}`))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return No(`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},Uo=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},Bo=function(e,t){const i=t.attributes||{},s=Fo(function(e){const t=e.attributes||{};if(t.CODECS)return(0,g.parseCodecs)(t.CODECS)}(t)||[]);if(Ro(e,t)&&!s.audio&&!((e,t)=>{if(!Ro(e,t))return!0;const i=t.attributes||{},s=e.mediaGroups.AUDIO[i.AUDIO];for(const e in s)if(!s[e].uri&&!s[e].playlists)return!0;return!1})(e,t)){const t=Fo((0,g.codecsFromDefault)(e,i.AUDIO)||[]);t.audio&&(s.audio=t.audio)}return s},$o=Gn("PlaylistSelector"),qo=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},Vo=function(e,t){if(!e)return"";const i=n().getComputedStyle(e);return i?i[t]:""},Ho=function(e,t){const i=e.slice();e.sort((function(e,s){const n=t(e,s);return 0===n?i.indexOf(e)-i.indexOf(s):n}))},zo=function(e,t){let i,s;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||n().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||n().Number.MAX_VALUE,i-s};let Wo=function(e,t,i,s,r,o){if(!e)return;const a={bandwidth:t,width:i,height:s,limitRenditionByPlayerDimensions:r};let l=e.playlists;Sr.isAudioOnly(e)&&(l=o.getAudioTrackPlaylists_(),a.audioOnly=!0);let u=l.map((e=>{let t;const i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,s=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||n().Number.MAX_VALUE,{bandwidth:t,width:i,height:s,playlist:e}}));Ho(u,((e,t)=>e.bandwidth-t.bandwidth)),u=u.filter((e=>!Sr.isIncompatible(e.playlist)));let d=u.filter((e=>Sr.isEnabled(e.playlist)));d.length||(d=u.filter((e=>!Sr.isDisabled(e.playlist))));const c=d.filter((e=>e.bandwidth*oo.BANDWIDTH_VARIANCE<t));let h=c[c.length-1];const p=c.filter((e=>e.bandwidth===h.bandwidth))[0];if(!1===r){const e=p||d[0]||u[0];if(e&&e.playlist){let t="sortedPlaylistReps";return p&&(t="bandwidthBestRep"),d[0]&&(t="enabledPlaylistReps"),$o(`choosing ${qo(e)} using ${t} with options`,a),e.playlist}return $o("could not choose a playlist with options",a),null}const f=c.filter((e=>e.width&&e.height));Ho(f,((e,t)=>e.width-t.width));const m=f.filter((e=>e.width===i&&e.height===s));h=m[m.length-1];const g=m.filter((e=>e.bandwidth===h.bandwidth))[0];let _,y,b,v;if(g||(_=f.filter((e=>e.width>i||e.height>s)),y=_.filter((e=>e.width===_[0].width&&e.height===_[0].height)),h=y[y.length-1],b=y.filter((e=>e.bandwidth===h.bandwidth))[0]),o.leastPixelDiffSelector){const e=f.map((e=>(e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-s),e)));Ho(e,((e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff)),v=e[0]}const T=v||b||g||p||d[0]||u[0];if(T&&T.playlist){let e="sortedPlaylistReps";return v?e="leastPixelDiffRep":b?e="resolutionPlusOneRep":g?e="resolutionBestRep":p?e="bandwidthBestRep":d[0]&&(e="enabledPlaylistReps"),$o(`choosing ${qo(T)} using ${e} with options`,a),T.playlist}return $o("could not choose a playlist with options",a),null};const Go=function(){let e=this.useDevicePixelRatio&&n().devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),Wo(this.playlists.main,this.systemBandwidth,parseInt(Vo(this.tech_.el(),"width"),10)*e,parseInt(Vo(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)};function Xo(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(e){return""}}const Ko=({inbandTextTracks:e,metadataArray:t,timestampOffset:i,videoDuration:s})=>{if(!t)return;const r=n().WebKitDataCue||n().VTTCue,o=e.metadataTrack_;if(!o)return;if(t.forEach((e=>{const t=e.cueTime+i;!("number"!=typeof t||n().isNaN(t)||t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEach((e=>{const i=new r(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,function(e){Object.defineProperties(e.frame,{id:{get:()=>(Bn.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(Bn.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(Bn.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})}(i),o.addCue(i)}))})),!o.cues||!o.cues.length)return;const a=o.cues,l=[];for(let e=0;e<a.length;e++)a[e]&&l.push(a[e]);const u=l.reduce(((e,t)=>{const i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e}),{}),d=Object.keys(u).sort(((e,t)=>Number(e)-Number(t)));d.forEach(((e,t)=>{const i=u[e],n=isFinite(s)?s:e,r=Number(d[t+1])||n;i.forEach((e=>{e.endTime=r}))}))},Yo={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},Qo=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),Jo=(e,t,i)=>{e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,Bn.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},Zo=function(e,t,i){let s,n;if(i&&i.cues)for(s=i.cues.length;s--;)n=i.cues[s],n.startTime>=e&&n.endTime<=t&&i.removeCue(n)},ea=e=>"number"==typeof e&&isFinite(e),ta=1/60,ia=e=>{const{startOfSegment:t,duration:i,segment:s,part:n,playlist:{mediaSequence:r,id:o,segments:a=[]},mediaIndex:l,partIndex:u,timeline:d}=e,c=a.length-1;let h="mediaIndex/partIndex increment";e.getMediaInfoForTime?h=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(h+=` with independent ${e.independent}`);const p="number"==typeof u,f=e.segment.uri?"segment":"pre-segment",m=p?lr({preloadSegment:s})-1:0;return`${f} [${r+l}/${r+c}]`+(p?` part [${u}/${m}]`:"")+` segment start/end [${s.start} => ${s.end}]`+(p?` part start/end [${n.start} => ${n.end}]`:"")+` startOfSegment [${t}]`+` duration [${i}]`+` timeline [${d}]`+` selected by [${h}]`+` playlist [${o}]`},sa=e=>`${e}TimingInfo`,na=({timelineChangeController:e,currentTimeline:t,segmentTimeline:i,loaderType:s,audioDisabled:n})=>{if(t===i)return!1;if("audio"===s){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==i}if("main"===s&&n){const t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==i}return!1},ra=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+Yn,oa=(e,t)=>{if("hls"!==t)return null;const i=(e=>{let t=0;return["video","audio"].forEach((function(i){const s=e[`${i}TimingInfo`];if(!s)return;const{start:r,end:o}=s;let a;"bigint"==typeof r||"bigint"==typeof o?a=n().BigInt(o)-n().BigInt(r):"number"==typeof r&&"number"==typeof o&&(a=o-r),void 0!==a&&a>t&&(t=a)})),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t})({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;const s=e.playlist.targetDuration,r=ra({segmentDuration:i,maxDuration:2*s}),o=ra({segmentDuration:i,maxDuration:s}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${i} when the reported duration is ${e.duration} and the target duration is ${s}. 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 r||o?{severity:r?"warn":"info",message:a}:null},aa=({type:e,segment:t})=>{if(!t)return;const i=Boolean(t.key||t.map&&t.map.ke),s=Boolean(t.map&&!t.map.bytes),n=void 0===t.startOfSegment?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:n,duration:t.duration,isEncrypted:i,isMediaInitialization:s}};class la extends Bn.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",(()=>{this.isEndOfStream_()||(this.ended_=!1)})),this.fetchAtBuffer_=!1,this.logger_=Gn(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",(()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})),this.sourceUpdater_.on("codecschange",(e=>{this.trigger((0,p.default)({type:"codecschange"},e))})),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",(()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",(e=>{this.trigger((0,p.default)({type:"timelinechange"},e)),this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}))}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return vo({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&n().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}abort_(){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,n().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&bo(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Kn();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:i,isMuxed:s}=e;if(i&&t&&!this.audioDisabled_&&!s)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const i=Gr(e);let s=this.initSegments_[i];return t&&!s&&e.bytes&&(this.initSegments_[i]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),s||e}segmentKey(e,t=!1){if(!e)return null;const i=Xr(e);let s=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!s&&e.bytes&&(this.keyCache_[i]=s={resolvedUri:e.resolvedUri,bytes:e.bytes});const n={resolvedUri:(s||e).resolvedUri};return s&&(n.bytes=s.bytes),n}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){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"))}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;const i=this.playlist_,s=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));let n=null;if(i&&(i.id?n=i.id:i.uri&&(n=i.uri)),this.logger_(`playlist update [${n} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:\ncurrentTime: ${this.currentTime_()}\nbufferedEnd: ${sr(this.buffered_())}\n`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){if(null!==this.mediaIndex){!e.endList&&"number"==typeof e.partTargetDuration?this.resetLoader():this.resyncLoader()}return this.currentMediaInfo_=void 0,void this.trigger("playlistupdate")}const r=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${r}]`),null!==this.mediaIndex)if(this.mediaIndex-=r,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){const e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}s&&(s.mediaIndex-=r,s.mediaIndex<0?(s.mediaIndex=null,s.partIndex=null):(s.mediaIndex>=0&&(s.segment=e.segments[s.mediaIndex]),s.partIndex>=0&&s.segment.parts&&(s.part=s.segment.parts[s.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(n().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&bo(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;"hls"===this.sourceType_&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,i=()=>{},s=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let n=1;const r=()=>{n--,0===n&&i()};!s&&this.audioDisabled_||(n++,this.sourceUpdater_.removeAudio(e,t,r)),(s||"main"===this.loaderType_)&&(this.gopBuffer_=((e,t,i,s)=>{const n=Math.ceil((t-s)*E.ONE_SECOND_IN_TS),r=Math.ceil((i-s)*E.ONE_SECOND_IN_TS),o=e.slice();let a=e.length;for(;a--&&!(e[a].pts<=r););if(-1===a)return o;let l=a+1;for(;l--&&!(e[l].pts<=n););return l=Math.max(l,0),o.splice(l,a-l+1),o})(this.gopBuffer_,e,t,this.timeMapping_),n++,this.sourceUpdater_.removeVideo(e,t,r));for(const i in this.inbandTextTracks_)Zo(e,t,this.inbandTextTracks_[i]);Zo(e,t,this.segmentMetadataTrack_),r()}monitorBuffer_(){this.checkBufferTimeout_&&n().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=n().setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&n().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=n().setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();if(!e)return;const t={segmentInfo:aa({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,i=this.partIndex){if(!t||!this.mediaSource_)return!1;const s="number"==typeof e&&t.segments[e],n=e+1===t.segments.length,r=!s||!s.parts||i+1===s.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&n&&r}chooseNextRequest_(){const e=this.buffered_(),t=sr(e)||0,i=nr(e,this.currentTime_()),s=!this.hasPlayed_()&&i>=1,n=i>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||s||n)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=function(e,t,i){t=t||[];const s=[];let n=0;for(let r=0;r<t.length;r++){const o=t[r];if(e===o.timeline&&(s.push(r),n+=o.duration,n>i))return r}return 0===s.length?0:s[s.length-1]}(this.currentTimeline_,r,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${o.mediaIndex}`);else if(null!==this.mediaIndex){const e=r[this.mediaIndex],i="number"==typeof this.partIndex?this.partIndex:-1;o.startOfSegment=e.end?e.end:t,e.parts&&e.parts[i+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=i+1):o.mediaIndex=this.mediaIndex+1}else{let e,i,s;const n=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:\nFor TargetTime: ${n}.\nCurrentTime: ${this.currentTime_()}\nBufferedEnd: ${t}\nFetch At Buffer: ${this.fetchAtBuffer_}\n`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const t=this.getSyncInfoFromMediaSequenceSync_(n);if(!t){const e="No sync info found while using media sequence sync";return this.error({message:e,metadata:{errorType:Bn.Error.StreamingFailedToSelectNextSegment,error:new Error(e)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${t.start} --\x3e ${t.end})`),e=t.segmentIndex,i=t.partIndex,s=t.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const t=Sr.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:n,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,i=t.partIndex,s=t.startTime}o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${n}`:`currentTime ${n}`,o.mediaIndex=e,o.startOfSegment=s,o.partIndex=i,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const a=r[o.mediaIndex];let l=a&&"number"==typeof o.partIndex&&a.parts&&a.parts[o.partIndex];if(!a||"number"==typeof o.partIndex&&!l)return null;"number"!=typeof o.partIndex&&a.parts&&(o.partIndex=0,l=a.parts[0]);const u=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&l&&!u&&!l.independent)if(0===o.partIndex){const e=r[o.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(o.mediaIndex-=1,o.partIndex=e.parts.length-1,o.independent="previous segment")}else a.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const d=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=r.length-1&&d&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,o.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(o))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);const i=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!i)return null;if(!i.isAppended)return i;const s=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return s?(s.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),s):null}generateSegmentInfo_(e){const{independent:t,playlist:i,mediaIndex:s,startOfSegment:n,isSyncRequest:r,partIndex:o,forceTimestampOffset:a,getMediaInfoForTime:l}=e,u=i.segments[s],d="number"==typeof o&&u.parts[o],c={requestId:"segment-loader-"+Math.random(),uri:d&&d.resolvedUri||u.resolvedUri,mediaIndex:s,partIndex:d?o:null,isSyncRequest:r,startOfSegment:n,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:d&&d.duration||u.duration,segment:u,part:d,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==a?a:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:n,buffered:this.buffered_(),overrideCheck:h});const p=sr(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(c.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=((e,t,i)=>{if(null==t||!e.length)return[];const s=Math.ceil((t-i+3)*E.ONE_SECOND_IN_TS);let n;for(n=0;n<e.length&&!(e[n].pts>s);n++);return e.slice(n)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c}timestampOffsetForSegment_(e){return(({segmentTimeline:e,currentTimeline:t,startOfSegment:i,buffered:s,overrideCheck:n})=>n||e!==t?e<t?i:s.length?s.end(s.length-1):i:null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),i=e.bandwidth,s=this.pendingSegment_.duration,n=Sr.estimateSegmentRequestTime(s,i,this.playlist_,e.bytesReceived),r=function(e,t,i=1){return((e.length?e.end(e.length-1):0)-t)/i}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(n<=r)return;const o=function(e){const{main:t,currentTime:i,bandwidth:s,duration:n,segmentDuration:r,timeUntilRebuffer:o,currentTimeline:a,syncController:l}=e,u=t.playlists.filter((e=>!Sr.isIncompatible(e)));let d=u.filter(Sr.isEnabled);d.length||(d=u.filter((e=>!Sr.isDisabled(e))));const c=d.filter(Sr.hasAttribute.bind(null,"BANDWIDTH")).map((e=>{const t=l.getSyncPoint(e,n,a,i)?1:2;return{playlist:e,rebufferingImpact:Sr.estimateSegmentRequestTime(r,s,e)*t-o}})),h=c.filter((e=>e.rebufferingImpact<=0));return Ho(h,((e,t)=>zo(t.playlist,e.playlist))),h.length?h[0]:(Ho(c,((e,t)=>e.rebufferingImpact-t.rebufferingImpact)),c[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:s,timeUntilRebuffer:r,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const a=n-r-o.rebufferingImpact;let l=.5;r<=Yn&&(l=1),!o.playlist||o.playlist.uri===this.playlist_.uri||a<l||(this.bandwidth=o.playlist.attributes.BANDWIDTH*oo.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${ia(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(e,t){const{hasAudio:i,hasVideo:s}=t,n={segmentInfo:aa({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:i,hasVideo:s}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:n}),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;const i=Object.keys(e).sort(),s=Object.keys(t).sort();if(i.length!==s.length)return!1;for(let n=0;n<i.length;n++){const r=i[n];if(r!==s[n])return!1;if(e[r]!==t[r])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_()))}handleTimingInfo_(e,t,i,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const n=this.pendingSegment_,r=sa(t);n[r]=n[r]||{},n[r][i]=s,this.logger_(`timinginfo: ${t} - ${i} - ${s}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),s={};t.forEach((e=>{s[e.stream]=s[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=s[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)})),Object.keys(s).forEach((e=>{const{startTime:t,endTime:r,captions:o}=s[e],a=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${r} for ${e}`),function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"});let s=i;/^cc708_/.test(i)&&(s="SERVICE"+i.split("_")[1]);const n=t.textTracks().getTrackById(s);if(n)e[i]=n;else{let n=i,r=i,o=!1;const a=(t.options_.vhs&&t.options_.vhs.captionServices||{})[s];a&&(n=a.label,r=a.language,o=a.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:s,default:o,label:n,language:r},!1).track}}}(a,this.vhs_.tech_,e),Zo(t,r,a[e]),function({inbandTextTracks:e,captionArray:t,timestampOffset:i}){if(!t)return;const s=n().WebKitDataCue||n().VTTCue;t.forEach((t=>{const n=t.stream;t.content?t.content.forEach((r=>{const o=new s(t.startTime+i,t.endTime+i,r.text);o.line=r.line,o.align="left",o.position=r.position,o.positionAlign="line-left",e[n].addCue(o)})):e[n].addCue(new s(t.startTime+i,t.endTime+i,t.text))}))}({captionArray:o,inbandTextTracks:a,timestampOffset:i})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(i,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i))}processMetadataQueue_(){this.metadataQueue_.id3.forEach((e=>e())),this.metadataQueue_.caption.forEach((e=>e())),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach((e=>e()))}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach((e=>e()))}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!na({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:i,hasVideo:s,isMuxed:n}=t;return!(s&&!e.videoTimingInfo)&&(!(i&&!this.audioDisabled_&&!n&&!e.audioTimingInfo)&&!na({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return void this.callQueue_.push(this.handleData_.bind(this,e,t));const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||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[sa(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let s;t&&(s=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,firstVideoFrameTimeForData:s,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_});const e=this.chooseNextRequest_();if(e.mediaIndex!==i.mediaIndex||e.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)}}updateAppendInitSegmentStatus(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)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:i,playlist:s}){if(i){const e=Gr(i);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=s,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i},s){const r=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();r.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+ir(r).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+ir(o).join(", "));const a=r.length?r.start(0):0,l=r.length?r.end(r.length-1):0,u=o.length?o.start(0):0,d=o.length?o.end(o.length-1):0;if(l-a<=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: ${i.byteLength}, audio buffer: ${ir(r).join(", ")}, video buffer: ${ir(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:e,type:t,bytes:i}));const c=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${c}`),this.remove(0,c,(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=n().setTimeout((()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()}),1e3)}),!0)}handleAppendError_({segmentInfo:e,type:t,bytes:i},s){s&&(22!==s.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",s),this.error({message:`${t} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:Bn.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i}))}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:i,data:s,bytes:n}){if(!n){const e=[s];let t=s.byteLength;i&&(e.unshift(i),t+=i.byteLength),n=(e=>{let t,i=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach((e=>{t.set(e,i),i+=e.byteLength}))),t})({bytes:t,segments:e})}const r={segmentInfo:aa({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:r}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:n},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:n}))}handleSegmentTimingInfo_(e,t,i){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const s=this.pendingSegment_.segment,n=`${e}TimingInfo`;s[n]||(s[n]={}),s[n].transmuxerPrependedSeconds=i.prependedContentDuration||0,s[n].transmuxedPresentationStart=i.start.presentation,s[n].transmuxedDecodeStart=i.start.decode,s[n].transmuxedPresentationEnd=i.end.presentation,s[n].transmuxedDecodeEnd=i.end.decode,s[n].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,t){const{type:i,data:s}=t;if(!s||!s.byteLength)return;if("audio"===i&&this.audioDisabled_)return;const n=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:n,data:s})}loadSegment_(e){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((()=>{const t=(0,p.default)({},e,{forceTimestampOffset:!0});(0,p.default)(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)}))}updateTransmuxerAndRequestSegment_(e){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}));const t=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),s=null!==this.mediaIndex,n=e.timeline!==this.currentTimeline_&&e.timeline>0,r=i||s&&n;this.logger_(`Requesting\n${Xo(e.uri)}\n${ia(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Mo({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:r,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:i,stream:s})=>{this.logger_(`${ia(e)} logged from transmuxer stream ${s} as a ${i}: ${t}`)},triggerSegmentEventFn:({type:e,segment:t,keyInfo:i,trackInfo:s,timingInfo:n})=>{const r={segmentInfo:aa({segment:t})};i&&(r.keyInfo=i),s&&(r.trackInfo=s),n&&(r.timingInfo=n),this.trigger({type:e,metadata:r})}})}trimBackBuffer_(e){const t=((e,t,i)=>{let s=t-oo.BACK_BUFFER_LENGTH;e.length&&(s=Math.max(s,e.start(0)));const n=t-i;return Math.min(n,s)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,i=e.part,s=e.segment.key||e.segment.map&&e.segment.map.key,n=e.segment.map&&!e.segment.map.bytes,r={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,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:s,isMediaInitialization:n},o=e.playlist.segments[e.mediaIndex-1];if(o&&o.timeline===t.timeline&&(o.videoTimingInfo?r.baseStartTime=o.videoTimingInfo.transmuxedDecodeEnd:o.audioTimingInfo&&(r.baseStartTime=o.audioTimingInfo.transmuxedDecodeEnd)),t.key){const i=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);r.key=this.segmentKey(t.key),r.key.iv=i}return t.map&&(r.map=this.initSegmentForMap(t.map)),r}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<ta)return void this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record 0.016666666666666666`);const i={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:i}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,i){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return;if(t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Eo)return;return this.pause(),e.code===wo?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const s=this.pendingSegment_;this.saveBandwidthRelatedStats_(s.duration,t.stats),s.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=((e,t,i)=>{if(!t.length)return e;if(i)return t.slice();const s=t[0].pts;let n=0;for(;n<e.length&&!(e[n].pts>=s);n++);return e.slice(0,n).concat(t)})(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(s)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:i,firstVideoFrameTimeForData:s,currentVideoTimestampOffset:n,useVideoTimingInfo:r,videoTimingInfo:o,audioTimingInfo:a}){if(void 0!==e)return e;if(!r)return a.start;const l=t.segments[i-1];return 0!==i&&l&&void 0!==l.start&&l.end===s+n?o.start:s}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:i,hasVideo:s,isMuxed:n}=t,r="main"===this.loaderType_&&s,o=!this.audioDisabled_&&i&&!n;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);r&&e.waitingOnAppends++,o&&e.waitingOnAppends++,r&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=((e,t,i)=>"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,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),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")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const 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)}handleAppendsDone_(){if(this.pendingSegment_){const e={segmentInfo:aa({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:e})}if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=oa(e,this.sourceType_);if(t&&("warn"===t.severity?Bn.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${ia(e)}`);this.logger_(`Appended ${ia(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");const i=e.segment,s=e.part,n=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,r=s&&s.end&&this.currentTime_()-s.end>3*e.playlist.partTargetDuration;if(n||r)return this.logger_(`bad ${n?"segment":"part"} ${ia(e)}`),void this.resetEverything();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_()}recordThroughput_(e){if(e.duration<ta)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record 0.016666666666666666`);const t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,s=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(s-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,i=t.start,s=t.end;if(!ea(i)||!ea(s))return;Zo(i,s,this.segmentMetadataTrack_);const r=n().WebKitDataCue||n().VTTCue,o={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,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:s},a=new r(i,s,JSON.stringify(o));a.value=o,this.segmentMetadataTrack_.addCue(a)}}function ua(){}const da=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toUpperCase()))},ca=["video","audio"],ha=(e,t)=>{const i=t[`${e}Buffer`];return i&&i.updating||t.queuePending[e]},pa=(e,t)=>{if(0===t.queue.length)return;let i=0,s=t.queue[i];if("mediaSource"!==s.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!ha(e,t)){if(s.type!==e){if(i=((e,t)=>{for(let i=0;i<t.length;i++){const s=t[i];if("mediaSource"===s.type)return null;if(s.type===e)return i}return null})(e,t.queue),null===i)return;s=t.queue[i]}return t.queue.splice(i,1),t.queuePending[e]=s,s.action(e,t),s.doneFn?void 0:(t.queuePending[e]=null,void pa(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),s.action(t),s.doneFn&&s.doneFn(),pa("audio",t),pa("video",t))},fa=(e,t)=>{const i=t[`${e}Buffer`],s=da(e);i&&(i.removeEventListener("updateend",t[`on${s}UpdateEnd_`]),i.removeEventListener("error",t[`on${s}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},ma=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),ga=(e,t,i)=>(s,n)=>{const r=n[`${s}Buffer`];if(ma(n.mediaSource,r)){n.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${s}Buffer`);try{r.appendBuffer(e)}catch(e){n.logger_(`Error with code ${e.code} `+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${s}Buffer`),n.queuePending[s]=null,i(e)}}},_a=(e,t)=>(i,s)=>{const n=s[`${i}Buffer`];if(ma(s.mediaSource,n)){s.logger_(`Removing ${e} to ${t} from ${i}Buffer`);try{n.remove(e,t)}catch(n){s.logger_(`Remove ${e} to ${t} from ${i}Buffer failed`)}}},ya=e=>(t,i)=>{const s=i[`${t}Buffer`];ma(i.mediaSource,s)&&(i.logger_(`Setting ${t}timestampOffset to ${e}`),s.timestampOffset=e)},ba=e=>(t,i)=>{e()},va=e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(e){Bn.log.warn("Failed to call media source endOfStream",e)}}},Ta=e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(e){Bn.log.warn("Failed to set media source duration",e)}},Sa=()=>(e,t)=>{if("open"!==t.mediaSource.readyState)return;const i=t[`${e}Buffer`];if(ma(t.mediaSource,i)){t.logger_(`calling abort on ${e}Buffer`);try{i.abort()}catch(t){Bn.log.warn(`Failed to abort on ${e}Buffer`,t)}}},wa=(e,t)=>i=>{const s=da(e),n=(0,g.getMimeForCodec)(t);i.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const r=i.mediaSource.addSourceBuffer(n);r.addEventListener("updateend",i[`on${s}UpdateEnd_`]),r.addEventListener("error",i[`on${s}Error_`]),i.codecs[e]=t,i[`${e}Buffer`]=r},Ea=e=>t=>{const i=t[`${e}Buffer`];if(fa(e,t),ma(t.mediaSource,i)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(i)}catch(t){Bn.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,t)}}},Ca=e=>(t,i)=>{const s=i[`${t}Buffer`],n=(0,g.getMimeForCodec)(e);if(!ma(i.mediaSource,s))return;const r=e.substring(0,e.indexOf(".")),o=i.codecs[t];if(o.substring(0,o.indexOf("."))===r)return;const a={codecsChangeInfo:{from:o,to:e}};i.trigger({type:"codecschange",metadata:a}),i.logger_(`changing ${t}Buffer codec from ${o} to ${e}`);try{s.changeType(n),i.codecs[t]=e}catch(e){a.errorType=Bn.Error.StreamingCodecsChangeError,a.error=e,e.metadata=a,i.error_=e,i.trigger("error"),Bn.log.warn(`Failed to changeType on ${t}Buffer`,e)}},ka=({type:e,sourceUpdater:t,action:i,doneFn:s,name:n})=>{t.queue.push({type:e,action:i,doneFn:s,name:n}),pa(e,t)},xa=(e,t)=>i=>{const s=function(e){if(0===e.length)return"Buffered Ranges are empty";let t="Buffered Ranges: \n";for(let i=0;i<e.length;i++){const s=e.start(i),n=e.end(i);t+=`${s} --\x3e ${n}. Duration (${n-s})\n`}return t}(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,s),t.queuePending[e]){const i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[`${e}Error_`])}pa(e,t)};class Ia extends Bn.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>pa("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Gn("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=xa("video",this),this.onAudioUpdateEnd_=xa("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){ka({type:"mediaSource",sourceUpdater:this,action:wa(e,t),name:"addSourceBuffer"})}abort(e){ka({type:e,sourceUpdater:this,action:Sa(e),name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?ka({type:"mediaSource",sourceUpdater:this,action:Ea(e),name:"removeSourceBuffer"}):Bn.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!Bn.browser.IS_FIREFOX&&n().MediaSource&&n().MediaSource.prototype&&"function"==typeof n().MediaSource.prototype.removeSourceBuffer}static canChangeType(){return n().SourceBuffer&&n().SourceBuffer.prototype&&"function"==typeof n().SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?ka({type:e,sourceUpdater:this,action:Ca(t),name:"changeType"}):Bn.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((t=>{const i=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,i);this.canChangeType()&&this.changeType(t,i)}))}appendBuffer(e,t){const{segmentInfo:i,type:s,bytes:n}=e;if(this.processedAppend_=!0,"audio"===s&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${n.length} until video append`);if(ka({type:s,sourceUpdater:this,action:ga(n,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===s){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach((e=>{this.appendBuffer.apply(this,e)}))}}audioBuffered(){return ma(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Kn()}videoBuffered(){return ma(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Kn()}buffered(){const e=ma(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=ma(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){let i=null,s=null,n=0;const r=[],o=[];if(!(e&&e.length&&t&&t.length))return Kn();let a=e.length;for(;a--;)r.push({time:e.start(a),type:"start"}),r.push({time:e.end(a),type:"end"});for(a=t.length;a--;)r.push({time:t.start(a),type:"start"}),r.push({time:t.end(a),type:"end"});for(r.sort((function(e,t){return e.time-t.time})),a=0;a<r.length;a++)"start"===r[a].type?(n++,2===n&&(i=r[a].time)):"end"===r[a].type&&(n--,1===n&&(s=r[a].time)),null!==i&&null!==s&&(o.push([i,s]),i=null,s=null);return Kn(o)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=ua){ka({type:"mediaSource",sourceUpdater:this,action:Ta(e),name:"duration",doneFn:t})}endOfStream(e=null,t=ua){"string"!=typeof e&&(e=void 0),ka({type:"mediaSource",sourceUpdater:this,action:va(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,i=ua){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?ka({type:"audio",sourceUpdater:this,action:_a(e,t),doneFn:i,name:"remove"}):i()}removeVideo(e,t,i=ua){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?ka({type:"video",sourceUpdater:this,action:_a(e,t),doneFn:i,name:"remove"}):i()}updating(){return!(!ha("audio",this)&&!ha("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(ka({type:"audio",sourceUpdater:this,action:ya(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(ka({type:"video",sourceUpdater:this,action:ya(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&ka({type:"audio",sourceUpdater:this,action:ba(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&ka({type:"video",sourceUpdater:this,action:ba(e),name:"callback"})}dispose(){this.trigger("dispose"),ca.forEach((e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`]((()=>fa(e,this)))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const Aa=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),La=new Uint8Array("\n\n".split("").map((e=>e.charCodeAt(0))));class Pa extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Oa extends la{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Kn();const e=this.subtitlesTrack_.cues;return Kn([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const i=Gr(e);let s=this.initSegments_[i];if(t&&!s&&e.bytes){const t=La.byteLength+e.bytes.byteLength,n=new Uint8Array(t);n.set(e.bytes),n.set(La,e.bytes.byteLength),this.initSegments_[i]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:n}}return s||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){Zo(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){const e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};return this.syncController_.one("timestampoffset",e),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(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}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,i){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===wo&&this.handleTimeout_(),e.code===Eo?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const s=this.pendingSegment_;this.saveBandwidthRelatedStats_(s.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const r=s.segment;if(r.map&&(r.map.bytes=t.map.bytes),s.bytes=t.bytes,"function"!=typeof n().WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((()=>this.segmentRequestFinished_(e,t,i)),(()=>this.stopForError({message:"Error loading vtt.js"})));r.requested=!0;try{this.parseVTTCues_(s)}catch(e){return void this.stopForError({message:e.message,metadata:{errorType:Bn.Error.StreamingVttParserError,error:e}})}if(this.updateTimeMapping_(s,this.syncController_.timelines[s.timeline],this.playlist_),s.cues.length?s.timingInfo={start:s.cues[0].startTime,end:s.cues[s.cues.length-1].endTime}:s.timingInfo={start:s.startOfSegment,end:s.startOfSegment+s.duration},s.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");s.byteLength=s.bytes.byteLength,this.mediaSecondsLoaded+=r.duration,s.cues.forEach((e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new(n().VTTCue)(e.startTime,e.endTime,e.text):e)})),function(e){const t=e.cues;if(!t)return;const i={};for(let s=t.length-1;s>=0;s--){const n=t[s],r=`${n.startTime}-${n.endTime}-${n.text}`;i[r]?e.removeCue(n):i[r]=n}}(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t,i=!1;if("function"!=typeof n().WebVTT)throw new Pa;"function"==typeof n().TextDecoder?t=new(n().TextDecoder)("utf8"):(t=n().WebVTT.StringDecoder(),i=!0);const s=new(n().WebVTT.Parser)(n(),n().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},s.oncue=e.cues.push.bind(e.cues),s.ontimestampmap=t=>{e.timestampmap=t},s.onparsingerror=e=>{Bn.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;i&&(t=Aa(t)),s.parse(t)}let r=e.bytes;i&&(r=Aa(r)),s.parse(r),s.flush()}updateTimeMapping_(e,t,i){const s=e.segment;if(!t)return;if(!e.cues.length)return void(s.empty=!0);const{MPEGTS:n,LOCAL:r}=e.timestampmap,o=n/E.ONE_SECOND_IN_TS-r+t.mapping;if(e.cues.forEach((e=>{const i=e.endTime-e.startTime,s=0===n?e.startTime+o:this.handleRollover_(e.startTime+o,t.time);e.startTime=Math.max(s,0),e.endTime=Math.max(s+i,0)})),!i.syncInfo){const t=e.cues[0].startTime,n=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(t,n-s.duration)}}}handleRollover_(e,t){if(null===t)return e;let i=e*E.ONE_SECOND_IN_TS;const s=t*E.ONE_SECOND_IN_TS;let n;for(n=s<i?-8589934592:8589934592;Math.abs(i-s)>4294967296;)i+=n;return i/E.ONE_SECOND_IN_TS}}const ja=function(e,t){const i=e.cues;for(let e=0;e<i.length;e++){const s=i[e];if(t>=s.adStartTime&&t<=s.adEndTime)return s}return null};class Da{constructor({start:e,end:t,segmentIndex:i,partIndex:s=null,appended:n=!1}){this.start_=e,this.end_=t,this.segmentIndex_=i,this.partIndex_=s,this.appended_=n}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class Ma{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach((e=>e.resetAppendedStatus()))}}class Na{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach((e=>e.resetAppendStatus()))}update(e,t){const{mediaSequence:i,segments:s}=e;if(this.isReliable_=this.isReliablePlaylist_(i,s),this.isReliable_)return this.updateStorage_(s,i,this.calculateBaseTime_(i,t))}getSyncInfoForTime(e){for(const{segmentSyncInfo:t,partsSyncInfo:i}of this.storage_.values())if(i.length){for(const t of i)if(t.isInRange(e))return t}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,t,i){const s=new Map;let n="\n",r=i,o=t;this.start_=r,e.forEach(((e,t)=>{const i=this.storage_.get(o),a=r,l=a+e.duration,u=Boolean(i&&i.segmentSyncInfo&&i.segmentSyncInfo.isAppended),d=new Da({start:a,end:l,appended:u,segmentIndex:t});e.syncInfo=d;let c=r;const h=(e.parts||[]).map(((e,s)=>{const r=c,a=c+e.duration,l=Boolean(i&&i.partsSyncInfo&&i.partsSyncInfo[s]&&i.partsSyncInfo[s].isAppended),u=new Da({start:r,end:a,appended:l,segmentIndex:t,partIndex:s});return c=a,n+=`Media Sequence: ${o}.${s} | Range: ${r} --\x3e ${a} | Appended: ${l}\n`,e.syncInfo=u,u}));s.set(o,new Ma(d,h)),n+=`${Xo(e.resolvedUri)} | Media Sequence: ${o} | Range: ${a} --\x3e ${l} | Appended: ${u}\n`,o++,r=l})),this.end_=r,this.storage_=s,this.diagnostics_=n}calculateBaseTime_(e,t){return this.storage_.size?this.storage_.has(e)?this.storage_.get(e).segmentSyncInfo.start:t:0}isReliablePlaylist_(e,t){return null!=e&&Array.isArray(t)&&t.length}}class Ra extends Na{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t){if(!this.storage_.size){const t=this.parent_.getSyncInfoForMediaSequence(e);return t?t.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t)}}const Fa=[{name:"VOD",run:(e,t,i,s,n)=>{if(i!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"MediaSequence",run:(e,t,i,s,n,r)=>{const o=e.getMediaSequenceSync(r);if(!o)return null;if(!o.isReliable)return null;const a=o.getSyncInfoForTime(n);return a?{time:a.start,partIndex:a.partIndex,segmentIndex:a.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,i,s,n)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let r=null,o=null;const a=or(t);n=n||0;for(let i=0;i<a.length;i++){const s=a[t.endList||0===n?i:a.length-(i+1)],l=s.segment,u=e.timelineToDatetimeMappings[l.timeline];if(!u||!l.dateTimeObject)continue;let d=l.dateTimeObject.getTime()/1e3+u;if(l.parts&&"number"==typeof s.partIndex)for(let e=0;e<s.partIndex;e++)d+=l.parts[e].duration;const c=Math.abs(n-d);if(null!==o&&(0===c||o<c))break;o=c,r={time:d,segmentIndex:s.segmentIndex,partIndex:s.partIndex}}return r}},{name:"Segment",run:(e,t,i,s,n)=>{let r=null,o=null;n=n||0;const a=or(t);for(let e=0;e<a.length;e++){const i=a[t.endList||0===n?e:a.length-(e+1)],l=i.segment,u=i.part&&i.part.start||l&&l.start;if(l.timeline===s&&void 0!==u){const e=Math.abs(n-u);if(null!==o&&o<e)break;(!r||null===o||o>=e)&&(o=e,r={time:u,segmentIndex:i.segmentIndex,partIndex:i.partIndex})}}return r}},{name:"Discontinuity",run:(e,t,i,s,n)=>{let r=null;if(n=n||0,t.discontinuityStarts&&t.discontinuityStarts.length){let i=null;for(let s=0;s<t.discontinuityStarts.length;s++){const o=t.discontinuityStarts[s],a=t.discontinuitySequence+s+1,l=e.discontinuities[a];if(l){const e=Math.abs(n-l.time);if(null!==i&&i<e)break;(!r||null===i||i>=e)&&(i=e,r={time:l.time,segmentIndex:o,partIndex:null})}}}return r}},{name:"Playlist",run:(e,t,i,s,n)=>{if(t.syncInfo){return{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}}return null}}];class Ua extends Bn.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const t=new Na,i=new Ra(t),s=new Ra(t);this.mediaSequenceStorage_={main:t,audio:i,vtt:s},this.logger_=Gn("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,i,s,n){if(t!==1/0){return Fa.find((({name:e})=>"VOD"===e)).run(this,e,t)}const r=this.runStrategies_(e,t,i,s,n);if(!r.length)return null;for(const t of r){const{syncPoint:i,strategy:n}=t,{segmentIndex:r,time:o}=i;if(r<0)continue;const a=o,l=a+e.segments[r].duration;if(this.logger_(`Strategy: ${n}. Current time: ${s}. selected segment: ${r}. Time: [${a} -> ${l}]}`),s>=a&&s<l)return this.logger_("Found sync point with exact match: ",i),i}return this.selectSyncPoint_(r,{key:"time",value:s})}getExpiredTime(e,t){if(!e||!e.segments)return null;const i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;const s=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return s.segmentIndex>0&&(s.time*=-1),Math.abs(s.time+hr({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:s.segmentIndex,endIndex:0}))}runStrategies_(e,t,i,s,n){const r=[];for(let o=0;o<Fa.length;o++){const a=Fa[o],l=a.run(this,e,t,i,s,n);l&&(l.strategy=a.name,r.push({strategy:a.name,syncPoint:l}))}return r}selectSyncPoint_(e,t){let i=e[0].syncPoint,s=Math.abs(e[0].syncPoint[t.key]-t.value),n=e[0].strategy;for(let r=1;r<e.length;r++){const o=Math.abs(e[r].syncPoint[t.key]-t.value);o<s&&(s=o,i=e[r].syncPoint,n=e[r].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${n}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+("number"==typeof i.partIndex?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,t){const i=t.mediaSequence-e.mediaSequence;if(i>86400)Bn.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);else for(let s=i-1;s>=0;s--){const i=e.segments[s];if(i&&void 0!==i.start){t.syncInfo={mediaSequence:e.mediaSequence+s,time:i.start},this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),s=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:s.start}));const n=s.dateTimeObject;s.discontinuity&&t&&n&&(this.timelineToDatetimeMappings[s.timeline]=-n.getTime()/1e3)}timestampOffsetForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,i){const s=e.segment,n=e.part;let r,o,a=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),r=e.startOfSegment,o=t.end+a.mapping;else{if(!a)return!1;r=t.start+a.mapping,o=t.end+a.mapping}return n&&(n.start=r,n.end=o),(!s.start||r<s.start)&&(s.start=r),s.end=o,!0}saveDiscontinuitySyncInfo_(e){const 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(let s=0;s<t.discontinuityStarts.length;s++){const n=t.discontinuityStarts[s],r=t.discontinuitySequence+s+1,o=n-e.mediaIndex,a=Math.abs(o);if(!this.discontinuities[r]||this.discontinuities[r].accuracy>a){let s;s=o<0?i.start-hr({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:n}):i.end+hr({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:n}),this.discontinuities[r]={time:s,accuracy:a}}}}dispose(){this.trigger("dispose"),this.off()}}class Ba extends Bn.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:i}){return"number"==typeof t&&"number"==typeof i&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:i}){if("number"==typeof t&&"number"==typeof i){this.lastTimelineChanges_[e]={type:e,from:t,to:i},delete this.pendingTimelineChanges_[e];const s={timelineChangeInfo:{from:t,to:i}};this.trigger({type:"timelinechange",metadata:s})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const $a=uo(co((function(){var e=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,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var n=Array.prototype.slice.call(arguments,1),r=t.length,o=0;o<r;++o)t[o].apply(this,n)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();let t=null;class s{constructor(e){let i,s,n;t||(t=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],s=t[4],n=i[4];let r,o,a;const l=[],u=[];let d,c,h,p,f,m;for(r=0;r<256;r++)u[(l[r]=r<<1^283*(r>>7))^r]=r;for(o=a=0;!s[o];o^=d||1,a=u[a]||1)for(p=a^a<<1^a<<2^a<<3^a<<4,p=p>>8^255&p^99,s[o]=p,n[p]=o,h=l[c=l[d=l[o]]],m=16843009*h^65537*c^257*d^16843008*o,f=257*l[p]^16843008*p,r=0;r<4;r++)t[r][o]=f=f<<24^f>>>8,i[r][p]=m=m<<24^m>>>8;for(r=0;r<5;r++)t[r]=t[r].slice(0),i[r]=i[r].slice(0);return e}()),this._tables=[[t[0][0].slice(),t[0][1].slice(),t[0][2].slice(),t[0][3].slice(),t[0][4].slice()],[t[1][0].slice(),t[1][1].slice(),t[1][2].slice(),t[1][3].slice(),t[1][4].slice()]];const r=this._tables[0][4],o=this._tables[1],a=e.length;let l=1;if(4!==a&&6!==a&&8!==a)throw new Error("Invalid aes key size");const u=e.slice(0),d=[];for(this._key=[u,d],i=a;i<4*a+28;i++)n=u[i-1],(i%a==0||8===a&&i%a==4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],i%a==0&&(n=n<<8^n>>>24^l<<24,l=l<<1^283*(l>>7))),u[i]=u[i-a]^n;for(s=0;i;s++,i--)n=u[3&s?i:i-4],d[s]=i<=4||s<4?n:o[0][r[n>>>24]]^o[1][r[n>>16&255]]^o[2][r[n>>8&255]]^o[3][r[255&n]]}decrypt(e,t,i,s,n,r){const o=this._key[1];let a,l,u,d=e^o[0],c=s^o[1],h=i^o[2],p=t^o[3];const f=o.length/4-2;let m,g=4;const _=this._tables[1],y=_[0],b=_[1],v=_[2],T=_[3],S=_[4];for(m=0;m<f;m++)a=y[d>>>24]^b[c>>16&255]^v[h>>8&255]^T[255&p]^o[g],l=y[c>>>24]^b[h>>16&255]^v[p>>8&255]^T[255&d]^o[g+1],u=y[h>>>24]^b[p>>16&255]^v[d>>8&255]^T[255&c]^o[g+2],p=y[p>>>24]^b[d>>16&255]^v[c>>8&255]^T[255&h]^o[g+3],g+=4,d=a,c=l,h=u;for(m=0;m<4;m++)n[(3&-m)+r]=S[d>>>24]<<24^S[c>>16&255]<<16^S[h>>8&255]<<8^S[255&p]^o[g++],a=d,d=c,c=h,h=p,p=a}}class n extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const r=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24};class o{constructor(e,t,i,s){const a=o.STEP,l=new Int32Array(e.buffer),u=new Uint8Array(e.byteLength);let d=0;for(this.asyncStream_=new n,this.asyncStream_.push(this.decryptChunk_(l.subarray(d,d+a),t,i,u)),d=a;d<l.length;d+=a)i=new Uint32Array([r(l[d-4]),r(l[d-3]),r(l[d-2]),r(l[d-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(d,d+a),t,i,u));this.asyncStream_.push((function(){var e;s(null,(e=u).subarray(0,e.byteLength-e[e.byteLength-1]))}))}static get STEP(){return 32e3}decryptChunk_(e,t,i,n){return function(){const o=function(e,t,i){const n=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),o=new s(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),l=new Int32Array(a.buffer);let u,d,c,h,p,f,m,g,_;for(u=i[0],d=i[1],c=i[2],h=i[3],_=0;_<n.length;_+=4)p=r(n[_]),f=r(n[_+1]),m=r(n[_+2]),g=r(n[_+3]),o.decrypt(p,f,m,g,l,_),l[_]=r(l[_]^u),l[_+1]=r(l[_+1]^d),l[_+2]=r(l[_+2]^c),l[_+3]=r(l[_+3]^h),u=p,d=f,c=m,h=g;return a}(e,t,i);n.set(o,e.byteOffset)}}}var a,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};a="undefined"!=typeof window?window:void 0!==l?l:"undefined"!=typeof self?self:{};var u,d,c=a.BigInt||Number;c("0x1"),c("0x100"),c("0x10000"),c("0x1000000"),c("0x100000000"),c("0x10000000000"),c("0x1000000000000"),c("0x100000000000000"),c("0x10000000000000000"),u=new Uint16Array([65484]),255===(d=new Uint8Array(u.buffer,u.byteOffset,u.byteLength))[0]||d[0];const h=function(e){const t={};return Object.keys(e).forEach((i=>{const s=e[i];var n;n=s,("function"===ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer)?t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[i]=s})),t};self.onmessage=function(e){const t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),s=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),n=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new o(i,s,n,(function(e,i){self.postMessage(h({source:t.source,decrypted:i}),[i.buffer])}))}})));var qa=lo($a);const Va=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Ha=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},za=(e,t)=>{t.activePlaylistLoader=e,e.load()},Wa={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:i},excludePlaylist:s}=t,n=i.activeTrack(),r=i.activeGroup(),o=(r.filter((e=>e.default))[0]||r[0]).id,a=i.tracks[o];if(n!==a){Bn.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in i.tracks)i.tracks[e].enabled=i.tracks[e]===a;i.onTrackChanged()}else s({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:i}}=t;Bn.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const s=i.activeTrack();s&&(s.mode="disabled"),i.onTrackChanged()}},Ga={AUDIO:(e,t,i)=>{if(!t)return;const{tech:s,requestOptions:n,segmentLoaders:{[e]:r}}=i;t.on("loadedmetadata",(()=>{const e=t.media();r.playlist(e,n),(!s.paused()||e.endList&&"none"!==s.preload())&&r.load()})),t.on("loadedplaylist",(()=>{r.playlist(t.media(),n),s.paused()||r.load()})),t.on("error",Wa[e](e,i))},SUBTITLES:(e,t,i)=>{const{tech:s,requestOptions:n,segmentLoaders:{[e]:r},mediaTypes:{[e]:o}}=i;t.on("loadedmetadata",(()=>{const e=t.media();r.playlist(e,n),r.track(o.activeTrack()),(!s.paused()||e.endList&&"none"!==s.preload())&&r.load()})),t.on("loadedplaylist",(()=>{r.playlist(t.media(),n),s.paused()||r.load()})),t.on("error",Wa[e](e,i))}},Xa={AUDIO:(e,t)=>{const{vhs:i,sourceType:s,segmentLoaders:{[e]:n},requestOptions:r,main:{mediaGroups:o},mediaTypes:{[e]:{groups:a,tracks:l,logger_:u}},mainPlaylistLoader:d}=t,c=Tr(d.main);o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},c&&(o[e].main.default.playlists=d.main.playlists));for(const n in o[e]){a[n]||(a[n]=[]);for(const h in o[e][n]){let p,f=o[e][n][h];if(c?(u(`AUDIO group '${n}' label '${h}' is a main playlist`),f.isMainPlaylist=!0,p=null):p="vhs-json"===s&&f.playlists?new Ur(f.playlists[0],i,r):f.resolvedUri?new Ur(f.resolvedUri,i,r):f.playlists&&"dash"===s?new ro(f.playlists[0],i,r,d):null,f=Xn({id:h,playlistLoader:p},f),Ga[e](e,f.playlistLoader,t),a[n].push(f),void 0===l[h]){const e=new Bn.AudioTrack({id:h,kind:Va(f),enabled:!1,language:f.language,default:f.default,label:h});l[h]=e}}}n.on("error",Wa[e](e,t))},SUBTITLES:(e,t)=>{const{tech:i,vhs:s,sourceType:n,segmentLoaders:{[e]:r},requestOptions:o,main:{mediaGroups:a},mediaTypes:{[e]:{groups:l,tracks:u}},mainPlaylistLoader:d}=t;for(const r in a[e]){l[r]||(l[r]=[]);for(const c in a[e][r]){if(!s.options_.useForcedSubtitles&&a[e][r][c].forced)continue;let h,p=a[e][r][c];if("hls"===n)h=new Ur(p.resolvedUri,s,o);else if("dash"===n){if(!p.playlists.filter((e=>e.excludeUntil!==1/0)).length)return;h=new ro(p.playlists[0],s,o,d)}else"vhs-json"===n&&(h=new Ur(p.playlists?p.playlists[0]:p.resolvedUri,s,o));if(p=Xn({id:c,playlistLoader:h},p),Ga[e](e,p.playlistLoader,t),l[r].push(p),void 0===u[c]){const e=i.addRemoteTextTrack({id:c,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:c},!1).track;u[c]=e}}}r.on("error",Wa[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:i,main:{mediaGroups:s},mediaTypes:{[e]:{groups:n,tracks:r}}}=t;for(const t in s[e]){n[t]||(n[t]=[]);for(const o in s[e][t]){const a=s[e][t][o];if(!/^(?:CC|SERVICE)/.test(a.instreamId))continue;const l=i.options_.vhs&&i.options_.vhs.captionServices||{};let u={label:o,language:a.language,instreamId:a.instreamId,default:a.default&&a.autoselect};if(l[u.instreamId]&&(u=Xn(u,l[u.instreamId])),void 0===u.default&&delete u.default,n[t].push(Xn({id:o},a)),void 0===r[o]){const e=i.addRemoteTextTrack({id:u.instreamId,kind:"captions",default:u.default,language:u.language,label:u.label},!1).track;r[o]=e}}}}},Ka=(e,t)=>{for(let i=0;i<e.length;i++){if(br(t,e[i]))return!0;if(e[i].playlists&&Ka(e[i].playlists,t))return!0}return!1},Ya={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if(i[e].enabled)return i[e];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if("showing"===i[e].mode||"hidden"===i[e].mode)return i[e];return null}},Qa=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((t=>{Xa[t](t,e)}));const{mediaTypes:t,mainPlaylistLoader:i,tech:s,vhs:n,segmentLoaders:{AUDIO:r,main:o}}=e;["AUDIO","SUBTITLES"].forEach((i=>{t[i].activeGroup=((e,t)=>i=>{const{mainPlaylistLoader:s,mediaTypes:{[e]:{groups:n}}}=t,r=s.media();if(!r)return null;let o=null;r.attributes[e]&&(o=n[r.attributes[e]]);const a=Object.keys(n);if(!o)if("AUDIO"===e&&a.length>1&&Tr(t.main))for(let e=0;e<a.length;e++){const t=n[a[e]];if(Ka(t,r)){o=t;break}}else n.main?o=n.main:1===a.length&&(o=n[a[0]]);return void 0===i?o:null!==i&&o&&o.filter((e=>e.id===i.id))[0]||null})(i,e),t[i].activeTrack=Ya[i](i,e),t[i].onGroupChanged=((e,t)=>()=>{const{segmentLoaders:{[e]:i,main:s},mediaTypes:{[e]:n}}=t,r=n.activeTrack(),o=n.getActiveGroup(),a=n.activePlaylistLoader,l=n.lastGroup_;o&&l&&o.id===l.id||(n.lastGroup_=o,n.lastTrack_=r,Ha(i,n),o&&!o.isMainPlaylist&&(o.playlistLoader?(i.resyncLoader(),za(o.playlistLoader,n)):a&&s.resetEverything()))})(i,e),t[i].onGroupChanging=((e,t)=>()=>{const{segmentLoaders:{[e]:i},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,i.abort(),i.pause()})(i,e),t[i].onTrackChanged=((e,t)=>()=>{const{mainPlaylistLoader:i,segmentLoaders:{[e]:s,main:n},mediaTypes:{[e]:r}}=t,o=r.activeTrack(),a=r.getActiveGroup(),l=r.activePlaylistLoader,u=r.lastTrack_;if((!u||!o||u.id!==o.id)&&(r.lastGroup_=a,r.lastTrack_=o,Ha(s,r),a)){if(a.isMainPlaylist){if(!o||!u||o.id===u.id)return;const e=t.vhs.playlistController_,s=e.selectPlaylist();if(e.media()===s)return;return r.logger_(`track change. Switching main audio from ${u.id} to ${o.id}`),i.pause(),n.resetEverything(),void e.fastQualityChange_(s)}if("AUDIO"===e){if(!a.playlistLoader)return n.setAudio(!0),void n.resetEverything();s.setAudio(!0),n.setAudio(!1)}l!==a.playlistLoader?(s.track&&s.track(o),s.resetEverything(),za(a.playlistLoader,r)):za(a.playlistLoader,r)}})(i,e),t[i].getActiveGroup=((e,{mediaTypes:t})=>()=>{const i=t[e].activeTrack();return i?t[e].activeGroup(i):null})(i,e)}));const a=t.AUDIO.activeGroup();if(a){const e=(a.filter((e=>e.default))[0]||a[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),r.setAudio(!0)):o.setAudio(!0)}i.on("mediachange",(()=>{["AUDIO","SUBTITLES"].forEach((e=>t[e].onGroupChanged()))})),i.on("mediachanging",(()=>{["AUDIO","SUBTITLES"].forEach((e=>t[e].onGroupChanging()))}));const l=()=>{t.AUDIO.onTrackChanged(),s.trigger({type:"usage",name:"vhs-audio-change"})};s.audioTracks().addEventListener("change",l),s.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),n.on("dispose",(()=>{s.audioTracks().removeEventListener("change",l),s.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),s.clearTracks("audio");for(const e in t.AUDIO.tracks)s.audioTracks().addTrack(t.AUDIO.tracks[e])};class Ja{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=zn(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map((e=>[e.ID,e]))))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Za extends Bn.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new Ja,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Gn("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const i=t.serverUri||t.serverURL;if(!i)return this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),void this.trigger("error");i.startsWith("data:")?this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1)):(this.steeringManifest.reloadUri=zn(e,i),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const i=e?t:this.getRequestURI(t);if(!i)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();const s={contentSteeringInfo:{uri:i}};this.trigger({type:"contentsteeringloadstart",metadata:s}),this.request_=this.xhr_({uri:i,requestType:"content-steering-manifest"},((e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),void this.excludedSteeringManifestURLs.add(i);if(429===t.status){const i=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${i} seconds.`),void this.startTTLTimeout_(parseInt(i,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}let n;this.trigger({type:"contentsteeringloadcomplete",metadata:s});try{n=JSON.parse(this.request_.responseText)}catch(e){const t={errorType:Bn.Error.StreamingContentSteeringParserError,error:e};this.trigger({type:"error",metadata:t})}this.assignSteeringProperties_(n);const r={contentSteeringInfo:s.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:r}),this.startTTLTimeout_()}))}setProxyServerUrl_(e){const t=new(n().URL)(e),i=new(n().URL)(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const t=JSON.parse(n().atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new(n().URL)(e),i=this.getPathway(),s=this.getBandwidth_();if(i){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,i)}if(s){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,s)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const t=(e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){const i=this.setProxyServerUrl_(e);if(!t(i))return i}const i=this.setSteeringParams_(e);return t(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=n().setTimeout((()=>{this.requestSteeringManifest()}),t)}clearTTLTimeout_(){n().clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new Ja}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(zn(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let el;const tl=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],il=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]};class sl extends Bn.EventTarget{constructor(e){super();const{src:t,withCredentials:i,tech:s,bandwidth:r,externVhs:o,useCueTags:a,playlistExclusionDuration:l,enableLowInitialPlaylist:u,sourceType:d,cacheEncryptionKeys:c,bufferBasedABR:h,leastPixelDiffSelector:p,captionServices:f}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:m}=e;null==m&&(m=1/0),el=o,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(p),this.withCredentials=i,this.tech_=s,this.vhs_=s.vhs,this.player_=e.player_,this.sourceType_=d,this.useCueTags_=a,this.playlistExclusionDuration=l,this.maxPlaylistRetries=m,this.enableLowInitialPlaylist=u,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:m,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ua,activeTrack:ua,getActiveGroup:ua,onGroupChanged:ua,onTrackChanged:ua,lastTrack_:null,logger_:Gn(`MediaGroups[${t}]`)}})),e})(),this.mediaSource=new(n().MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=Kn(),this.hasPlayed_=!1,this.syncController_=new Ua(e),this.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new qa,this.sourceUpdater_=new Ia(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Ba,this.keyStatusMap_=new Map;const g={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:f,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:r,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:c,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new ro(t,this.vhs_,Xn(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new Ur(t,this.vhs_,Xn(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new la(Xn(g,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new la(Xn(g,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Oa(Xn(g,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise(((e,t)=>{function i(){s.off("vttjserror",n),e()}function n(){s.off("vttjsloaded",i),t()}s.one("vttjsloaded",i),s.one("vttjserror",n),s.addWebVttScript_()}))}),e);this.contentSteeringController_=new Za(this.vhs_.xhr,(()=>this.mainSegmentLoader_.bandwidth)),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",(()=>this.startABRTimer_())),this.tech_.on("pause",(()=>this.stopABRTimer_())),this.tech_.on("play",(()=>this.startABRTimer_()))),tl.forEach((e=>{this[e+"_"]=il.bind(this,e)})),this.logger_=Gn("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const _="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(_,(()=>{const e=Date.now();this.tech_.one("loadeddata",(()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends}))}))}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,i){const s=this.media(),n=s&&(s.id||s.uri),r=e&&(e.id||e.uri);if(n&&n!==r){this.logger_(`switch media ${n} -> ${r} from ${t}`);const i={renditionInfo:{id:r,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:"renditionselected",metadata:i}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})}this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((e=>{const t=this.mediaTypes_[e],i=t?t.activeGroup():null,s=this.contentSteeringController_.getPathway();if(i&&s){const t=(i.length?i[0].playlists:i.playlists).filter((e=>e.attributes.serviceLocation===s));t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}}))}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=n().setInterval((()=>this.checkABR_()),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(n().clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const i=e.mediaGroups.AUDIO,s=Object.keys(i);let n;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{const e=i.main||s.length&&i[s[0]];for(const t in e)if(e[t].default){n={label:t};break}}if(!n)return t;const r=[];for(const t in i)if(i[t][n.label]){const s=i[t][n.label];if(s.playlists&&s.playlists.length)r.push.apply(r,s.playlists);else if(s.uri)r.push(s);else if(e.playlists.length)for(let i=0;i<e.playlists.length;i++){const s=e.playlists[i];s.attributes&&s.attributes.AUDIO&&s.attributes.AUDIO===t&&r.push(s)}}return r.length?r:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",(()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;yr(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),Qa({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(()=>{this.trigger("selectedinitialmedia")}))})),this.mainPlaylistLoader_.on("loadedplaylist",(()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t))return;this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial");if(!("vhs-json"===this.sourceType_&&this.initialMedia_.segments))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)})),this.mainPlaylistLoader_.on("error",(()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})})),this.mainPlaylistLoader_.on("mediachanging",(()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()})),this.mainPlaylistLoader_.on("mediachange",(()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;yr(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})})),this.mainPlaylistLoader_.on("playlistunchanged",(()=>{const e=this.mainPlaylistLoader_.media();if("playlist-unchanged"===e.lastExcludeReason_)return;this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))})),this.mainPlaylistLoader_.on("renditiondisabled",(()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})})),this.mainPlaylistLoader_.on("renditionenabled",(()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}));["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach((e=>{this.mainPlaylistLoader_.on(e,(e=>{this.player_.trigger((0,p.default)({},e))}))}))}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const i=e.mediaGroups||{};let s=!0;const n=Object.keys(i.AUDIO);for(const e in i.AUDIO)for(const t in i.AUDIO[e]){i.AUDIO[e][t].uri||(s=!1)}s&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),el.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),n.length&&Object.keys(i.AUDIO[n[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),s=this.bufferLowWaterLine(),n=this.bufferHighWaterLine();return function({currentPlaylist:e,buffered:t,currentTime:i,nextPlaylist:s,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:o,bufferBasedABR:a,log:l}){if(!s)return Bn.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${e&&e.id||"null"} -> ${s.id}`;if(!e)return l(`${u} as current playlist is not set`),!0;if(s.id===e.id)return!1;const d=Boolean(Zn(t,i).length);if(!e.endList)return d||"number"!=typeof e.partTargetDuration?(l(`${u} as current playlist is live`),!0):(l(`not ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const c=nr(t,i),h=a?oo.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:oo.MAX_BUFFER_LOW_WATER_LINE;if(o<h)return l(`${u} as duration < max low water line (${o} < ${h})`),!0;const p=s.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(p<f&&(!a||c<r)){let e=`${u} as next bandwidth < current bandwidth (${p} < ${f})`;return a&&(e+=` and forwardBuffer < bufferHighWaterLine (${c} < ${r})`),l(e),!0}if((!a||p>f)&&c>=n){let e=`${u} as forwardBuffer >= bufferLowWaterLine (${c} >= ${n})`;return a&&(e+=` and next bandwidth > current bandwidth (${p} > ${f})`),l(e),!0}return l(`not ${u} as no switching criteria met`),!1}({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:s,bufferHighWaterLine:n,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",(()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()})),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",(()=>{this.trigger("progress")})),this.mainSegmentLoader_.on("error",(()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})})),this.mainSegmentLoader_.on("appenderror",(()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(()=>{this.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(()=>{this.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")})),this.mainSegmentLoader_.on("ended",(()=>{this.logger_("main segment loader ended"),this.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))}));const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",(()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}));["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach((e=>{this.mainSegmentLoader_.on(e,(e=>{this.player_.trigger((0,p.default)({},e))})),this.audioSegmentLoader_.on(e,(e=>{this.player_.trigger((0,p.default)({},e))})),this.subtitleSegmentLoader_.on(e,(e=>{this.player_.trigger((0,p.default)({},e))}))}))}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything((()=>{this.tech_.setCurrentTime(this.tech_.currentTime())}))}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const 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}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const i=t.end(0);let s=i;if(e.start){const n=e.start.timeOffset;s=n<0?Math.max(i+n,t.start(0)):Math.min(i,n)}this.trigger("firstplay"),this.tech_.setCurrentTime(s)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,(e=>{}))}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;const i=el.Playlist.playlistEnd(e,t),s=this.tech_.currentTime(),n=this.tech_.buffered();if(!n.length)return i-s<=Qn;const r=n.end(n.length-1);return r-s<=Qn&&i-r<=Qn}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const s=this.mainPlaylistLoader_.main.playlists,n=s.filter(gr),r=1===n.length&&n[0]===e;if(1===s.length&&i!==1/0)return Bn.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(r);if(r){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),i=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout((()=>{this.contentSteeringController_.addAvailablePathway(t)}),i)}let t=!1;s.forEach((i=>{if(i===e)return;const s=i.excludeUntil;void 0!==s&&s!==1/0&&(t=!0,delete i.excludeUntil)})),t&&(Bn.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;o=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,e.excludeUntil=o,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const a=this.selectPlaylist();if(!a)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:Bn.log.warn,u=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${u} Switching to playlist ${a.id}.`),a.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),a.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const d=a.targetDuration/2*1e3||5e3,c="number"==typeof a.lastRequest&&Date.now()-a.lastRequest<=d;return this.switchMedia_(a,"exclude",r||c)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const i=[],s="all"===e;(s||"main"===e)&&i.push(this.mainPlaylistLoader_);const n=[];(s||"audio"===e)&&n.push("AUDIO"),(s||"subtitle"===e)&&(n.push("CLOSED-CAPTIONS"),n.push("SUBTITLES")),n.forEach((e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)})),["main","audio","subtitle"].forEach((t=>{const s=this[`${t}SegmentLoader_`];!s||e!==t&&"all"!==e||i.push(s)})),i.forEach((e=>t.forEach((t=>{"function"==typeof e[t]&&e[t]()}))))}setCurrentTime(e){const t=Zn(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:el.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let t=this.mainPlaylistLoader_.media();if(!t)return;let i=this.syncController_.getExpiredTime(t,this.duration());if(null===i)return;const s=this.mainPlaylistLoader_.main,n=el.Playlist.seekable(t,i,el.Playlist.liveEdgeDelay(s,t));if(0===n.length)return;if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(t,this.duration()),null===i)return;if(e=el.Playlist.seekable(t,i,el.Playlist.liveEdgeDelay(s,t)),0===e.length)return}let r,o;if(this.seekable_&&this.seekable_.length&&(r=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>n.end(0)||n.start(0)>e.end(0)?this.seekable_=n:this.seekable_=Kn([[e.start(0)>n.start(0)?e.start(0):n.start(0),e.end(0)<n.end(0)?e.end(0):n.end(0)]]):this.seekable_=n,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===r&&this.seekable_.start(0)===o)return;this.logger_(`seekable updated [${tr(this.seekable_)}]`);const a={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:a}),this.tech_.trigger("seekablechanged")}updateDuration(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){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let i=el.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(i=Math.max(i,t.end(t.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((e=>{const t=this.mediaTypes_[e].groups;for(const e in t)t[e].forEach((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()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=Bo(this.main(),t),s={},n=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(s.video=i.video||e.main.videoCodec||g.DEFAULT_VIDEO_CODEC),e.main.isMuxed&&(s.video+=`,${i.audio||e.main.audioCodec||g.DEFAULT_AUDIO_CODEC}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||n)&&(s.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||g.DEFAULT_AUDIO_CODEC,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!s.audio&&!s.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const r={};let o;if(["video","audio"].forEach((function(t){if(s.hasOwnProperty(t)&&(i=e[t].isFmp4,n=s[t],!(i?(0,g.browserSupportsCodec)(n):(0,g.muxerSupportsCodec)(n)))){const i=e[t].isFmp4?"browser":"muxer";r[i]=r[i]||[],r[i].push(s[t]),"audio"===t&&(o=i)}var i,n})),n&&o&&t.attributes.AUDIO){const e=t.attributes.AUDIO;this.main().playlists.forEach((i=>{(i.attributes&&i.attributes.AUDIO)===e&&i!==t&&(i.excludeUntil=1/0)})),this.logger_(`excluding audio group ${e} as ${o} does not support codec(s): "${s.audio}"`)}if(!Object.keys(r).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach((t=>{const i=((0,g.parseCodecs)(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,n=((0,g.parseCodecs)(s[t]||"")[0]||{}).type;i&&n&&i.toLowerCase()!==n.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${s[t]}"`)})),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return s}{const e=Object.keys(r).reduce(((e,t)=>(e&&(e+=", "),e+=`${t} does not support codec(s): "${r[t].join(",")}"`)),"")+".";this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())return;if(!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach((i=>{const s=e[i];if(-1!==t.indexOf(s.id))return;t.push(s.id);const n=Bo(this.main,s),r=[];!n.audio||(0,g.muxerSupportsCodec)(n.audio)||(0,g.browserSupportsCodec)(n.audio)||r.push(`audio codec ${n.audio}`),!n.video||(0,g.muxerSupportsCodec)(n.video)||(0,g.browserSupportsCodec)(n.video)||r.push(`video codec ${n.video}`),n.text&&"stpp.ttml.im1t"===n.text&&r.push(`text codec ${n.text}`),r.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id} for unsupported: ${r.join(", ")}`))}))}excludeIncompatibleVariants_(e){const t=[],i=this.main().playlists,s=Fo((0,g.parseCodecs)(e)),n=Uo(s),r=s.video&&(0,g.parseCodecs)(s.video)[0]||null,o=s.audio&&(0,g.parseCodecs)(s.audio)[0]||null;Object.keys(i).forEach((e=>{const s=i[e];if(-1!==t.indexOf(s.id)||s.excludeUntil===1/0)return;t.push(s.id);const a=[],l=Bo(this.mainPlaylistLoader_.main,s),u=Uo(l);if(l.audio||l.video){if(u!==n&&a.push(`codec count "${u}" !== "${n}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&(0,g.parseCodecs)(l.video)[0]||null,t=l.audio&&(0,g.parseCodecs)(l.audio)[0]||null;e&&r&&e.type.toLowerCase()!==r.type.toLowerCase()&&a.push(`video codec "${e.type}" !== "${r.type}"`),t&&o&&t.type.toLowerCase()!==o.type.toLowerCase()&&a.push(`audio codec "${t.type}" !== "${o.type}"`)}a.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id}: ${a.join(" && ")}`))}}))}updateAdCues_(e){let t=0;const i=this.seekable();i.length&&(t=i.start(0)),function(e,t,i=0){if(!e.segments)return;let s,r=i;for(let i=0;i<e.segments.length;i++){const o=e.segments[i];if(s||(s=ja(t,r+o.duration/2)),s){if("cueIn"in o){s.endTime=r,s.adEndTime=r,r+=o.duration,s=null;continue}if(r<s.endTime){r+=o.duration;continue}s.endTime+=o.duration}else if("cueOut"in o&&(s=new(n().VTTCue)(r,r+o.duration,o.cueOut),s.adStartTime=r,s.adEndTime=r+parseFloat(o.cueOut),t.addCue(s)),"cueOutCont"in o){const[e,i]=o.cueOutCont.split("/").map(parseFloat);s=new(n().VTTCue)(r,r+o.duration,""),s.adStartTime=r-e,s.adEndTime=s.adStartTime+i,t.addCue(s)}r+=o.duration}}(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=oo.GOAL_BUFFER_LENGTH,i=oo.GOAL_BUFFER_LENGTH_RATE,s=Math.max(t,oo.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,s)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=oo.BUFFER_LOW_WATER_LINE,i=oo.BUFFER_LOW_WATER_LINE_RATE,s=Math.max(t,oo.MAX_BUFFER_LOW_WATER_LINE),n=Math.max(t,oo.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?n:s)}bufferHighWaterLine(){return oo.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){Jo(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:e,dateRanges:t})=>{const i=e.metadataTrack_;if(!i)return;const s=n().WebKitDataCue||n().VTTCue;t.forEach((e=>{for(const t of Object.keys(e)){if(Qo.has(t))continue;const n=new s(e.startTime,e.endTime,"");n.id=e.id,n.type="com.apple.quicktime.HLS",n.value={key:Yo[t],data:e[t]},"scte35Out"!==t&&"scte35In"!==t||(n.value.data=new Uint8Array(n.value.data.match(/[\da-f]{2}/gi)).buffer),i.addCue(n)}e.processDateRange()}))})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,i){const s=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();Jo(this.inbandTextTracks_,e,this.tech_),Ko({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:s,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart?this.contentSteeringController_.requestSteeringManifest(!0):this.tech_.one("canplay",(()=>{this.contentSteeringController_.requestSteeringManifest()}))}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this));["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach((e=>{this.contentSteeringController_.on(e,(e=>{this.trigger((0,p.default)({},e))}))})),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",(()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const t=this.contentSteeringController_.getAvailablePathways(),i=[];for(const s of e.playlists){const e=s.attributes.serviceLocation;if(e&&(i.push(e),!t.has(e)))return!0}return!(i.length||!t.size)})())&&this.resetContentSteeringController_()}))}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const t=this.main().playlists,i=new Set;let s=!1;Object.keys(t).forEach((n=>{const r=t[n],o=this.pathwayAttribute_(r),a=o&&e!==o;r.excludeUntil===1/0&&"content-steering"===r.lastExcludeReason_&&!a&&(delete r.excludeUntil,delete r.lastExcludeReason_,s=!0);const l=!r.excludeUntil&&r.excludeUntil!==1/0;!i.has(r.id)&&a&&l&&(i.add(r.id),r.excludeUntil=1/0,r.lastExcludeReason_="content-steering",this.logger_(`excluding ${r.id} for ${r.lastExcludeReason_}`))})),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach((t=>{const i=this.mediaTypes_[t];if(i.activePlaylistLoader){const t=i.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(s=!0)}})),s&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,i=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||i&&i.size){for(const[e,s]of t.entries()){i.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(s),this.contentSteeringController_.excludePathway(e))}for(const[s,n]of i.entries()){const i=t.get(s);if(i)this.equalPathwayClones_(i,n)||(this.mainPlaylistLoader_.updateOrDeleteClone(n,!0),this.contentSteeringController_.addAvailablePathway(s));else{e.filter((e=>e.attributes["PATHWAY-ID"]===n["BASE-ID"])).forEach((e=>{this.mainPlaylistLoader_.addClonePathway(n,e)})),this.contentSteeringController_.addAvailablePathway(s)}}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...i])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,s=t["URI-REPLACEMENT"].PARAMS;for(const e in i)if(i[e]!==s[e])return!1;for(const e in s)if(i[e]!==s[e])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach((i=>{const s=this.mainPlaylistLoader_.getKeyIdSet(i);s&&s.size&&s.forEach((s=>{const n="usable",r=this.keyStatusMap_.has(s)&&this.keyStatusMap_.get(s)===n,o=i.lastExcludeReason_===t&&i.excludeUntil===1/0;r?r&&o&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${s} is ${n}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==t&&(i.excludeUntil=1/0,i.lastExcludeReason_=t,this.logger_(`excluding playlist ${i.id} because the key ID ${s} doesn't exist in the keyStatusMap or is not ${n}`)),e++)}))})),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach((e=>{const i=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,s=e.excludeUntil===1/0&&e.lastExcludeReason_===t;i&&s&&(delete e.excludeUntil,Bn.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))}))}addKeyStatus_(e,t){const i=("string"==typeof e?e:(e=>{const t=new Uint8Array(e);return Array.from(t).map((e=>e.toString(16).padStart(2,"0"))).join("")})(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${i} added to the keyStatusMap`),this.keyStatusMap_.set(i,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}class nl{constructor(e,t,i){const{playlistController_:s}=e,n=s.fastQualityChange_.bind(s);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}var r,o,a;this.codecs=Bo(s.main(),t),this.playlist=t,this.id=i,this.enabled=(r=e.playlists,o=t.id,a=n,e=>{const t=r.main.playlists[o],i=mr(t),s=gr(t);if(void 0===e)return s;e?delete t.disabled:t.disabled=!0;const n={renditionInfo:{id:o,bandwidth:t.attributes.BANDWIDTH,resolution:t.attributes.RESOLUTION,codecs:t.attributes.CODECS},cause:"fast-quality"};return e===s||i||(a(t),e?r.trigger({type:"renditionenabled",metadata:n}):r.trigger({type:"renditiondisabled",metadata:n})),e})}}const rl=["seeking","seeked","pause","playing","error"];class ol extends Bn.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Gn("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),s=()=>this.techWaiting_(),r=()=>this.resetTimeUpdate_(),o=this.playlistController_,a=["main","subtitle","audio"],l={};a.forEach((e=>{l[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},o[`${e}SegmentLoader_`].on("appendsdone",l[e].updateend),o[`${e}SegmentLoader_`].on("playlistupdate",l[e].reset),this.tech_.on(["seeked","seeking"],l[e].reset)}));const u=e=>{["main","audio"].forEach((t=>{o[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)}))};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=()=>u("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",s),this.tech_.on(rl,r),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",s),this.tech_.off(rl,r),this.tech_.off("canplay",i),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),a.forEach((e=>{o[`${e}SegmentLoader_`].off("appendsdone",l[e].updateend),o[`${e}SegmentLoader_`].off("playlistupdate",l[e].reset),this.tech_.off(["seeked","seeking"],l[e].reset)})),this.checkCurrentTimeTimeout_&&n().clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&n().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=n().setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${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_()}checkSegmentDownloads_(e){const t=this.playlistController_,i=t[`${e}SegmentLoader_`],s=i.buffered_(),n=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(let 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_`],s);if(this[`${e}Buffered_`]=s,n){const i={bufferedRanges:s};return t.trigger({type:"bufferedrangeschanged",metadata:i}),void 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:ir(s)}),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.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Qn>=t.end(t.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(Kn([this.lastRecordedTime,e]));const t={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:t}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),t=this.tech_.currentTime();let i;if(this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)){i=e.end(e.length-1)}if(this.beforeSeekableWindow_(e,t)){const t=e.start(0);i=t+(t===e.end(0)?0:Qn)}if(void 0!==i)return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${tr(e)}. Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0;const s=this.playlistController_.sourceUpdater_,n=this.tech_.buffered(),r=s.audioBuffer?s.audioBuffered():null,o=s.videoBuffer?s.videoBuffered():null,a=this.media(),l=a.partTargetDuration?a.partTargetDuration:2*(a.targetDuration-Yn),u=[r,o];for(let e=0;e<u.length;e++){if(!u[e])continue;if(nr(u[e],t)<l)return!1}const d=er(n,t);return 0!==d.length&&(i=d.start(0)+Qn,this.logger_(`Buffered region starts (${d.start(0)})  just beyond seek point (${t}). Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),i=Zn(t,e);return i.length&&e+3<=i.end(0)?(this.resetTimeUpdate_(),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.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const 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.resetTimeUpdate_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,s=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const n=er(s,t);return n.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${n.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,i,s=!1){if(!e.length)return!1;let n=e.end(e.length-1)+Qn;const r=!i.endList,o="number"==typeof i.partTargetDuration;return r&&(o||s)&&(n=e.end(e.length-1)+3*i.targetDuration),t>n}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:i}){if(!e)return;let s;if(e.length&&t.length){const n=Zn(e,i-3),r=Zn(e,i),o=Zn(t,i);o.length&&!r.length&&n.length&&(s={start:n.end(0),end:o.end(0)})}else{er(e,i).length||(s=this.gapFromVideoUnderflow_(e,i))}return!!s&&(this.logger_(`Encountered a gap in video from ${s.start} to ${s.end}. Seeking to current time ${i}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),i=this.tech_.currentTime(),s=er(t,i);if(this.resetTimeUpdate_(),0===s.length||i!==e)return;this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",s.start(0)),this.tech_.setCurrentTime(s.start(0)+Yn);const n={gapInfo:{from:i,to:s.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:n}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){const i=function(e){if(e.length<2)return Kn();const t=[];for(let i=1;i<e.length;i++){const s=e.end(i-1),n=e.start(i);t.push([s,n])}return Kn(t)}(e);for(let e=0;e<i.length;e++){const s=i.start(e),n=i.end(e);if(t-s<4&&t-s>2)return{start:s,end:n}}return null}}const al={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},ll=function(e,t){let i=0,s=0;const n=Xn(al,t);e.ready((()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})}));const r=function(){s&&e.currentTime(s)},o=function(t){null!=t&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",r),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},a=function(){if(Date.now()-i<1e3*n.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(n.getSource&&"function"==typeof n.getSource)return i=Date.now(),n.getSource.call(e,o);Bn.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},l=function(){e.off("loadedmetadata",r),e.off("error",a),e.off("dispose",l)};e.on("error",a),e.on("dispose",l),e.reloadSourceOnError=function(t){l(),ll(e,t)}},ul=function(e){ll(this,e)};var dl="3.13.1";const cl={PlaylistLoader:Ur,Playlist:Sr,utils:Yr,STANDARD_PLAYLIST_SELECTOR:Go,INITIAL_PLAYLIST_SELECTOR:function(){const e=this.playlists.main.playlists.filter(Sr.isEnabled);Ho(e,((e,t)=>zo(e,t)));return e.filter((e=>!!Bo(this.playlists.main,e).video))[0]||null},lastBandwidthSelector:Go,movingAverageBandwidthSelector:function(e){let t=-1,i=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let s=this.useDevicePixelRatio&&n().devicePixelRatio||1;return isNaN(this.customPixelRatio)||(s=this.customPixelRatio),t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),Wo(this.playlists.main,t,parseInt(Vo(this.tech_.el(),"width"),10)*s,parseInt(Vo(this.tech_.el(),"height"),10)*s,this.limitRenditionByPlayerDimensions,this.playlistController_)}},comparePlaylistBandwidth:zo,comparePlaylistResolution:function(e,t){let i,s;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||n().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||n().Number.MAX_VALUE,i===s&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-s},xhr:$r()};Object.keys(oo).forEach((e=>{Object.defineProperty(cl,e,{get:()=>(Bn.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),oo[e]),set(t){Bn.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0?Bn.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):oo[e]=t}})}));const hl="videojs-vhs",pl=function(e,t){const i=t.media();let s=-1;for(let t=0;t<e.length;t++)if(e[t].id===i.id){s=t;break}e.selectedIndex_=s,e.trigger({selectedIndex:s,type:"change"})};cl.canPlaySource=function(){return Bn.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const fl=({player:e,sourceKeySystems:t,audioMedia:i,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const n=((e,t)=>e.reduce(((e,i)=>{if(!i.contentProtection)return e;const s=t.reduce(((e,t)=>{const s=i.contentProtection[t];return s&&s.pssh&&(e[t]={pssh:s.pssh}),e}),{});return Object.keys(s).length&&e.push(s),e}),[]))(i?s.concat([i]):s,Object.keys(t)),r=[],o=[];return n.forEach((t=>{o.push(new Promise(((t,i)=>{e.tech_.one("keysessioncreated",t)}))),r.push(new Promise(((i,s)=>{e.eme.initializeMediaKeys({keySystems:t},(e=>{e?s(e):i()}))})))})),Promise.race([Promise.all(r),Promise.race(o)])},ml=({player:e,sourceKeySystems:t,media:i,audioMedia:s})=>{const n=((e,t,i)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=Fo((0,g.parseCodecs)(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(s.audio=i.attributes.CODECS);const n=(0,g.getMimeForCodec)(s.video),r=(0,g.getMimeForCodec)(s.audio),o={};for(const i in e)o[i]={},r&&(o[i].audioContentType=r),n&&(o[i].videoContentType=n),t.contentProtection&&t.contentProtection[i]&&t.contentProtection[i].pssh&&(o[i].pssh=t.contentProtection[i].pssh),"string"==typeof e[i]&&(o[i].url=e[i]);return Xn(e,o)})(t,i,s);return!!n&&(e.currentSource().keySystems=n,!(n&&!e.eme)||(Bn.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},gl=()=>{if(!n().localStorage)return null;const e=n().localStorage.getItem(hl);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},_l=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},yl=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},bl=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},vl=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};cl.supportsNativeHls=function(){if(!o()||!o().createElement)return!1;const e=o().createElement("video");if(!Bn.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))}))}(),cl.supportsNativeDash=!!(o()&&o().createElement&&Bn.getTech("Html5").isSupported())&&/maybe|probably/i.test(o().createElement("video").canPlayType("application/dash+xml")),cl.supportsTypeNatively=e=>"hls"===e?cl.supportsNativeHls:"dash"===e&&cl.supportsNativeDash,cl.isSupported=function(){return Bn.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},cl.xhr.onRequest=function(e){_l(cl.xhr,e)},cl.xhr.onResponse=function(e){yl(cl.xhr,e)},cl.xhr.offRequest=function(e){bl(cl.xhr,e)},cl.xhr.offResponse=function(e){vl(cl.xhr,e)};const Tl=Bn.getComponent("Component");class Sl extends Tl{constructor(e,t,i){if(super(t,i.vhs),"number"==typeof i.initialBandwidth&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=Gn("VhsHandler"),t.options_&&t.options_.playerId){const e=Bn.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(o(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(e=>{const t=o().fullscreenElement||o().webkitFullscreenElement||o().mozFullScreenElement||o().msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()})),this.on(this.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),this.on(this.tech_,"error",(function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()})),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=Xn(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=gl();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=oo.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===oo.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach((e=>{void 0!==this.source_[e]&&(this.options_[e]=this.source_[e])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio;const t=this.options_.customPixelRatio;"number"==typeof t&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;var i;this.setOptions_(),this.options_.src=0===(i=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(i.substring(i.indexOf(",")+1)):i,this.options_.tech=this.tech_,this.options_.externVhs=cl,this.options_.sourceType=(0,_.simpleTypeFromSourceType)(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new sl(this.options_);const s=Xn({liveRangeSafeTimeDelta:Qn},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new ol(s),this.attachStreamingEventListeners_(),this.playlistController_.on("error",(()=>{const e=Bn.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));const r=this.options_.bufferBasedABR?cl.movingAverageBandwidthSelector(.55):cl.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=cl.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const t=n().navigator.connection||n().navigator.mozConnection||n().navigator.webkitConnection,i=1e7;if(this.options_.useNetworkInformationApi&&t){const s=1e3*t.downlink*1e3;e=s>=i&&e>=i?Math.max(e,s):s}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;t=this.throughput>0?1/this.throughput:0;return Math.floor(1/(e+t))},set(){Bn.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:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>ir(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>ir(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",(()=>{this.options_.useBandwidthFromLocalStorage&&(e=>{if(!n().localStorage)return!1;let t=gl();t=t?Xn(t,e):e;try{n().localStorage.setItem(hl,JSON.stringify(t))}catch(e){return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})})),this.playlistController_.on("selectedinitialmedia",(()=>{var e;(e=this).representations=()=>{const t=e.playlistController_.main(),i=Tr(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter((e=>!mr(e))).map(((t,i)=>new nl(e,t,t.id))):[]}})),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",(()=>{this.setupEme_()})),this.on(this.playlistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.playlistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=n().URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),fl({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then((()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()})).catch((e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media keys for EME",code:3})}))}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=ml({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",(e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=Bn.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",(()=>{!function(e,t){t.representations().forEach((t=>{e.addQualityLevel(t)})),pl(e,t.playlists)}(this.qualityLevels_,this)})),this.playlists.on("mediachange",(()=>{pl(this.qualityLevels_,this.playlists)})))}static version(){return{"@videojs/http-streaming":dl,"mux.js":"7.0.3","mpd-parser":"1.3.0","m3u8-parser":"7.1.0","aes-decrypter":"4.0.1"}}version(){return this.constructor.version()}canChangeType(){return Ia.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&n().URL.revokeObjectURL&&(n().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return Qr({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,i=!0,s=2){return Jr({programTime:e,playlist:this.playlistController_.media(),retryCount:s,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{_l(this.xhr,e)},this.xhr.onResponse=e=>{yl(this.xhr,e)},this.xhr.offRequest=e=>{bl(this.xhr,e)},this.xhr.offResponse=e=>{vl(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach((e=>{this.playlistController_.on(e,(e=>{this.player_.trigger((0,p.default)({},e))}))})),["gapjumped","playedrangeschanged"].forEach((e=>{this.playbackWatcher_.on(e,(e=>{this.player_.trigger((0,p.default)({},e))}))}))}}const wl={name:"videojs-http-streaming",VERSION:dl,canHandleSource(e,t={}){const i=Xn(Bn.options,t);return wl.canPlayType(e.type,i)},handleSource(e,t,i={}){const s=Xn(Bn.options,i);return t.vhs=new Sl(e,t,s),t.vhs.xhr=$r(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const i=(0,_.simpleTypeFromSourceType)(e);if(!i)return"";const s=wl.getOverrideNative(t);return!cl.supportsTypeNatively(i)||s?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,i=!(Bn.browser.IS_ANY_SAFARI||Bn.browser.IS_IOS),{overrideNative:s=i}=t;return s}};(0,g.browserSupportsCodec)("avc1.4d400d,mp4a.40.2")&&Bn.getTech("Html5").registerSourceHandler(wl,0),Bn.VhsHandler=Sl,Bn.VhsSourceHandler=wl,Bn.Vhs=cl,Bn.use||Bn.registerComponent("Vhs",cl),Bn.options.vhs=Bn.options.vhs||{},Bn.getPlugin&&Bn.getPlugin("reloadSourceOnError")||Bn.registerPlugin("reloadSourceOnError",ul)},
vendor: 484 bytes, line 2
2"./node_modules/videojs-vtt.js/lib/browser-index.js":(e,t,i)=>{var s=i("./node_modules/global/window.js"),n=e.exports={WebVTT:i("./node_modules/videojs-vtt.js/lib/vtt.js"),VTTCue:i("./node_modules/videojs-vtt.js/lib/vttcue.js"),VTTRegion:i("./node_modules/videojs-vtt.js/lib/vttregion.js")};s.vttjs=n,s.WebVTT=n.WebVTT;var r=n.VTTCue,o=n.VTTRegion,a=s.VTTCue,l=s.VTTRegion;n.shim=function(){s.VTTCue=r,s.VTTRegion=o},n.restore=function(){s.VTTCue=a,s.VTTRegion=l},s.VTTCue||n.shim()},
vendor: 15,368 bytes, line 2
2"./node_modules/videojs-vtt.js/lib/vtt.js":(e,t,i)=>{var s=i("./node_modules/global/document.js"),n=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}}();function r(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(e){function t(e,t,i,s){return 3600*(0|e)+60*(0|t)+(0|i)+(0|s)/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 a(){this.values=n(null)}function l(e,t,i,s){var n=s?e.split(s):[e];for(var r in n)if("string"==typeof n[r]){var o=n[r].split(i);if(2===o.length)t(o[0].trim(),o[1].trim())}}function u(e,t,i){var s=e;function n(){var t=o(e);if(null===t)throw new r(r.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=n(),u(),"--\x3e"!==e.substr(0,3))throw new r(r.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);e=e.substr(3),u(),t.endTime=n(),u(),function(e,t){var s=new a;l(e,(function(e,t){switch(e){case"region":for(var n=i.length-1;n>=0;n--)if(i[n].id===t){s.set(e,i[n].region);break}break;case"vertical":s.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),o=r[0];s.integer(e,o),s.percent(e,o)&&s.set("snapToLines",!1),s.alt(e,o,["auto"]),2===r.length&&s.alt("lineAlign",r[1],["start","center","end"]);break;case"position":r=t.split(","),s.percent(e,r[0]),2===r.length&&s.alt("positionAlign",r[1],["start","center","end"]);break;case"size":s.percent(e,t);break;case"align":s.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=s.get("region",null),t.vertical=s.get("vertical","");try{t.line=s.get("line","auto")}catch(e){}t.lineAlign=s.get("lineAlign","start"),t.snapToLines=s.get("snapToLines",!0),t.size=s.get("size",100);try{t.align=s.get("align","center")}catch(e){t.align=s.get("align","middle")}try{t.position=s.get("position","auto")}catch(e){t.position=s.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=s.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}r.prototype=n(Error.prototype),r.prototype.constructor=r,r.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.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 s=0;s<i.length;++s)if(t===i[s]){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 d=s.createElement&&s.createElement("textarea"),c={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 s(e,t){return!f[t.localName]||f[t.localName]===e.localName}function n(t,i){var s=c[t];if(!s)return null;var n=e.document.createElement(s),r=p[t];return r&&i&&(n[r]=i.trim()),n}for(var r,a,l=e.document.createElement("div"),u=l,m=[];null!==(r=i());)if("<"!==r[0])u.appendChild(e.document.createTextNode((a=r,d.innerHTML=a,a=d.textContent,d.textContent="",a)));else{if("/"===r[1]){m.length&&m[m.length-1]===r.substr(2).replace(">","")&&(m.pop(),u=u.parentNode);continue}var g,_=o(r.substr(1,r.length-2));if(_){g=e.document.createProcessingInstruction("timestamp",_),u.appendChild(g);continue}var y=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=n(y[1],y[3])))continue;if(!s(u,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 s=t?"background-color":"color",n=h[i];g.style[s]=n}})),g.className=b.join(" ")}m.push(y[1]),u.appendChild(g),u=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 _(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 s(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function n(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var r=i.match(/^.*(\n|\r)/);return r?(e.length=0,r[0]):i}return"ruby"===t.tagName?n(e):t.childNodes?(s(e,t),n(e)):void 0}for(s(t,e);i=n(t);)for(var r=0;r<i.length;r++)if(_(i.charCodeAt(r)))return"rtl";return"ltr"}function b(){}function v(e,t,i){b.call(this),this.cue=t,this.cueDiv=m(e,t.text);var s={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(s,this.cueDiv),this.div=e.document.createElement("div"),s={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(s),this.div.appendChild(this.cueDiv);var n=0;switch(t.positionAlign){case"start":case"line-left":n=t.position;break;case"center":n=t.position-t.size/2;break;case"end":case"line-right":n=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(n,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(n,"%"),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,s,n;if(e.div){i=e.div.offsetHeight,s=e.div.offsetWidth,n=e.div.offsetTop;var r=(r=e.div.childNodes)&&(r=r[0])&&r.getClientRects&&r.getClientRects();e=e.div.getBoundingClientRect(),t=r?Math.max(r[0]&&r[0].height||0,e.height/r.length):0}this.left=e.left,this.right=e.right,this.top=e.top||n,this.height=e.height||i,this.bottom=e.bottom||n+(e.height||i),this.width=e.width||s,this.lineHeight=void 0!==t?t:e.lineHeight}function S(e,t,i,s){var n=new T(t),r=t.cue,o=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,s=0,n=0;n<i.length&&i[n]!==t;n++)"showing"===i[n].mode&&s++;return-1*++s}(r),a=[];if(r.snapToLines){var l;switch(r.vertical){case"":a=["+y","-y"],l="height";break;case"rl":a=["+x","-x"],l="width";break;case"lr":a=["-x","+x"],l="width"}var u=n.lineHeight,d=u*Math.round(o),c=i[l]+u,h=a[0];Math.abs(d)>c&&(d=d<0?-1:1,d*=Math.ceil(c/u)*u),o<0&&(d+=""===r.vertical?i.height:i.width,a=a.reverse()),n.move(h,d)}else{var p=n.lineHeight/i.height*100;switch(r.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(r.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}a=["+y","-x","+x","-y"],n=new T(t)}var f=function(e,t){for(var n,r=new T(e),o=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(i,t[a])||e.within(i)&&e.overlapsAny(s);)e.move(t[a]);if(e.within(i))return e;var l=e.intersectPercentage(i);o>l&&(n=new T(e),o=l),e=new T(r)}return n||r}(n,a);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},v.prototype=n(b.prototype),v.prototype.constructor=v,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,s=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||s,height:e.height||t,bottom:e.bottom||s+(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 s=e.document.createElement("div");if(s.style.position="absolute",s.style.left="0",s.style.right="0",s.style.top="0",s.style.bottom="0",s.style.margin="1.5%",i.appendChild(s),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var n=[],r=T.getSimpleBoxPosition(s),o={font:Math.round(.05*r.height*100)/100+"px sans-serif"};!function(){for(var i,a,l=0;l<t.length;l++)a=t[l],i=new v(e,a,o),s.appendChild(i.div),S(0,i,r,n),a.displayState=i.div,n.push(T.getSimpleBoxPosition(i))}()}else for(var a=0;a<t.length;a++)s.appendChild(t[a].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 r))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 s=e.substr(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.substr(i),s}function s(e){e.match(/X-TIMESTAMP-MAP/)?l(e,(function(e,i){if("X-TIMESTAMP-MAP"===e)!function(e){var i=new a;l(e,(function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",o(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 a;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 s=t.split(",");if(2!==s.length)break;var n=new a;if(n.percent("x",s[0]),n.percent("y",s[1]),!n.has("x")||!n.has("y"))break;i.set(e+"X",n.get("x")),i.set(e+"Y",n.get("y"));break;case"scroll":i.alt(e,t,["up"])}}),/=/,/\s/),i.has("id")){var s=new(t.vttjs.VTTRegion||t.window.VTTRegion);s.width=i.get("width",100),s.lines=i.get("lines",3),s.regionAnchorX=i.get("regionanchorX",0),s.regionAnchorY=i.get("regionanchorY",100),s.viewportAnchorX=i.get("viewportanchorX",0),s.viewportAnchorY=i.get("viewportanchorY",100),s.scroll=i.get("scroll",""),t.onregion&&t.onregion(s),t.regionList.push({id:i.get("id"),region:s})}}(i)}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var n;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var d=(n=i()).match(/^WEBVTT([ \t].*)?$/);if(!d||!d[0])throw new r(r.Errors.BadSignature);t.state="HEADER"}for(var c=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(c?c=!1:n=i(),t.state){case"HEADER":/:/.test(n)?s(n):n||(t.state="ID");continue;case"NOTE":n||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){t.state="NOTE";break}if(!n)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===n.indexOf("--\x3e")){t.cue.id=n;continue}case"CUE":try{u(n,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!==n.indexOf("--\x3e");if(!n||h&&(c=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=n.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":n||(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 r(r.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=w},
vendor: 2,645 bytes, line 2
2"./node_modules/videojs-vtt.js/lib/vttcue.js":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 s(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}function n(e,i,n){this.hasBeenReset=!1;var r="",o=!1,a=e,l=i,u=n,d=null,c="",h=!0,p="auto",f="start",m="auto",g="auto",_=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(e){r=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=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 u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},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.");c=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=s(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=s(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return _},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");_=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=s(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}n.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=n},
vendor: 1,311 bytes, line 2
2"./node_modules/videojs-vtt.js/lib/vttregion.js":e=>{var t={"":!0,up:!0};function i(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,s=3,n=0,r=100,o=0,a=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 s},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");s=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!i(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!i(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!i(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!i(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=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}}})}},
2"./src/js/custom/component-library-initialization.js":()=>{!function(e,t){"use strict";t.res=t.res||{},t.res.datePicker=t.res.datePicker||{format:"dd/MM/yyyy",calendars:{},getDate:function(e){return e.parent(".form-group").find("input.it-date-datepicker").val()}},t.behaviors.componentLibraryInitialization={attach:function(i,s){const n=e(i);n.find('[data-toggle="tooltip"]').tooltip(),n.find(".it-date-datepicker").datepicker({inputFormat:[t.res.datePicker.format],outputFormat:t.res.datePicker.format}),n.find(".datepicker-calendar").on("ab.datepicker.opening",(function(i){const s=e(i.currentTarget);t.res.datePicker.calendars[s.attr("id")]=t.res.datePicker.getDate(s)})).on("ab.datepicker.closed",(function(i){const s=e(i.currentTarget);t.res.datePicker.calendars[s.attr("id")]!==t.res.datePicker.getDate(s)&&e(this).parents("form").find("[data-bef-auto-submit-click]").click()}));var r=e(".path-frontpage #it-block-inprimopiano .owl-carousel");r&&r.owlCarousel({nav:!0,loop:!1,margin:24,items:1,navText:['<svg class="icon"><use xlink:href="/themes/custom/res/assets/icons/sprite.svg#it-chevron-left"></use></svg>','<svg class="icon"><use xlink:href="/themes/custom/res/assets/icons/sprite.svg#it-chevron-right"></use></svg>'],navSpeed:300,smartSpeed:500,dotsSpeed:200,navElement:"button",dotElement:"button",controlsAriaHidden:!0,mouseDrag:!0,touchDrag:!0,dots:!1,slideBy:"page",stagePadding:0,responsive:{0:{nav:!1,dots:!0,items:1,stagePadding:0,margin:24},768:{nav:!0,dots:!0,stagePadding:0,items:1,margin:24},992:{nav:!0,dots:!0,items:1,stagePadding:0,margin:0},1200:{nav:!0,dots:!0,stagePadding:0,items:1,margin:0}},onInitialized:function(t){e(t.target).find(".owl-dot").each((function(t){e(this).attr("aria-labelledby","owl-dot-"+t)}))}})}},e(".layout-header-subheader-gallery .second-column div div div a").html('<svg width="21" height="22" viewBox="0 0 21 22" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="1.53906" y="1.625" width="12.5" height="13.75" rx="0.75" stroke="#0048ad" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5391 4.125V17.25C16.5391 17.5952 16.2592 17.875 15.9141 17.875H4.03906" stroke="#0048ad" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M19.0391 6.625V19.75C19.0391 20.0952 18.7592 20.375 18.4141 20.375H6.53906" stroke="#0048ad" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.0391 11.625H1.53906" stroke="#0048ad" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M5.28906 11.6248L8.7499 6.68144C8.97012 6.36694 9.32266 6.1711 9.70603 6.15028C10.0894 6.12946 10.4611 6.28598 10.7141 6.57477L14.0391 10.3748" stroke="#0048ad" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.66406 4.4375C4.83665 4.4375 4.97656 4.57741 4.97656 4.75C4.97656 4.92259 4.83665 5.0625 4.66406 5.0625C4.49147 5.0625 4.35156 4.92259 4.35156 4.75C4.35156 4.57741 4.49147 4.4375 4.66406 4.4375" stroke="#0048ad" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>Scarica la Gallery');var i='<svg class="icon icon-sm"><use href="/themes/custom/res/assets/icons/sprite.svg#it-arrow-right" class=" it-arrow-right"></use></svg>';e(".card-infografica .read-more .text").append(i),e(".card-video .read-more .text").append(i);e(".link-polls a").append('<svg class="icon icon-md icon-primary"><use href="/themes/custom/res/assets/icons/sprite.svg#it-arrow-right" class=" it-arrow-right"></use></svg>'),e((function(){e(".owl-loaded")&&e(['data-block-plugin-id="field_block:node:generic_page:field_p_body"']).length&&window.dispatchEvent(new Event("resize"))}))}(jQuery,Drupal)},
2"./src/js/custom/custom.js":(e,t,i)=>{"use strict";i.r(t);i("./src/js/custom/facets-block.js"),i("./src/js/custom/link-target.js"),i("./src/js/custom/forms.js"),i("./src/js/custom/isIe.js")},
2"./src/js/custom/facets-block.js":()=>{!function(e){"use strict";let t=null;const i="data-drupal-facet-id",s="facetsStatus",n="aria-expanded",r=".facets-collapse",o=".facets-widget-";function a(o,a,l){a.on(o,(function(){!function(t,i){e(t).next(r).attr(n,i)}(this,l),e(this).attr(n,l),function(s){const r=e(s).closest("["+i+"]").attr(i),o=e(s).attr(n);t[r]=o}(this),sessionStorage.setItem(s,JSON.stringify(t))}))}Drupal.behaviors.facetsBlock={attach:function(l){const u=sessionStorage.getItem(s),d=e(l).find(o),c=e(l).find(".facet-item--expanded");if(d.length&&c.length){c.not("["+i+"]").each((function(){var t=e(this).children("a").first().data("drupal-facet-item-id");t&&e(this).attr(i,t)})),d.addClass("collapse").attr(n,!1),t=JSON.parse(u)||{};for(const s in t)if(t.hasOwnProperty(s)){const a="true"===t[s]?"collapse show":"collapse";e("["+i+'="'+s+'"]').find(o).addClass(a).attr(n,t[s]).next(r).attr(n,t[s])}c.each((function(){if(e(this).find(r).length)return;const t=e(this).find(o);e(this).append(e("<button></button>",{class:"facets-collapse","aria-expanded":"false"})),e(this).find(r).on("click",(function(){t.collapse("toggle")})),a("shown.bs.collapse",t,!0),a("hidden.bs.collapse",t,!1)}))}}}}(jQuery,Drupal)},
2"./src/js/custom/forms.js":()=>{var e;e=jQuery,Drupal,e((function(){"use strict";const t='input[type="text"],input[type="password"],input[type="email"],input[type="email"],input[type="url"],input[type="tel"],input[type="number"],input[type="search"],textarea',s='input[type="file"]',n=t=>{const i=e("label[for='"+t.attr("id")+"']:not(.active)");if(i&&i.length){let s=i[0].offsetWidth>t[0].offsetWidth-20?t[0].offsetWidth:"auto";e(i[0]).css("width",s)}};window.addEventListener("load",(function(){const t=e(".needs-validation").find(".form-item--error");t.length&&t.closest(".needs-validation").addClass("was-validated"),e("fieldset.radios--wrapper.error").find(".invalid-feedback").css("display","block")}),!1),e(document).on("focus",t,(t=>{const i="label[for='"+e(t.target).attr("id")+"']";e(i).addClass("active");const s=e(i);s&&s.length&&e(s[0]).css("width","auto")})).on("blur",t,(t=>{const i=e(t.target),s=!i.val(),r=!i.attr("placeholder");s&&r&&(e("label[for='"+i.attr("id")+"']").removeClass("active"),n(i))})).on("change",t,(t=>{const i=e(t.target);r(i),o(i)})).on("blur",s,(t=>{const i=e(t.target);e("label[for='"+i.attr("id")+"']").addClass("active")})).on("change",s,(t=>{const s=e(t.target);var n=t.currentTarget.files.length,r="",o="";for(i=0;i<n;i++)fileSize=parseInt(t.currentTarget.files[i].size,10)/1024,filesize=Math.round(fileSize),r=r+t.currentTarget.files[i].name+" ("+filesize+"kb); ";n>1&&(o=n+" file da caricare: "),e("label[for='"+s.attr("id")+"']label[class='form-file-name']").text(o+r)}));const r=t=>{const i=e("label[for='"+t.attr("id")+"']"),s=t.val().length,n=!!t.attr("placeholder");s||n?i.addClass("active"):i.removeClass("active")},o=e=>
2{if(e.hasClass("validate")){const t=e.val(),i=!t.length,s=!e[0].validity.badInput;if(i&&s)e.removeClass("valid").removeClass("invalid");else{const i=e.is(":valid"),s=Number(e.attr("length"))||0;i&&(!s||s>t.length)?e.removeClass("invalid").addClass("valid"):e.removeClass("valid").addClass("invalid")}}},a=()=>{e("body").find(t).removeClass("valid invalid").each(((t,i)=>{const s=e(i),r=!!s.val(),o=!!s.attr("placeholder");r||o?(o||r)&&e("label[for='"+s.attr("id")+"']").addClass("active"):(e("label[for='"+s.attr("id")+"']").removeClass("active"),n(s))}))};e(window).on("resize",(function(){e(t).each(((t,i)=>{let s=e(i);n(s)}))})),a(),e(document).on("changed.bs.form-control",a)}))},
2"./src/js/custom/isIe.js":()=>{window.isIe=function(){return window.navigator.userAgent.indexOf("MSIE ")>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)}},
2"./src/js/custom/link-target.js":()=>{!function(e){"use strict";e("a").filter((function(){return this.hostname&&this.hostname!==location.hostname})).addClass("is-external").attr({rel:"noopener",target:"_blank"})}(jQuery,Drupal)},"?34aa":()=>{},
vendor: 316 bytes, line 2
2"./node_modules/@babel/runtime/helpers/esm/extends.js":(e,t,i)=>{"use strict";function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},s.apply(this,arguments)}i.r(t),i.d(t,{default:()=>s})}
2},t={};function s(i){var n=t[i];if(void 0!==n)return n.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";s.r(n);var e=s("./node_modules/bootstrap-italia/src/js/load-plugin.js"),t=s("./node_modules/bootstrap-italia/src/js/plugins/init.js"),i=s("./node_modules/bootstrap-italia/src/js/icons.js"),r=s("./node_modules/bootstrap-italia/dist/bootstrap-italia.esm.js");s("./src/js/custom/component-library-initialization.js"),s("./src/js/custom/custom.js"),s("./src/scss/theme.scss");(0,e.loadPlugin)(i),(0,t.default)(),window.bootstrap=r})()})();
3//# sourceMappingURL=bundle.js.map

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.