https://www.provincia.rovigo.it/node_modules/bootstrap-italia/dist/js/bootstrap-italia.bundle.min.js
1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";!function(){const e={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const e="data-focus-mouse",t="focus--mouse";class i{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",(i=>{this._usingMouse&&i.target&&(i.target.classList.add(t),i.target.setAttribute(e,!0))})),document.addEventListener("focusout",(i=>{i.target&&(i.target.classList.remove(t),i.target.setAttribute(e,!1))}))}}new i;const n=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new i,window.BOOTSTRAP_ITALIA_VERSION="2.12.1")};n();const s={ck3:{}},r={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")}},o="splide",a=`data-${o}`,l={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function c(e){e.length=0}function u(e){return!f(e)&&"object"==typeof e}function h(e){return Array.isArray(e)}function d(e){return"string"==typeof e}function p(e){return void 0===e}function f(e){return null===e}function m(e){return e instanceof HTMLElement}function g(e){return h(e)?e:[e]}function y(e,t){g(e).forEach(t)}function _(e,t){return e.indexOf(t)>-1}function v(e,t){return e.push(...g(t)),e}const b=Array.prototype;function T(e,t,i){return b.slice.call(e,t,i)}function w(e,t,i){e&&y(t,(t=>{t&&e.classList[i?"add":"remove"](t)}))}function S(e,t){w(e,d(t)?t.split(" "):t,!0)}function E(e,t){y(t,e.appendChild.bind(e))}function C(e,t){y(e,(e=>{const i=t.parentNode;i&&i.insertBefore(e,t)}))}function k(e,t){return m(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function x(e,t){return e?T(e.children).filter((e=>k(e,t))):[]}function I(e,t){return t?x(e,t)[0]:e.firstElementChild}function A(e,t,i){if(e){let n=Object.keys(e);n=i?n.reverse():n;for(let i=0;i<n.length;i++){const s=n[i];if("__proto__"!==s&&!1===t(e[s],s))break}}return e}function L(e){return T(arguments,1).forEach((t=>{A(t,((i,n)=>{e[n]=t[n]}))})),e}function O(e,t){return A(t,((t,i)=>{h(t)?e[i]=t.slice():u(t)?e[i]=O(u(e[i])?e[i]:{},t):e[i]=t})),e}function P(e,t){e&&y(t,(t=>{e.removeAttribute(t)}))}function D(e,t,i){u(t)?A(t,((t,i)=>{D(e,i,t)})):f(i)?P(e,t):e.setAttribute(t,String(i))}function M(e,t,i){const n=document.createElement(e);return t&&(d(t)?S(n,t):D(n,t)),i&&E(i,n),n}function N(e,t,i){if(p(i))return getComputedStyle(e)[t];if(!f(i)){const{style:n}=e;i=`${i}`,n[t]!==i&&(n[t]=i)}}function R(e,t){N(e,"display",t)}function F(e,t){return e.getAttribute(t)}function B(e,t){return e&&e.classList.contains(t)}function U(e){return e.getBoundingClientRect()}function j(e){y(e,(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}))}function $(e){return I((new DOMParser).parseFromString(e,"text/html").body)}function q(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function H(e,t){return e&&e.querySelector(t)}function V(e,t){return T(e.querySelectorAll(t))}function z(e,t){w(e,t,!1)}function W(e){return d(e)?e:e?`${e}px`:""}function G(e,t=""){if(!e)throw new Error(`[${o}] ${t}`)}function X(e){setTimeout(e)}const K=()=>{};function Y(e){return requestAnimationFrame(e)}const{min:Q,max:J,floor:Z,ceil:ee,abs:te}=Math;function ie(e,t,i,n){const s=Q(t,i),r=J(t,i);return n?s<e&&e<r:s<=e&&e<=r}function ne(e,t,i){const n=Q(t,i),s=J(t,i);return Q(J(n,e),s)}function se(e){return+(e>0)-+(e<0)}function re(e,t){return y(t,(t=>{e=e.replace("%s",`${t}`)})),e}function oe(e){return e<10?`0${e}`:`${e}`}const ae={};const le="mounted",ce="ready",ue="move",he="moved",de="shifted",pe="click",fe="visible",me="hidden",ge="slide:keydown",ye="refresh",_e="updated",ve="resize",be="resized",Te="repositioned",we="scroll",Se="scrolled",Ee="destroy",Ce="navigation:mounted",ke="lazyload:loaded";function xe(e){const{event:t}=e,i={};let n=[];function s(e,t,i){r(e,t,((e,t)=>
1{n=n.filter((n=>!!(n[0]!==e||n[1]!==t||i&&n[2]!==i)||(e.removeEventListener(t,n[2],n[3]),!1)))}))}function r(e,t,i){y(e,(e=>{e&&t.split(" ").forEach(i.bind(null,e))}))}function o(){n=n.filter((e=>s(e[0],e[1]))),t.offBy(i)}return t.on(Ee,o,i),{on:function(e,n,s){t.on(e,n,i,s)},off:function(e){t.off(e,i)},emit:t.emit,bind:function(e,t,i,s){r(e,t,((e,t)=>{n.push([e,t,i,s]),e.addEventListener(t,i,s)}))},unbind:s,destroy:o}}function Ie(e,t,i,n){const{now:s}=Date;let r,o,a=0,l=!0,c=0;function u(){if(!l){const o=s()-r;if(o>=e?(a=1,r=s()):a=o/e,i&&i(a),1===a&&(t(),n&&++c>=n))return h();Y(u)}}function h(){l=!0}function d(){cancelAnimationFrame(o),a=0,o=0,l=!0}return{start:function(t){!t&&d(),r=s()-(t?a*e:0),l=!1,Y(u)},rewind:function(){r=s(),a=0,i&&i(a)},pause:h,cancel:d,set:function(t){e=t},isPaused:function(){return l}}}function Ae(e,t){let i;return function(){i||(i=Ie(0,(()=>{e.apply(this,arguments),i=null}),null,1),i.start())}}const Le="ttb",Oe={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"]};const Pe=o,De=`${o}__slider`,Me=`${o}__track`,Ne=`${o}__list`,Re=`${o}__slide`,Fe=`${Re}--clone`,Be=`${Re}__container`,Ue=`${o}__arrows`,je=`${o}__arrow`,$e=`${je}--prev`,qe=`${je}--next`,He=`${o}__pagination`,Ve=`${o}__progress`,ze=`${Ve}__bar`,We=`${o}__autoplay`,Ge=`${o}__play`,Xe=`${o}__pause`,Ke="is-active",Ye="is-prev",Qe="is-next",Je="is-visible",Ze="is-loading",et=[Ke,Je,Ye,Qe,Ze],tt={slide:Re,clone:Fe,arrows:Ue,arrow:je,prev:$e,next:qe,pagination:He,page:`${He}__page`,spinner:`${o}__spinner`};const it="role",nt="aria-controls",st="aria-current",rt="aria-label",ot="aria-hidden",at="tabindex",lt="aria-orientation",ct=[it,nt,st,rt,ot,lt,at,"disabled"],ut="slide",ht="loop",dt="fade";function pt(e,t,i,n){const{on:s,emit:r,bind:o,destroy:a}=xe(e),{Components:l,root:c,options:u}=e,{isNavigation:h,updateOnMove:d}=u,{resolve:p}=l.Direction,f=F(n,"style"),m=i>-1,g=I(n,`.${Be}`),y=u.focusableNodes&&V(n,u.focusableNodes);let _;function v(){const s=m?i:t,r=re(u.i18n.slideX,s+1),o=e.splides.map((e=>e.splide.root.id)).join(" ");D(n,rt,r),D(n,nt,o),D(n,it,"menuitem"),S(E())}function b(){_||T()}function T(){if(!_){const{index:i}=e;S(E()),function(e){const t=!e&&(!E()||m);D(n,ot,t||null),D(n,at,!t&&u.slideFocus?0:null),y&&y.forEach((e=>{D(e,at,t?-1:null)}));e!==B(n,Je)&&(w(n,Je,e),r(e?fe:me,C))}(function(){if(e.is(dt))return E();const t=U(l.Elements.track),i=U(n),s=p("left"),r=p("right");return Z(t[s])<=ee(i[s])&&Z(i[r])<=ee(t[r])}()),w(n,Ye,t===i-1),w(n,Qe,t===i+1)}}function S(e){e!==B(n,Ke)&&(w(n,Ke,e),h&&D(n,st,e||null),r(e?"active":"inactive",C))}function E(){const{index:n}=e;return n===t||u.cloneStatus&&n===i}const C={index:t,slideIndex:i,slide:n,container:g,isClone:m,mount:function(){m||(n.id=`${c.id}-slide${oe(t+1)}`),o(n,"click keydown",(e=>{r("click"===e.type?pe:ge,C,e)})),s([ye,Te,de,he,Se],T),s(Ce,v),d&&s(ue,b)},destroy:function(){_=!0,a(),z(n,et),P(n,ct),D(n,"style",f)},update:T,style:function(e,t,i){N(i&&g||n,e,t)},isWithin:function(i,n){let s=te(i-t);return m||!u.rewind&&!e.is(ht)||(s=Q(s,e.length-s)),s<=n}};return C}const ft=`${a}-interval`;const mt={passive:!1,capture:!0},gt="touchmove mousemove",yt="touchend touchcancel mouseup";const _t=["Left","Right","Up","Down"],vt="keydown";const bt=`${a}-lazy`,Tt=`${bt}-srcset`,wt=`[${bt}], [${Tt}]`;const St=[" ","Enter","Spacebar"];var Et=Object.freeze({__proto__:null,Options:function(e,t,i){const n=Ae(c);let s,r,o;function l(e){e&&removeEventListener("resize",n)}function c(){const t=(n=e=>e[1].matches,T(r).filter(n)[0]||[]);var n;t[0]!==o&&function(t){const n=i.breakpoints[t]||s;n.destroy?(e.options=s,e.destroy("completely"===n.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=n)}(o=t[0])}return{setup:function(){try{O(i,JSON.parse(F(e.root,a)))}catch(e){G(!1,e.message)}s=O({},i);const{breakpoints:t}=i;if(t){const e="min"===i.mediaQuery;r=Object.keys(t).sort(((t,i)=>e?+i-+t:+t-+i)).map((t=>[t,matchMedia(`(${e?"min":"max"}-width:${t}px)`)])),c()}},mount:function(){r&&addEventListener("resize",n)},destroy:l}},Direction:function(e,t,i){return{resolve:function(e,t){const{direction:n}=i;return Oe[e]["rtl"!==n||t?n===Le?0:-1:1]||e},orient:function(e){return e*("rtl"===i.direction?1:-1)}}},Elements:function(e,t,i){const{on:n}=xe(e),{root:s}=e,r={},a=[];let l,u,h,d;function p(){!function(){u=I(s,`.${De}`),h=H(s,`.${Me}`),d=I(h,`.${Ne}`),G(h&&d,"A track/list element is missing."),v(a,x(d,`.${Re}:not(.${Fe})`));const e=y(`.${We}`),t=y(`.${Ue}`);L(r,{root:s,slider:u,track:h,list:d,slides:a,arrows:t,autoplay:e,prev:H(t,`.${$e}`),next:H(t,`.${qe}`),bar:H(y(`.${Ve}`),`.${ze}`),play:H(e,`.${Ge}`),pause:H(e,`.${Xe}`)})}(),function(){const e=s.id||(t=o,`${t}${oe(ae[t]=(ae[t]||0)+1)}`);var t;s.id=e,h.id=h.id||`${e}-track`,d.id=d.id||`${e}-list`}(),S(s,l=_())}
1function f(){[s,h,d].forEach((e=>{P(e,"style")})),c(a),z(s,l)}function m(){f(),p()}function g(){z(s,l),S(s,l=_())}function y(e){return I(s,e)||I(u,e)}function _(){return[`${Pe}--${i.type}`,`${Pe}--${i.direction}`,i.drag&&`${Pe}--draggable`,i.isNavigation&&`${Pe}--nav`,Ke]}return L(r,{setup:p,mount:function(){n(ye,m,8),n(_e,g)},destroy:f})},Slides:function(e,t,i){const{on:n,emit:s,bind:r}=xe(e),{slides:o,list:a}=t.Elements,l=[];function u(){o.forEach(((e,t)=>{f(e,t,-1)}))}function h(){b((e=>{e.destroy()})),c(l)}function p(){h(),u()}function f(t,i,n){const s=pt(e,i,n,t);s.mount(),l.push(s)}function v(e){return e?T((e=>!e.isClone)):l}function b(e,t){v(t).forEach(e)}function T(e){return l.filter("function"==typeof e?e:t=>d(e)?k(t.slide,e):_(g(e),t.index))}return{mount:function(){u(),n(ye,p),n([le,ye],(()=>{l.sort(((e,t)=>e.index-t.index))}))},destroy:h,update:function(){b((e=>{e.update()}))},register:f,get:v,getIn:function(e){const{Controller:n}=t,s=n.toIndex(e),r=n.hasFocus()?1:i.perPage;return T((e=>ie(e.index,s,s+r-1)))},getAt:function(e){return T(e)[0]},add:function(e,t){y(e,(e=>{if(d(e)&&(e=$(e)),m(e)){const n=o[t];n?C(e,n):E(a,e),S(e,i.classes.slide),function(e,t){const i=V(e,"img");let{length:n}=i;n?i.forEach((e=>{r(e,"load error",(()=>{--n||t()}))})):t()}(e,s.bind(null,ve))}})),s(ye)},remove:function(e){j(T(e).map((e=>e.slide))),s(ye)},forEach:b,filter:T,style:function(e,t,i){b((n=>{n.style(e,t,i)}))},getLength:function(e){return e?o.length:l.length},isEnough:function(){return l.length>i.perPage}}},Layout:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{Slides:o}=t,{resolve:a}=t.Direction,{root:l,track:c,list:h}=t.Elements,{getAt:d}=o;let p,f;function m(){f=null,p=i.direction===Le,N(l,"maxWidth",W(i.width)),N(c,a("paddingLeft"),y(!1)),N(c,a("paddingRight"),y(!0)),g()}function g(){const e=U(l);f&&f.width===e.width&&f.height===e.height||(N(c,"height",function(){let e="";p&&(e=_(),G(e,"height or heightRatio is missing."),e=`calc(${e} - ${y(!1)} - ${y(!0)})`);return e}()),o.style(a("marginRight"),W(i.gap)),o.style("width",(i.autoWidth?"":W(i.fixedWidth)||(p?"":v()))||null),o.style("height",W(i.fixedHeight)||(p?i.autoHeight?"":v():_())||null,!0),f=e,r(be))}function y(e){const{padding:t}=i,n=a(e?"right":"left");return t&&W(t[n]||(u(t)?0:t))||"0px"}function _(){return W(i.height||U(h).width*i.heightRatio)}function v(){const e=W(i.gap);return`calc((100%${e&&` + ${e}`})/${i.perPage||1}${e&&` - ${e}`})`}function b(e,t){const i=d(e);if(i){const e=U(i.slide)[a("right")],n=U(h)[a("left")];return te(e-n)+(t?0:T())}return 0}function T(){const e=d(0);return e&&parseFloat(N(e.slide,a("marginRight")))||0}return{mount:function(){m(),s(window,"resize load",Ae(r.bind(this,ve))),n([_e,ye],m),n(ve,g)},listSize:function(){return U(h)[a("width")]},slideSize:function(e,t){const i=d(e||0);return i?U(i.slide)[a("width")]+(t?0:T()):0},sliderSize:function(){return b(e.length-1,!0)-b(-1,!0)},totalSize:b,getPadding:function(e){return parseFloat(N(c,a("padding"+(e?"Right":"Left"))))||0}}},Clones:function(e,t,i){const{on:n,emit:s}=xe(e),{Elements:r,Slides:o}=t,{resolve:a}=t.Direction,l=[];let u;function h(){(u=g())&&(!function(t){const n=o.get().slice(),{length:s}=n;if(s){for(;n.length<t;)v(n,n);v(n.slice(-t),n.slice(0,t)).forEach(((a,c)=>{const u=c<t,h=function(t,n){const s=t.cloneNode(!0);return S(s,i.classes.clone),s.id=`${e.root.id}-clone${oe(n+1)}`,s}(a.slide,c);u?C(h,n[0].slide):E(r.list,h),v(l,h),o.register(h,c-t+(u?0:s),a.index)}))}}(u),s(ve))}function p(){j(l),c(l)}function f(){p(),h()}function m(){u<g()&&s(ye)}function g(){let{clones:t}=i;if(e.is(ht)){if(!t){const n=function(e,t){if(d(t)){const i=M("div",{style:`width: ${t}; position: absolute;`},e);t=U(i).width,j(i)}return t}(r.list,i[a("fixedWidth")]);t=(n&&ee(U(r.track)[a("width")]/n)||i[a("autoWidth")]&&e.length||i.perPage)*(i.drag?(i.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){h(),n(ye,f),n([_e,ve],m)},destroy:p}},Move:function(e,t,i){const{on:n,emit:s}=xe(e),{slideSize:r,getPadding:o,totalSize:a,listSize:l,sliderSize:c}=t.Layout,{resolve:u,orient:h}=t.Direction,{list:d,track:f}=t.Elements;let m;function g(){S()||(t.Scroll.cancel(),y(e.index),s(Te))}function y(e){_(b(e,!0))}function _(t,i){if(!e.is(dt)){const n=i?t:function(t){if(e.is(ht)){const e=h(t-T()),i=E(!1,t)&&e<0,n=E(!0,t)&&e>0;(i||n)&&(t=v(t,n))}return t}(t);d.style.transform=`translate${u("X")}(${n}px)`,t!==n&&s(de)}}function v(e,t){const i=e-w(t),n=c();return e-=h(n*(ee(te(i)/n)||1))*(t?1:-1)}function b(t,n){const s=h(a(t-1)-function(e){const{focus:t}=i;return"center"===t?(l()-r(e,!0))/2:+t*r(e)||0}(t));return n?function(t){i.trimSpace&&e.is(ut)&&(t=ne(t,0,h(c()-l())));return t}(s):s}function T(){const e=u("left");return U(d)[e]-U(f)[e]+h(o(!1))}function w(e){return b(e?t.Controller.getEnd():0,!!i.trimSpace)}function S(){return e.state.is(4)&&i.waitForTransition}
1function E(e,t){t=p(t)?T():t;const i=!0!==e&&h(t)<h(w(!1)),n=!1!==e&&h(t)>h(w(!0));return i||n}return{mount:function(){m=t.Transition,n([le,be,_e,ye],g)},destroy:function(){P(d,"style")},move:function(n,r,o,a){if(!S()){const{set:l}=e.state,c=T();n!==r&&(m.cancel(),_(v(c,n>r),!0)),l(4),s(ue,r,o,n),m.start(r,(()=>{l(3),s(he,r,o,n),"move"===i.trimSpace&&n!==o&&c===T()?t.Controller.go(n>o?">":"<",!1,a):a&&a()}))}},jump:y,translate:_,shift:v,cancel:function(){_(T()),m.cancel()},toIndex:function(e){const i=t.Slides.get();let n=0,s=1/0;for(let t=0;t<i.length;t++){const r=i[t].index,o=te(b(r,!0)-e);if(!(o<=s))break;s=o,n=r}return n},toPosition:b,getPosition:T,getLimit:w,isBusy:S,exceededLimit:E}},Controller:function(e,t,i){const{on:n}=xe(e),{Move:s}=t,{getPosition:r,getLimit:o}=s,{isEnough:a,getLength:l}=t.Slides,c=e.is(ht),u=e.is(ut);let h,f,m,g=i.start||0,y=g;function _(){h=l(!0),f=i.perMove,m=i.perPage,g=ne(g,0,h-1)}function v(e,i,n,r,o){const a=i?e:I(e);t.Scroll.scroll(i||n?s.toPosition(a,!0):e,r,(()=>{A(s.toIndex(s.getPosition())),o&&o()}))}function b(e){return w(!1,e)}function T(e){return w(!0,e)}function w(e,t){const i=f||(L()?1:m),n=S(g+i*(e?-1:1),g);return-1!==n||!u||(s=r(),a=o(!e),l=1,te(s-a)<l)?t?n:C(n):e?0:E();var s,a,l}function S(e,t,n){if(a()){const s=E();e<0||e>s?e=ie(0,e,t,!0)||ie(s,t,e,!0)?k(x(e)):c?f||L()?e:e<0?-(h%m||m):h:i.rewind?e<0?s:0:-1:n||e===t||(e=f?e:k(x(t)+(e<t?-1:1)))}else e=-1;return e}function E(){let e=h-m;return(L()||c&&f)&&(e=h-1),J(e,0)}function C(e){return c?a()?e%h+(e<0?h:0):-1:e}function k(e){return ne(L()?e:m*e,0,E())}function x(e){return L()||(e=ie(e,h-m,h-1)?h-1:e,e=Z(e/m)),e}function I(e){const t=s.toIndex(e);return u?ne(t,0,E()):t}function A(e){e!==g&&(y=g,g=e)}function L(){return!p(i.focus)||i.isNavigation}return{mount:function(){_(),n([_e,ye],_,9)},go:function(e,t,n){const r=function(e){let t=g;if(d(e)){const[,i,n]=e.match(/([+\-<>])(\d+)?/)||[];"+"===i||"-"===i?t=S(g+ +`${i}${+n||1}`,g,!0):">"===i?t=n?k(+n):b(!0):"<"===i&&(t=T(!0))}else t=c?e:ne(e,0,E());return t}(e);if(i.useScroll)v(r,!0,!0,i.speed,n);else{const e=C(r);e>-1&&!s.isBusy()&&(t||e!==g)&&(A(e),s.move(r,e,y,n))}},scroll:v,getNext:b,getPrev:T,getAdjacent:w,getEnd:E,setIndex:A,getIndex:function(e){return e?y:g},toIndex:k,toPage:x,toDest:I,hasFocus:L}},Arrows:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{classes:o,i18n:a}=i,{Elements:l,Controller:c}=t;let u,h=l.arrows,d=l.prev,p=l.next;const f={};function m(){if(i.arrows&&(d&&p||(h=M("div",o.arrows),d=g(!0),p=g(!1),u=!0,E(h,[d,p]),C(h,I("slider"===i.arrows&&l.slider||e.root)))),d&&p)if(f.prev)R(h,!1===i.arrows?"none":"");else{const{id:e}=l.track;D(d,nt,e),D(p,nt,e),f.prev=d,f.next=p,function(){const{go:e}=c;n([le,he,_e,ye,Se],y),s(p,"click",(()=>{e(">",!0)})),s(d,"click",(()=>{e("<",!0)}))}(),r("arrows:mounted",d,p)}}function g(e){return $(`<button class="${o.arrow} ${e?o.prev:o.next}" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="${i.arrowPath||"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"}" />`)}function y(){const t=e.index,i=c.getPrev(),n=c.getNext(),s=i>-1&&t<i?a.last:a.prev,o=n>-1&&t>n?a.first:a.next;d.disabled=i<0,p.disabled=n<0,D(d,rt,s),D(p,rt,o),r("arrows:updated",d,p,i,n)}return{arrows:f,mount:function(){m(),n(_e,m)},destroy:function(){u?j(h):(P(d,ct),P(p,ct))}}},Autoplay:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),o=Ie(i.interval,e.go.bind(e,">"),(function(e){const{bar:t}=l;t&&N(t,"width",100*e+"%"),r("autoplay:playing",e)})),{isPaused:a}=o,{Elements:l}=t;let c,u,h;function d(e){const t=e?"pause":"play",n=l[t];n&&(D(n,nt,l.track.id),D(n,rt,i.i18n[t]),s(n,"click",e?f:p))}function p(){a()&&t.Slides.isEnough()&&(o.start(!i.resetProgress),u=c=h=!1,r("autoplay:play"))}function f(e=!0){a()||(o.pause(),r("autoplay:pause")),h=e}function m(){h||(c||u?f(!1):p())}function g(){const n=t.Slides.getAt(e.index);o.set(n&&+F(n.slide,ft)||i.interval)}return{mount:function(){const{autoplay:e}=i;e&&(d(!0),d(!1),function(){const{root:e}=l;i.pauseOnHover&&s(e,"mouseenter mouseleave",(e=>
1{c="mouseenter"===e.type,m()}));i.pauseOnFocus&&s(e,"focusin focusout",(e=>{u="focusin"===e.type,m()}));n([ue,we,ye],o.rewind),n(ue,g)}(),"pause"!==e&&p())},destroy:o.cancel,play:p,pause:f,isPaused:a}},Cover:function(e,t,i){const{on:n}=xe(e);function s(e){t.Slides.forEach((t=>{const i=I(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),R(t,e?"none":"")}return{mount:function(){i.cover&&(n(ke,((e,t)=>{r(!0,e,t)})),n([le,_e,ye],s.bind(null,!0)))},destroy:function(){s(!1)}}},Scroll:function(e,t,i){const{on:n,emit:s}=xe(e),{Move:r}=t,{getPosition:o,getLimit:a,exceededLimit:l}=r;let c,u;function h(t,n,f,m){const g=o();let y=1;var _;n=n||(_=te(t-g),J(_/1.5,800)),u=f,p(),c=Ie(n,d,(n=>{const s=o(),c=(g+(t-g)*function(e){const{easingFunc:t}=i;return t?t(e):1-Math.pow(1-e,4)}(n)-o())*y;var u;r.translate(s+c),e.is(ut)&&!m&&l()&&(y*=.6,te(c)<10&&(u=l(!1),h(a(!u),600,null,!0)))}),1),s(we),c.start()}function d(){const t=o(),i=r.toIndex(t);ie(i,0,e.length-1)||r.translate(r.shift(t,i>0),!0),u&&u(),s(Se)}function p(){c&&c.cancel()}function f(){c&&!c.isPaused()&&(p(),d())}return{mount:function(){n(ue,p),n([_e,ye],f)},destroy:p,scroll:h,cancel:f}},Drag:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Move:a,Scroll:l,Controller:c}=t,{track:h}=t.Elements,{resolve:d,orient:p}=t.Direction,{getPosition:f,exceededLimit:m}=a;let g,y,_,v,b,T,w,S,E,C=!1;function x(){const{drag:e}=i;F(!e),b="free"===e}function I(e){if(!S){const{noDrag:t}=i,n=R(e),s=!t||!k(e.target,t);w=!1,!s||!n&&e.button||(a.isBusy()?q(e,!0):(E=n?h:window,_=null,v=null,r(E,gt,A,mt),r(E,yt,L,mt),a.cancel(),l.cancel(),O(e)))}}function A(t){if(v||s("drag"),v=t,t.cancelable){const n=M(t)-M(y);if(T){a.translate(g+function(t){return t/(C&&e.is(ut)?5:1)}(n));const i=N(t)-N(y)>200,r=C!==(C=m());(i||r)&&O(t),s("dragging"),w=!0,q(t)}else{let{dragMinThreshold:e}=i;e=u(e)?e:{mouse:0,touch:+e||10},T=te(n)>(R(t)?e.touch:e.mouse),D()&&q(t)}}}function L(n){o(E,gt,A),o(E,yt,L);const{index:r}=e;if(v){if(T||n.cancelable&&D()){const s=function(t){if(e.is(ht)||!C){const e=y===v&&_||y,i=M(v)-M(e),n=N(t)-N(e),s=N(t)-N(v)<200;if(n&&s)return i/n}return 0}(n),o=function(e){return f()+se(e)*Q(te(e)*(i.flickPower||600),b?1/0:t.Layout.listSize()*(i.flickMaxPages||1))}(s);b?c.scroll(o):e.is(dt)?c.go(r+p(se(s))):c.go(c.toDest(o),!0),q(n)}s("dragged")}else b||f()===a.toPosition(r)||c.go(r,!0);T=!1}function O(e){_=y,y=e,g=f()}function P(e){!S&&w&&q(e,!0)}function D(){return te(M(v)-M(y))>te(M(v,!0)-M(y,!0))}function M(e,t){return(R(e)?e.touches[0]:e)[`page${d(t?"Y":"X")}`]}function N(e){return e.timeStamp}function R(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function F(e){S=e}return{mount:function(){r(h,gt,K,mt),r(h,yt,K,mt),r(h,"touchstart mousedown",I,mt),r(h,"click",P,{capture:!0}),r(h,"dragstart",q),n([le,_e],x)},disable:F,isDragging:function(){return T}}},Keyboard:function(e,t,i){const{on:n,bind:s,unbind:r}=xe(e),{root:o}=e,{resolve:a}=t.Direction;let l,c;function u(){const{keyboard:e}=i;e&&("focused"===e?(l=o,D(o,at,0)):l=window,s(l,vt,f))}function h(){r(l,vt),m(l)&&P(l,at)}function d(){const e=c;c=!0,X((()=>{c=e}))}function p(){h(),u()}function f(t){if(!c){const{key:i}=t,n=_(_t,i)?`Arrow${i}`:i;n===a("ArrowLeft")?e.go("<"):n===a("ArrowRight")&&e.go(">")}}return{mount:function(){u(),n(_e,p),n(ue,d)},destroy:h,disable:function(e){c=e}}},LazyLoad:function(e,t,i){const{on:n,off:s,bind:r,emit:o}=xe(e),a="sequential"===i.lazyLoad;let l=[],c=0;function u(){d(),h()}function h(){t.Slides.forEach((e=>{V(e.slide,wt).forEach((t=>{const n=F(t,bt),s=F(t,Tt);if(n!==t.src||s!==t.srcset){const r=i.classes.spinner,o=t.parentElement,a=I(o,`.${r}`)||M("span",r,o);D(a,it,"presentation"),l.push({_img:t,_Slide:e,src:n,srcset:s,_spinner:a}),!t.src&&R(t,"none")}}))})),a&&m()}function d(){c=0,l=[]}function p(){l=l.filter((t=>{const n=i.perPage*((i.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,n)||f(t)})),l.length||s(he)}function f(e){const{_img:t}=e;S(e._Slide.slide,Ze),r(t,"load error",(t=>{!function(e,t){const{_Slide:i}=e;z(i.slide,Ze),t||(j(e._spinner),R(e._img,""),o(ke,e._img,i),o(ve));a&&m()}(e,"error"===t.type)})),["srcset","src"].forEach((i=>{e[i]&&(D(t,i,e[i]),P(t,"src"===i?bt:Tt))}))}function m(){c<l.length&&f(l[c++])}return{mount:function(){i.lazyLoad&&(h(),n(ye,u),a||n([le,ye,he,Se],p))},destroy:d}},Pagination:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Slides:a,Elements:l,Controller:u}=t,{hasFocus:h,getIndex:d}=u,p=[];let f;function m(){g(),i.pagination&&a.isEnough()&&(!function(){const{length:t}=e,{classes:n,i18n:s,perPage:o}=i,c="slider"===i.pagination&&l.slider||l.root,u=h()?t:ee(t/o);f=M("ul",n.pagination,c);for(let e=0;e<u;e++){const t=M("li",null,f),i=M("button",{class:n.page,type:"button"},t),l=a.getIn(e).map((e=>e.slide.id)),c=!h()&&o>1?s.pageX:s.slideX;r(i,"click",y.bind(null,e)),D(i,nt,l.join(" ")),D(i,rt,re(c,e+1)),p.push({li:t,button:i,page:e})}}(),s("pagination:mounted",{list:f,items:p},_(e.index)),v())}function g(){f&&(j(f),p.forEach((e=>{o(e.button,"click")})),c(p),f=null)}function y(e){u.go(`>${e}`,!0,(()=>{const t=a.getAt(u.toIndex(e));var i;t&&((i=t.slide).setActive&&i.setActive()||i.focus({preventScroll:!0}))}))}function _(e){return p[u.toPage(e)]}function v(){const e=_(d(!0)),t=_(d());e&&(z(e.button,Ke),P(e.button,st)),t&&(S(t.button,Ke),D(t.button,st,!0)),s("pagination:updated",{list:f,items:p},e,t)}
1return{items:p,mount:function(){m(),n([_e,ye],m),n([ue,Se],v)},destroy:g,getAt:_,update:v}},Sync:function(e,t,i){const{list:n}=t.Elements,s=[];function r(){e.splides.forEach((t=>{var i;!t.isParent&&(i=t.splide,[e,i].forEach((t=>{const n=xe(t),r=t===e?i:e;n.on(ue,((e,t,i)=>{r.go(r.is(ht)?i:e)})),s.push(n)})))})),i.isNavigation&&function(){const t=xe(e),{on:i}=t;i(pe,l),i(ge,u),i([le,_e],a),D(n,it,"menu"),s.push(t),t.emit(Ce,e.splides)}()}function o(){P(n,ct),s.forEach((e=>{e.destroy()})),c(s)}function a(){D(n,lt,i.direction!==Le?"horizontal":null)}function l(t){e.go(t.index)}function u(e,t){_(St,t.key)&&(l(e),q(t))}return{mount:r,destroy:o,remount:function(){o(),r()}}},Wheel:function(e,t,i){const{bind:n}=xe(e);function s(n){if(n.cancelable){const{deltaY:s}=n;if(s){const r=s<0;e.go(r?"<":">"),function(n){return!i.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(n)}(r)&&q(n)}}}return{mount:function(){i.wheel&&n(t.Elements.track,"wheel",s,mt)}}}});const Ct={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:tt,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 kt(e,t,i){const{on:n}=xe(e);return{mount:function(){n([le,ye],(()=>{X((()=>{t.Slides.style("transition",`opacity ${i.speed}ms ${i.easing}`)}))}))},start:function(e,i){const{track:n}=t.Elements;N(n,"height",W(U(n).height)),X((()=>{i(),N(n,"height","")}))},cancel:K}}function xt(e,t,i){const{bind:n}=xe(e),{Move:s,Controller:r}=t,{list:o}=t.Elements;let a;function l(){c("")}function c(e){N(o,"transition",e)}return{mount:function(){n(o,"transitionend",(e=>{e.target===o&&a&&(l(),a())}))},start:function(t,n){const o=s.toPosition(t,!0),l=s.getPosition(),u=function(t){const{rewindSpeed:n}=i;if(e.is(ut)&&n){const e=r.getIndex(!0),i=r.getEnd();if(0===e&&t>=i||e>=i&&0===t)return n}return i.speed}(t);te(o-l)>=1&&u>=1?(c(`transform ${u}ms ${i.easing}`),s.translate(o,!0),a=n):(s.jump(t),n())},cancel:l}}const It=class{constructor(e,t){this.event=function(){let e={};function t(t,n){i(t,((t,i)=>{const s=e[t];e[t]=s&&s.filter((e=>e._key?e._key!==n:n||e._namespace!==i))}))}function i(e,t){g(e).join(" ").split(" ").forEach((e=>{const i=e.split(".");t(i[0],i[1])}))}return{on:function(t,n,s,r=10){i(t,((t,i)=>{e[t]=e[t]||[],v(e[t],{_event:t,_callback:n,_namespace:i,_priority:r,_key:s}).sort(((e,t)=>e._priority-t._priority))}))},off:t,offBy:function(i){A(e,((e,n)=>{t(n,i)}))},emit:function(t){(e[t]||[]).forEach((e=>{e._callback.apply(e,T(arguments,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){let t=e;return{set:function(e){t=e},is:function(e){return _(g(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};const i=d(e)?H(document,e):e;G(i,`${i}
1 is invalid.`),this.root=i,O(Ct,It.defaults),O(O(this._options,Ct),t||{})}mount(e,t){const{state:i,Components:n}=this;G(i.is([1,5]),"Already mounted!"),i.set(1),this._Components=n,this._Transition=t||this._Transition||(this.is(dt)?kt:xt),this._Extensions=e||this._Extensions;return A(L({},Et,this._Extensions,{Transition:this._Transition}),((e,t)=>{const i=e(this,n,this._options);n[t]=i,i.setup&&i.setup()})),A(n,(e=>{e.mount&&e.mount()})),this.emit(le),S(this.root,"is-initialized"),i.set(3),this.emit(ce),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,...T(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(ye),this}destroy(e=!0){const{event:t,state:i}=this;return i.is(1)?t.on(ce,this.destroy.bind(this,e),this):(A(this._Components,(t=>{t.destroy&&t.destroy(e)}),!0),t.emit(Ee),t.destroy(),e&&c(this.splides),i.set(5)),this}get options(){return this._options}set options(e){const{_options:t}=this;O(t,e),this.state.is(1)||this.emit(_e,t)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}};let At=It;At.defaults={},At.STATES=l;const Lt=new Map,Ot={set(e,t,i){Lt.has(e)||Lt.set(e,new Map);const n=Lt.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)=>Lt.has(e)&&Lt.get(e).get(t)||null,remove(e,t){if(!Lt.has(e))return;const i=Lt.get(e);i.delete(t),0===i.size&&Lt.delete(e)}},Pt="transitionend",Dt=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},Mt=e=>{const t=Dt(e);return t&&document.querySelector(t)?t:null},Nt=e=>{const t=Dt(e);return t?document.querySelector(t):null},Rt=e=>{e.dispatchEvent(new Event(Pt))},Ft=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Bt=e=>Ft(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,Ut=e=>{if(!Ft(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},jt=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),$t=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?$t(e.parentNode):null},qt=()=>{},Ht=e=>{e.offsetHeight},Vt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,zt=[],Wt=()=>"rtl"===document.documentElement.dir,Gt=e=>{var t;t=()=>{const t=Vt();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(zt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of zt)e()})),zt.push(t)):t()},Xt=e=>{"function"==typeof e&&e()},Kt=(e,t,i=!0)=>{if(!i)return void Xt(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let s=!1;const r=({target:i})=>{i===t&&(s=!0,t.removeEventListener(Pt,r),Xt(e))};t.addEventListener(Pt,r),setTimeout((()=>{s||Rt(t)}
vendor: 5,896 bytes, line 1
1),n)},Yt=(e,t,i,n)=>{const s=e.length;let r=e.indexOf(t);return-1===r?!i&&n?e[s-1]:e[0]:(r+=i?1:-1,n&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},Qt=/[^.]*(?=\..*)\.|.*/,Jt=/\..*/,Zt=/::\d+$/,ei={};let ti=1;const ii={mouseenter:"mouseover",mouseleave:"mouseout"},ni=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 si(e,t){return t&&`${t}::${ti++}`||e.uidEvent||ti++}function ri(e){const t=si(e);return e.uidEvent=t,ei[t]=ei[t]||{},ei[t]}function oi(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function ai(e,t,i){const n="string"==typeof t,s=n?i:t||i;let r=hi(e);return ni.has(r)||(r=e),[n,s,r]}function li(e,t,i,n,s){if("string"!=typeof t||!e)return;let[r,o,a]=ai(t,i,n);if(t in ii){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};o=e(o)}const l=ri(e),c=l[a]||(l[a]={}),u=oi(c,o,r?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=si(o,t.replace(Qt,"")),d=r?function(e,t,i){return function n(s){const r=e.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return pi(s,{delegateTarget:o}),n.oneOff&&di.off(e,s.type,t,i),i.apply(o,[s])}}(e,i,o):function(e,t){return function i(n){return pi(n,{delegateTarget:e}),i.oneOff&&di.off(e,n.type,t),t.apply(e,[n])}}(e,o);d.delegationSelector=r?i:null,d.callable=o,d.oneOff=s,d.uidEvent=h,c[h]=d,e.addEventListener(a,d,r)}function ci(e,t,i,n,s){const r=oi(t[i],n,s);r&&(e.removeEventListener(i,r,Boolean(s)),delete t[i][r.uidEvent])}function ui(e,t,i,n){const s=t[i]||{};for(const r of Object.keys(s))if(r.includes(n)){const n=s[r];ci(e,t,i,n.callable,n.delegationSelector)}}function hi(e){return e=e.replace(Jt,""),ii[e]||e}const di={on(e,t,i,n){li(e,t,i,n,!1)},one(e,t,i,n){li(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,r,o]=ai(t,i,n),a=o!==t,l=ri(e),c=l[o]||{},u=t.startsWith(".");if(void 0===r){if(u)for(const i of Object.keys(l))ui(e,l,i,t.slice(1));for(const i of Object.keys(c)){const n=i.replace(Zt,"");if(!a||t.includes(n)){const t=c[i];ci(e,l,o,t.callable,t.delegationSelector)}}}else{if(!Object.keys(c).length)return;ci(e,l,o,r,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=Vt();let s=null,r=!0,o=!0,a=!1;t!==hi(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());let l=new Event(t,{bubbles:r,cancelable:!0});return l=pi(l,i),a&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function pi(e,t){for(const[i,n]of Object.entries(t||{}))try{e[i]=n}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function fi(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 mi(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const gi={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${mi(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${mi(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]=fi(e.dataset[n])}return t},getDataAttribute:(e,t)=>fi(e.getAttribute(`data-bs-${mi(t)}`))};let yi=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=Ft(t)?gi.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ft(t)?gi.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const n of Object.keys(t)){const s=t[n],r=e[n],o=Ft(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}};class _i extends yi{constructor(e,t){super(),(e=Bt(e))&&(this._element=e,this._config=this._getConfig(t),Ot.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ot.remove(this._element,this.constructor.DATA_KEY),di.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Kt(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ot.get(Bt(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 vi={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)=>
1[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.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=>!jt(e)&&Ut(e)))}},bi={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"}},Ti={"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 wi extends _i{constructor(e){super(e),this._config=this._getConfig(),this._splide=new At(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({},bi);return Object.keys(Ti).forEach((t=>{this._element.classList.contains(t)&&(e=Object.assign({},e,Ti[t]))})),e}}di.on(window,"load.bs.carousel.data-api",(()=>{vi.find("[data-bs-carousel-splide]").forEach((e=>{wi.getOrCreateInstance(e)}))}));const Si=".bs.inputlabel",Ei=`focus${Si}`,Ci=`blur${Si}`,ki=`change${Si}`,xi="active";class Ii{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(xi)&&(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")?di.on(this._element,Ci,(()=>{this._labelOut()})):(di.on(this._element,Ei,(()=>{this._labelOut()})),di.on(this._element,Ci,(()=>{this._labelOver()})),di.on(this._element,ki,(()=>{this._labelToggle()}))))}_getLabel(){return vi.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(xi)}_labelOver(){if(this._isEmpty()){const e=this._getLabel();e&&e.classList.remove(xi)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const Ai=".bs.inputnumber",Li=`click${Ai}`,Oi=`change${Ai}`,Pi=`click${Ai}.data-api`,Di=".input-number",Mi='input[data-bs-input][type="number"]',Ni='button[class^="input-number-"]';class Ri extends _i{constructor(e){super(e),this._wrapperElement=this._element.closest(Di),this._label=new Ii(e),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}
1_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(vi.find(Ni,this._wrapperElement).forEach((e=>{di.on(e,Li,(t=>{t.preventDefault(),this._incrDecr(e.classList.contains("input-number-sub")),this._label._labelOut()}))})),di.on(this._element,Oi,(()=>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),di.trigger(this._element,Oi),di.trigger(this._element,"input")}}_checkLimit(){const e=parseFloat(this._element.value);if(!isNaN(e)){let t=e;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&e<n&&(t=n),i&&e>i&&(t=i),this._element.value=t}this._inputResize()}}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Mi+", label").forEach((function(e){const t=Ii.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Mi)&&i.parentNode.querySelector(Ni)&&Ri.getOrCreateInstance(i)}))})),di.on(document,Pi,Ni,(function(){const e=this.closest(Di);if(e){const t=vi.findOne(Mi,e);t&&Ri.getOrCreateInstance(t)}})));const Fi="show";class Bi extends _i{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(Fi),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&&Ht(this._element),this._element.classList.add(Fi);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}di.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const e=Nt(this),t=Bi.getOrCreateInstance(e);this.checked?t.show():t.hide()}));const Ui=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;di.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),jt(this))return;const s=Nt(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))},ji=".bs.notification",$i=`click${ji}.data-api`,qi=`hidden${ji}`,Hi=`show${ji}`,Vi={timeout:0},zi="show";class Wi extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=this._element.classList.contains(zi),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(zi),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&&Ht(this._element),this._element.classList.add(zi);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={...Vi,...gi.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)}}di.on(document,$i,'[data-bs-toggle="notification"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),di.one(t,Hi,(e=>{e.defaultPrevented||di.one(t,qi,(()=>{Ut(this)&&this.focus()}))}));Wi.getOrCreateInstance(t).toggle(this)})),Ui(Wi);const Gi="cookiebar",Xi=".bs.cookiebar",Ki=".data-api",Yi="cookies_consent",Qi=`close${Xi}`,Ji=`closed${Xi}`,Zi=`load${Xi}${Ki}`,en=`click${Xi}${Ki}`,tn="show";class nn extends _i{constructor(e){super(e),this._isShown=this._element.classList.contains(tn),this._isTransitioning=!1}static get NAME(){return Gi}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}
1hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(tn),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=Yi+"=; 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&&Ht(this._element),this._element.classList.add(tn);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=Yi+"="+t+"; path=/; SameSite=Strict")}_getRootElement(e){const t=Nt(e);let i=null;return t&&(i=t),i||(i=e.closest(".cookiebar")),i}_triggerCloseEvent(e){return di.trigger(e,Qi)}_removeElement(e){e.classList.remove(tn),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-live","off"),di.trigger(e,Ji),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,n=document.cookie.split(";");for(e=0;e<n.length;e++)if(t=n[e].substring(0,n[e].indexOf("=")),i=n[e].substring(n[e].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==Yi)return unescape(i)}}}di.on(document,en,'[data-bs-accept="cookiebar"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this))return;const t=Nt(this)||this.closest(`.${Gi}`);nn.getOrCreateInstance(t).accept()})),di.on(window,Zi,(function(){if(!nn._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((e=>{nn.getOrCreateInstance(e).show()}))}}));const sn=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},rn=(e,t)=>{let i=null;return t.forEach(((t,n)=>{t===e&&(i=n)})),i},on=(e,t,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=rn(e,t);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=t[0];else if(i.isLimit&&n<t.length-1)s=t[t.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=t[0===n?t.length-1:n-1]}else{if(!i.loop&&n===t.length-1)return;s=t[n===t.length-1?0:n+1]}s&&s.focus()},an="pagescroll-scroll-disabled";let ln=!1,cn="undefined"==typeof document?0:document.scrollingElement.scrollTop;const un="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{ln&&(document.scrollingElement.scrollTop=cn)}));const hn=".bs.navbarcollapsible",dn=`click${hn}.data-api`,pn=`click${hn}`,fn=`keyup${hn}`,mn=`keydown${hn}`,gn=`hide${hn}`,yn=`hidden${hn}`,_n=`show${hn}`,vn=`shown${hn}`,bn=`resize${hn}`,Tn="show",wn="expanded",Sn=".close-menu",En=".nav-link",Cn=".nav-item .list-item",kn=".it-heading-link",xn=".it-footer-link";class In extends _i{constructor(e){super(e),this._isShown=this._element.classList.contains(wn),this._isTransitioning=!1,this._isMobile=sn(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=vi.findOne(".close-div button",this._element),this._btnB
1ack=vi.findOne(".it-back-button",this._element),this._menuWrapper=vi.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=vi.find([En,Cn,kn,xn,Sn].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(e){if(this._isShown||this._isTransitioning)return;di.trigger(this._element,_n,{relatedTarget:e}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(Tn),this._isShown=!0,"undefined"!=typeof document&&(ln=!0,cn=document.scrollingElement.scrollTop,un.classList.add(an)),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(di.trigger(this._element,gn).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(Tn),this._overlay&&this._overlay.classList.remove(Tn),this._element.classList.remove(wn),"undefined"!=typeof document&&(ln=!1,un.classList.remove(an)),this._queueCallback((()=>this._hideElement()),this._menuWrapper,e)}toggle(e){this._isShown?this.hide():this.show(e)}dispose(){di.off(window,bn),super.dispose()}_bindEvents(){di.on(window,bn,(()=>this._onResize())),this._overlay&&di.on(this._overlay,pn,(()=>this.hide())),di.on(this._btnClose,pn,(e=>{e.preventDefault(),this.hide()})),di.on(this._btnBack,pn,(e=>{e.preventDefault(),this.hide()})),this._menuItems.forEach((e=>{di.on(e,mn,(e=>this._isMobile&&this._onMenuItemKeyDown(e))),di.on(e,fn,(e=>this._isMobile&&this._onMenuItemKeyUp(e))),di.on(e,pn,(e=>this._isMobile&&this._onMenuItemClick(e)))}))}_onResize(){this._isMobile=sn()}_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=rn(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&&Ht(this._element),this._element.classList.add(wn),this._overlay&&this._overlay.classList.add(Tn);this._queueCallback((()=>{this._isTransitioning=!1;const e=this._getNextVisibleItem(0);e.item&&(e.item.focus(),this._currItemIdx=e.index),di.trigger(this._element,vn)}),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,di.trigger(this._element,yn)}_setOverlay(){this._overlay=vi.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,n=null,s=e,r=t?-1:1,o=!1;for(;!(i||s==e&&o);)s==e&&(o=!0),this._isElementHidden(this._menuItems[s])||(i=this._menuItems[s],n=s),s+=r,s<0?s=this._menuItems.length-1:s>=this._menuItems.length&&(s=0);return{item:i,index:n}}}di.on(document,dn,'[data-bs-toggle="navbarcollapsible"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),di.one(t,_n,(e=>{e.defaultPrevented||di.one(t,yn,(()=>{Ut(this)&&this.focus()}))}));In.getOrCreateInstance(t).toggle(this)}));const An=".bs.accordion",Ln=`keydown${An}`,On=`keydown${An}.data-api`,Pn='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class Dn extends _i{constructor(e){super(e),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(e,t,i){const n={ArrowDown:e=>this._focusNext(e),ArrowUp:e=>this._focusPrev(e),Home:e=>this._focusFirst(e),End:e=>this._focusLast(e)};"function"==typeof n[e]&&(i&&i.preventDefault(),n[e](t))}_bindEvents(){vi.find(Pn,this._element).forEach((e=>{di.on(e,Ln,(e=>{this.handleKeyDown(e.key,e.currentTarget,e)}))}
1))}_getHeadButtons(){return vi.find(":scope > "+Pn,this._element)}_focusNext(e){on(e,this._getHeadButtons(),{loop:!0})}_focusPrev(e){on(e,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(e){on(e,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(e){on(e,this._getHeadButtons(),{isLimit:!0})}}var Mn;di.on(document,On,Pn,(function(e){const t=this.closest(".accordion");if(t){Dn.getOrCreateInstance(t).handleKeyDown(e.key,this,e)}}));var Nn=new Uint8Array(16);function Rn(){if(!Mn&&!(Mn="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 Mn(Nn)}const Fn=/^(?:[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;for(var Bn=[],Un=0;Un<256;++Un)Bn.push((Un+256).toString(16).substr(1));function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Bn[e[t+0]]+Bn[e[t+1]]+Bn[e[t+2]]+Bn[e[t+3]]+"-"+Bn[e[t+4]]+Bn[e[t+5]]+"-"+Bn[e[t+6]]+Bn[e[t+7]]+"-"+Bn[e[t+8]]+Bn[e[t+9]]+"-"+Bn[e[t+10]]+Bn[e[t+11]]+Bn[e[t+12]]+Bn[e[t+13]]+Bn[e[t+14]]+Bn[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Fn.test(e)}(i))throw TypeError("Stringified UUID is invalid");return i}function $n(e,t,i){var n=(e=e||{}).random||(e.rng||Rn)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,jn(n)}let qn=!1,Hn=[];class Vn{constructor(e,t){this.id=e,this._callback=t}dispose(){zn(this.id)}_execute(e){this._callback(e)}}const zn=e=>{Hn=Hn.filter((t=>t.id!==e))},Wn=e=>{if("undefined"!=typeof document){if(Hn.length||document.addEventListener("scroll",(e=>{qn||(window.requestAnimationFrame((()=>{Hn.forEach((t=>t.cb._execute(e))),qn=!1})),qn=!0)})),"function"==typeof e){const t=new Vn($n(),e);return Hn.push({id:t.id,cb:t}),t}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}};var Gn={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Xn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Kn=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Yn={CSS:{},springs:{}};function Qn(e,t,i){return Math.min(Math.max(e,t),i)}function Jn(e,t){return e.indexOf(t)>-1}function Zn(e,t){return e.apply(null,t)}var es={arr:function(e){return Array.isArray(e)},obj:function(e){return Jn(Object.prototype.toString.call(e),"Object")},pth:function(e){return es.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||es.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 es.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 es.hex(e)||es.rgb(e)||es.hsl(e)},key:function(e){return!Gn.hasOwnProperty(e)&&!Xn.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function ts(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function is(e,t){var i=ts(e),n=Qn(es.und(i[0])?1:i[0],.1,100),s=Qn(es.und(i[1])?100:i[1],.1,100),r=Qn(es.und(i[2])?10:i[2],.1,100),o=Qn(es.und(i[3])?0:i[3],.1,100),a=Math.sqrt(s/n),l=r/(2*Math.sqrt(s*n)),c=l<1?a*Math.sqrt(1-l*l):0,u=l<1?(l*a-o)/c:-o+a;function h(e){var i=t?t*e/1e3:e;return i=l<1?Math.exp(-i*l*a)*(1*Math.cos(c*i)+u*Math.sin(c*i)):(1+u*i)*Math.exp(-i*a),0===e||1===e?e:1-i}return t?h:function(){var t=Yn.springs[e];if(t)return t;for(var i=1/6,n=0,s=0;;)if(1===h(n+=i)){if(++s>=16)break}else s=0;var r=n*i*1e3;return Yn.springs[e]=r,r}}function ns(e){return void 0===e&&(e=10),function(t){return Math.ceil(Qn(t,1e-6,1)*e)*(1/e)}}var ss,rs,os=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function n(e){return 3*e}function s(e,s,r){return((t(s,r)*e+i(s,r))*e+n(s))*e}function r(e,s,r){return 3*t(s,r)*e*e+2*i(s,r)*e+n(s)}return function(t,i,n,o){if(0<=t&&t<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(t!==i||n!==o)for(var l=0;l<11;
vendor: 5,586 bytes, line 1
1++l)a[l]=s(l*e,t,n);return function(e){return t===i&&n===o||0===e||1===e?e:s(c(e),i,o)}}function c(i){for(var o=0,l=1;10!==l&&a[l]<=i;++l)o+=e;--l;var c=o+(i-a[l])/(a[l+1]-a[l])*e,u=r(c,t,n);return u>=.001?function(e,t,i,n){for(var o=0;o<4;++o){var a=r(t,i,n);if(0===a)return t;t-=(s(t,i,n)-e)/a}return t}(i,c,t,n):0===u?c:function(e,t,i,n,r){var o,a,l=0;do{(o=s(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a}while(Math.abs(o)>1e-7&&++l<10);return a}(i,o,o+e,t,n)}}}(),as=(ss={linear:function(){return function(e){return e}}},rs={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=Qn(e,1,10),n=Qn(t,.1,2);return function(e){return 0===e||1===e?e:-i*Math.pow(2,10*(e-1))*Math.sin((e-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint"].forEach((function(e,t){rs[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(rs).forEach((function(e){var t=rs[e];ss["easeIn"+e]=t,ss["easeOut"+e]=function(e,i){return function(n){return 1-t(e,i)(1-n)}},ss["easeInOut"+e]=function(e,i){return function(n){return n<.5?t(e,i)(2*n)/2:1-t(e,i)(-2*n+2)/2}},ss["easeOutIn"+e]=function(e,i){return function(n){return n<.5?(1-t(e,i)(1-2*n))/2:(t(e,i)(2*n-1)+1)/2}}})),ss);function ls(e,t){if(es.fnc(e))return e;var i=e.split("(")[0],n=as[i],s=ts(e);switch(i){case"spring":return is(e,t);case"cubicBezier":return Zn(os,s);case"steps":return Zn(ns,s);default:return Zn(n,s)}}function cs(e){try{return document.querySelectorAll(e)}catch(e){return}}function us(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,s=[],r=0;r<i;r++)if(r in e){var o=e[r];t.call(n,o,r,e)&&s.push(o)}return s}function hs(e){return e.reduce((function(e,t){return e.concat(es.arr(t)?hs(t):t)}),[])}function ds(e){return es.arr(e)?e:(es.str(e)&&(e=cs(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function ps(e,t){return e.some((function(e){return e===t}))}function fs(e){var t={};for(var i in e)t[i]=e[i];return t}function ms(e,t){var i=fs(e);for(var n in e)i[n]=t.hasOwnProperty(n)?t[n]:e[n];return i}function gs(e,t){var i=fs(e);for(var n in t)i[n]=es.und(e[n])?t[n]:e[n];return i}function ys(e){return es.rgb(e)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+i[1]+",1)":t:es.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,n){return t+t+i+i+n+n})),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):es.hsl(e)?function(e){var t,i,n,s=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(s[1],10)/360,o=parseInt(s[2],10)/100,a=parseInt(s[3],10)/100,l=s[4]||1;function c(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=n=a;else{var u=a<.5?a*(1+o):a+o-a*o,h=2*a-u;t=c(h,u,r+1/3),i=c(h,u,r),n=c(h,u,r-1/3)}return"rgba("+255*t+","+255*i+","+255*n+","+l+")"}(e):void 0;var t,i}function _s(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 vs(e,t){return es.fnc(e)?e(t.target,t.id,t.total):e}function bs(e,t){return e.getAttribute(t)}function Ts(e,t,i){if(ps([i,"deg","rad","turn"],_s(t)))return t;var n=Yn.CSS[t+i];if(!es.und(n))return n;var s=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(s),s.style.position="absolute",s.style.width=100+i;var o=100/s.offsetWidth;r.removeChild(s);var a=o*parseFloat(t);return Yn.CSS[t+i]=a,a}function ws(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?Ts(e,s,i):s}}function Ss(e,t){return es.dom(e)&&!es.inp(e)&&(!es.nil(bs(e,t))||es.svg(e)&&e[t])?"attribute":es.dom(e)&&ps(Kn,t)?"transform":es.dom(e)&&"transform"!==t&&ws(e,t)?"css":null!=e[t]?"object":void 0}function Es(e){if(es.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,s=new Map;t=n.exec(i);)s.set(t[1],t[2]);return s}}function Cs(e,t,i,n){var s=Jn(t,"scale")?1:0+function(e){return Jn(e,"translate")||"perspective"===e?"px":Jn(e,"rotate")||Jn(e,"skew")?"deg":void 0}(t),r=Es(e).get(t)||s;return i&&(i.transforms.list.set(t,r),i.transforms.last=t),n?Ts(e,r,n):r}function ks(e,t,i,n){switch(Ss(e,t)){case"transform":return Cs(e,t,n,i);case"css":return ws(e,t,i);case"attribute":return bs(e,t);default:return e[t]||0}}function xs(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=_s(e)||0,s=parseFloat(t),r=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return s+r+n;case"-":return s-r+n;case"*":return s*r+n}}function Is(e,t){if(es.col(e))return ys(e);if(/\s/g.test(e))return e;var i=_s(e),n=i?e.substr(0,e.length-i.length):e;return t?n+t:n}function As(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Ls(e){for(var t,i=e.points,n=0,s=0;s<i.numberOfItems;s++){var r=i.getItem(s);s>0&&(n+=As(t,r)),t=r}return n}function Os(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*bs(e,"r")}(e);
vendor: 4,431 bytes, line 1
1case"rect":return function(e){return 2*bs(e,"width")+2*bs(e,"height")}(e);case"line":return function(e){return As({x:bs(e,"x1"),y:bs(e,"y1")},{x:bs(e,"x2"),y:bs(e,"y2")})}(e);case"polyline":return Ls(e);case"polygon":return function(e){var t=e.points;return Ls(e)+As(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Ps(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;es.svg(t)&&es.svg(t.parentNode);)t=t.parentNode;return t}(e),s=n.getBoundingClientRect(),r=bs(n,"viewBox"),o=s.width,a=s.height,l=i.viewBox||(r?r.split(" "):[0,0,o,a]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:a,vW:l[2],vH:l[3]}}function Ds(e,t,i){function n(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var s=Ps(e.el,e.svg),r=n(),o=n(-1),a=n(1),l=i?1:s.w/s.vW,c=i?1:s.h/s.vH;switch(e.property){case"x":return(r.x-s.x)*l;case"y":return(r.y-s.y)*c;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function Ms(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=Is(es.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:es.str(e)||t?n.split(i):[]}}function Ns(e){return us(e?hs(es.arr(e)?e.map(ds):ds(e)):[],(function(e,t,i){return i.indexOf(e)===t}))}function Rs(e){var t=Ns(e);return t.map((function(e,i){return{target:e,id:i,total:t.length,transforms:{list:Es(e)}}}))}function Fs(e,t){var i=fs(t);if(/^spring/.test(i.easing)&&(i.duration=is(i.easing)),es.arr(e)){var n=e.length;2===n&&!es.obj(e[0])?e={value:e}:es.fnc(t.duration)||(i.duration=t.duration/n)}var s=es.arr(e)?e:[e];return s.map((function(e,i){var n=es.obj(e)&&!es.pth(e)?e:{value:e};return es.und(n.delay)&&(n.delay=i?0:t.delay),es.und(n.endDelay)&&(n.endDelay=i===s.length-1?t.endDelay:0),n})).map((function(e){return gs(e,i)}))}function Bs(e,t){var i=[],n=t.keyframes;for(var s in n&&(t=gs(function(e){for(var t=us(hs(e.map((function(e){return Object.keys(e)}))),(function(e){return es.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),i={},n=function(n){var s=t[n];i[s]=e.map((function(e){var t={};for(var i in e)es.key(i)?i==s&&(t.value=e[i]):t[i]=e[i];return t}))},s=0;s<t.length;s++)n(s);return i}(n),t)),t)es.key(s)&&i.push({name:s,tweens:Fs(t[s],e)});return i}function Us(e,t){var i;return e.tweens.map((function(n){var s=function(e,t){var i={};for(var n in e){var s=vs(e[n],t);es.arr(s)&&1===(s=s.map((function(e){return vs(e,t)}))).length&&(s=s[0]),i[n]=s}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(n,t),r=s.value,o=es.arr(r)?r[1]:r,a=_s(o),l=ks(t.target,e.name,a,t),c=i?i.to.original:l,u=es.arr(r)?r[0]:c,h=_s(u)||_s(l),d=a||h;return es.und(o)&&(o=c),s.from=Ms(u,d),s.to=Ms(xs(o,u),d),s.start=i?i.end:0,s.end=s.start+s.delay+s.duration+s.endDelay,s.easing=ls(s.easing,s.duration),s.isPath=es.pth(r),s.isPathTargetInsideSVG=s.isPath&&es.svg(t.target),s.isColor=es.col(s.from.original),s.isColor&&(s.round=1),i=s,s}))}var js={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,n,s){if(n.list.set(t,i),t===n.last||s){var r="";n.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function $s(e,t){Rs(e).forEach((function(e){for(var i in t){var n=vs(t[i],e),s=e.target,r=_s(n),o=ks(s,i,r,e),a=xs(Is(n,r||_s(o)),o),l=Ss(s,i);js[l](s,i,a,e.transforms,!0)}}))}function qs(e,t){return us(hs(e.map((function(e){return t.map((function(t){return function(e,t){var i=Ss(e.target,t.name);if(i){var n=Us(t,e),s=n[n.length-1];return{type:i,property:t.name,animatable:e,tweens:n,duration:s.end,delay:n[0].delay,endDelay:s.endDelay}}}(e,t)}))}))),(function(e){return!es.und(e)}))}function Hs(e,t){var i=e.length,n=function(e){return e.timelineOffset?e.timelineOffset:0},s={};return s.duration=i?Math.max.apply(Math,e.map((function(e){return n(e)+e.duration}))):t.duration,s.delay=i?Math.min.apply(Math,e.map((function(e){return n(e)+e.delay}))):t.delay,s.endDelay=i?s.duration-Math.max.apply(Math,e.map((function(e){return n(e)+e.duration-e.endDelay}))):t.endDelay,s}var Vs=0;var zs=[],Ws=function(){var e;function t(i){for(var n=zs.length,s=0;s<n;){var r=zs[s];r.paused?(zs.splice(s,1),n--):(r.tick(i),s++)}e=s>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Xs.suspendWhenDocumentHidden&&(Gs()?e=cancelAnimationFrame(e):(zs.forEac
vendor: 12,369 bytes, line 1
1h((function(e){return e._onDocumentVisibility()})),Ws()))})),function(){e||Gs()&&Xs.suspendWhenDocumentHidden||!(zs.length>0)||(e=requestAnimationFrame(t))}}();function Gs(){return!!document&&document.hidden}function Xs(e){void 0===e&&(e={});var t,i=0,n=0,s=0,r=0,o=null;function a(e){var t=window.Promise&&new Promise((function(e){return o=e}));return e.finished=t,t}var l=function(e){var t=ms(Gn,e),i=ms(Xn,e),n=Bs(i,e),s=Rs(e.targets),r=qs(s,n),o=Hs(r,i),a=Vs;return Vs++,gs(t,{id:a,children:[],animatables:s,animations:r,duration:o.duration,delay:o.delay,endDelay:o.endDelay})}(e);function c(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function u(e){return l.reversed?l.duration-e:e}function h(){i=0,n=u(l.currentTime)*(1/Xs.speed)}function d(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,i=l.animations,n=i.length;t<n;){var s=i[t],r=s.animatable,o=s.tweens,a=o.length-1,c=o[a];a&&(c=us(o,(function(t){return e<t.end}))[0]||c);for(var u=Qn(e-c.start-c.delay,0,c.duration)/c.duration,h=isNaN(u)?1:c.easing(u),d=c.to.strings,p=c.round,f=[],m=c.to.numbers.length,g=void 0,y=0;y<m;y++){var _=void 0,v=c.to.numbers[y],b=c.from.numbers[y]||0;_=c.isPath?Ds(c.value,h*v,c.isPathTargetInsideSVG):b+h*(v-b),p&&(c.isColor&&y>2||(_=Math.round(_*p)/p)),f.push(_)}var T=d.length;if(T){g=d[0];for(var w=0;w<T;w++){d[w];var S=d[w+1],E=f[w];isNaN(E)||(g+=S?E+S:E+" ")}}else g=f[0];js[s.type](r.target,s.property,g,r.transforms),s.currentValue=g,t++}}function f(e){l[e]&&!l.passThrough&&l[e](l)}function m(e){var h=l.duration,m=l.delay,g=h-l.endDelay,y=u(e);l.progress=Qn(y/h*100,0,100),l.reversePlayback=y<l.currentTime,t&&function(e){if(l.reversePlayback)for(var i=r;i--;)d(e,t[i]);else for(var n=0;n<r;n++)d(e,t[n])}(y),!l.began&&l.currentTime>0&&(l.began=!0,f("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,f("loopBegin")),y<=m&&0!==l.currentTime&&p(0),(y>=g&&l.currentTime!==h||!h)&&p(h),y>m&&y<g?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,f("changeBegin")),f("change"),p(y)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,f("changeComplete")),l.currentTime=Qn(y,0,h),l.began&&f("update"),e>=h&&(n=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(i=s,f("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&c()):(l.paused=!0,l.completed||(l.completed=!0,f("loopComplete"),f("complete"),!l.passThrough&&"Promise"in window&&(o(),a(l)))))}return a(l),l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var i=r=t.length;i--;)l.children[i].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l._onDocumentVisibility=h,l.set=function(e,t){return $s(e,t),l},l.tick=function(e){s=e,i||(i=s),m((s+(n-i))*Xs.speed)},l.seek=function(e){m(u(e))},l.pause=function(){l.paused=!0,h()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,zs.push(l),h(),Ws())},l.reverse=function(){c(),l.completed=!l.reversed,h()},l.restart=function(){l.reset(),l.play()},l.remove=function(e){Ys(Ns(e),l)},l.reset(),l.autoplay&&l.play(),l}function Ks(e,t){for(var i=t.length;i--;)ps(e,t[i].animatable.target)&&t.splice(i,1)}function Ys(e,t){var i=t.animations,n=t.children;Ks(e,i);for(var s=n.length;s--;){var r=n[s],o=r.animations;Ks(e,o),o.length||r.children.length||n.splice(s,1)}i.length||n.length||t.pause()}Xs.version="3.2.1",Xs.speed=1,Xs.suspendWhenDocumentHidden=!0,Xs.running=zs,Xs.remove=function(e){for(var t=Ns(e),i=zs.length;i--;){Ys(t,zs[i])}},Xs.get=ks,Xs.set=$s,Xs.convertPx=Ts,Xs.path=function(e,t){var i=es.str(e)?cs(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:Ps(i),totalLength:Os(i)*(n/100)}}},Xs.setDashoffset=function(e){var t=Os(e);return e.setAttribute("stroke-dasharray",t),t},Xs.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?ls(t.easing):null,s=t.grid,r=t.axis,o=t.from||0,a="first"===o,l="center"===o,c="last"===o,u=es.arr(e),h=u?parseFloat(e[0]):parseFloat(e),d=u?parseFloat(e[1]):0,p=_s(u?e[1]:e)||0,f=t.start||0+(u?h:0),m=[],g=0;return function(e,t,y){if(a&&(o=0),l&&(o=(y-1)/2),c&&(o=y-1),!m.length){for(var _=0;_<y;_++){if(s){var v=l?(s[0]-1)/2:o%s[0],b=l?(s[1]-1)/2:Math.floor(o/s[0]),T=v-_%s[0],w=b-Math.floor(_/s[0]),S=Math.sqrt(T*T+w*w);"x"===r&&(S=-T),"y"===r&&(S=-w),m.push(S)}else m.push(Math.abs(o-_));g=Math.max.apply(Math,m)}n&&(m=m.map((function(e){return n(e/g)*g}))),"reverse"===i&&(m=m.map((function(e){return r?e<0?-1*e:-e:Math.abs(g-e)})))}return f+(u?(d-h)/g:h)*(Math.round(100*m[t])/100)+p}},Xs.timeline=function(e){void 0===e&&(e={});var t=Xs(e);return t.duration=0,t.add=function(i,n){var s=zs.indexOf(t),r=t.children;function o(e){e.passThrough=!0}s>-1&&zs.splice(s,1);for(var a=0;a<r.length;a++)o(r[a]);var l=gs(i,ms(Xn,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=es.und(n)?c:xs(n,c),o(t),t.seek(l.timelineOffset);var u=Xs(l);o(u),r.push(u);var h=Hs(r,e);return t.delay=h.delay,t.endDelay=h.endDelay,t.duration=h.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Xs.easing=ls,Xs.penner=as,Xs.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const Qs={duration:800,easing:"easeInOutSine"},Js=(e,t)=>{if("undefined"==typeof document)return;const i=("object"==typeof t?t:{}).complete,n=window.document.scrollingElement||window.document.body||window.document.documentElement,s=n.style.scrollBehavior;t={scrollTop:e||0,...Qs,..."object"==typeof t?t:{}},n.style.scrollBehavior="auto",t.complete=e=>{n.style.scrollBehavior=s,"function"==typeof i&&i(e)},Xs({targets:n,...t})},Zs="active",er="ul.link-list",tr="a.nav-link",ir=`${tr}.${Zs}`,nr=`${tr}[href^="#"]`,sr={scrollPadding:10,duration:800,easing:"easeInOutSine"};class rr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._togglerElement=vi.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=vi.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={...sr,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=Wn((()=>this._onScroll())),this._collapsible&&(di.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),di.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),vi.find(nr,this._element).forEach((e=>{e.addEventListener("click",(()=>{const t=()=>this._scrollToHash(e.hash);this._isCollapseOpened?(this._callbackQueue.push(t),this._collapsible.hide()):t()}))})),di.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(er),n=null,s=!1;for(;i&&!s;){const e=i.closest("li.nav-link, li.nav-item");if(e){const i=e.querySelector(tr);i&&t.push(i)}n=i,i=(i.parentElement||i).closest(er),i===n&&(s=!0)}return t}_decorateToggler(e){if(this._togglerElement){const t=vi.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(t),this._togglerElement.append(e)}}_scrollToHash(e){const t=vi.findOne(e,this._sectionContainer);t&&(Js(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=vi.find(".it-navscroll-progressbar");if(t){const i=Math.abs(e.getBoundingClientRect().top)/e.getBoundingClientRect().height*100,n=Math.min(100,Math.max(0,i));t.forEach((t=>{e.getBoundingClientRect().top<=0?(t.style.width=n+"%",t.setAttribute("aria-valuenow",n)):(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=vi.find(tr,this._element),n=this._getScrollPadding();vi.find(".it-page-section").forEach(((s,r)=>{if(s.offsetTop-e<=t+n&&(vi.find(ir,this._element).forEach((e=>{e.classList.remove(Zs)})),r<i.length)){const e=i[r];this._getParentLinks(e).forEach((e=>{e.classList.add(Zs)})),e.classList.add(Zs),this._decorateToggler(e.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const e=vi.findOne(".navbar-collapsable",this._element);return e?In.getOrCreateInstance(e):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}vi.find("[data-bs-navscroll]").map((e=>{rr.getOrCreateInstance(e)}));const or=".bs.sticky",ar=`resize${or}`,lr=`on${or}`,cr=`off${or}`,ur="bs-is-sticky",hr="bs-is-fixed",dr='[data-bs-toggle="sticky"]',pr={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class fr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._isSticky=!1,this._wrapper=null,this._stickyTarget=vi.findOne(Mt(this._element),this._element)||this._element,this._stickyTargetMobile=vi.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=sn(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){di.off(window,ar),this._scrollCb.dispose(),super.dispose()}static get NAME(){return"sticky"}_getConfig(e){return e={...pr,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){di.on(window,ar,(()=>this._onResize())),this._scrollCb=Wn((()=>this._onScroll()))}_onResize(){this._isMobile=sn(),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 n=t.getBoundingClientRect();e-=n.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=ur;this._isTypeSticky()||(e=hr,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",di.trigger(this._element,lr)}}_unsetSticky(){if(this._isSticky){let e=ur;this._isTypeSticky()||(e=hr,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,di.trigger(this._element,cr)}}_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 vi.find(dr).filter((e=>{const t=fr.getInstance(e);return!(!t||!t._isSticky||e===this._element)}))}_getPositionTop(){let e=0;return this._config.stackable?(this._getStickySimblings().forEac
1h(((t,i)=>{const n=t.getBoundingClientRect();e+=n.height+(0===i?parseFloat(t.style.top):0)})),e):e+this._config.paddingTop}}Wn((()=>{vi.find(dr).map((e=>{fr.getOrCreateInstance(e)}))}));const mr="cloned-element",gr=`.${mr}`,yr=new Map;class _r{constructor(e){if(yr.get(e))return null;this._element=e,this._elementObj=fr.getOrCreateInstance(e),yr.set(e,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(e){return yr.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(!Ut(vi.findOne(".custom-navbar-toggler",this._element))){const t=vi.findOne(".menu-wrapper",this._element);if(e){const e=vi.findOne(".it-brand-wrapper",this._element),i=vi.findOne(".it-search-wrapper",this._element),n=vi.findOne(".it-user-wrapper",this._element),s=e?e.cloneNode(!0):null,r=i?i.cloneNode(!0):null,o=n?n.cloneNode(!0):null;s&&t.insertBefore(s,t.childNodes[0]).classList.add(mr),r&&t.appendChild(r).classList.add(mr),o&&(t.appendChild(o).classList.add(mr),t.appendChild(o).classList.remove("show"))}else vi.find(gr,this._element).forEach((e=>{e.parentElement.removeChild(e)}))}}}Wn((()=>{vi.find(".it-header-sticky").map((e=>{_r.getOrCreateInstance(e)}))}));var vr=Object.defineProperty,br=(e,t,i)=>(((e,t,i)=>{t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);const Tr=/^(([^<>()[\]\\.,;:\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,}))$/,wr=/^[0-9]+$/,Sr=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,Er=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;var Cr=(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))(Cr||{}),kr=(e=>(e.Required="required",e))(kr||{}),xr=(e=>(e.Label="label",e.LabelArrow="labelArrow",e))(xr||{});const Ir=[{key:Cr.Required,dict:{en:"The field is required"}},{key:Cr.Email,dict:{en:"Email has invalid format"}},{key:Cr.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:Cr.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:Cr.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:Cr.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:Cr.Number,dict:{en:"Value should be a number"}},{key:Cr.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:Cr.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:Cr.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:Cr.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:Cr.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],Ar=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then,Lr=e=>Array.isArray(e)?e.filter((e=>e.length>0)):"string"==typeof e&&e.trim()?[...e.split(" ").filter((e=>e.length>0))]:[],Or=e=>e instanceof Element||e instanceof HTMLDocument,Pr={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 Dr{constructor(e,t,i){br(this,"form",null),br(this,"fields",{}),br(this,"groupFields",{}),br(this,"errors",{}),br(this,"isValid",!1),br(this,"isSubmitted",!1),br(this,"globalConfig",Pr),br(this,"errorLabels",{}),br(this,"successLabels",{}),br(this,"eventListeners",[]),br(this,"dictLocale",Ir),br(this,"currentLocale","en"),br(this,"customStyleTags",{}),br(this,"onSuccessCallback"),br(this,"onFailCallback"),br(this,"tooltips",[]),br(this,"lastScrollPosition"),br(this,"isScrollTick"),br(this,"fieldIds",new Map),br(this,"getKeyByFieldSelector",(e=>this.fieldIds.get(e))),br(this,"getFieldSelectorByKey",(e=>{for(const[t,i]of this.fieldIds)if(e===i)return t})),br(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})),br(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((e=>{e.refresh()}))})),br(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),br(this,"formSubmitHandler",(e=>{e.preventDefault(),this.isSubmitted=!0,this.validateHandler(e)})),br(this,"handleFieldChange",(e=>{let t;
vendor: 4,512 bytes, line 1
1for(const i in this.fields){if(this.fields[i].elem===e){t=i;break}}t&&this.validateField(t,!0)})),br(this,"handleGroupChange",(e=>{let t,i;for(const n in this.groupFields){const s=this.groupFields[n];if(s.elems.find((t=>t===e))){t=s,i=n;break}}t&&i&&this.validateGroup(i,t)})),br(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=Pr,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={...Pr,...t},i&&(this.dictLocale=[...i,...Ir]),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[xr.Label]=document.head.appendChild(e),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(e,t,i){var n;const s=null!=i?i:e;let r=null==(n=this.dictLocale.find((e=>e.key===s)))?void 0:n.dict[this.currentLocale];if(r||i&&(r=i),r&&void 0!==t)switch(e){case Cr.MaxLength:case Cr.MinLength:case Cr.MaxNumber:case Cr.MinNumber:case Cr.MinFilesCount:case Cr.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===kr.Required)t.every((e=>!e.checked))?this.setGroupInvalid(e,i):this.setGroupValid(e,i)}validateFieldRule(e,t,i,n=!1){const s=i.value,r=this.getElemValue(t);if(i.plugin){i.plugin(r,this.fields)||this.setFieldInvalid(e,i)}else{switch(i.rule){case Cr.Required:(e=>{let t=e;return"string"==typeof e&&(t=e.trim()),!t})(r)&&this.setFieldInvalid(e,i);break;case Cr.Email:if("string"!=typeof r){this.setFieldInvalid(e,i);break}o=r,Tr.test(o)||this.setFieldInvalid(e,i);break;case Cr.MaxLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}
1] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){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 r){this.setFieldInvalid(e,i);break}if(""===r)break;((e,t)=>e.length>t)(r,s)&&this.setFieldInvalid(e,i);break;case Cr.MinLength:if(void 0===s){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 s){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 r){this.setFieldInvalid(e,i);break}if(""===r)break;((e,t)=>e.length<t)(r,s)&&this.setFieldInvalid(e,i);break;case Cr.Password:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>Sr.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.StrongPassword:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>Er.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.Number:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>wr.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.MaxNumber:{if(void 0===s){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 s){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 r){this.setFieldInvalid(e,i);break}if(""===r)break;const t=+r;(Number.isNaN(t)||((e,t)=>e>t)(t,s))&&this.setFieldInvalid(e,i);break}case Cr.MinNumber:{if(void 0===s){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 s){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 r){this.setFieldInvalid(e,i);break}if(""===r)break;const t=+r;(Number.isNaN(t)||((e,t)=>e<t)(t,s))&&this.setFieldInvalid(e,i);break}case Cr.CustomRegexp:{if(void 0===s)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(s)}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 n=String(r);""===n||t.test(n)||this.setFieldInvalid(e,i);break}case Cr.MinFilesCount:if(void 0===s){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 s){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==r?void 0:r.length)&&r.length<s){this.setFieldInvalid(e,i);break}break;case Cr.MaxFilesCount:if(void 0===s){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 s){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==r?void 0:r.length)&&r.length>s){this.setFieldInvalid(e,i);break}break;case Cr.Files:{if(void 0===s)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 s)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=s.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 invali
1d.`),void this.setFieldInvalid(e,i);const n=(e,t)=>{const i=Number.isFinite(t.minSize)&&e.size<t.minSize,n=Number.isFinite(t.maxSize)&&e.size>t.maxSize,s=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||n||s||r||o};if("object"==typeof r&&null!==r)for(let s=0,o=r.length;s<o;++s){const o=r.item(s);if(!o){this.setFieldInvalid(e,i);break}if(n(o,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(r,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(!n){this.fields[e].asyncCheckPending=!1;const n=t();return Ar(n)?n.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 o}}validateField(e,t=!1){var i;const n=this.fields[e];n.isValid=!0;const s=[];return[...n.rules].reverse().forEach((i=>{const r=this.validateFieldRule(e,n.elem,i,t);Ar(r)&&s.push(r)})),n.isValid&&this.setFieldValid(e,null==(i=n.config)?void 0:i.successMessage),Promise.allSettled(s)}revalidateField(e){if("string"!=typeof e&&!Or(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((n=>{const s=this.validateGroupRule(e,t.elems,n);Ar(s)&&i.push(s)})),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);Ar(t)&&i.push(t)})),Object.keys(this.groupFields).forEach((e=>{const t=this.groupFields[e],n=this.validateGroup(e,t);Ar(n)&&i.push(n)})),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&&!Or(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let n;if(n="string"==typeof e?this.form.querySelector(e):e,!n)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 val
1idator property.");if(!(e.validator||e.plugin||e.rule&&Object.values(Cr).includes(e.rule)))throw Error(`Rule should be one of these types: ${Object.values(Cr).join(", ")}. Provided value: ${e.rule}`)}));const s=this.setKeyByFieldSelector(e);return this.fields[s]={elem:n,rules:t,isValid:void 0,config:i},this.setListeners(n),this.isSubmitted&&this.validate(),this}removeField(e){if("string"!=typeof e&&!Or(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,n){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const s=this.form.querySelector(e);if(!s)throw Error(`Group with ${e} selector not found! Please check the group selector.`);const r=s.querySelectorAll("input"),o=Array.from(r).filter((e=>{const t=((e,t)=>{const i=[...t].reverse();for(let t=0,n=i.length;t<n;++t){const n=i[t];for(const t in e){const i=e[t];if(i.groupElem===n)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:kr.Required,errorMessage:t,successMessage:n}],groupElem:s,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,n,s;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(...Lr((null==(n=r.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...Lr((null==(s=r.config)?void 0:s.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 n=this.groupFields[i],s=(null==(e=n.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(s).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...Lr((null==(i=n.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const r=(null==(t=n.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(r).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...Lr((null==(i=n.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 n;const{top:s,left:r,width:o,height:a}=e.getBoundingClientRect(),l=t.getBoundingClientRect(),c=i||(null==(n=this.globalConfig.tooltip)?void 0:n.position);switch(c){case"left":t.style.top=s+a/2-l.height/2+"px",t.style.left=r-l.width-5+"px";break;case"top":t.style.top=s-l.height-5+"px",t.style.left=r+o/2-l.width/2+"px";break;case"right":t.style.top=s+a/2-l.height/2+"px",t.style.left=`${r+o+5}px`;break;case"bottom":t.style.top=`${s+a+5}px`,t.style.left=r+o/2-l.width/2+"px"}t.dataset.direction=c;return{refresh:()=>{this.renderTooltip(e,t,i)}}}createErrorLabelElem(e,t,i){const n=document.createElement("div");n.innerHTML=t;const s=this.isTooltip()?null==i?void 0:i.errorLabelStyle:(null==i?void 0:i.errorLabelStyle)||this.globalConfig.errorLabelStyle;return Object.assign(n.style,s),n.classList.add(...Lr((null==i?void 0:i.errorLabelCssClass)||this.globalConfig.errorLabelCssClass),"just-validate-error-label"),this.isTooltip()&&(n.dataset.tooltip="true"),this.globalConfig.testingMode&&(n.dataset.testId=`error-label-${e}`),this.errorLabels[e]=n,n}createSuccessLabelElem(e,t,i){if(void 0===t)return null;const n=document.createElement("div");n.innerHTML=t;const s=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(n.style,s),n.classList.add(...Lr((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(n.dataset.testId=`success-label-${e}`),this.successLabels[e]=n,n}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;
vendor: 5,695 bytes, line 1
1console.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,n){if(!n){if(this.renderErrorsContainer(t,i))return}e.appendChild(t)}renderFieldLabel(e,t,i,n){var s,r,o,a,l,c,u;if(!n){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==(s=e.parentElement)?void 0:s.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==(c=e.parentElement)||c.appendChild(t)}else null==(u=e.parentElement)||u.appendChild(t)}showLabels(e,t){Object.keys(e).forEach(((i,n)=>{const s=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,s),0===n&&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,n,s,r,o,a;const l=this.fields[e];if(void 0===l.isValid)return;if(l.isValid){if(!l.asyncCheckPending){const s=this.createSuccessLabelElem(e,void 0!==t?t:l.successMessage,l.config);s&&this.renderFieldLabel(l.elem,s,null==(i=l.config)?void 0:i.errorsContainer,!0),l.elem.classList.add(...Lr((null==(n=l.config)?void 0:n.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}this.isValid=!1,l.elem.classList.add(...Lr((null==(s=l.config)?void 0:s.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const c=this.createErrorLabelElem(e,void 0!==t?t:l.errorMessage,l.config);this.renderFieldLabel(l.elem,c,null==(r=l.config)?void 0:r.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(l.elem,c,null==(a=null==(o=l.config)?void 0:o.tooltip)?void 0:a.position))}renderGroupError(e){var t,i,n,s;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(...Lr((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(...Lr((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==(s=null==(n=r.config)?void 0:n.tooltip)?void 0:s.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}}class Mr{constructor(e,t,i,n,s){this.targetNode=e,this.classToWatch=t,this.classAddedCallback=i,this.classRemovedCallback=n,this.observer=null,this.lastClassState=e.classList.contains(this.classToWatch),this.ignoreToggle=!!s,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 Nr{constructor(e,t,i,n){this.targetNode=e,this.contentSelector=t,this.contentAddedCallback=i,this.contentRemovedCallback=n,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.forEac
1h((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,n=t&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&n&&i.forEach((e=>n(e)))}}const Rr={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},Fr="justvalidatebi";class Br extends _i{constructor(e){super(e),this._label=new Ii(e),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&di.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=vi.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=t+e.join("; "))}}const Ur=["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=!!Ur.find((t=>e.matches(t))),i=!("number"!==e.getAttribute("type")||!e.parentNode.querySelector('button[class^="input-number-"]'));t||i||Br.getOrCreateInstance(e)})(Ii.getInputFromLabel(e)||e)}))}));var jr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $r(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hr(e,t){return e(t={exports:{}},t.exports),t.exports}var Vr=Hr((function(e,t){var i;window,i=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},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 n=i(1),s=i(6),r=i(7),o=i(16),a=i(18),l="prototype",c=function(e,t,i){var u,h,d,p,f=e&c.F,m=e&c.G,g=e&c.S,y=e&c.P,_=e&c.B,v=m?n:g?n[t]||(n[t]={}):(n[t]||{})[l],b=m?s:s[t]||(s[t]={}),T=b[l]||(b[l]={});for(u in m&&(i=t),i)d=((h=!f&&v&&void 0!==v[u])?v:i)[u],p=_&&h?a(d,n):y&&"function"==typeof d?a(Function.call,d):d,v&&o(v,u,d,e&c.U),b[u]!=d&&r(b,u,p),y&&T[u]!=d&&(T[u]=d)};n.core=s,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},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){i.r(t),i.d(t,"h",(function(){return a})),i.d(t,"createElement",(function(){return a})),i.d(t,"cloneElement",(function(){return u})),i.d(t,"Component",(function(){return M})),i.d(t,"render",(function(){return N})),i.d(t,"rerender",(function(){return f})),i.d(t,"options",(function(){return s}));var n=function(){},s={},r=[],o=[];function a(e,t){var i,a,l,c,u=o;for(c=arguments.length;2<c--;)r.push(arguments[c]);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(c=a.length;c--;)r.push(a[c]);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?u[u.length-1]+=a:u===o?u=[a]:u.push(a),i=l;var h=new n;return h.nodeName=e,h.children=u,h.attributes=null==t?void 0:t,h.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(h),h}function l(e,t){for(var i in t)e[i]=t[i];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Prom
vendor: 4,129 bytes, line 1
1ise.resolve()):setTimeout;function u(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var h=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(s.debounceRendering||c)(f)}function f(){var e,t=d;for(d=[];e=t.pop();)e._dirty&&P(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 n in i)void 0===t[n]&&(t[n]=i[n]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,i,n,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)i&&i(null),n&&n(e);else if("class"!==t||s)if("style"===t){if(n&&"string"!=typeof n&&"string"!=typeof i||(e.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof i)for(var r in i)r in n||(e.style[r]="");for(var r in n)e.style[r]="number"==typeof n[r]&&!1===h.test(r)?n[r]+"px":n[r]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?i||e.addEventListener(t,v,o):e.removeEventListener(t,v,o),(e._listeners||(e._listeners={}))[t]=n}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==n?"":n}catch(e){}null!=n&&!1!==n||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==n||!1===n?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof n&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function v(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var b=[],T=0,w=!1,S=!1;function E(){for(var e;e=b.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,i,n,s){var r=e,o=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?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,n){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!n||s._component)?(O(s,c,3,i,n),e=s.base):(r&&!a&&(D(r),e=o=null),s=A(t.nodeName,c,i),e&&!s.nextBase&&(s.nextBase=e,o=null),O(s,c,1,i,n),e=s.base,o&&e!==o&&(o._component=null,k(o,!1))),e}(e,t,i,n);if(w="svg"===a||"foreignObject"!==a&&w,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,w),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),k(e,!0)}var l=r.firstChild,c=r.__preactattr_,u=t.children;if(null==c){c=r.__preactattr_={};for(var h=r.attributes,d=h.length;d--;)c[h[d].name]=h[d].value}return!S&&u&&1===u.length&&"string"==typeof u[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=u[0]&&(l.nodeValue=u[0]):(u&&u.length||null!=l)&&function(e,t,i,n,s){var r,o,a,l,c,u,h,d,p=e.childNodes,f=[],g={},_=0,v=0,b=p.length,T=0,w=t?t.length:0;if(0!==b)for(var S=0;S<b;S++){var E=p[S],x=E.__preactattr_;null!=(I=w&&x?E._component?E._component.__key:x.key:null)?(_++,g[I]=E):(x||(void 0!==E.splitText?!s||E.nodeValue.trim():s))&&(f[T++]=E)}if(0!==w)for(S=0;S<w;S++){var I;if(c=null,null!=(I=(l=t[S]).key))_&&void 0!==g[I]&&(c=g[I],g[I]=void 0,_--);else if(v<T)for(r=v;r<T;r++)if(void 0!==f[r]&&(u=o=f[r],d=s,"string"==typeof(h=l)||"number"==typeof h?void 0!==u.splitText:"string"==typeof h.nodeName?!u._componentConstructor&&m(u,h.nodeName):d||u._componentConstructor===h.nodeName)){c=o,f[r]=void 0,r===T-1&&T--,r===v&&v++;break}c=C(c,l,i,n),a=p[S],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?y(a):e.insertBefore(c,a))}if(_)for(var S in g)void 0!==g[S]&&k(g[S],!1);for(;
vendor: 3,768 bytes, line 1
1v<=T;)void 0!==(c=f[T--])&&k(c,!1)}(r,u,i,n,S||null!=c.dangerouslySetInnerHTML),function(e,t,i){var n;for(n in i)t&&null!=t[n]||null==i[n]||_(e,n,i[n],i[n]=void 0,w);for(n in t)"children"===n||"innerHTML"===n||n in i&&t[n]===("value"===n||"checked"===n?e[n]:i[n])||_(e,n,i[n],i[n]=t[n],w)}(r,t.attributes,c),w=o,r}function k(e,t){var i=e._component;i?D(i):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||y(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 n,s=I.length;for(e.prototype&&e.prototype.render?(n=new e(t,i),M.call(n,t,i)):((n=new M(t,i)).constructor=e,n.render=L);s--;)if(I[s].constructor===e)return n.nextBase=I[s].nextBase,I.splice(s,1),n;return n}function L(e,t,i){return this.constructor(e,i)}function O(e,t,i,n,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,n)),n&&n!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=n),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==i&&(1!==i&&!1===s.syncComponentUpdates&&e.base?p(e):P(e,1,r)),e.__ref&&e.__ref(e))}function P(e,t,i,n){if(!e._disable){var r,o,a,c=e.props,u=e.state,h=e.context,d=e.prevProps||c,p=e.prevState||u,f=e.prevContext||h,m=e.base,y=e.nextBase,_=m||y,v=e._component,x=!1,I=f;if(e.constructor.getDerivedStateFromProps&&(u=l(l({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=d,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,h)?x=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,h),e.props=c,e.state=u,e.context=h),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!x){r=e.render(c,u,h),e.getChildContext&&(h=l(l({},h),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(I=e.getSnapshotBeforeUpdate(d,p));var L,M,N=r&&r.nodeName;if("function"==typeof N){var R=g(r);(o=v)&&o.constructor===N&&R.key==o.__key?O(o,R,1,h,!1):(L=o,e._component=o=A(N,R,h),o.nextBase=o.nextBase||y,o._parentComponent=e,O(o,R,0,h,!1),P(o,1,i,!0)),M=o.base}else a=_,(L=v)&&(a=e._component=null),(_||1===t)&&(a&&(a._component=null),M=function(e,t,i,n,s,r){T++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var o=C(e,t,i,n,r);return s&&o.parentNode!==s&&s.appendChild(o),--T||(S=!1),o}(a,r,h,i||!m,_&&_.parentNode,!0));if(_&&M!==_&&o!==v){var F=_.parentNode;F&&M!==F&&(F.replaceChild(M,_),L||(_._component=null,k(_,!1)))}if(L&&D(L),(e.base=M)&&!n){for(var B=e,U=e;U=U._parentComponent;)(B=U).base=M;M._component=B,M._componentConstructor=B.constructor}}for(!m||i?b.unshift(e):x||(e.componentDidUpdate&&e.componentDidUpdate(d,p,I),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);T||n||E()}}function D(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var i=e._component;i?D(i):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),y(e.nextBase=t),I.push(e),x(t)),e.__ref&&e.__ref(null)}function M(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,i){return function(e,t,i,n,s,r){T++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var o=C(e,t,i,n,r);return s&&o.parentNode!==s&&s.appendChild(o),--T||(S=!1,E()),o}(i,e,{},!1,t,!1)}l(M.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)}
vendor: 4,725 bytes, line 1
1,forceUpdate:function(e){e&&this._renderCallbacks.push(e),P(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:u,Component:M,render:N,rerender:f,options:s};t.default=R},function(e,t){var i=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(e,t,i){var n=i(8),s=i(40);e.exports=i(3)?function(e,t,i){return n.f(e,t,s(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(9),s=i(38),r=i(39),o=Object.defineProperty;t.f=i(3)?Object.defineProperty:function(e,t,i){if(n(e),t=r(t,!0),n(i),s)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 n=i(2);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t,i){var n=i(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(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){var n=i(4);e.exports=function(e,t){return!!e&&n((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,i){var n=i(0);n(n.S+n.F,"Object",{assign:i(41)})},function(e,t,i){var n=i(2),s=i(1).document,r=n(s)&&n(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,i){var n=i(1),s=i(7),r=i(17),o=i(10)("src"),a="toString",l=Function[a],c=(""+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")||s(i,"name",t)),e[t]!==i&&(l&&(r(i,o)||s(i,o,e[t]?""+e[t]:c.join(String(t)))),e===n?e[t]=i:a?e[t]?e[t]=i:s(e,t,i):(delete e[t],s(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 n=i(19);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,s){return e.call(t,i,n,s)}}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 n=i(42),s=i(28);e.exports=Object.keys||function(e){return n(e,s)}},function(e,t,i){var n=i(11),s=i(12);e.exports=function(e){return n(s(e))}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(21),s=i(24),r=i(43);e.exports=function(e){return function(t,i,o){var a,l=n(t),c=s(l.length),u=r(o,c);if(e&&i!=i){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}}},function(e,t,i){var n=i(25),s=Math.min;e.exports=function(e){return 0<e?s(n(e),9007199254740991):0}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?n:i)(e)}},function(e,t,i){var n=i(27)("keys"),s=i(10);e.exports=function(e){return n[e]||(n[e]=s(e))}},function(e,t,i){var n=i(6),s=i(1),r="__core-js_shared__",o=s[r]||(s[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.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 n=i(12);e.exports=function(e){return Object(n(e))}},function(e,t,i){var n=i(8).f,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||i(3)&&n(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,i){var n=i(0),s=i(32)(1);n(n.P+n.F*!i(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,i){var n=i(18),s=i(11),r=i(29),o=i(24),a=i(47);e.exports=function(e,t){var i=1==e,l=2==e,c=3==e,u=4==e,h=6==e,d=5==e||h,p=t||a;return function(t,a,f){for(var m,g,y=r(t),_=s(y),v=n(a,f,3),b=o(_.length),T=0,w=i?p(t,b):l?p(t,0):void 0;T<b;T++)if((d||T in _)&&(g=v(m=_[T],T,y),e))if(i)w[T]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:w.push(m)}else if(u)return!1;return h?-1:c||u?u:w}}},function(e,t,i){var n=i(22);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){var n=i(27)("wks"),s=i(10),r=i(1).Symbol,o="function"==typeof r;(e.exports=function(e){return n[e]||(n[e]=o&&r[e]||(o?r:s)("Symbol."+e))}).store=n},function(e,t,i){var n=i(0),s=i(23)(!1),r=[].indexOf,o=!!r&&1/[1].indexOf(1,-0)<0;
1n(n.P+n.F*(o||!i(13)(r)),"Array",{indexOf:function(e){return o?r.apply(this,arguments)||0:s(this,e,arguments[1])}})},function(e,t,i){var n=i(0);n(n.S,"Object",{create:i(52)})},function(e,t,i){t.__esModule=!0,t.default=void 0,i(14),i(30),i(31),i(35),i(49),i(50);var n=i(5),s=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,n.render)((0,n.createElement)(s.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 n=document.createElement("div");e.selectElement.parentNode.insertBefore(n,e.selectElement),r(Object.assign({},e,{element:n})),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 n=i(2);e.exports=function(e,t){if(!n(e))return e;var i,s;if(t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;if("function"==typeof(i=e.valueOf)&&!n(s=i.call(e)))return s;if(!t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;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){var n=i(20),s=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(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach((function(e){t[e]=e})),7!=l({},e)[i]||Object.keys(l({},t)).join("")!=n}))?function(e,t){for(var i=o(e),l=arguments.length,c=1,u=s.f,h=r.f;c<l;)for(var d,p=a(arguments[c++]),f=u?n(p).concat(u(p)):n(p),m=f.length,g=0;g<m;)h.call(p,d=f[g++])&&(i[d]=p[d]);return i}:l},function(e,t,i){var n=i(17),s=i(21),r=i(23)(!1),o=i(26)("IE_PROTO");e.exports=function(e,t){var i,a=s(e),l=0,c=[];for(i in a)i!=o&&n(a,i)&&c.push(i);for(;t.length>l;)n(a,i=t[l++])&&(~r(c,i)||c.push(i));return c}},function(e,t,i){var n=i(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=n(e))<0?s(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 n=i(48);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,i){var n=i(2),s=i(33),r=i(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),n(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,i){var n=i(0),s=i(32)(2);n(n.P+n.F*!i(13)([].filter,!0),"Array",{filter:function(e){return s(this,e,arguments[1])}})},function(e,t,i){var n=i(0);n(n.S,"Array",{isArray:i(33)})},function(e,t,i){t.__esModule=!0,t.default=void 0,i(14),i(36),i(30),i(31),i(35),i(55),i(58);var n=i(5),s=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 n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}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 c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function u(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWeb
vendor: 5,214 bytes, line 1
1Kit/g))}var h=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,n=null===i,s=t.focused!==i;s&&!n&&this.elementReferences[i].focus();var r=-1===i,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[i];a.setSelectionRange(0,a.value.length)}},i.hasAutoselect=function(){return!u()&&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,n=i.options,s=i.query,r=i.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(n[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,n)})},i.handleListMouseLeave=function(e){this.setState({hovered:null})},i.handleOptionBlur=function(e,t){var i=this.state,n=i.focused,s=i.menuOpen,r=i.options,o=i.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=n!==t&&-1!==n;if(!c&&a||!c&&!l){var h=s&&u();this.handleComponentBlur({menuOpen:h,query:this.templateInputValue(r[o])})}},i.handleInputBlur=function(e){var t=this.state,i=t.focused,n=t.menuOpen,s=t.options,r=t.query,o=t.selected;if(-1===i){var a=n&&u(),l=u()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:a,query:l})}},i.handleInputChange=function(e){var t=this,i=this.props,n=i.minLength,s=i.source,r=i.showAllValues,o=this.hasAutoselect(),a=e.target.value,l=0===a.length,c=this.state.query.length!==a.length,u=a.length>=n;this.setState({query:a,ariaHint:l}),r||!l&&c&&u?s(a,(function(e){var i=0<e.length;t.setState({menuOpen:i,options:e,selected:o&&i?0:-1,validChoiceMade:!1})})):!l&&u||this.setState({menuOpen:!1,options:[]})},i.handleInputClick=function(e){this.handleInputChange(e)},i.handleInputFocus=function(e){var t=this.state,i=t.query,n=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!n&&i.length>=r&&0<s.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){u()||this.setState({hovered:t})},i.handleOptionClick=function(e,t){var i=this.state.options[t],n=this.templateInputValue(i);this.props.onConfirm(i),this.setState({focused:-1,hovered:null,menuOpen:!1,query:n,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,n=t.selected;-1!==n&&i&&this.handleOptionFocus(n-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,n=i.menuOpen,s=i.options,r=i.selected;r!==s.length-1&&n&&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))}
1,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(c[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,c=i.minLength,h=i.name,d=i.placeholder,p=i.required,f=i.showAllValues,m=i.tNoResults,g=i.tStatusQueryTooShort,y=i.tStatusNoResults,_=i.tStatusSelectedOption,v=i.tStatusResults,b=i.tAssistiveHint,T=i.dropdownArrow,w=this.state,S=w.focused,E=w.hovered,C=w.menuOpen,k=w.options,x=w.query,I=w.selected,A=w.ariaHint,L=w.validChoiceMade,O=this.hasAutoselect(),P=-1===S,D=0===k.length,M=0!==x.length,N=x.length>=c,R=this.props.showNoOptionsFound&&P&&D&&M&&N,F=r+"__wrapper",B=r+"__input",U=null!==S?" "+B+"--focused":"",j=this.props.showAllValues?" "+B+"--show-all-values":" "+B+"--default",$=r+"__dropdown-arrow-down",q=-1!==S&&null!==S,H=r+"__menu",V=H+"--"+o,z=H+"--"+(C||R?"visible":"hidden"),W=r+"__option",G=r+"__hint",X=this.templateInputValue(k[I]),K=X&&0===X.toLowerCase().indexOf(x.toLowerCase())&&O?x+X.substr(x.length):"",Y=l+"__assistiveHint",Q=A?{"aria-describedby":Y}:null;return f&&"string"==typeof(e=T({className:$}))&&(e=(0,n.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,n.createElement)("div",{className:F,onKeyDown:this.handleKeyDown},(0,n.createElement)(s.default,{id:l,length:k.length,queryLength:x.length,minQueryLength:c,selectedOption:this.templateInputValue(k[I]),selectedOptionIndex:I,validChoiceMade:L,isInFocus:null!==this.state.focused,tQueryTooShort:g,tNoResults:y,tSelectedOption:_,tResults:v}),K&&(0,n.createElement)("span",null,(0,n.createElement)("input",{className:G,readonly:!0,tabIndex:"-1",value:K})),(0,n.createElement)("input",a({"aria-expanded":C?"true":"false","aria-activedescendant":!!q&&l+"__option--"+S,"aria-owns":l+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},Q,{autoComplete:"off",className:""+B+U+j,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:h,placeholder:d,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:p,value:x})),e,(0,n.createElement)("ul",{className:H+" "+V+" "+z,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},k.map((function(e,i){var s=(-1===S?I===i:S===i)&&null===E?" "+W+"--focused":"",r=i%2?" "+W+"--odd":"",o=u()?"<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,n.createElement)("li",{"aria-selected":S===i?"true":"false",className:""+W+s+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})})),R&&(0,n.createElement)("li",{className:W+" "+W+"--no-results"},m())),(0,n.createElement)("span",{id:Y,style:{display:"none"}},b()))},t}(n.Component);(t.default=h).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 n=i(9),s=i(53),r=i(28),o=i(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=i(15)("iframe"),n=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(),c=e.F;n--;)delete c[l][r[n]];return c()};e.exports=Object.create||function(e,t){var i;return null!==e?(a[l]=n(e),i=new a,a[l]=null,i[o]=e):i=c(),void 0===t?i:s(i,t)}},function(e,t,i){var n=i(8),s=i(9),r=i(20);e.exports=i(3)?Object.defineProperties:function(e,t){s(e);for(var i,o=r(t),a=o.length,l=0;l<a;)n.f(e,i=o[l++],t[i]);return e}},function(e,t,i){var n=i(1).document;e.exports=n&&n.documentElement},function(e,t,i){var n=i(0);n(n.P,"Function",{bind:i(56)})},function(e,t,i){var n=i(19),s=i(2),r=i(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=n(this),i=o.call(arguments,1
1),l=function(){var n=i.concat(o.call(arguments));return this instanceof l?function(e,t,i){if(!(t in a)){for(var n=[],s=0;s<t;s++)n[s]="a["+s+"]";a[t]=Function("F,a","return new F("+n.join(",")+")")}return a[t](e,i)}(t,n.length,n):r(t,n,e)};return s(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,i){var n=void 0===i;switch(t.length){case 0:return n?e():e.call(i);case 1:return n?e(t[0]):e.call(i,t[0]);case 2:return n?e(t[0],t[1]):e.call(i,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(i,t[0],t[1],t[2]);case 4:return n?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){var n=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,n):new RegExp(i)[t](String(n))},i]}))},function(e,t,i){var n=i(7),s=i(16),r=i(4),o=i(12),a=i(34);e.exports=function(e,t,i){var l=a(e),c=i(o,l,""[e]),u=c[0],h=c[1];r((function(){var t={};return t[l]=function(){return 7},7!=""[e](t)}))&&(s(String.prototype,e,u),n(RegExp.prototype,l,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,i){t.__esModule=!0,t.default=void 0,i(36);var n=i(5),s=function(e){function t(){for(var t,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||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){var i;return function(){var n=this,s=arguments;clearTimeout(i),i=setTimeout((function(){i=null,e.apply(n,s)}),t)}}((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,s=t.length,r=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,u=t.tNoResults,h=t.tSelectedOption,d=t.tResults,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,y=r<o,_=0===s,v=a?h(a,s,l):"";return e=y?c(o):_?u():d(s,v),this.debounceStatusUpdate(),(0,n.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,n.createElement)("div",{id:i+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?e:""),(0,n.createElement)("div",{id:i+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":e))},t}(n.Component);(t.default=s).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){t.__esModule=!0,t.default=void 0;var n=i(5);t.default=function(e){var t=e.className;return(0,n.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,n.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,n.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default},e.exports=i()}));const zr=qr(Vr);const Wr={autocomplete:[]},Gr="autocomplete-list-show",Xr="data-bs-autocomplete",Kr="input["+Xr+'][type="search"]';class Yr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._items=[],this._autocompleteElement=null,this._label=new Ii(e),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const e=this._element.value; 2//!!! $autocomplete.empty() 3this._autocompleteElement.innerHTML="",e?this._items.forEach((t=>{let i=new RegExp("("+e+")","gi"),n=t.text.replace(i,"<mark>$1</mark>"),s=t.label?"<em>"+t.label+"</em>":"",r=t.icon?t.icon:"",o=t.link?t.link:"#";-1!==n.toLowerCase().indexOf(e.toLowerCase())&&(this._autocompleteElement.classList.add(Gr),this._autocompleteElement.appendChild(this._createOption(o,n,s,r)))})):this._autocompleteElement.classList.remove(Gr)}_getConfig(e){return e={...Wr,..."object"==typeof e?e:{}}}_getItems(){try{return JSON.parse(this._element.getAttribute(Xr))}
3catch(e){return console.error("[InputSearchAutocomplete] invalid data provided for "+Xr+" 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(){di.on(this._element,"keyup.bs.inputsearchautocomplete",(()=>this.search()))}_createOption(e,t,i,n){if("undefined"==typeof document)return;const s=document.createElement("li");return s.innerHTML=`<a href="${e}">\n ${n}\n <span class="autocomplete-list-text">\n <span>${t}</span>\n ${i}\n </span>\n </a>`,s}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Kr+", label").forEach((function(e){const t=Ii.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Kr)&&Yr.getOrCreateInstance(i)}))}));const Qr=".bs.inputpassword",Jr=".data-api",Zr={shortPass:"Password troppo breve",badPass:"Password debole.",goodPass:"Password abbastanza sicura.",strongPass:"Password sicura.",minimumLength:8,suggestionsLabel:"Suggerimenti per una buona password:",suggestionFollowed:"suggerimenti seguito",suggestionFollowedPlural:"suggerimenti seguiti",suggestionOf:"di",suggestionMetLabel:"Soddisfatto: ",suggestionMetIconPath:"\n M9.6 16.9 4 11.4l.8-.7 4.8 4.8 8.5-8.4.7.7-9.2 9.1z\n ",suggestionLength:"Almeno {minLength} caratteri.",suggestionUppercase:"Una o più maiuscole.",suggestionLowercase:"Una o più minuscole.",suggestionNumber:"Uno o più numeri.",suggestionSpecial:"Uno o più caratteri speciali."},eo=`click${Qr}`,to=`keyup${Qr}`,io=`score${Qr}`,no=`text${Qr}`,so=`suggs${Qr}`,ro=`click${Qr}${Jr}`,oo=`mousedown${Qr}${Jr}`,ao=`keyup${Qr}${Jr}`,lo='input[data-bs-input][type="password"]',co=".password-icon";class uo extends _i{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._grayBarElement=null,this._colorBarElement=null,this._textElement=null,this._suggsElement=null,this._showPwdElement=null,this._text={},this._label=new Ii(e),this._suggestions=[{key:"length",text:e=>e.suggestionLength.replace("{minLength}",e.minimumLength.toString()),test:(e,t)=>e.length>=t.minimumLength},{key:"uppercase",text:e=>e.suggestionUppercase,test:e=>/[A-Z]/.test(e)},{key:"lowercase",text:e=>e.suggestionLowercase,test:e=>/[a-z]/.test(e)},{key:"number",text:e=>e.suggestionNumber,test:e=>/[0-9]/.test(e)},{key:"special",text:e=>e.suggestionSpecial,test:e=>/[^A-Za-z0-9]/.test(e)}],this._init(),this._bindEvents()}static get NAME(){return"inputpassword"}_getConfig(e){return e={...Zr,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_init(){this._isCustom&&(this._handleAutofill(),this._showPwdElement=vi.findOne(co,this._element.parentNode),this._meter&&(this._grayBarElement=this._meter.querySelector(".password-meter"),this._colorBarElement=this._meter.querySelector(".progress-bar"),this._textElement=this._meter.querySelector(".strength-meter-info"),this._suggsElement=this._meter.querySelector(".strenght-meter-suggestions"),this._textElement&&(this._config=Object.assign({},this._config,{...gi.getDataAttributes(this._textElement)})),this._suggsElement&&this._createsuggestionsList()))}_bindEvents(){this._isCustom&&(this._showPwdElement&&di.on(this._showPwdElement,eo,(()=>this._toggleShowPassword())),this._meter&&(di.on(this._element,to,(()=>this._checkPassword())),di.on(this._element,"input",(()=>this._checkPassword()))))}_handleAutofill(){const e=()=>{""!==this._element.value&&(this._label._labelOut(),this._checkPassword())};e(),setTimeout(e,100),di.on(this._element,"animationstart",(t=>{"onAutoFillStart"===t.animationName&&e()}))}_toggleShowPassword(){const e="password"===this._element.getAttribute("type");vi.find('[class^="password-icon"]',this._showPwdElement).forEach((e=>e.classList.toggle("d-none"))),this._element.setAttribute("type",e?"text":"password"),this._showPwdElement.setAttribute("aria-checked",e.toString())}_checkPassword(){const e=this._element.value,t=this._calculateScore(e);this._updateMeter(t),this._updateText(t,e),this._updateSuggestions(e)}_updateMeter(e){const t=e<0?0:e;this._colorBarElement&&(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)),di.trigger(this._element,io)}_updateText(e,t){if(this._textElement){let i=this._scoreText(e);if(this._suggsElement){const{completedCount:e,totalCount:n}=this._getCompletedSuggestions(t),s=1===e?this._config.suggestionFollowed:this._config.suggestionFollowedPlural;i+=` ${e} ${this._config.suggestionOf} ${n} ${s}.`}this._textElement.textContent!==i&&(this._textElement.textContent=i,this._textElement.classList.forEach((e=>{e.match(/(^|\s)text-\S+/g)&&this._textElement.classList.remove(e)})),this._textElement.classList.add(`text-${this._scoreColor(e)}`),di.trigger(this._element,no))}}_updateSuggestions(e){this._suggsElement&&(this._updateSuggestionsList(e),di.trigger(this._element,so))}_getCompletedSuggestions(e){let t=0;const i=this._suggestions.length;return this._suggestions.forEach((i=>{i.test(e,this._config)&&t++})),{completedCount:t,totalCount:i}}_createsuggestionsList(){if(this._suggsElement.querySelector(".password-suggestions"))return;const e=document.createElement("label");e.className="visually-hidden",e.htmlFor="suggestions",e.textContent=Zr.suggestionsLabel;const t=document.createElement("div");t.id="suggestions",t.className="password-suggestions",this._suggestions.forEach((e=>{const i=document.createElement("div");i.className="suggestion",i.dataset.suggestion=e.key;const n=this._createIconCheck(),s=document.createElement("span");s.textContent=e.text(this._config),i.appendChild(n),i.appendChild(s),t.appendChild(i)})),this._suggsElement.appendChild(e),this._suggsElement.appendChild(t)}_createIconCheck(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","icon icon-xs me-1 d-none"),e.setAttribute("aria-label",this._config.suggestionMetLabel),e.setAttribute("viewBox","0 0 24 24"),e.style.width="1em",e.style.height="1em";
3const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",this._config.suggestionMetIconPath.trim()),e.appendChild(t),e}_updateSuggestionsList(e){this._suggsElement&&this._suggestions.forEach((t=>{const i=this._suggsElement.querySelector(`[data-suggestion="${t.key}"]`);if(i){const n=t.test(e,this._config),s=i.querySelector(".icon");s&&s.classList.toggle("d-none",!n)}}))}_scoreText(e){return-1===e?this._config.shortPass:-2===e?"":(e=e<0?0:e)<26||e<51?this._config.badPass:e<76?this._config.goodPass:this._config.strongPass}_scoreColor(e){return-1===e||-2===e||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="",n=!1,s=0;s<t.length;s++){n=!0;for(var r=0;r<e&&r+s+e<t.length;r++)n=n&&t.charAt(r+s)===t.charAt(r+s+e);r<e&&(n=!1),n?(s+=e-1,n=!1):i+=t.charAt(s)}return i}}const ho=e=>e&&e.matches(lo)?uo.getOrCreateInstance(e):null,po=()=>{const e=vi.findOne(lo);e&&uo.getOrCreateInstance(e)};"loading"!==document.readyState?po():document.addEventListener("DOMContentLoaded",po),di.on(document,oo,lo+", label",(function(){const e=Ii.getInputFromLabel(this)||this;ho(e)})),di.on(document,ao,lo+", label",(function(){const e=Ii.getInputFromLabel(this)||this,t=ho(e);t&&t._label&&t._label._labelOut()})),di.on(document,ro,co,(function(){const e=this.parentNode&&this.parentNode.querySelector(lo);e&&uo.getOrCreateInstance(e)}));var fo=Hr((function(e,t){e.exports=function(){function e(t,i,n){function s(o,a){if(!i[o]){if(!t[o]){if(!a&&$r)return $r();if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[o]={exports:{}};t[o][0].call(c.exports,(function(e){return s(t[o][1][e]||e)}),c,c.exports,e,t,i,n)}return i[o].exports}for(var r=$r,o=0;o<n.length;o++)s(n[o]);return s}return e}()({1:[function(e,t,i){(function(e){(function(){var n=200,s="__lodash_hash_undefined__",r=800,o=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",y="[object Number]",_="[object Null]",v="[object Object]",b="[object Proxy]",T="[object RegExp]",w="[object Set]",S="[object String]",E="[object Undefined]",C="[object WeakMap]",k="[object ArrayBuffer]",x="[object DataView]",I="[object Float64Array]",A="[object Int8Array]",L="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",D="[object Uint8ClampedArray]",M="[object Uint16Array]",N="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,U={};U["[object Float32Array]"]=U[I]=U[A]=U[L]=U[O]=U[P]=U[D]=U[M]=U[N]=!0,U[l]=U[c]=U[k]=U[h]=U[x]=U[d]=U[p]=U[f]=U[g]=U[y]=U[v]=U[T]=U[w]=U[S]=U[C]=!1;var j="object"==typeof e&&e&&e.Object===Object&&e,$="object"==typeof self&&self&&self.Object===Object&&self,q=j||$||Function("return this")(),H="object"==typeof i&&i&&!i.nodeType&&i,V=H&&"object"==typeof t&&t&&!t.nodeType&&t,z=V&&V.exports===H,W=z&&j.process,G=function(){try{var e=V&&V.require&&V.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,n=Array(e);++i<e;)n[i]=t(i);return n}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,ne=Object.prototype,se=q["__core-js_shared__"],re=ie.toString,oe=ne.hasOwnProperty,ae=(ee=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||""))?"Symbol(sr
3c)_1."+ee:"",le=ne.toString,ce=re.call(Object),ue=RegExp("^"+re.call(oe).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),he=z?q.Buffer:void 0,de=q.Symbol,pe=q.Uint8Array;he&&he.allocUnsafe;var fe=Z(Object.getPrototypeOf,Object),me=Object.create,ge=ne.propertyIsEnumerable,ye=te.splice,_e=de?de.toStringTag:void 0,ve=function(){try{var e=_t(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),be=he?he.isBuffer:void 0,Te=Math.max,we=Date.now,Se=_t(q,"Map"),Ee=_t(Object,"create"),Ce=function(){function e(){}return function(t){if(!$t(t))return{};if(me)return me(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();function ke(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function xe(){this.__data__=Ee?Ee(null):{},this.size=0}function Ie(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ae(e){var t=this.__data__;if(Ee){var i=t[e];return i===s?void 0:i}return oe.call(t,e)?t[e]:void 0}function Le(e){var t=this.__data__;return Ee?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]=Ee&&void 0===t?s:t,this}function Pe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function De(){this.__data__=[],this.size=0}function Me(e){var t=this.__data__,i=Ze(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=Ze(t,e);return i<0?void 0:t[i][1]}function Re(e){return Ze(this.__data__,e)>-1}function Fe(e,t){var i=this.__data__,n=Ze(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}function Be(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Ue(){this.size=0,this.__data__={hash:new ke,map:new(Se||Pe),string:new ke}}function je(e){var t=yt(this,e).delete(e);return this.size-=t?1:0,t}function $e(e){return yt(this,e).get(e)}function qe(e){return yt(this,e).has(e)}function He(e,t){var i=yt(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this}function Ve(e){var t=this.__data__=new Pe(e);this.size=t.size}function ze(){this.__data__=new Pe,this.size=0}function We(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function Ge(e){return this.__data__.get(e)}function Xe(e){return this.__data__.has(e)}function Ke(e,t){var i=this.__data__;if(i instanceof Pe){var s=i.__data__;if(!Se||s.length<n-1)return s.push([e,t]),this.size=++i.size,this;i=this.__data__=new Be(s)}return i.set(e,t),this.size=i.size,this}function Ye(e,t){var i=Nt(e),n=!i&&Mt(e),s=!i&&!n&&Bt(e),r=!i&&!n&&!s&&Vt(e),o=i||n||s||r,a=o?Y(e.length,String):[],l=a.length;for(var c in e)o&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Tt(c,l))||a.push(c);return a}function Qe(e,t,i){(void 0!==i&&!Dt(e[t],i)||void 0===i&&!(t in e))&&et(e,t,i)}function Je(e,t,i){var n=e[t];oe.call(e,t)&&Dt(n,i)&&(void 0!==i||t in e)||et(e,t,i)}function Ze(e,t){for(var i=e.length;i--;)if(Dt(e[i][0],t))return i;return-1}function et(e,t,i){"__proto__"==t&&ve?ve(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}ke.prototype.clear=xe,ke.prototype.delete=Ie,ke.prototype.get=Ae,ke.prototype.has=Le,ke.prototype.set=Oe,Pe.prototype.clear=De,Pe.prototype.delete=Me,Pe.prototype.get=Ne,Pe.prototype.has=Re,Pe.prototype.set=Fe,Be.prototype.clear=Ue,Be.prototype.delete=je,Be.prototype.get=$e,Be.prototype.has=qe,Be.prototype.set=He,Ve.prototype.clear=ze,Ve.prototype.delete=We,Ve.prototype.get=Ge,Ve.prototype.has=Xe,Ve.prototype.set=Ke;var tt=gt();function it(e){return null==e?void 0===e?E:_:_e&&_e in Object(e)?vt(e):xt(e)}function nt(e){return qt(e)&&it(e)==l}function st(e){return!(!$t(e)||Et(e))&&(Ut(e)?ue:F).test(Pt(e))}function rt(e){return qt(e)&&jt(e.length)&&!!U[it(e)]}function ot(e){if(!$t(e))return kt(e);var t=Ct(e),i=[];for(var n in e)("constructor"!=n||!t&&oe.call(e,n))&&i.push(n);return i}function at(e,t,i,n,s){e!==t&&tt(t,(function(r,o){if(s||(s=new Ve),$t(r))lt(e,t,o,i,at,n,s);else{var a=n?n(At(e,o),r,o+"",e,t,s):void 0;void 0===a&&(a=r),Qe(e,o,a)}}),Wt)}function lt(e,t,i,n,s,r,o){var a=At(e,i),l=At(t,i),c=o.get(l);if(c)Qe(e,i,c);else{var u=r?r(a,l,i+"",e,t,o):void 0,h=void 0===u;if(h){var d=Nt(l),p=!d&&Bt(l),f=!d&&!p&&Vt(l);u=l,d||p||f?Nt(a)?u=a:Ft(a)?u=pt(a):p?(h=!1,u=ut(l)):f?(h=!1,u=dt(l)):u=[]:Ht(l)||Mt(l)?(u=a,Mt(a)?u=zt(a):$t(a)&&!Ut(a)||(u=bt(l))):h=!1}h&&(o.set(l,u),s(u,l,n,r,o),o.delete(l)),Qe(e,i,u)}}function ct(e,t){return Lt(It(e,t,Kt),e+"")}function ut(e,t){return e.slice()}function ht(e){var t=new e.constructor(e.byteLength);return new pe(t).set(new pe(e)),t}function dt(e,t){var i=ht(e.buffer);return new e.constructor(i,e.byteOffset,e.length)}function pt(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}function ft(e,t,i,n){var s=!i;i||(i={});for(var r=-1,o=t.length;++r<o;){var a=t[r],l=void 0;void 0===l&&(l=e[a]),s?et(i,a,l):Je(i,a,l)}return i}function mt(e){return ct((function(t,i){var n=-1,s=i.length,r=s>1?i[s-1]:void 0,o=s>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(s--,r):void 0,o&&wt(i[0],i[1],o)&&(r=s<3?void 0:r,s=1),t=Object(t);++n<s;){var a=i[n];a&&e(t,a,n,r)}return t}))}function gt(e){return function(e,t,i){for(var n=-1,s=Object(e),r=i(e),o=r.length;o--;){var a=r[++n];if(!1===t(s[a],a,s))break}return e}}function yt(e,t){var i=e.__data__;return St(t)?i["string"==typeof t?"string":"hash"]:i.map}function _t(e,t){var i=J(e,t);return st(i)?i:void 0}function vt(e){var t=oe.call(e,_e),i=e[_e];try{e[_e]=void 0;var n=!0}catch(e){}var s=le.call(e);return n&&(t?e[_e]=i:delete e[_e]),s}function bt(e){return"function"!=typeof e.constructor||Ct(e)?{}:Ce(fe(e))}function Tt(e,t){var i=typeof e;return!!(t=null==t?a:t)&&("number"==i||"symbol"!=i&&B.test(e))&&e>-1&&e%1==0&&e<t}function wt(e,t,i){if(!$t(i))return!1;var n=typeof t;return!!("number"==n?Rt(i)&&Tt(t,i.length):"string"==n&&t in i)&&Dt(i[t],e)}function St(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Et(e){return!!ae&&ae in e}function Ct(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ne)}function kt(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}function xt(e){return le.call(e)}function It(e,t,i){return t=Te(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,r=Te(n.length-t,0),o=Array(r);++s<r;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=i(o),K(e,this,a)}}function At(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Lt=Ot(ve?function(e,t){return ve(e,"toString",{configurable:!0,enumerable:!1,value:Xt(t),writable:!0})}:Kt);function Ot(e){var t=0,i=0;return function(){var n=we(),s=o-(n-i);if(i=n,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Pt(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 qt(e)&&oe.call(e,"callee")&&!ge.call(e,"callee")},Nt=Array.isArray;function Rt(e){return null!=e&&jt(e.length)&&!Ut(e)}function Ft(e){return qt(e)&&Rt(e)}var Bt=be||Yt;function Ut(e){if(!$t(e))return!1;var t=it(e);return t==f||t==m||t==u||t==b}function jt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function $t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qt(e){return null!=e&&"object"==typeof e}function Ht(e){if(!qt(e)||it(e)!=v)return!1;var t=fe(e);if(null===t)return!0;var i=oe.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&re.call(i)==ce}var Vt=X?Q(X):rt;function zt(e){return ft(e,Wt(e))}function Wt(e){return Rt(e)?Ye(e):ot(e)}var Gt=mt((function(e,t,i){at(e,t,i)}));function Xt(e){return function(){return e}}function Kt(e){return e}function Yt(){return!1}t.exports=Gt}).call(this)}).call(this,void 0!==jr?jr:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,i){var n,s;n=self,s=function(){return function(){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 ye},setBezierFunction:function(){return H},shouldScheduleUpdate:function(){return be},tween:function(){return ke},unsetBezierFunction:function(){return V}});var n={};i.r(n),i.d(n,{bounce:function(){return N},bouncePast:function(){return R},easeFrom:function(){return B},easeFromTo:function(){return F},easeInBack:function(){return I},easeInCirc:function(){return E},easeInCubic:function(){return c},easeInExpo:function(){return T},easeInOutBack:function(){return L},easeInOutCirc:function(){return k},easeInOutCubic:function(){return h},easeInOutExpo:function(){return S},easeInOutQuad:function(){return l},easeInOutQuart:function(){return f},easeInOutQuint:function(){return y},easeInOutSine:function(){return b},easeInQuad:function(){return o},easeInQuart:function(){return d},easeInQuint:function(){return m},easeInSine:function(){return _},easeOutBack:function(){return A},easeOutBounce:function(){return x},easeOutCirc:function(){return C},easeOutCubic:function(){return u},easeOutExpo:function(){return w},easeOutQuad:function(){return a},easeOutQuart:function(){return p},easeOutQuint:function(){return g},easeOutSine:function(){return v},easeTo:function(){return U},elastic:function(){return O},linear:function(){return r}
vendor: 16,732 bytes, line 3
3,swingFrom:function(){return D},swingFromTo:function(){return P},swingTo:function(){return M}});var s={};i.r(s),i.d(s,{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)},c=function(e){return Math.pow(e,3)},u=function(e){return Math.pow(e-1,3)+1},h=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},d=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},y=function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},_=function(e){return 1-Math.cos(e*(Math.PI/2))},v=function(e){return Math.sin(e*(Math.PI/2))},b=function(e){return-.5*(Math.cos(Math.PI*e)-1)},T=function(e){return 0===e?0:Math.pow(2,10*(e-1))},w=function(e){return 1===e?1:1-Math.pow(2,-10*e)},S=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)},O=function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},P=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)},D=function(e){var t=1.70158;return e*e*((t+1)*e-t)},M=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},N=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},R=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)},F=function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},B=function(e){return Math.pow(e,4)},U=function(e){return Math.pow(e,.25)};function j(e,t,i,n,s,r){var o,a,l,c,u,h=0,d=0,p=0,f=function(e){return((h*e+d)*e+p)*e},m=function(e){return(3*h*e+2*d)*e+p},g=function(e){return e>=0?e:0-e};return h=1-(p=3*t)-(d=3*(n-t)-p),l=1-(u=3*i)-(c=3*(s-i)-u),o=e,a=function(e){return 1/(200*e)}(r),function(e){return((l*e+c)*e+u)*e}(function(e,t){var i,n,s,r,o,a;for(s=e,a=0;a<8;a++){if(r=f(s)-e,g(r)<t)return s;if(o=m(s),g(o)<1e-6)break;s-=r/o}if((s=e)<(i=0))return i;if(s>(n=1))return n;for(;i<n;){if(r=f(s),g(r-e)<t)return s;e>r?i=s:n=s,s=.5*(n-i)+i}return s}(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,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(s){return j(s,e,t,i,n,1)}},H=function(e,t,i,n,s){var r=q(t,i,n,s);return r.displayName=e,r.x1=t,r.y1=i,r.x2=n,r.y2=s,Ce.formulas[e]=r},V=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 n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}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,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function 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",ne="undefined"!=typeof window?window:i.g,se="afterTween",re="afterTweenEnd",oe="beforeTween",ae="tweenCreated",le="function",ce="string",ue=ne.requestAnimationFrame||ne.webkitRequestAnimationFrame||ne.oRequestAnimationFrame||ne.msRequestAnimationFrame||ne.mozCancelRequestAnimationFrame&&ne.mozRequestAnimationFrame||setTimeout,he=function(){},de=null,pe=null,fe=Q({},n),me=function(e,t,i,n,s,r,o){var a,l,c,u=e<r?0:(e-r)/s,h=!1;for(var d in o&&o.call&&(h=!0,a=o(u)),t)h||(a=((l=o[d]).call?l:fe[l])(u)),c=i[d],t[d]=c+(n[d]-c)*a;return t},ge=function(e,t){var i=e._timestamp,n=e._currentState,s=e._delay;if(!(t<i+s)){var r=e._duration,o=e._targetState,a=i+s+r,l=t>a?a:t;e._hasEnded=l>=a;var c=r-(a-l),u=e._filters.length>0;if(e._hasEnded)return e._render(o,e._data,c),e.stop(!0);u&&e._applyFilter(oe),l<i+s?i=r=l=1:i+=s,me(l,n,e._originalState,o,r,i,e._easing),u&&e._applyFilter(se),e._render(n,e._data,c)}},ye=function(){for(var e,t=Ce.now(),i=de;i;)e=i._next,ge(i,t),i=e},_e=Date.now||function(){return+new Date},ve=!1,be=function(e){e&&ve||(ve=e,e&&Te())},Te=function e(){Z=_e(),ve&&ue.call(ne,e,16.666666666666668),ye()},we=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 n=G(t);if(fe[t])return fe[t];if(n===ce||n===le)for(var s in e)i[s]=t;else for(var r in e)i[r]=t[r]||ie;return i},Se=function(e){e===de?(de=e._next)?de._previous=null:pe=null:e===pe?(pe=e._previous)?pe._next=null:de=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=he,this._render=he,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 n in t)i[n]=t[n];var s=i.promise,r=void 0===s?this._promiseCtor:s,o=i.start,a=void 0===o?he:o,l=i.finish,c=i.render,u=void 0===c?this._config.step||he:c,h=i.step,d=void 0===h?he:h;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=u||d,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,y=this._originalState,_=this._targetState;for(var v in p)g[v]=p[v];var b=!1;for(var T in g){var w=g[T];b||G(w)!==ce||(b=!0),y[T]=w,_[T]=m.hasOwnProperty(T)?m[T]:w}if(this._easing=we(this._currentState,i.easing,this._easing),this._filters.length=0,b){for(var S in e.filters)e.filters[S].doesApply(this)&&this._filters.push(e.filters[S]);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,Se(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===de?(de=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,Se(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(se),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 ue=e})),J(Ce,"filters",{}),J(Ce,"formulas",fe),be(!0);var xe,Ie,Ae=/(\d|-|\.)/,Le=/([^\-0-9.]+)/g,Oe=/[0-9.-]+/g,Pe=(xe=Oe.source,Ie=/,\s*/.source,new RegExp("rgba?\\(".concat(xe).concat(Ie).concat(xe).concat(Ie).concat(xe,"(").concat(Ie).concat(xe,")?\\)"),"g")),De=/^.*\(/,Me=/#([0-9]|[a-f]){3,6}/gi,Ne="VAL",Re=function(e,t){return e.map((function(e,i){return"_".concat(t,"_").concat(i)}))};function Fe(e){return parseInt(e,16)}var Be=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]),[Fe(t.substr(0,2)),Fe(t.substr(2,2)),Fe(t.substr(4,2))]).join(","),")");var t},Ue=function(e,t,i){var n=t.match(e),s=t.replace(e,Ne);return n&&n.forEach((function(e){return s=s.replace(Ne,i(e))})),s},je=function(e){for(var t in e){var i=e[t];"string"==typeof i&&i.match(Me)&&(e[t]=Ue(Me,i,Be))}},$e=function(e){var t=e.match(Oe),i=t.slice(0,3).map(Math.floor),n=e.match(De)[0];if(3===t.length)return"".concat(n).concat(i.join(","),")");if(4===t.length)return"".concat(n).concat(i.join(","),",").concat(t[3],")");throw new Error("Invalid rgbChunk: ".concat(e))},qe=function(e){return e.match(Oe)},He=function(e,t){var i={};return t.forEach((function(t){i[t]=e[t],delete e[t]})),i},Ve=function(e,t){return t.map((function(t){return e[t]}))},ze=function(e,t){return t.forEach((function(t){return e=e.replace(Ne,+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(je),e._tokenData=function(e){var t,i,n={};for(var s in e){var r=e[s];"string"==typeof r&&(n[s]={formatString:(t=r,i=void 0,i=t.match(Le),i?(1===i.length||t.charAt(0).match(Ae))&&i.unshift(""):i=["",""],i.join(Ne)),chunkNames:Re(qe(r),s)})}return n}(t)}function Xe(e){var t=e._currentState,i=e._originalState,n=e._targetState,s=e._easing,r=e._tokenData;!function(e,t){var i=function(i){var n=t[i].chunkNames,s=e[i];if("string"==typeof s){var r=s.split(" "),o=r[r.length-1];n.forEach((function(t,i){return e[t]=r[i]||o}))}else n.forEach((function(t){return e[t]=s}));delete e[i]};for(var n in t)i(n)}(s,r),[t,i,n].forEach((function(e){return function(e,t){var i=function(i){qe(e[i]).forEach((function(n,s){return e[t[i].chunkNames[s]]=+n})),delete e[i]};for(var n in t)i(n)}(e,r)}))}function Ke(e){var t=e._currentState,i=e._originalState,n=e._targetState,s=e._easing,r=e._tokenData;[t,i,n].forEach((function(e){return function(e,t){for(var i in t){var n=t[i],s=n.chunkNames,r=n.formatString,o=ze(r,Ve(He(e,s),s));e[i]=Ue(Pe,o,$e)}}(e,r)})),function(e,t){for(var i in t){var n=t[i].chunkNames,s=e[n[0]];e[i]="string"==typeof s?n.map((function(t){var i=e[t];return delete e[t],i})).join(" "):s}}(s,r)}function Ye(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function 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,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=Qe({},e),o=we(e,n);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,s,o);return Ze._applyFilter("afterTween"),l};function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function st(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function 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(){nt(this,e),ot.set(this,{writable:!0,value:[]});for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];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.forEac
vendor: 9,864 bytes, line 3
3h((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()}))}}])&&st(e.prototype,t),e}();Ce.filters.token=s}},t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={exports:{}};return e[n](s,s.exports,i),s.exports}return i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},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=s():"object"==typeof i?i.shifty=s():n.shifty=s()},{}],3:[function(e,t,i){var n=e("./shape"),s=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,n.apply(this,arguments)};r.prototype=new n,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 s.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 n=e("./shape"),s=e("./utils"),r=function(e,t){this._pathTemplate=t.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",n.apply(this,arguments)};r.prototype=new n,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 s.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 n=e("shifty"),s=e("./utils"),r=n.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 n;i=s.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),n=s.isString(t)?document.querySelector(t):t,this.path=n,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(s.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||{},s.isFunction(t)&&(i=t,t={});var n=s.extend({},t),o=s.extend({},this._opts);t=s.extend(o,t);var a=this._easing(t.easing),l=this._resolveFromAndTo(e,a,n);this.stop(),this.path.getBoundingClientRect();var c=this._getComputedDashOffset(),u=this._progressToOffset(e),h=this;this._tweenable=new r,this._tweenable.tween({from:s.extend({offset:c},l.from),to:s.extend({offset:u},l.to),duration:t.duration,delay:t.delay,easing:a,step:function(e){h.path.style.strokeDashoffset=e.offset;var i=t.shape||h;t.step(e,i,t.attachment)}}).then((function(e){s.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 n.interpolate(this._opts.from,this._opts.to,this.value(),e)},a.prototype._calculateTo=function(e,t){return n.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 n=e("./shape"),s=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,n.apply(this,arguments)};o.prototype=new n,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=s.prototype._pathString,o.prototype._trailString=s.prototype._trailString,t.exports=o},{"./circle":3,"./shape":8,"./utils":10}],8:[function(e,t,i){var n=e("./path"),s=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=s.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),s.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),s.isObject(i)&&s.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var r,o=this._createSvgView(this._opts);if(!(r=s.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&&s.setStyles(o.svg,this._opts.svgStyle),this.svg=o.svg,this.path=o.path,this.trail=o.trail,this.text=null;var a=s.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new n(o.path,a),s.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)),s.isObject(e)?(s.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 n=this._createPath(e);return t.appendChild(n),{svg:t,path:n,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=s.extend({},e);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,
3i.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 n=e.text.style;return n&&(e.text.autoStyleContainer&&(t.style.position="relative"),s.setStyles(i,n),n.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),n=parseFloat(t.getPropertyValue("height"),10);s.floatEquals(this.containerAspectRatio,i/n)||(console.warn("Incorrect aspect ratio of container","#"+e.id,"detected:",t.getPropertyValue("width")+"(width)","/",t.getPropertyValue("height")+"(height)","=",i/n),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},t.exports=o},{"./path":6,"./utils":10}],9:[function(e,t,i){var n=e("./shape"),s=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}",n.apply(this,arguments)};r.prototype=new n,r.prototype.constructor=r,r.prototype._pathString=function(e){var t=100-e.strokeWidth/2;return s.render(this._pathTemplate,{width:t,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2})},r.prototype._trailString=function(e){var t=100-e.strokeWidth/2;return s.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 n=e("lodash.merge"),s="Webkit Moz O ms".split(" "),r=.001;function o(e,t){var i=e;for(var n in t)if(t.hasOwnProperty(n)){var s=t[n],r=new RegExp("\\{"+n+"\\}","g");i=i.replace(r,s)}return i}function a(e,t,i){for(var n=e.style,r=0;r<s.length;++r)n[s[r]+c(t)]=i;n[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 c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e){return"string"==typeof e||e instanceof String}function h(e){return"function"==typeof e}function d(e){return"[object Array]"===Object.prototype.toString.call(e)}function p(e){return!d(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:n,render:o,setStyle:a,setStyles:l,capitalize:c,isString:u,isFunction:h,isObject:p,forEachObject:f,floatEquals:m,removeChildren:g}},{"lodash.merge":1}]},{},[5])(5)}));const mo=qr(fo),go={color:"#5C6F82",trailColor:"#D9DADB",strokeWidth:24,trailWidth:12,easing:"easeInOut",duration:1400,text:{autoStyleContainer:!1},animate:!0,value:0};class yo extends _i{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={...go,step:this._getStepCallback(),...gi.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 mo.Circle(this._element,this._config),this._config.value>0&&this.set(this._config.value)}}vi.find("[data-bs-progress-donut]").forEach((e=>{yo.getOrCreateInstance(e)}));const _o="dragend",vo="dragover",bo="dragenter",To="dragleave",wo="drop",So="success",Eo="dragover",Co="loading",ko="[data-bs-upload-dragdrop]";class xo extends _i{constructor(e){super(e);const t=vi.findOne("[data-bs-progress-donut]",this._element);t&&(this._donut=yo.getOrCreateInstance(t)),this._bindEvents()}static get NAME(){return"upload"}progress(e){this._donut.set(e)}start(){this.reset(),this._element.classList.add(Co)}success(){this._element.classList.remove(Co),this._element.classList.add(So)}reset(){this._element.classList.remove(Co),this._element.classList.remove(So),this._donut.set(0)}dispose(){this._donut.dispose(),super.dispose()}_bindEvents(){di.on(this._element,"drag",(e=>this._preventEvent(e))),di.on(this._element,"dragstart",(e=>this._preventEvent(e))),di.on(this._element,_o,(e=>this._preventEvent(e))),di.on(this._element,vo,(e=>this._preventEvent(e))),di.on(this._element,bo,(e=>this._preventEvent(e))),di.on(this._element,To,(e=>this._preventEvent(e))),di.on(this._element,wo,(e=>this._preventEvent(e))),di.on(this._element,vo,(()=>this._dropIn())),di.on(this._element,bo,(()=>this._dropIn())),di.on(this._element,To,(()=>this._dropOut())),di.on(this._element,_o,(()=>this._dropOut())),di.on(this._element,wo,(()=>this._dropOut())),di.on(this._element,wo,(()=>this._drop()))}_preventEvent(e){e.preventDefault(),e.stopPropagation()}_dropIn(){this._isSuccess()||this._element.classList.add(Eo)}_dropOut(){this._isSuccess()||this._element.classList.remove(Eo)}_drop(){this._isSuccess()||this.start()}_isSuccess(){return this._element.classList.contains(So)}}const Io=e=>{let t=e.matches&&e.matches(ko)?e:e.closest?e.closest(ko):null;return t&&xo.getOrCreateInstance(t),null};"undefined"!=typeof document&&(document.addEventListener("dragenter",(function(e){Io(e.target)})),di.on(document,"click.bs.upload.data-api",ko+" label",(function(){Io(this)})));const Ao="back-to-top-show",Lo={positionTop:0,scrollLimit:100,duration:800,easing:"easeInOutSine"};class Oo extends _i{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(Ao)||this._element.classList.add(Ao)}hide(){this._element.classList.contains(Ao)&&this._element.classList.remove(Ao)}toggleShow(){"undefined"!=typeof document&&document.scrollingElement.scrollTop>this._config.scrollLimit?this.show():this.hide()}scrollToTop(){this._isAnim||(this._isAnim=!0,Js(this._config.positionTop,{duration:this._config.duration,easing:this._config.easing,complete:()=>{this._isAnim=!1}}
vendor: 5,604 bytes, lines 3-9
3))}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(e){return e={...Lo,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=Wn((()=>this.toggleShow())),di.on(this._element,"click.bs.backtotop",(e=>{e.preventDefault(),this.scrollToTop()}))}}Wn((()=>{vi.find('[data-bs-toggle="backtotop"]').map((e=>{Oo.getOrCreateInstance(e)}))}));const Po=".bs.historyback",Do=`click${Po}`,Mo=`click${Po}.data-api`;class No extends _i{constructor(e){super(e),this._bindEvents()}static get NAME(){return"historyback"}back(){"undefined"!=typeof window&&window.history.back()}_bindEvents(){di.on(this._element,Do,(e=>{e.preventDefault(),this.back()}))}}di.on(document,Mo,'[data-bs-toggle="historyback"]',(function(e){e.preventDefault();No.getOrCreateInstance(this).back()}));const Ro=".bs.historyback",Fo=`click${Ro}`,Bo=`click${Ro}.data-api`,Uo={duration:800,easing:"easeInOutSine"};class jo extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._bindEvents()}static get NAME(){return"historyback"}goToTarget(){const e=Nt(this._element);e&&Js(e.offsetTop,{duration:this._config.duration,easing:this._config.easing})}_getConfig(e){return e={...Uo,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){di.on(this._element,Fo,(e=>{e.preventDefault(),this.goToTarget()}))}}di.on(document,Bo,'[data-bs-toggle="forward"]',(function(e){e.preventDefault();jo.getOrCreateInstance(this).goToTarget()}));var $o=Hr((function(e){!function(t,i){e.exports?e.exports=i():t.EvEmitter=i()}("undefined"!=typeof window?window:jr,(function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.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 n=i.indexOf(t);return-1!=n&&i.splice(n,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 n=this._onceEvents&&this._onceEvents[e],s=0;s<i.length;s++){var r=i[s];n&&n[r]&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}))})),qo=Hr((function(e){ 4/*! 5 * getSize v2.0.3 6 * measure size of elements 7 * MIT license 8 */ 9!function(t,i){e.exports?e.exports=i():t.getSize=i()}(window,(function(){function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=i.length;function s(e){var i=getComputedStyle(e);return i||t("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var r,o=!1;function a(t){if(function(){if(!o){o=!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 n=s(t);r=200==Math.round(e(n.width)),a.isBoxSizeOuter=r,i.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var l=s(t);if("none"==l.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<n;t++)e[i[t]]=0;return e}();var c={};c.width=t.offsetWidth,c.height=t.offsetHeight;for(var u=c.isBorderBox="border-box"==l.boxSizing,h=0;h<n;h++){var d=i[h],p=l[d],f=parseFloat(p);c[d]=isNaN(f)?0:f}var m=c.paddingLeft+c.paddingRight,g=c.paddingTop+c.paddingBottom,y=c.marginLeft+c.marginRight,_=c.marginTop+c.marginBottom,v=c.borderLeftWidth+c.borderRightWidth,b=c.borderTopWidth+c.borderBottomWidth,T=u&&r,w=e(l.width);!1!==w&&(c.width=w+(T?0:m+v));var S=e(l.height);return!1!==S&&(c.height=S+(T?0:g+b)),c.innerWidth=c.width-(m+v),c.innerHeight=c.height-(g+b),c.outerWidth=c.width+y,c.outerHeight=c.height+_,c}}return a}))})),Ho=Hr((function(e){!function(t,i){e.exports?e.exports=i():t.matchesSelector=i()}(window,(function(){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 n=t[i]+"MatchesSelector";if(e[n])return n}}();return function(t,i){return t[e](i)}}))})),Vo=Hr((function(e){!function(t,i){e.exports?e.exports=i(t,Ho):t.fizzyUIUtils=i(t,t.matchesSelector)}(window,(function(e,t){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}},n=Array.prototype.slice;i.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?n.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,n){e=i.makeArray(e);var s=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(n){t(e,n)&&s.push(e);for(var i=e.querySelectorAll(n),r=0;r<i.length;r++)s.push(i[r])}else s.push(e)})),s},i.debounceMethod=function(e,t,i){i=i||100;
vendor: 4,532 bytes, line 9
9var n=e.prototype[t],s=t+"Timeout";e.prototype[t]=function(){var e=this[s];clearTimeout(e);var t=arguments,r=this;this[s]=setTimeout((function(){n.apply(r,t),delete r[s]}),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 s=e.console;return i.htmlInit=function(t,n){i.docReady((function(){var r=i.toDashed(n),o="data-"+r,a=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+r),c=i.makeArray(a).concat(i.makeArray(l)),u=o+"-options",h=e.jQuery;c.forEach((function(e){var i,r=e.getAttribute(o)||e.getAttribute(u);try{i=r&&JSON.parse(r)}catch(t){return void(s&&s.error("Error parsing "+o+" on "+e.className+": "+t))}var a=new t(e,i);h&&h.data(e,n,a)}))}))},i}))})),zo=Hr((function(e){!function(t,i){e.exports?e.exports=i($o,qo):(t.Outlayer={},t.Outlayer.Item=i(t.EvEmitter,t.getSize))}(window,(function(e,t){var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",s="string"==typeof i.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],o={transform:s,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var l=a.prototype=Object.create(e.prototype);l.constructor=a,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.getSize=function(){this.size=t(this.element)},l.css=function(e){var t=this.element.style;for(var i in e){t[o[i]||i]=e[i]}},l.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=e[t?"left":"right"],s=e[i?"top":"bottom"],r=parseFloat(n),o=parseFloat(s),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=s.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},l.layoutPosition=function(){var e=this.layout.size,t={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),s=i?"paddingLeft":"paddingRight",r=i?"left":"right",o=i?"right":"left",a=this.position.x+e[s];t[r]=this.getXValue(a),t[o]="";var l=n?"paddingTop":"paddingBottom",c=n?"top":"bottom",u=n?"bottom":"top",h=this.position.y+e[l];t[c]=this.getYValue(h),t[u]="",this.css(t),this.emitEvent("layout",[this])},l.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},l.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},l._transitionTo=function(e,t){this.getPosition();var i=this.position.x,n=this.position.y,s=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!s||this.isTransitioning){var r=e-i,o=t-n,a={};a.transform=this.getTranslate(r,o),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},l.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},l._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},l.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,"+s.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));l.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}
vendor: 4,540 bytes, lines 9-15
9),this.element.addEventListener(r,this,!1)}},l.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},l.onotransitionend=function(e){this.ontransitionend(e)};var u={"-webkit-transform":"transform"};l.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,i=u[e.propertyName]||e.propertyName;if(delete t.ingProperties[i],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[i]),i in t.onEnd)t.onEnd[i].call(this),delete t.onEnd[i];this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},l._removeStyles=function(e){var t={};for(var i in e)t[i]="";this.css(t)};var h={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(h)},l.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},l.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})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var i in t)return i},l.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})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}))})),Wo=Hr((function(e){ 10/*! 11 * Outlayer v2.1.1 12 * the brains and guts of a layout library 13 * MIT license 14 */ 15!function(t,i){e.exports?e.exports=i(t,$o,qo,Vo,zo):t.Outlayer=i(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,(function(e,t,i,n,s){var r=e.console,o=e.jQuery,a=function(){},l=0,c={};function u(e,t){var i=n.getQueryElement(e);if(i){this.element=i,o&&(this.$element=o(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(t);var s=++l;this.element.outlayerGUID=s,c[s]=this,this._create(),this._getOption("initLayout")&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||e))}u.namespace="outlayer",u.Item=s,u.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 h=u.prototype;function d(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}n.extend(h,t.prototype),h.option=function(e){n.extend(this.options,e)},h._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},u.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(e){for(var t=this._filterFindItemElements(e),i=this.constructor.Item,n=[],s=0;s<t.length;s++){var r=new i(t[s],this);n.push(r)}return n},h._filterFindItemElements=function(e){return n.filterFindElements(e,this.options.itemSelector)},h.getItemElements=function(){return this.items.map((function(e){return e.element}))},h.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}
vendor: 7,911 bytes, lines 15-23
15,h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=i(this.element)},h._getMeasurement=function(e,t){var n,s=this.options[e];s?("string"==typeof s?n=this.element.querySelector(s):s instanceof HTMLElement&&(n=s),this[e]=n?i(n)[t]:s):this[e]=0},h.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},h._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},h._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var i=[];e.forEach((function(e){var n=this._getItemLayoutPosition(e);n.item=e,n.isInstant=t||e.isLayoutInstant,i.push(n)}),this),this._processLayoutQueue(i)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},h.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),i=t&&t[1],n=t&&t[2];if(!i.length)return 0;i=parseFloat(i);var s=p[n]||1;return i*s}(e),this.stagger;this.stagger=0},h._positionItem=function(e,t,i,n,s){n?e.goTo(t,i):(e.stagger(s*this.stagger),e.moveTo(t,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},h._getContainerSize=a,h._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"}},h._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var s=t.length;if(t&&s){var r=0;t.forEach((function(t){t.once(e,o)}))}else n();function o(){++r==s&&n()}},h.dispatchEvent=function(e,t,i){var n=t?[t].concat(i):i;if(this.emitEvent(e,n),o)if(this.$element=this.$element||o(this.element),t){var s=o.Event(t);s.type=e,this.$element.trigger(s,i)}else this.$element.trigger(e,i)},h.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},h.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},h.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},h.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){n.removeFrom(this.stamps,e),this.unignore(e)}),this)},h._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=n.makeArray(e)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._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)}},h._manageStamp=a,h._getElementOffset=function(e){var t=e.getBoundingClientRect(),n=this._boundingRect,s=i(e);return{left:t.left-n.left-s.marginLeft,top:t.top-n.top-s.marginTop,right:n.right-t.right-s.marginRight,bottom:n.bottom-t.bottom-s.marginBottom}},h.handleEvent=n.handleEvent,h.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},n.debounceMethod(u,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var e=i(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},h.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},h.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},h.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)}},h.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()}))}},h.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()}))}},h.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},h.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},h.getItem=function(e){for(var t=0;t<this.items.length;t++){var i=this.items[t];if(i.element==e)return i}},h.getItems=function(e){e=n.makeArray(e);var t=[];return e.forEach((function(e){var i=this.getItem(e);i&&t.push(i)}),this),t},h.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),n.removeFrom(this.items,e)}),this)},h.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 c[t],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},u.data=function(e){var t=(e=n.getQueryElement(e))&&e.outlayerGUID;return t&&c[t]},u.create=function(e,t){var i=d(u);return i.defaults=n.extend({},u.defaults),n.extend(i.defaults,t),i.compatOptions=n.extend({},u.compatOptions),i.namespace=e,i.data=u.data,i.Item=d(s),n.htmlInit(i,e),o&&o.bridget&&o.bridget(e,i),i};var p={ms:1,s:1e3};return u.Item=s,u}))})),Go=Hr((function(e){ 16/*! 17 * Masonry v4.2.2 18 * Cascading grid layout library 19 * https://masonry.desandro.com 20 * MIT License 21 * by David DeSandro 22 */ 23!function(t,i){e.exports?e.exports=i(Wo,qo):t.Masonry=i(t.Outlayer,t.getSize)}(window,(function(e,t){var i=e.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._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},n.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 n=this.columnWidth+=this.gutter,s=this.containerWidth+this.gutter,r=s/n,o=n-s%n;r=Math[o&&o<1?"round":"floor"](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,i=t(e);this.containerWidth=i&&i.innerWidth},n._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 n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,e),s={x:this.columnWidth*n.col,y:n.y},r=n.y+e.size.outerHeight,o=i+n.col,a=n.col;a<o;a++)this.colYs[a]=r;return s},n._getTopColPosition=function(e){var t=this._getTopColGroup(e),i=Math.min.apply(Math,t);return{col:t.indexOf(i),y:i}},n._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],i=this.cols+1-e,n=0;n<i;n++)t[n]=this._getColGroupY(n,e);return t},n._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)},n._getHorizontalColPosition=function(e,t){var i=this.horizontalColIndex%this.cols;i=e>1&&i+e>this.cols?0:i;var n=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=n?i+e:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,e)}},n._manageStamp=function(e){var i=t(e),n=this._getElementOffset(e),s=this._getOption("originLeft")?
23n.left:n.right,r=s+i.outerWidth,o=Math.floor(s/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")?n.top:n.bottom)+i.outerHeight,c=o;c<=a;c++)this.colYs[c]=Math.max(l,this.colYs[c])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},n._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},i}))}));const Xo="masonry-loader",Ko=`.${Xo}`,Yo={percentPosition:!0};class Qo extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._masonry=null,this._images=vi.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={...Yo,...gi.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 Go(this._element,this._config)}_createLoader(){if("undefined"==typeof document)return;const e=document.createElement("div");return e.classList.add(Xo,"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=vi.findOne(Ko,this._element);return e||this._createLoader()}_destroyLoader(){const e=vi.findOne(Ko,this._element);e&&e.remove()}_showLoader(){this._getOrCreateLoader().classList.add("show")}_hideLoader(){this._destroyLoader()}}const Jo=vi.find('[data-bs-toggle="masonry"]');Jo.length>0&&Jo.forEach((e=>{Qo.getOrCreateInstance(e)}));const Zo=".bs.list",ea=`click${Zo}`,ta=`click${Zo}.data-api`,ia="active",na="input[type=checkbox]";class sa extends _i{constructor(e){super(e),this._init()}static get NAME(){return"list"}toggleCheckbox(e){const t=vi.findOne("input",e);t&&(t.checked?(t.checked=!1,e.classList.remove(ia)):(t.checked=!0,e.classList.add(ia)))}_init(){this._initCheckbox()}_initCheckbox(){vi.find(na,this._element).forEach((e=>{di.on(e.closest("a"),ea,(t=>{t.preventDefault(),this.toggleCheckbox(e.closest("a"))}))}))}}vi.find("[data-bs-list-checkbox]").forEach((e=>{vi.find(na,e).forEach((t=>{di.one(t.closest("a"),ta,(t=>{if(!sa.getInstance(e)){t.preventDefault();sa.getOrCreateInstance(e).toggleCheckbox(t.currentTarget)}}))}))}));const ra=".bs.transfer",oa=".data-api",aa=`click${ra}${oa}`,la=`keyup${ra}${oa}`,ca=`click${ra}`,ua="active",ha="source",da="semi-checked",pa="[data-bs-transfer]",fa=".transfer-header input",ma=".transfer-group input",ga=".it-transfer-wrapper",ya=".transfer-group",_a=`${ga}.source`,va=`${ga}.target`,ba=".form-check";class Ta extends _i{constructor(e){super(e),this._addBtnElement=vi.findOne("a.transfer",this._element),this._invBtnElement=vi.findOne("a.backtransfer",this._element),this._resetBtnElement=vi.findOne("a.reset",this._element),this._listDefault={source:vi.find(_a+" "+ya+" "+ba,this._element),target:vi.find(va+" "+ya+" "+ba,this._element)},this._bindEvents()}static get NAME(){return"transfer"}_bindEvents(){vi.find(fa,this._element).forEach((e=>{di.on(e,ca,(()=>{this._checkListHeader(e.closest(ga))}))})),vi.find(ma,this._element).forEach((e=>{di.on(e,ca,(()=>{this._checkList(e.closest(ga))}))})),di.on(this._addBtnElement,ca,(e=>{e.preventDefault(),this._disableElement(this._addBtnElement),this._addItems()})),di.on(this._invBtnElement,ca,(e=>{e.preventDefault(),this._disableElement(this._invBtnElement),this._addItems(!0)})),di.on(this._resetBtnElement,ca,(e=>{e.preventDefault(),this._disableElement(this._addBtnElement),this._disableElement(this._invBtnElement),this._disableElement(this._resetBtnElement),this._resetAll()}))}_disableElement(e){e.classList.remove(ua),e.setAttribute("disabled","disabled"),e.setAttribute("aria-disabled","true")}_enableElement(e){e.classList.add(ua),e.removeAttribute("disabled"),e.removeAttribute("aria-disabled")}_getScopeData(e){return{scope:e,list:vi.find(ma,e),listChecked:vi.find(ma+":checked",e),head:vi.findOne(".transfer-header",e),inputHead:vi.findOne(fa,e),labelNumHead:vi.findOne(".transfer-header span.num",e),group:vi.findOne(ya,e)}}_checkList(e){const t=this._getScopeData(e);0==t.listChecked.length?(t.inputHead.classList.remove(da),t.inputHead.checked=!0,e.classList.contains(ha)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(t.listChecked.length==t.list.length?(t.inputHead.classList.remove(da),t.inputHead.checked=!0):(t.inputHead.classList.add(da),t.inputHead.checked=!1),e.classList.contains(ha)?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}
23)),t.inputHead.classList.remove(da),t.inputHead.checked=!1,e.classList.contains(ha)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(t.list.forEach((e=>{e.checked=!0})),e.classList.contains(ha)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_addItems(e){const t=this._getScopeData(vi.findOne(e?va:_a,this._element)),i=this._getScopeData(vi.findOne(e?_a:va,this._element)),n=t.listChecked,s=t.inputHead,r=t.labelNumHead,o=n.length,a=t.list.length,l=i.group,c=i.list.length+o,u=i.labelNumHead,h=i.inputHead;n.forEach((e=>{const t=e.closest(ba);t.remove(),l.appendChild(t),e.checked=!1}));const d=a-o,p=c;r.innerText=d,u.innerText=p,0==d&&s.setAttribute("disabled",!0),p>0&&h.removeAttribute("disabled"),s.classList.remove(da),s.checked=!1,this._enableElement(this._resetBtnElement)}_resetAll(){const e={source:this._getScopeData(vi.findOne(_a,this._element)),target:this._getScopeData(vi.findOne(va,this._element))};Object.keys(e).forEach((t=>{e[t].list.forEach((e=>e.closest(ba).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(da),e[t].inputHead.checked=!1}))}}di.on(document,aa,pa+" .form-check label",(function(){Ta.getOrCreateInstance(this.closest(pa))})),di.on(document,la,pa+" .form-check label",(function(){Ta.getOrCreateInstance(this.closest(pa))}));const wa=".bs.alert",Sa=`close${wa}`,Ea=`closed${wa}`;let Ca=class e extends _i{static get NAME(){return"alert"}close(){if(di.trigger(this._element,Sa).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(),di.trigger(this._element,Ea),this.dispose()}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this);if("string"==typeof t){if(void 0===i[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);i[t](this)}}))}};Ui(Ca,"close"),Gt(Ca);const ka='[data-bs-toggle="button"]';let xa=class e extends _i{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this);"toggle"===t&&i[t]()}))}};di.on(document,"click.bs.button.data-api",ka,(e=>{e.preventDefault();const t=e.target.closest(ka);xa.getOrCreateInstance(t).toggle()})),Gt(xa);const Ia=".bs.swipe",Aa=`touchstart${Ia}`,La=`touchmove${Ia}`,Oa=`touchend${Ia}`,Pa=`pointerdown${Ia}`,Da=`pointerup${Ia}`,Ma={endCallback:null,leftCallback:null,rightCallback:null},Na={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ra extends yi{constructor(e,t){super(),this._element=e,e&&Ra.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ma}static get DefaultType(){return Na}static get NAME(){return"swipe"}dispose(){di.off(this._element,Ia)}_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(),Xt(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&&Xt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(di.on(this._element,Pa,(e=>this._start(e))),di.on(this._element,Da,(e=>this._end(e))),this._element.classList.add("pointer-event")):(di.on(this._element,Aa,(e=>this._start(e))),di.on(this._element,La,(e=>this._move(e))),di.on(this._element,Oa,(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 Fa=".bs.carousel",Ba=".data-api",Ua="ArrowLeft",ja="ArrowRight",$a="next",qa="prev",Ha="left",Va="right",za=`slide${Fa}`,Wa=`slid${Fa}`,Ga=`keydown${Fa}`,Xa=`mouseenter${Fa}`,Ka=`mouseleave${Fa}`,Ya=`dragstart${Fa}`,Qa=`load${Fa}${Ba}`,Ja=`click${Fa}${Ba}`,Za="carousel",el="active",tl=".active",il=".carousel-item",nl=tl+il,sl={[Ua]:Va,[j
vendor: 4,241 bytes, line 23
23a]:Ha},rl={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ol={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let al=class e extends _i{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vi.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Za&&this.cycle()}static get Default(){return rl}static get DefaultType(){return ol}static get NAME(){return"carousel"}next(){this._slide($a)}nextWhenVisible(){!document.hidden&&Ut(this._element)&&this.next()}prev(){this._slide(qa)}pause(){this._isSliding&&Rt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?di.one(this._element,Wa,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void di.one(this._element,Wa,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?$a:qa;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&di.on(this._element,Ga,(e=>this._keydown(e))),"hover"===this._config.pause&&(di.on(this._element,Xa,(()=>this.pause())),di.on(this._element,Ka,(()=>this._maybeEnableCycle()))),this._config.touch&&Ra.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of vi.find(".carousel-item img",this._element))di.on(e,Ya,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Ha)),rightCallback:()=>this._slide(this._directionToOrder(Va)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Ra(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=sl[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=vi.findOne(tl,this._indicatorsElement);t.classList.remove(el),t.removeAttribute("aria-current");const i=vi.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(el),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(),n=e===$a,s=t||Yt(this._getItems(),i,n,this._config.wrap);if(s===i)return;const r=this._getItemIndex(s),o=t=>di.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r});if(o(za).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),Ht(s),i.classList.add(l),s.classList.add(l);this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(el),i.classList.remove(el,c,l),this._isSliding=!1,o(Wa)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return vi.findOne(nl,this._element)}_getItems(){return vi.find(il,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Wt()?e===Ha?qa:$a:e===Ha?$a:qa}_orderToDirection(e){return Wt()?e===qa?Ha:Va:e===qa?Va:Ha}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===i[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
23amed "${t}"`);i[t]()}}else i.to(t)}))}};di.on(document,Ja,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Nt(this);if(!t||!t.classList.contains(Za))return;e.preventDefault();const i=al.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===gi.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),di.on(window,Qa,(()=>{const e=vi.find('[data-bs-ride="carousel"]');for(const t of e)al.getOrCreateInstance(t)})),Gt(al);const ll=".bs.collapse",cl=`show${ll}`,ul=`shown${ll}`,hl=`hide${ll}`,dl=`hidden${ll}`,pl=`click${ll}.data-api`,fl="show",ml="collapse",gl="collapsing",yl=`:scope .${ml} .${ml}`,_l='[data-bs-toggle="collapse"]',vl={parent:null,toggle:!0},bl={parent:"(null|element)",toggle:"boolean"};let Tl=class e extends _i{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=vi.find(_l);for(const e of i){const t=Mt(e),i=vi.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 vl}static get DefaultType(){return bl}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((t=>e.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(di.trigger(this._element,cl).defaultPrevented)return;for(const e of t)e.hide();const i=this._getDimension();this._element.classList.remove(ml),this._element.classList.add(gl),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(gl),this._element.classList.add(ml,fl),this._element.style[i]="",di.trigger(this._element,ul)}),this._element,!0),this._element.style[i]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(di.trigger(this._element,hl).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ht(this._element),this._element.classList.add(gl),this._element.classList.remove(ml,fl);for(const e of this._triggerArray){const t=Nt(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(gl),this._element.classList.add(ml),di.trigger(this._element,dl)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(fl)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Bt(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(_l);for(const t of e){const e=Nt(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=vi.find(yl,this._config.parent);return vi.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(t){const i={};return"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),this.each((function(){const n=e.getOrCreateInstance(this,i);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}};di.on(document,pl,_l,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=Mt(this),i=vi.find(t);for(const e of i)Tl.getOrCreateInstance(e,{toggle:!1}).toggle()})),Gt(Tl);var wl="top",Sl="bottom",El="right",Cl="left",kl="auto",xl=[wl,Sl,El,Cl],Il="start",Al="end",Ll="clippingParents",Ol="viewport",Pl="popper",Dl="reference",Ml=xl.reduce((function(e,t){return e.concat([t+"-"+Il,t+"-"+Al])}),[]),Nl=[].concat(xl,[kl]).reduce((function(e,t){return e.concat([t,t+"-"+Il,t+"-"+Al])}),[]),Rl="beforeRead",Fl="read",Bl="afterRead",Ul="beforeMain",jl="main",$l="afterMain",ql="beforeWrite",Hl="write",Vl="afterWrite",zl=[Rl,Fl,Bl,Ul,jl,$l,ql,Hl,Vl];function Wl(e){return e?(e.nodeName||"").toLowerCase():null}function Gl(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xl(e){return e instanceof Gl(e).Element||e instanceof Element}function Kl(e){return e instanceof Gl(e).HTMLElement||e instanceof HTMLElement}function Yl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Gl(e).ShadowRoot||e instanceof ShadowRoot)}const Ql={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;
vendor: 15,019 bytes, line 23
23Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];Kl(s)&&Wl(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.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 n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});Kl(n)&&Wl(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Jl(e){return e.split("-")[0]}var Zl=Math.max,ec=Math.min,tc=Math.round;function ic(){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}function nc(){return!/^((?!chrome|android).)*safari/i.test(ic())}function sc(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&Kl(e)&&(s=e.offsetWidth>0&&tc(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&tc(n.height)/e.offsetHeight||1);var o=(Xl(e)?Gl(e):window).visualViewport,a=!nc()&&i,l=(n.left+(a&&o?o.offsetLeft:0))/s,c=(n.top+(a&&o?o.offsetTop:0))/r,u=n.width/s,h=n.height/r;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function rc(e){var t=sc(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}}function oc(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Yl(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ac(e){return Gl(e).getComputedStyle(e)}function lc(e){return["table","td","th"].indexOf(Wl(e))>=0}function cc(e){return((Xl(e)?e.ownerDocument:e.document)||window.document).documentElement}function uc(e){return"html"===Wl(e)?e:e.assignedSlot||e.parentNode||(Yl(e)?e.host:null)||cc(e)}function hc(e){return Kl(e)&&"fixed"!==ac(e).position?e.offsetParent:null}function dc(e){for(var t=Gl(e),i=hc(e);i&&lc(i)&&"static"===ac(i).position;)i=hc(i);return i&&("html"===Wl(i)||"body"===Wl(i)&&"static"===ac(i).position)?t:i||function(e){var t=/firefox/i.test(ic());if(/Trident/i.test(ic())&&Kl(e)&&"fixed"===ac(e).position)return null;var i=uc(e);for(Yl(i)&&(i=i.host);Kl(i)&&["html","body"].indexOf(Wl(i))<0;){var n=ac(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function pc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fc(e,t,i){return Zl(e,ec(t,i))}function mc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function gc(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const yc={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=Jl(i.placement),l=pc(a),c=[Cl,El].indexOf(a)>=0?"height":"width";if(r&&o){var u=function(e,t){return mc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:gc(e,xl))}(s.padding,i),h=rc(r),d="y"===l?wl:Cl,p="y"===l?Sl:El,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=dc(r),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=f/2-m/2,v=u[d],b=y-h[c]-u[p],T=y/2-h[c]/2+_,w=fc(v,T,b),S=l;i.modifiersData[n]=((t={})[S]=w,t.centerOffset=w-T,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&oc(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _c(e){return e.split("-")[1]}var vc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bc(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=o.x,p=void 0===d?0:d,f=o.y,m=void 0===f?0:f,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),v=Cl,b=wl,T=window;if(c){var w=dc(i),S="clientHeight",E="clientWidth";if(w===Gl(i)&&"static"!==ac(w=cc(i)).position&&"absolute"===a&&(S="scrollHeight",E="scrollWidth"),s===wl||(s===Cl||s===El)&&r===Al)b=Sl,m-=(h&&w===T&&T.visualViewport?T.visualViewport.height:w[S])-n.height,m*=l?1:-1;if(s===Cl||(s===wl||s===Sl)&&r===Al)v=El,p-=(h&&w===T&&T.visualViewport?T.visualViewport.width:w[E])-n.width,p*=l?1:-1}var C,k=Object.assign({position:a},c&&vc),x=!0===u?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:tc(i*s)/s||0,y:tc(n*s)/s||0}}({x:p,y:m},Gl(i)):{x:p,y:m};return p=x.x,m=x.y,l?Object.assign({},k,((C={})[b]=_?"0":"",C[v]=y?"0":"",C.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},k,((t={})[b]=_?m+"px":"",t[v]=y?p+"px":"",t.transform="",t))}const Tc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:Jl(t.placement),variation:_c(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var wc={passive:!0};const Sc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,r=void 0===s||s,o=n.resize,a=void 0===o||o,l=Gl(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,wc)})),a&&l.addEventListener("resize",i.update,wc),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,wc)})),a&&l.removeEventListener("resize",i.update,wc)}},data:{}};var Ec={left:"right",right:"left",bottom:"top",top:"bottom"};function Cc(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ec[e]}))}var kc={start:"end",end:"start"};function xc(e){return e.replace(/start|end/g,(function(e){return kc[e]}))}function Ic(e){var t=Gl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ac(e){return sc(cc(e)).left+Ic(e).scrollLeft}function Lc(e){var t=ac(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Oc(e){return["html","body","#document"].indexOf(Wl(e))>=0?e.ownerDocument.body:Kl(e)&&Lc(e)?e:Oc(uc(e))}function Pc(e,t){var i;void 0===t&&(t=[]);var n=Oc(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=Gl(n),o=s?[r].concat(r.visualViewport||[],Lc(n)?n:[]):n,a=t.concat(o);return s?a:a.concat(Pc(uc(o)))}function Dc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mc(e,t,i){return t===Ol?Dc(function(e,t){var i=Gl(e),n=cc(e),s=i.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=nc();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Ac(e),y:l}}(e,i)):Xl(t)?function(e,t){var i=sc(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):Dc(function(e){var t,i=cc(e),n=Ic(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=Zl(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Zl(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Ac(e),l=-n.scrollTop;return"rtl"===ac(s||i).direction&&(a+=Zl(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(cc(e)))}function Nc(e,t,i,n){var s="clippingParents"===t?function(e){var t=Pc(uc(e)),i=["absolute","fixed"].indexOf(ac(e).position)>=0&&Kl(e)?dc(e):e;return Xl(i)?t.filter((function(e){return Xl(e)&&oc(e,i)&&"body"!==Wl(e)})):[]}(e):[].concat(t),r=[].concat(s,[i]),o=r[0],a=r.reduce((function(t,i){var s=Mc(e,i,n);return t.top=Zl(s.top,t.top),t.right=ec(s.right,t.right),t.bottom=ec(s.bottom,t.bottom),t.left=Zl(s.left,t.left),t}),Mc(e,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Rc(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Jl(s):null,o=s?_c(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case wl:t={x:a,y:i.y-n.height};break;case Sl:t={x:a,y:i.y+i.height};break;case El:t={x:i.x+i.width,y:l};break;case Cl:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?pc(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Il:t[c]=t[c]-(i[u]/2-n[u]/2);break;case Al:t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function Fc(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.strategy,o=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?Ll:a,c=i.rootBoundary,u=void 0===c?Ol:c,h=i.elementContext,d=void 0===h?Pl:h,p=i.altBoundary,f=void 0!==p&&p,m=i.padding,g=void 0===m?0:m,y=mc("number"!=typeof g?g:gc(g,xl)),_=d===Pl?Dl:Pl,v=e.rects.popper,b=e.elements[f?_:d],T=Nc(Xl(b)?b:b.contextElement||cc(e.elements.popper),l,u,o),w=sc(e.elements.reference),S=Rc({reference:w,element:v,strategy:"absolute",placement:s}),E=Dc(Object.assign({},v,S)),C=d===Pl?E:w,k={top:T.top-C.top+y.top,bottom:C.bottom-T.bottom+y.bottom,left:T.left-C.left+y.left,right:C.right-T.right+y.right},x=e.modifiersData.offset;if(d===Pl&&x){var I=x[s];Object.keys(k).forEach((function(e){var t=[El,Sl].indexOf(e)>=0?1:-1,i=[wl,Sl].indexOf(e)>=0?"y":"x";k[e]+=I[i]*t}))}return k}function Bc(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Nl:l,u=_c(n),h=u?a?Ml:Ml.filter((function(e){return _c(e)===u})):xl,d=h.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=h);var p=d.reduce((function(t,i){return t[i]=Fc(e,{placement:i,boundary:s,rootBoundary:r,padding:o})[Jl(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}const Uc={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,u=i.boundary,h=i.rootBoundary,d=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,g=t.options.placement,y=Jl(g),_=l||(y===g||!f?[Cc(g)]:function(e){if(Jl(e)===kl)return[];var t=Cc(e);return[xc(e),t,xc(t)]}(g)),v=[g].concat(_).reduce((function(e,i){return e.concat(Jl(i)===kl?Bc(t,{placement:i,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),b=t.rects.reference,T=t.rects.popper,w=new Map,S=!0,E=v[0],C=0;C<v.length;C++){var k=v[C],x=Jl(k),I=_c(k)===Il,A=[wl,Sl].indexOf(x)>=0,L=A?"width":"height",O=Fc(t,{placement:k,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),P=A?I?El:Cl:I?Sl:wl;b[L]>T[L]&&(P=Cc(P));var D=Cc(P),M=[];if(r&&M.push(O[x]<=0),a&&M.push(O[P]<=0,O[D]<=0),M.every((function(e){return e}))){E=k,S=!1;break}w.set(k,M)}if(S)for(var N=function(e){var t=v.find((function(t){var i=w.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},R=f?3:1;R>0;R--){if("break"===N(R))break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function jc(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 $c(e){return[wl,El,Sl,Cl].some((function(t){return e[t]>=0}))}const qc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Fc(t,{elementContext:"reference"}),a=Fc(t,{altBoundary:!0}),l=jc(o,n),c=jc(a,s,r),u=$c(l),h=$c(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};const Hc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,r=void 0===s?[0,0]:s,o=Nl.reduce((function(e,i){return e[i]=function(e,t,i){var n=Jl(e),s=[Cl,wl].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Cl,El].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,t.rects,r),e}),{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}};const Vc={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Rc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const zc={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,h=i.padding,d=i.tether,p=void 0===d||d,f=i.tetherOffset,m=void 0===f?0:f,g=Fc(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),y=Jl(t.placement),_=_c(t.placement),v=!_,b=pc(y),T="x"===b?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(w){if(r){var A,L="y"===b?wl:Cl,O="y"===b?Sl:El,P="y"===b?"height":"width",D=w[b],M=D+g[L],N=D-g[O],R=p?-E[P]/2:0,F=_===Il?S[P]:E[P],B=_===Il?-E[P]:-S[P],U=t.elements.arrow,j=p&&U?rc(U):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=$[L],H=$[O],V=fc(0,S[P],j[P]),z=v?S[P]/2-R-V-q-k.mainAxis:F-V-q-k.mainAxis,W=v?-S[P]/2+R+V+H+k.mainAxis:B+V+H+k.mainAxis,G=t.elements.arrow&&dc(t.elements.arrow),X=G?"
23y"===b?G.clientTop||0:G.clientLeft||0:0,K=null!=(A=null==x?void 0:x[b])?A:0,Y=D+W-K,Q=fc(p?ec(M,D+z-K-X):M,D,p?Zl(N,Y):N);w[b]=Q,I[b]=Q-D}if(a){var J,Z="x"===b?wl:Cl,ee="x"===b?Sl:El,te=w[T],ie="y"===T?"height":"width",ne=te+g[Z],se=te-g[ee],re=-1!==[wl,Cl].indexOf(y),oe=null!=(J=null==x?void 0:x[T])?J:0,ae=re?ne:te-S[ie]-E[ie]-oe+k.altAxis,le=re?te+S[ie]+E[ie]-oe-k.altAxis:se,ce=p&&re?function(e,t,i){var n=fc(e,t,i);return n>i?i:n}(ae,te,le):fc(p?ae:ne,te,p?le:se);w[T]=ce,I[T]=ce-te}t.modifiersData[n]=I}},requiresIfExists:["offset"]};function Wc(e,t,i){void 0===i&&(i=!1);var n,s,r=Kl(t),o=Kl(t)&&function(e){var t=e.getBoundingClientRect(),i=tc(t.width)/e.offsetWidth||1,n=tc(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=cc(t),l=sc(e,o,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!i)&&(("body"!==Wl(t)||Lc(a))&&(c=(n=t)!==Gl(n)&&Kl(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Ic(n)),Kl(t)?((u=sc(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Ac(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Gc(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}var Xc={placement:"bottom",modifiers:[],strategy:"absolute"};function Kc(){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 Yc(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,r=void 0===s?Xc:s;return function(e,t,i){void 0===i&&(i=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xc,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;h(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:Xl(e)?Pc(e):e.contextElement?Pc(e.contextElement):[],popper:Pc(t)};var o,c,d=function(e){var t=Gc(e);return zl.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((o=[].concat(n,a.options.modifiers),c=o.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}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var r=s({state:a,name:t,instance:u,options:n}),o=function(){};l.push(r||o)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(Kc(t,i)){a.rects={reference:Wc(t,dc(i),"fixed"===a.options.strategy),popper:rc(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],r=s.fn,o=s.options,l=void 0===o?{}:o,h=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(s())}))}))),o}),destroy:function(){h(),c=!0}};if(!Kc(e,t))return u;function h(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),u}}var Qc=Yc(),Jc=Yc({defaultModifiers:[Sc,Vc,Tc,Ql]}),Zc=Yc({defaultModifiers:[Sc,Vc,Tc,Ql,Hc,Uc,zc,yc,qc]});const eu=Object.freeze(Object.defineProperty({__proto__:null,afterMain:$l,afterRead:Bl,afterWrite:Vl,applyStyles:Ql,arrow:yc,auto:kl,basePlacements:xl,beforeMain:Ul,beforeRead:Rl,beforeWrite:ql,bottom:Sl,clippingParents:Ll,computeStyles:Tc,createPopper:Zc,createPopperBase:Qc,createPopperLite:Jc,detectOverflow:Fc,end:Al,eventListeners:Sc,flip:Uc,hide:qc,left:Cl,main:jl,modifierPhases:zl,offset:Hc,placements:Nl,popper:Pl,popperGenerator:Yc,popperOffsets:Vc,preventOverflow:zc,read:Fl,reference:Dl,right:El,start:Il,top:wl,variationPlacements:Ml,viewport:Ol,write:Hl},Symbol.toStringTag,{value:"Module"})),tu="dropdown",iu=".bs.dropdown",nu=".data-api",su="ArrowUp",ru="ArrowDown",ou=`hide${iu}`,au=`hidden${iu}`,lu=`show${iu}`,cu=`shown${iu}`,uu=`click${iu}${nu}`,hu=`keydown${iu}${nu}`,du=`keyup${iu}${nu}`,pu="show",fu='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',mu=`${fu}.${pu}`,gu=".dropdown-menu",yu=Wt()?"top-end":"top-start",_u=Wt()?"top-start":"top-end",vu=Wt()?"bottom-end":"bottom-start",bu=Wt()?"bottom-start":"bottom-end",Tu=Wt()?"left-start":"right-start",wu=Wt()?"right-start":"left-start",Su={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Eu={autoClose:"(boolean|string)",boundary:"(string|element)",display:"str
23ing",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let Cu=class e extends _i{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=vi.next(this._element,gu)[0]||vi.prev(this._element,gu)[0]||vi.findOne(gu,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Su}static get DefaultType(){return Eu}static get NAME(){return tu}toggle(){return this._isShown()?this.hide():this.show()}show(){if(jt(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!di.trigger(this._element,lu,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))di.on(e,"mouseover",qt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(pu),this._element.classList.add(pu),di.trigger(this._element,cu,e)}}hide(){if(jt(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(!di.trigger(this._element,ou,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))di.off(e,"mouseover",qt);this._popper&&this._popper.destroy(),this._menu.classList.remove(pu),this._element.classList.remove(pu),this._element.setAttribute("aria-expanded","false"),gi.removeDataAttribute(this._menu,"popper"),di.trigger(this._element,au,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Ft(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${tu.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===eu)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:Ft(this._config.reference)?e=Bt(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Zc(e,this._menu,t)}_isShown(){return this._menu.classList.contains(pu)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Tu;if(e.classList.contains("dropstart"))return wu;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?_u:yu:t?bu:vu}
vendor: 5,186 bytes, line 23
23_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)&&(gi.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=vi.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Ut(e)));i.length&&Yt(i,t,e===ru,!i.includes(t)).focus()}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const i=vi.find(mu);for(const n of i){const i=e.getInstance(n);if(!i||!1===i._config.autoClose)continue;const s=t.composedPath(),r=s.includes(i._menu);if(s.includes(i._element)||"inside"===i._config.autoClose&&!r||"outside"===i._config.autoClose&&r)continue;if(i._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:i._element};"click"===t.type&&(o.clickEvent=t),i._completeHide(o)}}static dataApiKeydownHandler(t){const i=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,s=[su,ru].includes(t.key);if(!s&&!n)return;if(i&&!n)return;t.preventDefault();const r=this.matches(fu)?this:vi.prev(this,fu)[0]||vi.next(this,fu)[0]||vi.findOne(fu,t.delegateTarget.parentNode),o=e.getOrCreateInstance(r);if(s)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}};di.on(document,hu,fu,Cu.dataApiKeydownHandler),di.on(document,hu,gu,Cu.dataApiKeydownHandler),di.on(document,uu,Cu.clearMenus),di.on(document,du,Cu.clearMenus),di.on(document,uu,fu,(function(e){e.preventDefault(),Cu.getOrCreateInstance(this).toggle()})),Gt(Cu);const ku=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",xu=".sticky-top",Iu="padding-right",Au="margin-right";class Lu{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,Iu,(t=>t+e)),this._setElementAttributes(ku,Iu,(t=>t+e)),this._setElementAttributes(xu,Au,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Iu),this._resetElementAttributes(ku,Iu),this._resetElementAttributes(xu,Au)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&gi.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=gi.getDataAttribute(e,t);null!==i?(gi.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Ft(e))t(e);else for(const i of vi.find(e,this._element))t(i)}}const Ou="backdrop",Pu="show",Du=`mousedown.bs.${Ou}`,Mu={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Nu={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ru extends yi{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Mu}static get DefaultType(){return Nu}static get NAME(){return Ou}show(e){if(!this._config.isVisible)return void Xt(e);this._append();const t=this._getElement();this._config.isAnimated&&Ht(t),t.classList.add(Pu),this._emulateAnimation((()=>{Xt(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Pu),this._emulateAnimation((()=>{this.dispose(),Xt(e)}))):Xt(e)}dispose(){this._isAppended&&(di.off(this._element,Du),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=Bt(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),di.on(e,Du,(()=>{Xt(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Kt(e,this._getElement(),this._config.isAnimated)}}
vendor: 10,042 bytes, line 23
23const Fu=".bs.focustrap",Bu=`focusin${Fu}`,Uu=`keydown.tab${Fu}`,ju="backward",$u={autofocus:!0,trapElement:null},qu={autofocus:"boolean",trapElement:"element"};class Hu extends yi{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return $u}static get DefaultType(){return qu}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),di.off(document,Fu),di.on(document,Bu,(e=>this._handleFocusin(e))),di.on(document,Uu,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,di.off(document,Fu))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=vi.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===ju?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ju:"forward")}}const Vu=".bs.modal",zu=`hide${Vu}`,Wu=`hidePrevented${Vu}`,Gu=`hidden${Vu}`,Xu=`show${Vu}`,Ku=`shown${Vu}`,Yu=`resize${Vu}`,Qu=`click.dismiss${Vu}`,Ju=`mousedown.dismiss${Vu}`,Zu=`keydown.dismiss${Vu}`,eh=`click${Vu}.data-api`,th="modal-open",ih="show",nh="modal-static",sh={backdrop:!0,focus:!0,keyboard:!0},rh={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let oh=class e extends _i{constructor(e,t){super(e,t),this._dialog=vi.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Lu,this._addEventListeners()}static get Default(){return sh}static get DefaultType(){return rh}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;di.trigger(this._element,Xu,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(th),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;di.trigger(this._element,zu).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ih),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){for(const e of[window,this._dialog])di.off(e,Vu);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ru({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Hu({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=vi.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Ht(this._element),this._element.classList.add(ih);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,di.trigger(this._element,Ku,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){di.on(this._element,Zu,(e=>{if("Escape"===e.key)return this._config.keyboard?(e.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),di.on(window,Yu,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),di.on(this._element,Ju,(e=>{di.one(this._element,Qu,(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(th),this._resetAdjustments(),this._scrollBar.reset(),di.trigger(this._element,Gu)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(di.trigger(this._element,Wu).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(nh)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(nh),this._queueCallback((()=>{this._element.classList.remove(nh),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=Wt()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=Wt()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each((function(){const n=e.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](i)}}))}};di.on(document,eh,'[data-bs-toggle="modal"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),di.one(t,Xu,(e=>{e.defaultPrevented||di.one(t,Gu,(()=>{Ut(this)&&this.focus()}))}));const i=vi.findOne(".modal.show");i&&oh.getInstance(i).hide();oh.getOrCreateInstance(t).toggle(this)})),Ui(oh),Gt(oh);const ah=".bs.offcanvas",lh=".data-api",ch=`load${ah}${lh}`,uh="show",hh="showing",dh="hiding",ph=".offcanvas.show",fh=`show${ah}`,mh=`shown${ah}`,gh=`hide${ah}`,yh=`hidePrevented${ah}`,_h=`hidden${ah}`,vh=`resize${ah}`,bh=`click${ah}${lh}`,Th=`keydown.dismiss${ah}`,wh={backdrop:!0,keyboard:!0,scroll:!1},Sh={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Eh=class e extends _i{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return wh}static get DefaultType(){return Sh}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(di.trigger(this._element,fh,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Lu).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(hh);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(uh),this._element.classList.remove(hh),di.trigger(this._element,mh,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(di.trigger(this._element,gh).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(dh),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(uh,dh),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Lu).reset(),di.trigger(this._element,_h)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Ru({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():di.trigger(this._element,yh)}:null})}_initializeFocusTrap(){return new Hu({trapElement:this._element})}_addEventListeners(){di.on(this._element,Th,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():di.trigger(this._element,yh))}))}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);i[t](this)}}))}};di.on(document,bh,'[data-bs-toggle="offcanvas"]',(function(e){const t=Nt(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this))return;di.one(t,_h,(()=>{Ut(this)&&this.focus()}));const i=vi.findOne(ph);i&&i!==t&&Eh.getInstance(i).hide();Eh.getOrCreateInstance(t).toggle(this)})),di.on(window,ch,(()=>{for(const e of vi.find(ph))Eh.getOrCreateInstance(e).show()})),di.on(window,vh,(()=>{for(const e of vi.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Eh.getOrCreateInstance(e).hide()})),Ui(Eh),Gt(Eh);const Ch=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),kh=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,xh=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ih=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Ch.has(i)||Boolean(kh.test(e.nodeValue)||xh.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))},Ah={"*":["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:[]};const Lh={allowList:Ah,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Oh={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ph={entry:"(string|element|function|null)",selector:"(string|element)"};class Dh extends yi{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Lh}static get DefaultType(){return Oh}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>
vendor: 10,237 bytes, line 23
23this._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},Ph)}_setContent(e,t,i){const n=vi.findOne(i,e);n&&((t=this._resolvePossibleFunction(t))?Ft(t)?this._putElementInTemplate(Bt(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const e of s){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const n=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[i]||[]);for(const t of n)Ih(t,s)||e.removeAttribute(t.nodeName)}return n.body.innerHTML}(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 Mh=new Set(["sanitize","allowList","sanitizeFn"]),Nh="fade",Rh="show",Fh=".tooltip-inner",Bh=".modal",Uh="hide.bs.modal",jh="hover",$h="focus",qh={AUTO:"auto",TOP:"top",RIGHT:Wt()?"left":"right",BOTTOM:"bottom",LEFT:Wt()?"right":"left"},Hh={allowList:Ah,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"},Vh={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"};let zh=class e extends _i{constructor(e,t){if(void 0===eu)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 Hh}static get DefaultType(){return Vh}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),di.off(this._element.closest(Bh),Uh,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=di.trigger(this._element,this.constructor.eventName("show")),t=($t(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:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),di.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Rh),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))di.on(e,"mouseover",qt);this._queueCallback((()=>{di.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(di.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Rh),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))di.off(e,"mouseover",qt);this._activeTrigger.click=!1,this._activeTrigger[$h]=!1,this._activeTrigger[jh]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),di.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(Nh,Rh),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(Nh),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Dh({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Fh]: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(Nh)}_isShown(){return this.tip&&this.tip.classList.contains(Rh)}_createPopper(e){const t="function"==typeof this._config.placement?this._config.placement.call(this,e,this._element):this._config.placement,i=qh[t.toUpperCase()];return Zc(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)di.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===jh?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===jh?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");di.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?$h:jh]=!0,t._enter()})),di.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?$h:jh]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},di.on(this._element.closest(Bh),Uh,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=gi.getDataAttributes(this._element);for(const e of Object.keys(t))Mh.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:Bt(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(t){return this.each((function(){const i=e.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method n
23amed "${t}"`);i[t]()}}))}};Gt(zh);const Wh=".popover-header",Gh=".popover-body",Xh={...zh.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"},Kh={...zh.DefaultType,content:"(null|string|element|function)"};let Yh=class e extends zh{static get Default(){return Xh}static get DefaultType(){return Kh}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Wh]:this._getTitle(),[Gh]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}};Gt(Yh);const Qh=".bs.scrollspy",Jh=`activate${Qh}`,Zh=`click${Qh}`,ed=`load${Qh}.data-api`,td="active",id="[href]",nd=".nav-link",sd=`${nd}, .nav-item > ${nd}, .list-group-item`,rd={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},od={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let ad=class e extends _i{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 rd}static get DefaultType(){return od}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=Bt(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&&(di.off(this._config.target,Zh),di.on(this._config.target,Zh,id,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_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))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;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(s&&e){if(i(r),!n)return}else s||e||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vi.find(id,this._config.target);for(const t of e){if(!t.hash||jt(t))continue;const e=vi.findOne(t.hash,this._element);Ut(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(td),this._activateParents(e),di.trigger(this._element,Jh,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))vi.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(td);else for(const t of vi.parents(e,".nav, .list-group"))for(const e of vi.prev(t,sd))e.classList.add(td)}_clearActiveClass(e){e.classList.remove(td);const t=vi.find(`${id}.${td}`,e);for(const e of t)e.classList.remove(td)}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
23amed "${t}"`);i[t]()}}))}};di.on(window,ed,(()=>{for(const e of vi.find('[data-bs-spy="scroll"]'))ad.getOrCreateInstance(e)})),Gt(ad);const ld=".bs.tab",cd=`hide${ld}`,ud=`hidden${ld}`,hd=`show${ld}`,dd=`shown${ld}`,pd=`click${ld}`,fd=`keydown${ld}`,md=`load${ld}`,gd="ArrowLeft",yd="ArrowRight",_d="ArrowUp",vd="ArrowDown",bd="active",Td="fade",wd="show",Sd=":not(.dropdown-toggle)",Ed='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Cd=`${`.nav-link${Sd}, .list-group-item${Sd}, [role="tab"]${Sd}`}, ${Ed}`,kd=`.${bd}[data-bs-toggle="tab"], .${bd}[data-bs-toggle="pill"], .${bd}[data-bs-toggle="list"]`;let xd=class e extends _i{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),di.on(this._element,fd,(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?di.trigger(t,cd,{relatedTarget:e}):null;di.trigger(e,hd,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(bd),this._activate(Nt(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),di.trigger(e,dd,{relatedTarget:t})):e.classList.add(wd)}),e,e.classList.contains(Td))}_deactivate(e,t){if(!e)return;e.classList.remove(bd),e.blur(),this._deactivate(Nt(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),di.trigger(e,ud,{relatedTarget:t})):e.classList.remove(wd)}),e,e.classList.contains(Td))}_keydown(t){if(![gd,yd,_d,vd].includes(t.key))return;t.stopPropagation(),t.preventDefault();const i=[yd,vd].includes(t.key),n=Yt(this._getChildren().filter((e=>!jt(e))),t.target,i,!0);n&&(n.focus({preventScroll:!0}),e.getOrCreateInstance(n).show())}_getChildren(){return vi.find(Cd,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=Nt(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 n=(e,n)=>{const s=vi.findOne(e,i);s&&s.classList.toggle(n,t)};n(".dropdown-toggle",bd),n(".dropdown-menu",wd),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(bd)}_getInnerElement(e){return e.matches(Cd)?e:vi.findOne(Cd,e)}
23_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this);if("string"==typeof t){if(void 0===i[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);i[t]()}}))}};di.on(document,pd,Ed,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this)||xd.getOrCreateInstance(this).show()})),di.on(window,md,(()=>{for(const e of vi.find(kd))xd.getOrCreateInstance(e)})),Gt(xd);const Id=".bs.tab",Ad=`click${Id}`,Ld=`load${Id}`,Od="ArrowLeft",Pd="ArrowRight",Dd="ArrowUp",Md="ArrowDown",Nd="Enter",Rd=" ",Fd="active",Bd=`.${Fd}[data-bs-toggle="tab"], .${Fd}[data-bs-toggle="pill"], .${Fd}[data-bs-toggle="list"]`;class Ud extends xd{constructor(e){super(e)}_keydown(e){if(![Od,Pd,Dd,Md,Nd,Rd].includes(e.key))return;if(e.stopPropagation(),e.preventDefault(),e.key===Nd||e.key===Rd)return void Ud.getOrCreateInstance(e.target).show();const t=[Pd,Md].includes(e.key),i=Yt(this._getChildren().filter((e=>!jt(e))),e.target,t,!0);i&&i.focus({preventScroll:!0})}}di.on(document,Ad,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this))return;Ud.getOrCreateInstance(this).dispose(),Ud.getOrCreateInstance(this).show()})),di.on(window,Ld,(()=>{for(const e of vi.find(Bd)){Ud.getOrCreateInstance(e).dispose(),Ud.getOrCreateInstance(e)}})),Gt(Ud);const jd=".bs.toast",$d=`mouseover${jd}`,qd=`mouseout${jd}`,Hd=`focusin${jd}`,Vd=`focusout${jd}`,zd=`hide${jd}`,Wd=`hidden${jd}`,Gd=`show${jd}`,Xd=`shown${jd}`,Kd="hide",Yd="show",Qd="showing",Jd={animation:"boolean",autohide:"boolean",delay:"number"},Zd={animation:!0,autohide:!0,delay:5e3};let ep=class e extends _i{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Zd}static get DefaultType(){return Jd}static get NAME(){return"toast"}show(){if(di.trigger(this._element,Gd).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Kd),Ht(this._element),this._element.classList.add(Yd,Qd),this._queueCallback((()=>{this._element.classList.remove(Qd),di.trigger(this._element,Xd),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(di.trigger(this._element,zd).defaultPrevented)return;this._element.classList.add(Qd),this._queueCallback((()=>{this._element.classList.add(Kd),this._element.classList.remove(Qd,Yd),di.trigger(this._element,Wd)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Yd),super.dispose()}isShown(){return this._element.classList.contains(Yd)}_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(){di.on(this._element,$d,(e=>this._onInteraction(e,!0))),di.on(this._element,qd,(e=>this._onInteraction(e,!1))),di.on(this._element,Hd,(e=>this._onInteraction(e,!0))),di.on(this._element,Vd,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const i=e.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](this)}}))}};Ui(ep),Gt(ep);var tp="undefined"!=typeof window?window:void 0!==jr?jr:"undefined"!=typeof self?self:{},ip=Array.prototype.slice,np=function(e,t){"length"in e||(e=[e]);e=ip.call(e);for(;e.length;){var i=e.shift(),n=t(i);if(n)return n;i.childNodes&&i.childNodes.length&&(e=ip.call(i.childNodes).concat(e))}};var sp=rp;function rp(e,t){if(!(this instanceof rp))return new rp(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}rp.prototype.nodeType=8,rp.prototype.nodeName="#comment",rp.prototype.toString=function(){return"[object Comment]"};var op=ap;function ap(e,t){if(!(this instanceof ap))return new ap(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}ap.prototype.type="DOMTextNode",ap.prototype.nodeType=3,ap.prototype.nodeName="#text",ap.prototype.toString=function(){return this.data},ap.prototype.replaceData=function(e,t,i){var n=this.data,s=n.substring(0,e),r=n.substring(e+t,n.length);this.data=s+i+r,this.length=this.data.length};var lp=function(e){var t=this,i=e.type;e.target||(e.target=t);t.listeners||(t.listeners={});var n=t.listeners[i];
vendor: 19,418 bytes, lines 23-31
23if(n)return n.forEach((function(i){e.currentTarget=t,"function"==typeof i?i(e):i.handleEvent(e)}));t.parentNode&&t.parentNode.dispatchEvent(e)};var cp=function(e,t){var i=this;i.listeners||(i.listeners={});i.listeners[e]||(i.listeners[e]=[]);-1===i.listeners[e].indexOf(t)&&i.listeners[e].push(t)};var up=function(e,t){var i=this;if(!i.listeners)return;if(!i.listeners[e])return;var n=i.listeners[e],s=n.indexOf(t);-1!==s&&n.splice(s,1)};var hp=pp,dp=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function pp(e){switch(e.nodeType){case 3:return gp(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return function(e){var t=[],i=e.tagName;"http://www.w3.org/1999/xhtml"===e.namespaceURI&&(i=i.toLowerCase());t.push("<"+i+function(e){var t=[];for(var i in e)fp(e,i)&&t.push({name:i,value:e[i]});for(var n in e._attributes)for(var s in e._attributes[n]){var r=e._attributes[n][s],o=(r.prefix?r.prefix+":":"")+s;t.push({name:o,value:r.value})}e.className&&t.push({name:"class",value:e.className});return t.length?mp(t):""}(e)+function(e){var t=e.dataset,i=[];for(var n in t)i.push({name:"data-"+n,value:t[n]});return i.length?mp(i):""}(e)),dp.indexOf(i)>-1?t.push(" />"):(t.push(">"),e.childNodes.length?t.push.apply(t,e.childNodes.map(pp)):e.textContent||e.innerText?t.push(gp(e.textContent||e.innerText)):e.innerHTML&&t.push(e.innerHTML),t.push("</"+i+">"));return t.join("")}(e)}}function fp(e,t){var i=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===i||"boolean"===i||"number"===i)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function mp(e){var t=[];return e.forEach((function(e){var i=e.name,n=e.value;"style"===i&&(n=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach((function(i){var n=e[i];i=i.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})),t+=i+":"+n+";"})),t}(n)),t.push(i+'="'+(gp(n).replace(/"/g,""")+'"'))})),t.length?" "+t.join(" "):""}function gp(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var yp="http://www.w3.org/1999/xhtml",_p=vp;function vp(e,t,i){if(!(this instanceof vp))return new vp(e);var n=void 0===i?yp:i||null;this.tagName=n===yp?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=n,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}vp.prototype.type="DOMElement",vp.prototype.nodeType=1,vp.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},vp.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[i]=e,e.parentNode=this,t},vp.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},vp.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=null==t?-1:this.childNodes.indexOf(t);return i>-1?this.childNodes.splice(i,0,e):this.childNodes.push(e),e.parentNode=this,e},vp.prototype.setAttributeNS=function(e,t,i){var n=null,s=t,r=t.indexOf(":");(r>-1&&(n=t.substr(0,r),s=t.substr(r+1)),"INPUT"===this.tagName&&"type"===t)?this.type=i:(this._attributes[e]||(this._attributes[e]={}))[s]={value:i,prefix:n}},vp.prototype.getAttributeNS=function(e,t){var i=this._attributes[e],n=i&&i[t]&&i[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof n?null:n},vp.prototype.removeAttributeNS=function(e,t){var i=this._attributes[e];i&&delete i[t]},vp.prototype.hasAttributeNS=function(e,t){var i=this._attributes[e];return!!i&&t in i},vp.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},vp.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},vp.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},vp.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},vp.prototype.removeEventListener=up,vp.prototype.addEventListener=cp,vp.prototype.dispatchEvent=lp,vp.prototype.focus=function(){},vp.prototype.toString=function(){return hp(this)},vp.prototype.getElementsByClassName=function(e){var t=e.split(" "),i=[];return np(this,(function(e){if(1===e.nodeType){var n=(e.className||"").split(" ");t.every((function(e){return-1!==n.indexOf(e)}))&&i.push(e)}})),i},vp.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return np(this.childNodes,(function(i){1!==i.nodeType||"*"!==e&&i.tagName.toLowerCase()!==e||t.push(i)})),t},vp.prototype.contains=function(e){return np(this,(function(t){return e===t}))||!1};var bp=Tp;function Tp(e){if(!(this instanceof Tp))return new Tp;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}Tp.prototype.type="DocumentFragment",Tp.prototype.nodeType=11,Tp.prototype.nodeName="#document-fragment",Tp.prototype.appendChild=_p.prototype.appendChild,Tp.prototype.replaceChild=_p.prototype.replaceChild,Tp.prototype.removeChild=_p.prototype.removeChild,Tp.prototype.toString=function(){return this.childNodes.map((function(e){return String(e)})).join("")};var wp=Sp;function Sp(e){}Sp.prototype.initEvent=function(e,t,i){this.type=e,this.bubbles=t,this.cancelable=i},Sp.prototype.preventDefault=function(){};var Ep=Cp;function Cp(){if(!(this instanceof Cp))return new Cp;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var kp=Cp.prototype;kp.createTextNode=function(e){return new op(e,this)},kp.createElementNS=function(e,t){var i=null===e?null:String(e);return new _p(t,this,i)},kp.createElement=function(e){return new _p(e,this)},kp.createDocumentFragment=function(){return new bp(this)},kp.createEvent=function(e){return new wp},kp.createComment=function(e){return new sp(e,this)},kp.getElementById=function(e){return e=String(e),np(this.childNodes,(function(t){if(String(t.id)===e)return t}))||null},kp.getElementsByClassName=_p.prototype.getElementsByClassName,kp.getElementsByTagName=_p.prototype.getElementsByTagName,kp.contains=_p.prototype.contains,kp.removeEventListener=up,kp.addEventListener=cp,kp.dispatchEvent=lp;var xp,Ip=new Ep,Ap=void 0!==jr?jr:"undefined"!=typeof window?window:{};"undefined"!=typeof document?xp=document:(xp=Ap["__GLOBAL_DOCUMENT_CACHE@4"])||(xp=Ap["__GLOBAL_DOCUMENT_CACHE@4"]=Ip);var Lp=xp;function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Op.apply(null,arguments)}var Pp=function(e){if(!e)return!1;var t=Dp.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},Dp=Object.prototype.toString;function Mp(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return Np(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Np(e,t)}(e))||t){i&&(e=i);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 Np(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var Rp=function(){function e(){this.typeToInterceptorsMap_=new Map,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.typeToInterceptorsMap_=new Map,this.enabled_=!1},t.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)},t.removeInterceptor=function(e,t){var i=this.typeToInterceptorsMap_.get(e);return!(!i||!i.has(t))&&(i.delete(t),!0)},t.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},t.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},t.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},t.execute=function(e,t){for(var i,n=Mp(this.getForType(e));!(i=n()).done;){var s=i.value;try{t=s(t)}catch(e){}}return t},e}(),Fp=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,i=t.maxAttempts,n=t.delayFactor,s=t.fuzzFactor,r=t.initialDelay;return new Bp({maxAttempts:i||this.maxAttempts_,delayFactor:n||this.delayFactor_,fuzzFactor:s||this.fuzzFactor_,initialDelay:r||this.initialDelay_})},e}(),Bp=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}(),Up=Fp;var jp=function(e,t){return void 0===t&&(t=!1),function(i,n,s){if(i)e(i);else if(n.statusCode>=400&&n.statusCode<=599){var r=s;if(t)if(tp.TextDecoder){var o=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce((function(e,t){var i=t.split("="),n=i[0],s=i[1];return"charset"===n.trim()?s.trim():e}),"utf-8")}(n.headers&&n.headers["content-type"]);try{r=new TextDecoder(o).decode(s)}catch(e){}}else r=String.fromCharCode.apply(null,new Uint8Array(s));e({cause:r})}else e(null,s)}};zp.httpHandler=jp,zp.requestInterceptorsStorage=new Rp,zp.responseInterceptorsStorage=new Rp,zp.retryManager=new Up; 24/** 25 * @license 26 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/> 27 * Copyright (c) 2014 David Björklund 28 * Available under the MIT license 29 * <https://github.com/kesla/parse-headers/blob/master/LICENCE> 30 */ 31var $p=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var i=e.indexOf(":"),n=e.slice(0,i).trim().toLowerCase(),s=e.slice(i+1).trim();void 0===t[n]?t[n]=s:Array.isArray(t[n])?t[n].push(s):t[n]=[t[n],s]})),t):t},qp=zp,Hp=zp;function Vp(e,t,i){var n=e;return Pp(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=Op({},t,{uri:e}),n.callback=i,n}function zp(e,t,i){return Wp(t=Vp(e,t,i))}function Wp(e){if(void 0===e.callback)throw new Error("callback argument missing");if(e.requestType&&zp.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=zp.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 n=!1,s=function(t,i,s){n||(n=!0,e.callback(t,i,s))};function r(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),y)try{e=JSON.parse(e)}catch(e){}return e}function o(t){if(clearTimeout(h),clearTimeout(e.retryTimeout),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,c||!zp.retryManager.getIsEnabled()||!e.retry||!e.retry.shouldRetry()){if(e.requestType&&zp.responseInterceptorsStorage.getIsEnabled()){var i={headers:_.headers||{},body:_.body,responseUrl:u.responseURL,responseType:u.responseType},n=zp.responseInterceptorsStorage.execute(e.requestType,i);_.body=n.body,_.headers=n.headers}return s(t,_)}e.retryTimeout=setTimeout((function(){e.retry.moveToNextAttempt(),e.xhr=u,Wp(e)}),e.retry.getCurrentFuzzedDelay())}function a(){if(!c){var t;clearTimeout(h),clearTimeout(e.retryTimeout),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var i=_,n=null;if(0!==t?(i={body:r(),statusCode:t,method:p,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(i.headers=$p(u.getAllResponseHeaders()))):n=new Error("Internal XMLHttpRequest Error"),e.requestType&&zp.responseInterceptorsStorage.getIsEnabled()){var o={headers:i.headers||{},body:i.body,responseUrl:u.responseURL,responseType:u.responseType},a=zp.responseInterceptorsStorage.execute(e.requestType,o);i.body=a.body,i.headers=a.headers}return s(n,i,i.body)}}var l,c,u=e.xhr||null;u||(u=e.cors||e.useXDR?new zp.XDomainRequest:new zp.XMLHttpRequest);var h,d=u.url=e.uri||e.url,p=u.method=e.method||"GET",f=e.body||e.data,m=u.headers=e.headers||{},g=!!e.sync,y=!1,_={body:void 0,headers:{},statusCode:0,method:p,url:d,rawRequest:u};if("json"in e&&!1!==e.json&&(y=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),u.onreadystatechange=function(){4!==u.readyState||zp.responseInterceptorsStorage.getIsEnabled()||setTimeout(a,0)},u.onload=a,u.onerror=o,u.onprogress=function(){},u.onabort=function(){c=!0,clearTimeout(e.retryTimeout)},u.ontimeout=o,u.open(p,d,!g,e.username,e.password),g||(u.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(h=setTimeout((function(){if(!c){c=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)}}),e.timeout)),u.setRequestHeader)for(l in m)m.hasOwnProperty(l)&&u.setRequestHeader(l,m[l]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(f||null),u}zp.XMLHttpRequest=tp.XMLHttpRequest||function(){},zp.XDomainRequest="withCredentials"in new zp.XMLHttpRequest?zp.XMLHttpRequest:tp.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],(function(e){zp["delete"===e?"del":e]=function(t,i,n){return(i=Vp(t,i,n)).method=e.toUpperCase(),Wp(i)}})),qp.default=Hp;var Gp=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 Xp(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function Kp(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function Yp(){this.values=Gp(null)}function Qp(e,t,i,n){var s=n?e.split(n):[e];for(var r in s)if("string"==typeof s[r]){var o=s[r].split(i);if(2===o.length)t(o[0].trim(),o[1].trim())}}function Jp(e,t,i){var n=e;function s(){var t=Kp(e);if(null===t)throw new Xp(Xp.Errors.BadTimeStamp,"Malformed timestamp: "+n);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function r(){e=e.replace(/^\s+/,"")}if(r(),t.startTime=s(),r(),"--\x3e"!==e.substr(0,3))throw new Xp(Xp.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);e=e.substr(3),r(),t.endTime=s(),r(),function(e,t){var n=new Yp;Qp(e,(function(e,t){switch(e){case"region":for(var s=i.length-1;s>=0;s--)if(i[s].id===t){n.set(e,i[s].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),o=r[0];n.integer(e,o),n.percent(e,o)&&n.set("snapToLines",!1),n.alt(e,o,["auto"]),2===r.length&&n.alt("lineAlign",r[1],["start","center","end"]);break;case"position":r=t.split(","),n.percent(e,r[0]),2===r.length&&n.alt("positionAlign",r[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(e){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}Xp.prototype=Gp(Error.prototype),Xp.prototype.constructor=Xp,Xp.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Yp.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var Zp=Lp.createElement&&Lp.createElement("textarea"),ef={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},tf={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)"},nf={v:"title",lang:"lang"},sf={rt:"ruby"};function rf(e,t){function i(){if(!t)return null;var e,i=t.match(/^([^<]*)(<[^>
31]*>?)?/);return e=i[1]?i[1]:i[2],t=t.substr(e.length),e}function n(e,t){return!sf[t.localName]||sf[t.localName]===e.localName}function s(t,i){var n=ef[t];if(!n)return null;var s=e.document.createElement(n),r=nf[t];return r&&i&&(s[r]=i.trim()),s}for(var r,o,a=e.document.createElement("div"),l=a,c=[];null!==(r=i());)if("<"!==r[0])l.appendChild(e.document.createTextNode((o=r,Zp.innerHTML=o,o=Zp.textContent,Zp.textContent="",o)));else{if("/"===r[1]){c.length&&c[c.length-1]===r.substr(2).replace(">","")&&(c.pop(),l=l.parentNode);continue}var u,h=Kp(r.substr(1,r.length-2));if(h){u=e.document.createProcessingInstruction("timestamp",h),l.appendChild(u);continue}var d=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!d)continue;if(!(u=s(d[1],d[3])))continue;if(!n(l,u))continue;if(d[2]){var p=d[2].split(".");p.forEach((function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(tf.hasOwnProperty(i)){var n=t?"background-color":"color",s=tf[i];u.style[n]=s}})),u.className=p.join(" ")}c.push(d[1]),l.appendChild(u),l=u}return a}var of=[[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 af(e){for(var t=0;t<of.length;t++){var i=of[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function lf(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function n(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function s(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?s(e):t.childNodes?(n(e,t),s(e)):void 0}for(n(t,e);i=s(t);)for(var r=0;r<i.length;r++)if(af(i.charCodeAt(r)))return"rtl";return"ltr"}function cf(){}function uf(e,t,i){cf.call(this),this.cue=t,this.cueDiv=rf(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:lf(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var s=0;switch(t.positionAlign){case"start":case"line-left":s=t.position;break;case"center":s=t.position-t.size/2;break;case"end":case"line-right":s=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),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")}
vendor: 5,718 bytes, line 31
31)}}function hf(e){var t,i,n,s;if(e.div){i=e.div.offsetHeight,n=e.div.offsetWidth,s=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||s,this.height=e.height||i,this.bottom=e.bottom||s+(e.height||i),this.width=e.width||n,this.lineHeight=void 0!==t?t:e.lineHeight}function df(e,t,i,n){var s=new hf(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,n=0,s=0;s<i.length&&i[s]!==t;s++)"showing"===i[s].mode&&n++;return-1*++n}(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 c=s.lineHeight,u=c*Math.round(o),h=i[l]+c,d=a[0];Math.abs(u)>h&&(u=u<0?-1:1,u*=Math.ceil(h/c)*c),o<0&&(u+=""===r.vertical?i.height:i.width,a=a.reverse()),s.move(d,u)}else{var p=s.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"],s=new hf(t)}var f=function(e,t){for(var s,r=new hf(e),o=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(i,t[a])||e.within(i)&&e.overlapsAny(n);)e.move(t[a]);if(e.within(i))return e;var l=e.intersectPercentage(i);o>l&&(s=new hf(e),o=l),e=new hf(r)}return s||r}(s,a);t.move(f.toCSSCompatValues(i))}function pf(){}cf.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},cf.prototype.formatStyle=function(e,t){return 0===e?0:e+t},uf.prototype=Gp(cf.prototype),uf.prototype.constructor=uf,hf.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}},hf.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},hf.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},hf.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},hf.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}},hf.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)},hf.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}},hf.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},pf.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},pf.convertCueToDOMTree=function(e,t){return e&&t?rf(e,t):null};pf.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var s=[],r=hf.getSimpleBoxPosition(n),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 uf(e,a,o),n.appendChild(i.div),df(0,i,r,s),a.displayState=i.div,s.push(hf.getSimpleBoxPosition(i))}()}else for(var a=0;a<t.length;a++)n.appendChild(t[a].displayState)},pf.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=[]},pf.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof Xp))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function i(){for(var e=t.buffer,i=0;i<e.length&&"\r"!==e[i]&&"\n"!==e[i];)++i;var n=e.substr(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.substr(i),n}function n(e){e.match(/X-TIMESTAMP-MAP/)?Qp(e,(function(e,i){if("X-TIMESTAMP-MAP"===e)!function(e){var i=new Yp;Qp(e,(function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",Kp(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}(i)}),/=/):Qp(e,(function(e,i){if("Region"===e)!function(e){var i=new Yp;if(Qp(e,(function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var n=t.split(",");if(2!==n.length)break;var s=new Yp;if(s.percent("x",n[0]),s.percent("y",n[1]),!s.has("x")||!s.has("y"))break;i.set(e+"X",s.get("x")),i.set(e+"Y",s.get("y"));break;case"scroll":i.alt(e,t,["up"])}}
vendor: 6,830 bytes, line 31
31),/=/,/\s/),i.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion);n.width=i.get("width",100),n.lines=i.get("lines",3),n.regionAnchorX=i.get("regionanchorX",0),n.regionAnchorY=i.get("regionanchorY",100),n.viewportAnchorX=i.get("viewportanchorX",0),n.viewportAnchorY=i.get("viewportanchorY",100),n.scroll=i.get("scroll",""),t.onregion&&t.onregion(n),t.regionList.push({id:i.get("id"),region:n})}}(i)}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var s;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var r=(s=i()).match(/^WEBVTT([ \t].*)?$/);if(!r||!r[0])throw new Xp(Xp.Errors.BadSignature);t.state="HEADER"}for(var o=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(o?o=!1:s=i(),t.state){case"HEADER":/:/.test(s)?n(s):s||(t.state="ID");continue;case"NOTE":s||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){t.state="NOTE";break}if(!s)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===s.indexOf("--\x3e")){t.cue.id=s;continue}case"CUE":try{Jp(s,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var a=-1!==s.indexOf("--\x3e");if(!s||a&&(o=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=s.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":s||(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 Xp(Xp.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var ff=pf,mf={"":1,lr:1,rl:1},gf={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function yf(e){return"string"==typeof e&&(!!gf[e.toLowerCase()]&&e.toLowerCase())}function _f(e,t,i){this.hasBeenReset=!1;var n="",s=!1,r=e,o=t,a=i,l=null,c="",u=!0,h="auto",d="start",p="auto",f="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");r=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");o=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return a},set:function(e){a=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(e){var t=function(e){return"string"==typeof e&&!!mf[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");c=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return u},set:function(e){u=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");h=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return d},set:function(e){var t=yf(e);t?(d=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");p=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=yf(e);t?(f=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=yf(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=t,this.hasBeenReset=!0}}}),this.displayState=void 0}_f.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var vf=_f,bf={"":!0,up:!0};function Tf(e){return"number"==typeof e&&e>=0&&e<=100}var wf=function(){var e=100,t=3,i=0,n=100,s=0,r=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!Tf(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(e){if(!Tf(e))throw new Error("RegionAnchorX must be between 0 and 100.");n=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!Tf(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!Tf(e))throw new Error("ViewportAnchorY must be between 0 and 100.");r=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!Tf(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return o},set:function(e){var t=function(e){return"string"==typeof e&&!!bf[e.toLowerCase()]&&e.toLowerCase()}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):o=t}}})},Sf=Hr((function(e){var t=e.exports={WebVTT:ff,VTTCue:vf,VTTRegion:wf};tp.vttjs=t,tp.WebVTT=t.WebVTT;var i=t.VTTCue,n=t.VTTRegion,s=tp.VTTCue,r=tp.VTTRegion;t.shim=function(){tp.VTTCue=i,tp.VTTRegion=n},t.restore=function(){tp.VTTCue=s,tp.VTTRegion=r},tp.VTTCue||t.shim()}));Sf.WebVTT,Sf.VTTCue,Sf.VTTRegion;var Ef="https://example.com",Cf=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=tp.location&&tp.location.href||"");var i=/^\/\//.test(e),n=!tp.location&&!/\/\//i.test(e);e=new tp.URL(e,tp.location||Ef);var s=new URL(t,e);return n?s.href.slice(19):i?s.href.slice(s.protocol.length):s.href},kf=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);
vendor: 4,086 bytes, line 31
31else for(var s=Array.prototype.slice.call(arguments,1),r=t.length,o=0;o<r;++o)t[o].apply(this,s)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();function xf(e){for(var t,i=(t=e,tp.atob?tp.atob(t):Buffer.from(t,"base64").toString("binary")),n=new Uint8Array(i.length),s=0;s<i.length;s++)n[s]=i.charCodeAt(s);return n}class If extends kf{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 Af=String.fromCharCode(9),Lf=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},Of=function(e){const t={};if(!e)return t;const i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let n,s=i.length;for(;s--;)""!==i[s]&&(n=/([^=]*)=(.*)/.exec(i[s]).slice(1),n[0]=n[0].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^['"](.*)['"]$/g,"$1"),t[n[0]]=n[1]);return t},Pf=e=>{const t=e.split("x"),i={};return t[0]&&(i.width=parseInt(t[0],10)),t[1]&&(i.height=parseInt(t[1],10)),i};class Df extends kf{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 n=i(e);return n===e?t:t.concat([n])}),[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=Op(Lf(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=Of(t[1]);e.URI&&(i.uri=e.URI),e.BYTERANGE&&(i.byterange=Lf(e.BYTERANGE))}this.trigger("data",i)}else{if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t)return i={type:"tag",tagType:"stream-inf"},t[1]&&(i.attributes=Of(t[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=Pf(i.attributes.RESOLUTION)),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))),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=Of(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"}
vendor: 4,394 bytes, line 31
31,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=Of(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=Of(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=Of(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(Af)),void this.trigger("data",i);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part"},i.attributes=Of(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=Lf(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=Of(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=Of(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=Of(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=Of(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=Of(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]+$/;
vendor: 12,213 bytes, line 31
31for(const t in i.attributes){if(!e.test(t))continue;const n=/[0-9A-Fa-f]{6}/g.test(i.attributes[t]),s=/^\d+(\.\d+)?$/.test(i.attributes[t]);i.attributes[t]=n?i.attributes[t].toString(16):s?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-I-FRAMES-ONLY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"i-frames-only"});else{if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t)return i={type:"tag",tagType:"content-steering"},i.attributes=Of(t[1]),void this.trigger("data",i);if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e),t)return i={type:"tag",tagType:"i-frame-playlist"},i.attributes=Of(t[1]),i.attributes.URI&&(i.uri=i.attributes.URI),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=Pf(i.attributes.RESOLUTION)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),void this.trigger("data",i);if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e),t)return i={type:"tag",tagType:"define"},i.attributes=Of(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:n}){"function"!=typeof i&&(i=e=>e),this.customParsers.push((s=>{if(e.exec(s))return this.trigger("data",{type:"custom",data:i(s),customType:t,segment:n}),!0}))}addTagMapper({expression:e,map:t}){this.tagMappers.push((i=>e.test(i)?t(i):i))}}const Mf=function(e){const t={};return Object.keys(e).forEach((function(i){var n;t[(n=i,n.toLowerCase().replace(/-(\w)/g,(e=>e[1].toUpperCase())))]=e[i]})),t},Nf=function(e){const{serverControl:t,targetDuration:i,partTargetDuration:n}=e;if(!t)return;const s="#EXT-X-SERVER-CONTROL",r="holdBack",o="partHoldBack",a=i&&3*i,l=n&&2*n;i&&!t.hasOwnProperty(r)&&(t[r]=a,this.trigger("info",{message:`${s} defaulting HOLD-BACK to targetDuration * 3 (${a}).`})),a&&t[r]<a&&(this.trigger("warn",{message:`${s} clamping HOLD-BACK (${t[r]}) to targetDuration * 3 (${a})`}),t[r]=a),n&&!t.hasOwnProperty(o)&&(t[o]=3*n,this.trigger("info",{message:`${s} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[o]}).`})),n&&t[o]<l&&(this.trigger("warn",{message:`${s} clamping PART-HOLD-BACK (${t[o]}) to partTargetDuration * 2 (${l}).`}),t[o]=l)};class Rf extends kf{constructor(e={}){super(),this.lineStream=new If,this.parseStream=new Df,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const t=this,i=[];let n,s,r={},o=!1;const a=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let c=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let u=0,h=0;const d={};this.on("end",(()=>{r.uri||!r.parts&&!r.preloadHints||(!r.map&&n&&(r.map=n),!r.key&&s&&(r.key=s),r.timeline||"number"!=typeof c||(r.timeline=c),this.manifest.preloadSegment=r)})),this.parseStream.on("data",(function(e){let p,f;if(t.manifest.definitions)for(const i in t.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${i}}`,t.manifest.definitions[i])),e.attributes)for(const n in e.attributes)"string"==typeof e.attributes[n]&&(e.attributes[n]=e.attributes[n].replace(`{$${i}}`,t.manifest.definitions[i]));({tag(){({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={};"length"in e&&(r.byterange=t,t.length=e.length,"offset"in e||(e.offset=u)),"offset"in e&&(r.byterange=t,t.offset=e.offset),u=t.offset+t.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"})),e.title&&(r.title=e.title),e.duration>0&&(r.duration=e.duration),0===e.duration&&(r.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:xf(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),s={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(s.iv=e.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(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence"(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,c=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type"(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),s&&(n.key=s)},"stream-inf"(){this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(r.attributes||(r.attributes={}),Op(r.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},p=t[e.attributes["GROUP-ID"]],f={default:/yes/i.test(e.attributes.DEFAULT)},f.default?f.autoselect=!0:f.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(f.language=e.attributes.LANGUAGE),e.attributes.URI&&(f.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(f.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(f.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(f.forced=/yes/i.test(e.attributes.FORCED)),p[e.attributes.NAME]=f},discontinuity(){c+=1,r.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),r.dateTimeString=e.dateTimeString,r.dateTimeObject=e.dateTimeObject;const{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight(((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime)),this.lastProgramDateTime)},targetduration(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,Nf.call(this,this.manifest))},start(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){r.cueOut=e.data},"cue-out-cont"(){r.cueOutCont=e.data},"cue-in"(){r.cueIn=e.data},skip(){this.manifest.skip=Mf(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const t=this.manifest.segments.length,i=Mf(e.attributes);r.parts=r.parts||[],r.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=h),h=i.byterange.offset+i.byterange.length);const n=r.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${n} for segment #${t}`,e.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 t=this.manifest.serverControl=Mf(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Nf.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,i=Mf(e.attributes),n=i.type&&"PART"===i.type;r.preloadHints=r.preloadHints||[],r.preloadHints.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=n?h:0,n&&(h=i.byterange.offset+i.byterange.length)));const s=r.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${s} for segment #${t}`,e.attributes,["TYPE","URI"]),i.type)for(let e=0;e<r.preloadHints.length-1;e++){const n=r.preloadHints[e];n.type&&(n.type===i.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${s} for segment #${t} has the same TYPE ${i.type} as preload hint #${e}`}))}},"rendition-report"(){const t=Mf(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);const i=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"];o&&n.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${i}`,e.attributes,n)},"part-inf"(){this.manifest.partInf=Mf(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Nf.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Mf(e.attributes));const t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"]);const i=this.manifest.dateRanges[t];i.endDate&&i.startDate&&new Date(i.endDate)<new Date(i.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),i.duration&&i.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),i.plannedDuration&&i.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const n=!!i.endOnNext;if(n&&!i.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
31=YES attribute must have a CLASS attribute"}),n&&(i.duration||i.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),i.duration&&i.endDate){const e=i.startDate.getTime()+1e3*i.duration;this.manifest.dateRanges[t].endDate=new Date(e)}if(d[i.id]){for(const e in d[i.id])if(i[e]&&JSON.stringify(d[i.id][e])!==JSON.stringify(i[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===i.id));this.manifest.dateRanges[e]=Op(this.manifest.dateRanges[e],i),d[i.id]=Op(d[i.id],i),this.manifest.dateRanges.pop()}else d[i.id]=i},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=Mf(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const t=(e,t)=>{e in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`}):this.manifest.definitions[e]=t};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});const i=this.params.get(e.attributes.QUERYPARAM);return i?void t(e.attributes.QUERYPARAM,decodeURIComponent(i)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`})}return"NAME"in e.attributes?"IMPORT"in e.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?void t(e.attributes.NAME,e.attributes.VALUE):void this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?void t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):void this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:c}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}}[e.tagType]||a).call(t)},uri(){r.uri=e.uri,i.push(r),this.manifest.targetDuration&&!("duration"in r)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),r.duration=this.manifest.targetDuration),s&&(r.key=s),r.timeline=c,n&&(r.map=n),h=0,null!==this.lastProgramDateTime&&(r.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*r.duration),r={}},comment(){},custom(){e.segment?(r.custom=r.custom||{},r.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(t)}))}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,i){const n=[];i.forEach((function(e){t.hasOwnProperty(e)||n.push(e)})),n.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${n.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)}}var Ff,Bf,Uf={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^/},jf=["video","audio","text"],$f=["Video","Audio","Text"],qf=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},Hf=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach((function(e){var t;e=e.trim(),jf.forEach((function(n){var s=Uf[n].exec(e.toLowerCase());if(s&&!(s.length<=1)){t=n;var r=e.substring(0,s[1].length),o=e.replace(r,"");i.push({type:r,details:o,mediaType:n})}})),t||i.push({type:e,details:"",mediaType:"unknown"})})),i},Vf=function(e){return void 0===e&&(e=""),Uf.audio.test(e.trim().toLowerCase())},zf=function(e){if(e&&"string"==typeof e){var t,i=e.toLowerCase().split(",").map((function(e){return qf(e.trim())})),n="video";1===i.length&&Vf(i[0])?n="audio":1===i.length&&(void 0===(t=i[0])&&(t=""),Uf.text.test(t.trim().toLowerCase()))&&
vendor: 4,226 bytes, line 31
31(n="application");var s="mp4";return i.every((function(e){return Uf.mp4.test(e)}))?s="mp4":i.every((function(e){return Uf.webm.test(e)}))?s="webm":i.every((function(e){return Uf.ogg.test(e)}))&&(s="ogg"),n+"/"+s+';codecs="'+e+'"'}},Wf=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),tp.MediaSource&&tp.MediaSource.isTypeSupported&&tp.MediaSource.isTypeSupported(zf(e))||t&&tp.ManagedMediaSource&&tp.ManagedMediaSource.isTypeSupported&&tp.ManagedMediaSource.isTypeSupported(zf(e))||!1},Gf=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<$f.length;t++){if(Uf["muxer"+$f[t]].test(e))return!0}return!1}))},Xf="mp4a.40.2",Kf=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Yf=/^application\/dash\+xml/i,Qf=function(e){return Kf.test(e)?"hls":Yf.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},Jf=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},Zf=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||Jf(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))},em=tp.BigInt||Number,tm=[em("0x1"),em("0x100"),em("0x10000"),em("0x1000000"),em("0x100000000"),em("0x10000000000"),em("0x1000000000000"),em("0x100000000000000"),em("0x10000000000000000")];Ff=new Uint16Array([65484]),255===(Bf=new Uint8Array(Ff.buffer,Ff.byteOffset,Ff.byteLength))[0]||Bf[0];var im=function(e,t){var i=void 0===t?{}:t,n=i.signed,s=void 0!==n&&n,r=i.le,o=void 0!==r&&r;e=Zf(e);var a=o?"reduce":"reduceRight",l=(e[a]?e[a]:Array.prototype[a]).call(e,(function(t,i,n){var s=o?n:Math.abs(n+1-e.length);return t+em(i)*tm[s]}),em(0));if(s){var c=tm[e.length]/em(2)-em(1);(l=em(l))>c&&(l-=c,l-=c,l-=em(2))}return Number(l)},nm=function(e,t){var i={}.le,n=void 0!==i&&i;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=em(e);for(var s,r=(s=e,Math.ceil(function(e){return e.toString(2).length}(s)/8)),o=new Uint8Array(new ArrayBuffer(r)),a=0;a<r;a++){var l=n?a:Math.abs(a+1-o.length);o[l]=Number(e/tm[a]&em(255)),e<0&&(o[l]=Math.abs(~o[l]),o[l]-=0===a?1:2)}return o},sm=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i},rm=function(e,t,i){var n=void 0===i?{}:i,s=n.offset,r=void 0===s?0:s,o=n.mask,a=void 0===o?[]:o;e=Zf(e);var l=(t=Zf(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])}))};function om(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var am=om({HTML:"text/html",isHTML:function(e){return e===am.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),lm=om({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===lm.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),cm=function(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"==typeof i.find)return i.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var s=e[n];if(t.call(void 0,s,n,e))return s}},um={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},find:cm,freeze:om,MIME_TYPE:am,NAMESPACE:lm},hm=um.find,dm=um.NAMESPACE;function pm(e){return""!==e}function fm(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function mm(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(pm):[]}(e);return Object.keys(t.reduce(fm,{}))}function gm(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function ym(e,t){var i=e.prototype;if(!(i instanceof t)){function n(){}n.prototype=t.prototype,gm(i,n=new n),e.prototype=i=n}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.c
vendor: 18,558 bytes, line 31
31onstructor=e)}var _m={},vm=_m.ELEMENT_NODE=1,bm=_m.ATTRIBUTE_NODE=2,Tm=_m.TEXT_NODE=3,wm=_m.CDATA_SECTION_NODE=4,Sm=_m.ENTITY_REFERENCE_NODE=5,Em=_m.ENTITY_NODE=6,Cm=_m.PROCESSING_INSTRUCTION_NODE=7,km=_m.COMMENT_NODE=8,xm=_m.DOCUMENT_NODE=9,Im=_m.DOCUMENT_TYPE_NODE=10,Am=_m.DOCUMENT_FRAGMENT_NODE=11,Lm=_m.NOTATION_NODE=12,Om={},Pm={};Om.INDEX_SIZE_ERR=(Pm[1]="Index size error",1),Om.DOMSTRING_SIZE_ERR=(Pm[2]="DOMString size error",2);var Dm=Om.HIERARCHY_REQUEST_ERR=(Pm[3]="Hierarchy request error",3);Om.WRONG_DOCUMENT_ERR=(Pm[4]="Wrong document",4),Om.INVALID_CHARACTER_ERR=(Pm[5]="Invalid character",5),Om.NO_DATA_ALLOWED_ERR=(Pm[6]="No data allowed",6),Om.NO_MODIFICATION_ALLOWED_ERR=(Pm[7]="No modification allowed",7);var Mm=Om.NOT_FOUND_ERR=(Pm[8]="Not found",8);Om.NOT_SUPPORTED_ERR=(Pm[9]="Not supported",9);var Nm=Om.INUSE_ATTRIBUTE_ERR=(Pm[10]="Attribute in use",10);function Rm(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,Pm[e]),this.message=Pm[e],Error.captureStackTrace&&Error.captureStackTrace(this,Rm);return i.code=e,t&&(this.message=this.message+": "+t),i}function Fm(){}function Bm(e,t){this._node=e,this._refresh=t,Um(this)}function Um(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(kg(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var n=i.length;n in e;n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];gm(i,e),e._inc=t}}function jm(){}function $m(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function qm(e,t,i,n){if(n?t[$m(t,n)]=i:t[t.length++]=i,e){i.ownerElement=e;var s=e.ownerDocument;s&&(n&&Km(s,e,n),function(e,t,i){e&&e._inc++;var n=i.namespaceURI;n===dm.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}(s,e,i))}}function Hm(e,t,i){var n=$m(t,i);if(!(n>=0))throw new Rm(Mm,new Error(e.tagName+"@"+i));for(var s=t.length-1;n<s;)t[n]=t[++n];if(t.length=s,e){var r=e.ownerDocument;r&&(Km(r,e,i),i.ownerElement=null)}}function Vm(){}function zm(){}function Wm(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function Gm(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(Gm(e,t))return!0}while(e=e.nextSibling)}function Xm(){this.ownerDocument=this}function Km(e,t,i,n){e&&e._inc++,i.namespaceURI===dm.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function Ym(e,t,i){if(e&&e._inc){e._inc++;var n=t.childNodes;if(i)n[n.length++]=i;else{for(var s=t.firstChild,r=0;s;)n[r++]=s,s=s.nextSibling;n.length=r,delete n[n.length]}}}function Qm(e,t){var i=t.previousSibling,n=t.nextSibling;return i?i.nextSibling=n:e.firstChild=n,n?n.previousSibling=i:e.lastChild=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,Ym(e.ownerDocument,e),t}function Jm(e){return e&&e.nodeType===zm.DOCUMENT_TYPE_NODE}function Zm(e){return e&&e.nodeType===zm.ELEMENT_NODE}function eg(e){return e&&e.nodeType===zm.TEXT_NODE}function tg(e,t){var i=e.childNodes||[];if(hm(i,Zm)||Jm(t))return!1;var n=hm(i,Jm);return!(t&&n&&i.indexOf(n)>i.indexOf(t))}function ig(e,t){var i=e.childNodes||[];if(hm(i,(function(e){return Zm(e)&&e!==t})))return!1;var n=hm(i,Jm);return!(t&&n&&i.indexOf(n)>i.indexOf(t))}function ng(e,t,i){if(!function(e){return e&&(e.nodeType===zm.DOCUMENT_NODE||e.nodeType===zm.DOCUMENT_FRAGMENT_NODE||e.nodeType===zm.ELEMENT_NODE)}(e))throw new Rm(Dm,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new Rm(Mm,"child not in parent");if(!function(e){return e&&(Zm(e)||eg(e)||Jm(e)||e.nodeType===zm.DOCUMENT_FRAGMENT_NODE||e.nodeType===zm.COMMENT_NODE||e.nodeType===zm.PROCESSING_INSTRUCTION_NODE)}(t)||Jm(t)&&e.nodeType!==zm.DOCUMENT_NODE)throw new Rm(Dm,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function sg(e,t,i){var n=e.childNodes||[],s=t.childNodes||[];if(t.nodeType===zm.DOCUMENT_FRAGMENT_NODE){var r=s.filter(Zm);if(r.length>1||hm(s,eg))throw new Rm(Dm,"More than one element or text in fragment");if(1===r.length&&!tg(e,i))throw new Rm(Dm,"Element in fragment can not be inserted before doctype")}if(Zm(t)&&!tg(e,i))throw new Rm(Dm,"Only one element can be added and only after doctype");if(Jm(t)){if(hm(n,Jm))throw new Rm(Dm,"Only one doctype is allowed");var o=hm(n,Zm);if(i&&n.indexOf(o)<n.indexOf(i))throw new Rm(Dm,"Doctype can only be inserted before an element");if(!i&&o)throw new Rm(Dm,"Doctype can not be appended since element is present")}}function rg(e,t,i){var n=e.childNodes||[],s=t.childNodes||[];if(t.nodeType===zm.DOCUMENT_FRAGMENT_NODE){var r=s.filter(Zm);if(r.length>1||hm(s,eg))throw new Rm(Dm,"More than one element or text in fragment");if(1===r.length&&!ig(e,i))throw new Rm(Dm,"Element in fragment can not be inserted before doctype")}if(Zm(t)&&!ig(e,i))throw new Rm(Dm,"Only one element can be added and only after doctype");if(Jm(t)){function a(e){return Jm(e)&&e!==i}if(hm(n,a))throw new Rm(Dm,"Only one doctype is allowed");var o=hm(n,Zm);if(i&&n.indexOf(o)<n.indexOf(i))throw new Rm(Dm,"Doctype can only be inserted before an element")}}function og(e,t,i,n){ng(e,t,i),e.nodeType===zm.DOCUMENT_NODE&&(n||sg)(e,t,i);var s=t.parentNode;if(s&&s.removeChild(t),t.nodeType===Am){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 Ym(e.ownerDocument||e,e),t.nodeType==Am&&(t.firstChild=t.lastChild=null),t}function ag(){this._nsMap={}}function lg(){}function cg(){}function ug(){}function hg(){}function dg(){}function pg(){}function fg(){}function mg(){}function gg(){}function yg(){}function _g(){}function vg(){}function bg(e,t){var i=[],n=9==this.nodeType&&this.documentElement||this,s=n.prefix,r=n.namespaceURI;if(r&&null==s&&null==(s=n.lookupPrefix(r)))var o=[{namespace:r,prefix:null}];return Sg(this,i,e,t,o),i.join("")}function Tg(e,t,i){var n=e.prefix||"",s=e.namespaceURI;if(!s)return!1;if("xml"===n&&s===dm.XML||s===dm.XMLNS)return!1;for(var r=i.length;r--;){var o=i[r];if(o.prefix===n)return o.namespace!==s}return!0}function wg(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,Wm),'"')}function Sg(e,t,i,n,s){if(s||(s=[]),n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case vm:var r=e.attributes,o=r.length,a=e.firstChild,l=e.tagName,c=l;if(!(i=dm.isHTML(e.namespaceURI)||i)&&!e.prefix&&e.namespaceURI){for(var u,h=0;h<r.length;h++)if("xmlns"===r.item(h).name){u=r.item(h).value;break}if(!u)for(var d=s.length-1;d>=0;d--){if(""===(p=s[d]).prefix&&p.namespace===e.namespaceURI){u=p.namespace;break}}if(u!==e.namespaceURI)for(d=s.length-1;d>=0;d--){var p;if((p=s[d]).namespace===e.namespaceURI){p.prefix&&(c=p.prefix+":"+l);break}}}t.push("<",c);for(var f=0;f<o;f++){"xmlns"==(m=r.item(f)).prefix?s.push({prefix:m.localName,namespace:m.value}):"xmlns"==m.nodeName&&s.push({prefix:"",namespace:m.value})}for(f=0;f<o;f++){var m,g,y;if(Tg(m=r.item(f),0,s))wg(t,(g=m.prefix||"")?"xmlns:"+g:"xmlns",y=m.namespaceURI),s.push({prefix:g,namespace:y});Sg(m,t,i,n,s)}if(l===c&&Tg(e,0,s))wg(t,(g=e.prefix||"")?"xmlns:"+g:"xmlns",y=e.namespaceURI),s.push({prefix:g,namespace:y});if(a||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),i&&/^script$/i.test(l))for(;a;)a.data?t.push(a.data):Sg(a,t,i,n,s.slice()),a=a.nextSibling;else for(;a;)Sg(a,t,i,n,s.slice()),a=a.nextSibling;t.push("</",c,">")}else t.push("/>");return;case xm:case Am:for(a=e.firstChild;a;)Sg(a,t,i,n,s.slice()),a=a.nextSibling;return;case bm:return wg(t,e.name,e.value);case Tm:return t.push(e.data.replace(/[<&>]/g,Wm));case wm:return t.push("<![CDATA[",e.data,"]]>");case km:return t.push("\x3c!--",e.data,"--\x3e");case Im:var _=e.publicId,v=e.systemId;if(t.push("<!DOCTYPE ",e.name),_)t.push(" PUBLIC ",_),v&&"."!=v&&t.push(" ",v),t.push(">");else if(v&&"."!=v)t.push(" SYSTEM ",v,">");else{var b=e.internalSubset;b&&t.push(" [",b,"]"),t.push(">")}return;case Cm:return t.push("<?",e.target," ",e.data,"?>");case Sm:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Eg(e,t,i){var n;switch(t.nodeType){case vm:(n=t.cloneNode(!1)).ownerDocument=e;case Am:break;case bm:i=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,i)for(var s=t.firstChild;s;)n.appendChild(Eg(e,s,i)),s=s.nextSibling;return n}function Cg(e,t,i){var n=new t.constructor;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var r=t[s];"object"!=typeof r&&r!=n[s]&&(n[s]=r)}switch(t.childNodes&&(n.childNodes=new Fm),n.ownerDocument=e,n.nodeType){case vm:var o=t.attributes,a=n.attributes=new jm,l=o.length;a._ownerElement=n;for(var c=0;c<l;c++)n.setAttributeNode(Cg(e,o.item(c),!0));break;case bm:i=!0}if(i)for(var u=t.firstChild;u;)n.appendChild(Cg(e,u,i)),u=u.nextSibling;return n}function kg(e,t,i){e[t]=i}Om.INVALID_STATE_ERR=(Pm[11]="Invalid state",11),Om.SYNTAX_ERR=(Pm[12]="Syntax error",12),Om.INVALID_MODIFICATION_ERR=(Pm[13]="Invalid modification",13),Om.NAMESPACE_ERR=(Pm[14]="Invalid namespace",14),Om.INVALID_ACCESS_ERR=(Pm[15]="Invalid access",15),Rm.prototype=Error.prototype,gm(Om,Rm),Fm.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var i=[],n=0;n<this.length;n++)Sg(this[n],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)}},Bm.prototype.item=function(e){return Um(this),this[e]||null},ym(Bm,Fm),jm.prototype={length:0,item:Fm.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 Rm(Nm);var i=this.getNamedItem(e.nodeName);return qm(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new Rm(Nm);return t=this.getNamedItemNS(e.namespaceURI,e.localName),qm(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return Hm(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return Hm(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var n=this[i];if(n.localName==t&&n.namespaceURI==e)return n}return null}},Vm.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var n=new Xm;if(n.implementation=this,n.childNodes=new Fm,n.doctype=i||null,i&&n.appendChild(i),t){var s=n.createElementNS(e,t);n.appendChild(s)}return n},createDocumentType:function(e,t,i){var n=new pg;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=i||"",n}},zm.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 og(this,e,t)},replaceChild:function(e,t){og(this,e,t,rg),t&&this.removeChild(t)},removeChild:function(e){return Qm(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Cg(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==Tm&&e.nodeType==Tm?(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 n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&i[n]===e)return n;t=t.nodeType==bm?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==bm?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},gm(_m,zm),gm(_m,zm.prototype),Xm.prototype={nodeName:"#document",nodeType:xm,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==Am){for(var i=e.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,t),i=n}return e}return og(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===vm&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Qm(this,e)},replaceChild:function(e,t){og(this,e,t,rg),e.ownerDocument=this,t&&this.removeChild(t),Zm(e)&&(this.documentElement=e)},importNode:function(e,t){return Eg(this,e,t)},getElementById:function(e){var t=null;return Gm(this.documentElement,(function(i){if(i.nodeType==vm&&i.getAttribute("id")==e)return t=i,!0})),t},getElementsByClassName:function(e){var t=mm(e);return new Bm(this,(function(i){var n=[];return t.length>0&&Gm(i.documentElement,(function(s){if(s!==i&&s.nodeType===vm){var r=s.getAttribute("class");if(r){var o=e===r;if(!o){var a=mm(r);o=t.every((l=a,function(e){return l&&-1!==l.indexOf(e)}))}o&&n.push(s)}}var l})),n}))},createElement:function(e){var t=new ag;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Fm,(t.attributes=new jm)._ownerElement=t,t},createDocumentFragment:function(){var e=new yg;return e.ownerDocument=this,e.childNodes=new Fm,e},createTextNode:function(e){var t=new ug;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new hg;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new dg;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new _g;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new lg;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new gg;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new ag,n=t.split(":"),s=i.attributes=new jm;return i.childNodes=new Fm,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,s._ownerElement=i,i},createAttributeNS:function(e,t){var i=new lg,n=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,i}},ym(Xm,zm),ag.prototype={nodeType:vm,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===Am?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,Ym(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 n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+i,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new Bm(this,(function(t){var i=[];return Gm(t,(function(n){n===t||n.nodeType!=vm||"*"!==e&&n.tagName!=e||i.push(n)})),i}))},getElementsByTagNameNS:function(e,t){return new Bm(this,(function(i){var n=[];return Gm(i,(function(s){s===i||s.nodeType!==vm||"*"!==e&&s.namespaceURI!==e||"*"!==t&&s.localName!=t||n.push(s)})),n}))}},Xm.prototype.getElementsByTagName=ag.prototype.getElementsByTagName,Xm.prototype.getElementsByTagNameNS=ag.prototype.getElementsByTagNameNS,ym(ag,zm),lg.prototype.nodeType=bm,ym(lg,zm),cg.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(Pm[Dm])},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}},ym(cg,zm),ug.prototype={nodeName:"#text",nodeType:Tm,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},ym(ug,cg),hg.prototype={nodeName:"#comment",nodeType:km},ym(hg,cg),dg.prototype={nodeName:"#cdata-section",nodeType:wm},ym(dg,cg),pg.prototype.nodeType=Im,ym(pg,zm),fg.prototype.nodeType=Lm,ym(fg,zm),mg.prototype.nodeType=Em,ym(mg,zm),gg.prototype.nodeType=Sm,ym(gg,zm),yg.prototype.nodeName="#document-fragment",yg.prototype.nodeType=Am,ym(yg,zm),_g.prototype.nodeType=Cm,ym(_g,zm),vg.prototype.serializeToString=function(e,t,i){return bg.call(e,t,i)},zm.prototype.toString=bg;try{if(Object.defineProperty){function qx(e){switch(e.nodeType){case vm:case Am:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(qx(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(Bm.prototype,"length",{get:function(){return Um(this),this.$$length}}),Object.defineProperty(zm.prototype,"textContent",{get:function(){return qx(this)},set:function(e){switch(this.nodeType){case vm:case Am: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}}}),kg=function(e,t,i){e["$$"+t]=i}}}catch(Hx){}var xg={DocumentType:pg,DOMException:Rm,DOMImplementation:Vm,Element:ag,Node:zm,NodeList:Fm,XMLSerializer:vg},Ig=Hr((function(e,t){var i=um.freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i
vendor: 28,727 bytes, line 31
31({Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"¦",Bscr:"â¬",bscr:"ð·",bsemi:"â",bsim:"â½",bsime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"â",cfr:"ð ",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"ð",coprod:"â",Coproduct:"â",COPY:"©",copy:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"Ã",ecirc:"ê",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18:"â
",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:"Å",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:"â"}),
vendor: 7,888 bytes, line 31
31t.entityMap=t.HTML_ENTITIES}));Ig.XML_ENTITIES,Ig.HTML_ENTITIES,Ig.entityMap;var Ag=um.NAMESPACE,Lg=/[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]/,Og=new RegExp("[\\-\\.0-9"+Lg.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Pg=new RegExp("^"+Lg.source+Og.source+"*(?::"+Lg.source+Og.source+"*)?$");function Dg(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,Dg)}function Mg(){}function Ng(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Rg(e,t,i,n,s,r){function o(e,t,n){i.attributeNames.hasOwnProperty(e)&&r.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,s),n)}for(var a,l=++t,c=0;;){var u=e.charAt(l);switch(u){case"=":if(1===c)a=e.slice(t,l),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(r.warning('attribute value must after "="'),a=e.slice(t,l)),t=l+1,!((l=e.indexOf(u,t))>0))throw new Error("attribute value no end '"+u+"' match");o(a,h=e.slice(t,l),t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');o(a,h=e.slice(t,l),t),r.warning('attribute "'+a+'" missed start quot('+u+")!!"),t=l+1,c=5}break;case"/":switch(c){case 0:i.setTagName(e.slice(t,l));case 5:case 6:case 7:c=7,i.closed=!0;case 4:case 1:break;case 2:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return r.error("unexpected end of input"),0==c&&i.setTagName(e.slice(t,l)),l;case">":switch(c){case 0:i.setTagName(e.slice(t,l));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,l)).slice(-1)&&(i.closed=!0,h=h.slice(0,-1));case 2:2===c&&(h=a),4==c?(r.warning('attribute "'+h+'" missed quot(")!'),o(a,h,t)):(Ag.isHTML(n[""])&&h.match(/^(?:disabled|checked|selected)$/i)||r.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),o(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return l;case"Â":u=" ";default:if(u<=" ")switch(c){case 0:i.setTagName(e.slice(t,l)),c=6;break;case 1:a=e.slice(t,l),c=2;break;case 4:var h=e.slice(t,l);r.warning('attribute "'+h+'" missed quot(")!!'),o(a,h,t);case 5:c=6}else switch(c){case 2:i.tagName,Ag.isHTML(n[""])&&a.match(/^(?:disabled|checked|selected)$/i)||r.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),o(a,a,t),t=l,c=1;break;case 5:r.warning('attribute space is required"'+a+'"!!');case 6:c=1,t=l;break;case 3:c=4,t=l;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function Fg(e,t,i){for(var n=e.tagName,s=null,r=e.length;r--;){var o=e[r],a=o.qName,l=o.value;if((d=a.indexOf(":"))>0)var c=o.prefix=a.slice(0,d),u=a.slice(d+1),h="xmlns"===c&&u;else u=a,c=null,h="xmlns"===a&&"";o.localName=u,!1!==h&&(null==s&&(s={},jg(i,i={})),i[h]=s[h]=l,o.uri=Ag.XMLNS,t.startPrefixMapping(h,l))}for(r=e.length;r--;){(c=(o=e[r]).prefix)&&("xml"===c&&(o.uri=Ag.XML),"xmlns"!==c&&(o.uri=i[c||""]))}var d;(d=n.indexOf(":"))>0?(c=e.prefix=n.slice(0,d),u=e.localName=n.slice(d+1)):(c=null,u=e.localName=n);var p=e.uri=i[c||""];if(t.startElement(p,u,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=s,!0;if(t.endElement(p,u,n),s)for(c in s)Object.prototype.hasOwnProperty.call(s,c)&&t.endPrefixMapping(c)}function Bg(e,t,i,n,s){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)?(s.characters(o,0,o.length),r):(o=o.replace(/&#?\w+;/g,n),s.characters(o,0,o.length),r)}return t+1}function Ug(e,t,i,n){var s=n[i];return null==s&&((s=e.lastIndexOf("</"+i+">"))<t&&(s=e.lastIndexOf("</"+i)),n[i]=s),s<t}function jg(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function $g(e,t,i,n){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(s=e.indexOf("--\x3e",t+4))>t?(i.comment(e,t+4,s-t-4),s+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var s=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,s-t-9),i.endCDATA(),s+3}var r=function(e,t){var i,n=[],s=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;s.lastIndex=t,s.exec(e);for(;i=s.exec(e);)if(n.push(i),i[1])return n}(e,t),o=r.length;if(o>1&&/!doctype/i.test(r[0][0])){var a=r[1][0],l=!1,c=!1;o>3&&(/^public$/i.test(r[2][0])?(l=r[3][0],c=o>4&&r[4][0]):/^system$/i.test(r[2][0])&&(c=r[3][0]));var u=r[o-1];return i.startDTD(a,l,c),i.endDTD(),u.index+u[0].length}return-1}function qg(e,t,i){var n=e.indexOf("?>",t);if(n){var s=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return s?(s[0].length,i.processingInstruction(s[1],s[2]),n+2):-1}return-1}function Hg(){this.attributeNames={}}Dg.prototype=new Error,Dg.prototype.name=Dg.name,Mg.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),jg(t,t={}),function(e,t,i,n,s){function r(e){if(e>65535){var t=55296+((e-=65536)>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}function o(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?r(parseInt(t.substr(1).replace("x","0x"))):(s.error("entity not found:"+e),e)}function a(t){if(t>m){var i=e.substring(m,t).replace(/&#?\w+;/g,o);d&&l(m),n.characters(i,0,t-m),m=t}}function l(t,i){for(;t>=u&&(i=h.exec(e));)c=i.index,u=c+i[0].length,d.lineNumber++;d.columnNumber=t-c+1}var c=0,u=0,h=/.*(?:\r\n?|\n)|.*$/g,d=n.locator,p=[{currentNSMap:t}],f={},m=0;for(;;){try{var g=e.indexOf("<",m);if(g<0){if(!e.substr(m).match(/^\s*$/)){var y=n.doc,_=y.createTextNode(e.substr(m));y.appendChild(_),n.currentElement=_}return}switch(g>m&&a(g),e.charAt(g+1)){case"/":var v=e.indexOf(">",g+3),b=e.substring(g+2,v).replace(/[ \t\n\r]+$/g,""),T=p.pop();v<0?(b=e.substring(g+2).replace(/[\s<].*/,""),s.error("end tag name: "+b+" is not complete:"+T.tagName),v=g+1+b.length):b.match(/\s</)&&(b=b.replace(/[\s<].*/,""),s.error("end tag name: "+b+" maybe not complete"),v=g+1+b.length);var w=T.localNSMap,S=T.tagName==b;if(S||T.tagName&&T.tagName.toLowerCase()==b.toLowerCase()){if(n.endElement(T.uri,T.localName,b),w)for(var E in w)Object.prototype.hasOwnProperty.call(w,E)&&n.endPrefixMapping(E);S||s.fatalError("end tag name: "+b+" is not match the current start tagName:"+T.tagName)}else p.push(T);v++;break;case"?":d&&l(g),v=qg(e,g,n);break;case"!":d&&l(g),v=$g(e,g,n,s);break;default:d&&l(g);var C=new Hg,k=p[p.length-1].currentNSMap,x=(v=Rg(e,g,C,k,o,s),C.length);if(!C.closed&&Ug(e,v,C.tagName,f)&&(C.closed=!0,i.nbsp||s.warning("unclosed xml attribute")),d&&x){for(var I=Ng(d,{}),A=0;A<x;A++){var L=C[A];l(L.offset),L.locator=Ng(d,{})}n.locator=I,Fg(C,n,k)&&p.push(C),n.locator=d}else Fg(C,n,k)&&p.push(C);Ag.isHTML(C.uri)&&!C.closed?v=Bg(e,v,C.tagName,o,n):v++}}catch(e){if(e instanceof Dg)throw e;s.error("element parse error: "+e),v=-1}v>m?m=v:a(Math.max(g,m)+1)}}(e,t,i,n,this.errorHandler),n.endDocument()}},Hg.prototype={setTagName:function(e){if(!Pg.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!Pg.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}};var Vg={XMLReader:Mg,ParseError:Dg},zg=xg.DOMImplementation,Wg=um.NAMESPACE,Gg=Vg.ParseError,Xg=Vg.XMLReader;function Kg(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function Yg(e){this.options=e||{locator:{}}}function Qg(){this.cdata=!1}function Jg(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function Zg(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}
vendor: 4,278 bytes, line 31
31function ey(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 ty(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Yg.prototype.parseFromString=function(e,t){var i=this.options,n=new Xg,s=i.domBuilder||new Qg,r=i.errorHandler,o=i.locator,a=i.xmlns||{},l=/\/x?html?$/.test(t),c=l?Ig.HTML_ENTITIES:Ig.XML_ENTITIES;o&&s.setDocumentLocator(o),n.errorHandler=function(e,t,i){if(!e){if(t instanceof Qg)return t;e=t}var n={},s=e instanceof Function;function r(t){var r=e[t];!r&&s&&(r=2==e.length?function(i){e(t,i)}:e),n[t]=r&&function(e){r("[xmldom "+t+"]\t"+e+Zg(i))}||function(){}}return i=i||{},r("warning"),r("error"),r("fatalError"),n}(r,s,o),n.domBuilder=i.domBuilder||s,l&&(a[""]=Wg.HTML),a.xml=a.xml||Wg.XML;var u=i.normalizeLineEndings||Kg;return e&&"string"==typeof e?n.parse(u(e),a,c):n.errorHandler.error("invalid doc source"),s.doc},Qg.prototype={startDocument:function(){this.doc=(new zg).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,n){var s=this.doc,r=s.createElementNS(e,i||t),o=n.length;ty(this,r),this.currentElement=r,this.locator&&Jg(this.locator,r);for(var a=0;a<o;a++){e=n.getURI(a);var l=n.getValue(a),c=(i=n.getQName(a),s.createAttributeNS(e,i));this.locator&&Jg(n.getLocator(a),c),c.value=c.nodeValue=l,r.setAttributeNode(c)}},endElement:function(e,t,i){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&Jg(this.locator,i),ty(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=ey.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&Jg(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=ey.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&Jg(this.locator,n),ty(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var n=this.doc.implementation;if(n&&n.createDocumentType){var s=n.createDocumentType(e,t,i);this.locator&&Jg(this.locator,s),ty(this,s),this.doc.doctype=s}},warning:function(e){console.warn("[xmldom warning]\t"+e,Zg(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,Zg(this.locator))},fatalError:function(e){throw new Gg(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){Qg.prototype[e]=function(){return null}}));var iy={__DOMHandler:Qg,normalizeLineEndings:Kg,DOMParser:Yg}.DOMParser;const ny=e=>!!e&&"object"==typeof e,sy=(...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]):ny(e[i])&&ny(t[i])?e[i]=sy(e[i],t[i]):e[i]=t[i]})),e)),{}),ry=e=>Object.keys(e).map((t=>e[t])),oy=e=>e.reduce(((e,t)=>e.concat(t)),[]),ay=e=>{if(!e.length)return[];const t=[];for(let i=0;i<e.length;i++)t.push(e[i]);return t};var ly="INVALID_NUMBER_OF_PERIOD",cy="DASH_EMPTY_MANIFEST",uy="DASH_INVALID_XML",hy="NO_BASE_URL",dy="SEGMENT_TIME_UNSPECIFIED",py="UNSUPPORTED_UTC_TIMING_SCHEME";const fy=({baseUrl:e="",source:t="",range:i="",indexRange:n=""})=>{const s={uri:t,resolvedUri:Cf(e||"",t)};if(i||n){const e=(i||n).split("-");let t,r=tp.BigInt?tp.BigInt(e[0]):parseInt(e[0],10),o=tp.BigInt?tp.BigInt(e[1]):parseInt(e[1],10);r<Number.MAX_SAFE_INTEGER&&"bigint"==typeof r&&(r=Number(r)),o<Number.MAX_SAFE_INTEGER&&"bigint"==typeof o&&(o=Number(o)),t="bigint"==typeof o||"bigint"==typeof r?tp.BigInt(o)-tp.BigInt(r)+tp.BigInt(1):o-r+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),s.byterange={length:t,offset:r}}return s},my=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),gy={static(e){const{duration:t,timescale:i=1,sourceDuration:n,peri
vendor: 4,773 bytes, line 31
31odDuration:s}=e,r=my(e.endNumber),o=t/i;return"number"==typeof r?{start:0,end:r}:"number"==typeof s?{start:0,end:s/o}:{start:0,end:n/o}},dynamic(e){const{NOW:t,clientOffset:i,availabilityStartTime:n,timescale:s=1,duration:r,periodStart:o=0,minimumUpdatePeriod:a=0,timeShiftBufferDepth:l=1/0}=e,c=my(e.endNumber),u=(t+i)/1e3,h=n+o,d=u+a-h,p=Math.ceil(d*s/r),f=Math.floor((u-h-l)*s/r),m=Math.floor((u-h)*s/r);return{start:Math.max(0,f),end:"number"==typeof c?c:Math.min(p,m)}}},yy=e=>{const{type:t,duration:i,timescale:n=1,periodDuration:s,sourceDuration:r}=e,{start:o,end:a}=gy[t](e),l=((e,t)=>{const i=[];for(let n=e;n<t;n++)i.push(n);return i})(o,a).map((e=>t=>{const{duration:i,timescale:n=1,periodStart:s,startNumber:r=1}=e;return{number:r+t,duration:i/n,timeline:s,time:t*i}})(e));if("static"===t){const e=l.length-1,t="number"==typeof s?s:r;l[e].duration=t-i/n*e}return l},_y=e=>{const{baseUrl:t,initialization:i={},sourceDuration:n,indexRange:s="",periodStart:r,presentationTime:o,number:a=0,duration:l}=e;if(!t)throw new Error(hy);const c=fy({baseUrl:t,source:i.sourceURL,range:i.range}),u=fy({baseUrl:t,source:t,indexRange:s});if(u.map=c,l){const t=yy(e);t.length&&(u.duration=t[0].duration,u.timeline=t[0].timeline)}else n&&(u.duration=n,u.timeline=r);return u.presentationTime=o||r,u.number=a,[u]},vy=(e,t,i)=>{const n=e.sidx.map?e.sidx.map:null,s=e.sidx.duration,r=e.timeline||0,o=e.sidx.byterange,a=o.offset+o.length,l=t.timescale,c=t.references.filter((e=>1!==e.referenceType)),u=[],h=e.endList?"static":"dynamic",d=e.sidx.timeline;let p,f=d,m=e.mediaSequence||0;p="bigint"==typeof t.firstOffset?tp.BigInt(a)+t.firstOffset:a+t.firstOffset;for(let e=0;e<c.length;e++){const o=t.references[e],a=o.referencedSize,c=o.subsegmentDuration;let g;g="bigint"==typeof p?p+tp.BigInt(a)-tp.BigInt(1):p+a-1;const y=_y({baseUrl:i,timescale:l,timeline:r,periodStart:d,presentationTime:f,number:m,duration:c,sourceDuration:s,indexRange:`${p}-${g}`,type:h})[0];n&&(y.map=n),u.push(y),p+="bigint"==typeof p?tp.BigInt(a):a,f+=c/l,m++}return e.segments=u,e},by=["AUDIO","SUBTITLES"],Ty=1/60,wy=e=>{return(t=e,i=({timeline:e})=>e,ry(t.reduce(((e,t)=>(t.forEach((t=>{e[i(t)]=t})),e)),{}))).sort(((e,t)=>e.timeline>t.timeline?1:-1));var t,i},Sy=e=>{let t=[];var i,n;return i=e,n=(e,i,n,s)=>{t=t.concat(e.playlists||[])},by.forEach((function(e){for(var t in i.mediaGroups[e])for(var s in i.mediaGroups[e][t]){var r=i.mediaGroups[e][t][s];n(r,e,t,s)}})),t},Ey=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach(((t,i)=>{t.number=e.mediaSequence+i}))},Cy=({oldManifest:e,newManifest:t})=>{const i=e.playlists.concat(Sy(e)),n=t.playlists.concat(Sy(t));return t.timelineStarts=wy([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 n=((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(!n)return;if(t.sidx)return;const s=t.segments[0],r=n.segments.findIndex((function(e){return Math.abs(e.presentationTime-s.presentationTime)<Ty}));if(-1===r)return Ey({playlist:t,mediaSequence:n.mediaSequence+n.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!n.segments.length&&t.timeline>n.timeline||n.segments.length&&t.timeline>n.segments[n.segments.length-1].timeline)&&t.discontinuitySequence--);n.segments[r].discontinuity&&!s.discontinuity&&(s.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),Ey({playlist:t,mediaSequence:n.segments[r].number})}))})({oldPlaylists:i,newPlaylists:n,timelineStarts:t.timelineStarts}),t},ky=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?tp.BigInt(e.offset)+tp.BigInt(e.length)-tp.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),xy=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=ry(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,n)=>(t[i]&&e.push(n),e)),[])),e}))},Iy=(e,t)=>{const i=ky(e.sidx),n=i&&t[i]&&t[i].sidx;return n&&vy(e,n,e.sidx.resolvedUri),e},Ay=(e,t={})=>
vendor: 9,833 bytes, line 31
31{if(!Object.keys(t).length)return e;for(const i in e)e[i]=Iy(e[i],t);return e},Ly=({attributes:e,segments:t,sidx:i,discontinuityStarts:n})=>{const s={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:n,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(s.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(s.contentProtection=e.contentProtection),e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),i&&(s.sidx=i),s},Oy=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,Py=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,Dy=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,My=e=>e?Object.keys(e).reduce(((t,i)=>{const n=e[i];return t.concat(n.playlists)}),[]):[],Ny=({dashPlaylists:e,locations:t,contentSteering:i,sidxMapping:n={},previousManifest:s,eventStream:r})=>{if(!e.length)return{};const{sourceDuration:o,type:a,suggestedPresentationDelay:l,minimumUpdatePeriod:c}=e[0].attributes,u=xy(e.filter(Oy)).map(Ly),h=xy(e.filter(Py)),d=xy(e.filter(Dy)),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:Ay(u,n)};c>=0&&(f.minimumUpdatePeriod=1e3*c),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=h.length?((e,t={},i=!1)=>{let n;const s=e.reduce(((e,s)=>{const r=s.attributes.role&&s.attributes.role.value||"",o=s.attributes.lang||"";let a=s.attributes.label||"main";if(o&&!s.attributes.label){const e=r?` (${r})`:"";a=`${s.attributes.lang}${e}`}e[a]||(e[a]={language:o,autoselect:!0,default:"main"===r,playlists:[],uri:""});const l=Iy((({attributes:e,segments:t,sidx:i,mediaSequence:n,discontinuitySequence:s,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:s,discontinuityStarts:r,timelineStarts:e.timelineStarts,mediaSequence:n,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})(s,i),t);return e[a].playlists.push(l),void 0===n&&"main"===r&&(n=s,n.default=!0),e}),{});n||(s[Object.keys(s)[0]].default=!0);return s})(h,n,m):null,y=d.length?((e,t={})=>e.reduce(((e,i)=>{const n=i.attributes.label||i.attributes.lang||"text",s=i.attributes.lang||"und";return e[n]||(e[n]={language:s,default:!1,autoselect:!1,playlists:[],uri:""}),e[n].playlists.push(Iy((({attributes:e,segments:t,mediaSequence:i,discontinuityStarts:n,discontinuitySequence:s})=>{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:n,discontinuitySequence:s,mediaSequence:i,segments:t};return e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),o})(i),t)),e}),{}))(d,n):null,_=u.concat(My(g),My(y)),v=_.map((({timelineStarts:e})=>e));var b,T;return f.timelineStarts=wy(v),b=_,T=f.timelineStarts,b.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),y&&(f.mediaGroups.SUBTITLES.subs=y),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=p.reduce(((e,t)=>t?(t.forEach((t=>{const{channel:i,language:n}=t;e[n]={autoselect:!1,default:!1,instreamId:i,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])})),e):e),{})),s?Cy({oldManifest:s,newManifest:f}):f},Ry=(e,t,i)=>{const{NOW:n,clientOffset:s,availabilityStartTime:r,timescale:o=1,periodStart:a=0,minimumUpdatePeriod:l=0}=e,c=(n+s)/1e3+l-(r+a);return Math.ceil((c*o-t)/i)},Fy=(e,t)=>{const{type:i,minimumUpdatePeriod:n=0,media:s="",sourceDuration:r,timescale:o=1,startNumber:a=1,periodStart:l}=e,c=[];let u=-1;for(let h=0;h<t.length;h++){const d=t[h],p=d.d,f=d.r||0,m=d.t||0;let g;if(u<0&&(u=m),m&&m>u&&(u=m),f<0){const a=h+1;g=a===t.length?"dynamic"===i&&n>0&&s.indexOf("$Number$")>0?Ry(e,u,p):(r*o-u)/p:(t[a].t-u)/p}else g=f+1;const y=a+c.length+g;let _=a+c.length;for(;_<y;)c.push({number:_,duration:p/o,time:u,timeline:l}),u+=p,_++}return c},By=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Uy=(e,t)=>e.replace(By,(e=>(t,i,n,s)=>{if("$$"===t)return"$";if(void 0===e[i])return t;const r=""+e[i];return"RepresentationID"===i?r:(s=n?parseInt(s,10):1,r.length>=s?r:`${new Array(s-r.length+1).join("0")}${r}`)})(t)),jy=(e,t)=>{const i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:n={sourceURL:"",range:""}}=e,s=fy({baseUrl:e.baseUrl,source:Uy(n.sourceURL,i),range:n.range}),r=((e,t)=>e.duration||t?e.duration?yy(e):Fy(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t);return r.map((t=>{i.Number=t.number,i.Time=t.time;const n=Uy(e.media||"",i),r=e.timescale||1,o=e.presentationTimeOffset||0,a=e.periodStart+(t.time-o)/r;return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:Cf(e.baseUrl||"",n),map:s,number:t.number,presentationTime:a}}))},$y=(e,t)=>{const{duration:i,segmentUrls:n=[],periodStart:s}=e;if(!i&&!t||i&&t)throw new Error(dy);const r=n.map((t=>((e,t)=>{const{baseUrl:i,initialization:n={}}=e,s=fy({baseUrl:i,source:n.sourceURL,range:n.range}),r=fy({baseUrl:i,source:t.media,range:t.mediaRange});return r.map=s,r})(e,t)));let o;i&&(o=yy(e)),t&&(o=Fy(e,t));return o.map(((t,i)=>{if(r[i]){const n=r[i],o=e.timescale||1,a=e.presentationTimeOffset||0;return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n.presentationTime=s+(t.time-a)/o,n}})).filter((e=>e))},qy=({attributes:e,segmentInfo:t})=>{let i,n;t.template?(n=jy,i=sy(e,t.template)):t.base?(n=_y,i=sy(e,t.base)):t.list&&(n=$y,i=sy(e,t.list));const s={attributes:e};if(!n)return s;const r=n(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 s.attributes=i,s.segments=r,t.base&&i.indexRange&&(s.sidx=r[0],s.segments=[]),s},Hy=(e,t)=>ay(e.childNodes).filter((({tagName:e})=>e===t)),Vy=e=>e.textContent.trim(),zy=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,n,s,r,o,a]=t.slice(1);return 31536e3*parseFloat(i||0)+2592e3*parseFloat(n||0)+86400*parseFloat(s||0)+3600*parseFloat(r||0)+60*parseFloat(o||0)+parseFloat(a||0)},Wy={mediaPresentationDuration:e=>zy(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=>zy(e),suggestedPresentationDelay:e=>zy(e),type:e=>e,timeShiftBufferDepth:e=>zy(e),start:e=>zy(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)?zy(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},Gy=e=>e&&e.attributes?ay(e.attributes).reduce(((e,t)=>{const i=Wy[t.name]||Wy.DEFAULT;return e[t.name]=i(t.value),e}),{}):{},Xy={"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"},Ky=(e,t)=>t.length?oy(e.map((function(e){return t.map((function(t){const i=Vy(t),n=Cf(e.baseUrl,i),s=sy(Gy(t),{baseUrl:n});return n!==i&&!s.serviceLocation&&e.serviceLocation&&(s.serviceLocation=e.serviceLocation),s}))}))):e,Yy=e=>{const t=Hy(e,"SegmentTemplate")[0],i=Hy(e,"SegmentList")[0],n=i&&Hy(i,"SegmentURL").map((e=>sy({tag:"SegmentURL"},Gy(e)))),s=Hy(e,"SegmentBase")[0],r=i||t,o=r&&Hy(r,"SegmentTimeline")[0],a=i||s||t,l=a&&Hy(a,"Initialization")[0],c=t&&Gy(t);c&&l?c.initialization=l&&Gy(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});const u={template:c,segmentTimeline:o&&Hy(o,"S").map((e=>Gy(e))),list:i&&sy(Gy(i),{segmentUrls:n,initialization:Gy(l)}),base:s&&sy(Gy(s),{initialization:Gy(l)})};return Object.keys(u).forEach((e=>{u[e]||delete u[e]})),u},Qy=e=>oy(Hy(e.node,"EventStream").map((t=>{const i=Gy(t),n=i.schemeIdUri;return Hy(t,"Event").map((t=>{const s=Gy(t),r=s.presentationTime||0,o=i.timescale||1,a=s.duration||0,l=r/o+e.attributes.start;return{schemeIdUri:n,value:i.value,id:s.id,start:l,end:l+a/o,messageData:Vy(t)||s.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}}))}))),Jy=(e,t,i)=>n=>{const s=Gy(n),r=Ky(t,Hy(n,"BaseURL")),o=Hy(n,"Role")[0],a={role:Gy(o)};let l=sy(e,s,a);const c=Hy(n,"Accessibility")[0],u=(e=>
vendor: 5,685 bytes, line 31
31{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,n=""]=e.split("=");t.channel=i,t.language=e,n.split(",").forEach((e=>{const[i,n]=e.split(":");"lang"===i?t.language=n:"er"===i?t.easyReader=Number(n):"war"===i?t.aspectRatio=Number(n):"3D"===i&&(t["3D"]=Number(n))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}))})(Gy(c));u&&(l=sy(l,{captionServices:u}));const h=Hy(n,"Label")[0];if(h&&h.childNodes.length){const e=h.childNodes[0].nodeValue.trim();l=sy(l,{label:e})}const d=Hy(n,"ContentProtection").reduce(((e,t)=>{const i=Gy(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const n=Xy[i.schemeIdUri];if(n){e[n]={attributes:i};const s=Hy(t,"cenc:pssh")[0];if(s){const t=Vy(s);e[n].pssh=t&&xf(t)}}return e}),{});Object.keys(d).length&&(l=sy(l,{contentProtection:d}));const p=Yy(n),f=Hy(n,"Representation"),m=sy(i,p);return oy(f.map(((e,t,i)=>n=>{const s=Hy(n,"BaseURL"),r=Ky(t,s),o=sy(e,Gy(n)),a=Yy(n);return r.map((e=>({segmentInfo:sy(i,a),attributes:sy(o,e)})))})(l,r,m)))},Zy=(e,t)=>(i,n)=>{const s=Ky(t,Hy(i.node,"BaseURL")),r=sy(e,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(r.periodDuration=i.attributes.duration);const o=Hy(i.node,"AdaptationSet"),a=Yy(i.node);return oy(o.map(Jy(r,s,a)))},e_=(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=sy({serverURL:Vy(e[0])},Gy(e[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i},t_=e=>{if(""===e)throw new Error(cy);const t=new iy;let i,n;try{i=t.parseFromString(e,"application/xml"),n=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(uy);return n},i_=(e,t={})=>{const i=((e,t={})=>{const{manifestUri:i="",NOW:n=Date.now(),clientOffset:s=0,eventHandler:r=function(){}}=t,o=Hy(e,"Period");if(!o.length)throw new Error(ly);const a=Hy(e,"Location"),l=Gy(e),c=Ky([{baseUrl:i}],Hy(e,"BaseURL")),u=Hy(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=n,l.clientOffset=s,a.length&&(l.locations=a.map(Vy));const h=[];return o.forEach(((e,t)=>{const i=Gy(e),n=h[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:n?n.attributes:null,mpdType:l.type}),h.push({node:e,attributes:i})})),{locations:l.locations,contentSteeringInfo:e_(u,r),representationInfo:oy(h.map(Zy(l,c))),eventStream:oy(h.map(Qy))}})(t_(e),t),n=i.representationInfo.map(qy);return Ny({dashPlaylists:n,locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:i.eventStream})},n_=e=>(e=>{const t=Hy(e,"UTCTiming")[0];if(!t)return null;const i=Gy(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(py)}return i})(t_(e));var s_=Math.pow(2,32),r_=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)*s_+i.getUint32(4)},o_=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=r_(e.subarray(n)),i.firstOffset=r_(e.subarray(n+8)),n+=16),n+=2;var s=t.getUint16(n);for(n+=2;s>0;n+=12,s--)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},a_=Zf([73,68,51]),l_=function e(t,i){return void 0===i&&(i=0),(t=Zf(t)).length-i<10||!rm(t,a_,{offset:i})?i:(i+=function(e,t){void 0===t&&(t=0);var i=(e=Zf(e))[t+5],n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&i)>>4?n+20:n+10}(t,i),e(t,i))},c_=function(e){return"string"==typeof e?sm(e):e},u_=function e(t,i,n){void 0===n&&(n=!1),i=function(e){return Array.isArray(e)?e.map((function(e){return c_(e)})):[c_(e)]}(i),t=Zf(t);var s=[];if(!i.length)return s;for(var r=0;r<t.length;){var o=(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0,a=t.subarray(r+4,r+8);if(0===o)break;var l=r+o;if(l>t.length){if(n)break;l=t.length}var c=t.subarray(r+8,l);rm(a,i[0])&&(1===i.length?s.push(c):s.push.apply(s,e(c,i.slice(1),n))),r=l}return s},h_={EBML:Zf([26,69,223,163]),DocType:Zf([66,130]),Segment:Zf([24,83,128,103]),SegmentInfo:Zf([21,73,169,102]),Tracks:Zf([22,84,174,107]),Track:Zf([174]),TrackNumber:Zf([215]),DefaultDuration:Zf([35,227,131]),TrackEntry:Zf([174]),TrackType:Zf([131]),FlagDefault:Zf([136]),CodecID:Zf([134]),CodecPr
vendor: 4,696 bytes, line 31
31ivate:Zf([99,162]),VideoTrack:Zf([224]),AudioTrack:Zf([225]),Cluster:Zf([31,67,182,117]),Timestamp:Zf([231]),TimestampScale:Zf([42,215,177]),BlockGroup:Zf([160]),BlockDuration:Zf([155]),Block:Zf([161]),SimpleBlock:Zf([163])},d_=[128,64,32,16,8,4,2,1],p_=function(e,t,i,n){void 0===i&&(i=!0),void 0===n&&(n=!1);var s=function(e){for(var t=1,i=0;i<d_.length&&!(e&d_[i]);i++)t++;return t}(e[t]),r=e.subarray(t,t+s);return i&&((r=Array.prototype.slice.call(e,t,t+s))[0]^=d_[s-1]),{length:s,value:im(r,{signed:n}),bytes:r}},f_=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"==typeof t?nm(t):t},m_=function e(t,i,n){if(n>=i.length)return i.length;var s=p_(i,n,!1);if(rm(t.bytes,s.bytes))return n;var r=p_(i,n+s.length);return e(t,i,n+r.length+r.value+s.length)},g_=function e(t,i){i=function(e){return Array.isArray(e)?e.map((function(e){return f_(e)})):[f_(e)]}(i),t=Zf(t);var n=[];if(!i.length)return n;for(var s=0;s<t.length;){var r=p_(t,s,!1),o=p_(t,s+r.length),a=s+r.length+o.length;127===o.value&&(o.value=m_(r,t,a),o.value!==t.length&&(o.value-=a));var l=a+o.value>t.length?t.length:a+o.value,c=t.subarray(a,l);rm(i[0],r.bytes)&&(1===i.length?n.push(c):n=n.concat(e(c,i.slice(1)))),s+=r.length+o.length+c.length}return n},y_=Zf([0,0,0,1]),__=Zf([0,0,1]),v_=Zf([0,0,3]),b_=function(e){for(var t=[],i=1;i<e.length-2;)rm(e.subarray(i,i+3),v_)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var n=e.length-t.length,s=new Uint8Array(n),r=0;for(i=0;i<n;r++,i++)r===t[0]&&(r++,t.shift()),s[i]=e[r];return s},T_=function(e,t,i,n){e=Zf(e),i=[].concat(i);for(var s,r=0,o=0;r<e.length&&(o<n||s);){var a=void 0;if(rm(e.subarray(r),y_)?a=4:rm(e.subarray(r),__)&&(a=3),a){if(o++,s)return b_(e.subarray(s,r));var l=void 0;"h264"===t?l=31&e[r+a]:"h265"===t&&(l=e[r+a]>>1&63),-1!==i.indexOf(l)&&(s=r+a),r+=a+("h264"===t?1:2)}else r++}return e.subarray(0,0)},w_={webm:Zf([119,101,98,109]),matroska:Zf([109,97,116,114,111,115,107,97]),flac:Zf([102,76,97,67]),ogg:Zf([79,103,103,83]),ac3:Zf([11,119]),riff:Zf([82,73,70,70]),avi:Zf([65,86,73]),wav:Zf([87,65,86,69]),"3gp":Zf([102,116,121,112,51,103]),mp4:Zf([102,116,121,112]),fmp4:Zf([115,116,121,112]),mov:Zf([102,116,121,112,113,116]),moov:Zf([109,111,111,118]),moof:Zf([109,111,111,102])},S_={aac:function(e){var t=l_(e);return rm(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=l_(e);return rm(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=g_(e,[h_.EBML,h_.DocType])[0];return rm(t,w_.webm)},mkv:function(e){var t=g_(e,[h_.EBML,h_.DocType])[0];return rm(t,w_.matroska)},mp4:function(e){return!S_["3gp"](e)&&!S_.mov(e)&&(!(!rm(e,w_.mp4,{offset:4})&&!rm(e,w_.fmp4,{offset:4}))||(!(!rm(e,w_.moof,{offset:4})&&!rm(e,w_.moov,{offset:4}))||void 0))},mov:function(e){return rm(e,w_.mov,{offset:4})},"3gp":function(e){return rm(e,w_["3gp"],{offset:4})},ac3:function(e){var t=l_(e);return rm(e,w_.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=l_(e);return rm(e,w_.flac,{offset:t})},ogg:function(e){return rm(e,w_.ogg)},avi:function(e){return rm(e,w_.riff)&&rm(e,w_.avi,{offset:8})},wav:function(e){return rm(e,w_.riff)&&rm(e,w_.wav,{offset:8})},h264:function(e){return function(e,t,i){return T_(e,"h264",t,i)}(e,7,3).length},h265:function(e){return function(e,t,i){return T_(e,"h265",t,i)}(e,[32,33],3).length}},E_=Object.keys(S_).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);E_.forEach((function(e){var t=S_[e];S_[e]=function(e){return t(Zf(e))}}));var C_,k_,x_,I_,A_=S_,L_=function(e){e=Zf(e);for(var t=0;t<E_.length;t++){var i=E_[t];if(A_[i](e))return i}return""},O_=9e4;C_=function(e){return e*O_},k_=function(e,t){return e*t},x_=function(e){return e/O_},I_=function(e,t){return e/t};var P_=O_,D_="8.19.1";const M_={},N_=function(e,t){return M_[e]=M_[e]||[],t&&(M_[e]=M_[e].concat(t)),M_[e]},R_=function(e,t){const i=N_(e).indexOf(t);return!(i<=-1)&&(M_[e]=M_[e].slice(),M_[e].splice(i,1),!0)},F_={prefixed:!0},B_=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],U_=B_[0];let j_;for(let Vx=0;Vx<B_.length;Vx++)if(B_[Vx][1]in Lp){j_=B_[Vx];break}if(j_){for(let zx=0;zx<j_.length;zx++)F_[U_[zx]]=j_[zx];F_.prefixed=j_[0]!==U_[0]}let $_=[];const q_=function e(t,i=":",n=""){let s,r="info";function o(...e){s("log",r,e)}return s=((e,t,i)=>(n,s,r)=>
vendor: 6,946 bytes, line 31
31{const o=t.levels[s],a=new RegExp(`^(${o})$`);let l=e;if("log"!==n&&r.unshift(n.toUpperCase()+":"),i&&(l=`%c${e}`,r.unshift(i)),r.unshift(l+":"),$_){$_.push([].concat(r));const e=$_.length-1e3;$_.splice(0,e>0?e:0)}if(!tp.console)return;let c=tp.console[n];c||"debug"!==n||(c=tp.console.info||tp.console.log),c&&o&&a.test(n)&&c[Array.isArray(r)?"apply":"call"](tp.console,r)})(t,o,n),o.createLogger=(s,r,o)=>{const a=void 0!==r?r:i;return e(`${t} ${a} ${s}`,a,void 0!==o?o:n)},o.createNewLogger=(t,i,n)=>e(t,i,n),o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=e=>{if("string"==typeof e){if(!o.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);r=e}return r},o.history=()=>$_?[].concat($_):[],o.history.filter=e=>($_||[]).filter((t=>new RegExp(`.*${e}.*`).test(t[0]))),o.history.clear=()=>{$_&&($_.length=0)},o.history.disable=()=>{null!==$_&&($_.length=0,$_=null)},o.history.enable=()=>{null===$_&&($_=[])},o.error=(...e)=>s("error",r,e),o.warn=(...e)=>s("warn",r,e),o.debug=(...e)=>s("debug",r,e),o}("VIDEOJS"),H_=q_.createLogger,V_=Object.prototype.toString,z_=function(e){return X_(e)?Object.keys(e):[]};function W_(e,t){z_(e).forEach((i=>t(e[i],i)))}function G_(e,t,i=0){return z_(e).reduce(((i,n)=>t(i,e[n],n)),i)}function X_(e){return!!e&&"object"==typeof e}function K_(e){return X_(e)&&"[object Object]"===V_.call(e)&&e.constructor===Object}function Y_(...e){const t={};return e.forEach((e=>{e&&W_(e,((e,i)=>{K_(e)?(K_(t[i])||(t[i]={}),t[i]=Y_(t[i],e)):t[i]=e}))})),t}function Q_(e={}){const t=[];for(const i in e)if(e.hasOwnProperty(i)){const n=e[i];t.push(n)}return t}function J_(e,t,i,n=!0){const s=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0}),r={configurable:!0,enumerable:!0,get(){const e=i();return s(e),e}};return n&&(r.set=s),Object.defineProperty(e,t,r)}var Z_=Object.freeze({__proto__:null,each:W_,reduce:G_,isObject:X_,isPlain:K_,merge:Y_,values:Q_,defineLazyProperty:J_});let ev,tv=!1,iv=null,nv=!1,sv=!1,rv=!1,ov=!1,av=!1,lv=null,cv=null;const uv=Boolean(tp.cast&&tp.cast.framework&&tp.cast.framework.CastReceiverContext);let hv=null,dv=!1,pv=!1,fv=!1,mv=!1,gv=!1,yv=!1,_v=!1;const vv=Boolean(Cv()&&("ontouchstart"in tp||tp.navigator.maxTouchPoints||tp.DocumentTouch&&tp.document instanceof tp.DocumentTouch)),bv=tp.navigator&&tp.navigator.userAgentData;if(bv&&bv.platform&&bv.brands&&(nv="Android"===bv.platform,rv=Boolean(bv.brands.find((e=>"Microsoft Edge"===e.brand))),ov=Boolean(bv.brands.find((e=>"Chromium"===e.brand))),av=!rv&&ov,lv=cv=(bv.brands.find((e=>"Chromium"===e.brand))||{}).version||null,pv="Windows"===bv.platform),!ov){const Wx=tp.navigator&&tp.navigator.userAgent||"";tv=/iPod/i.test(Wx),iv=function(){const e=Wx.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),nv=/Android/i.test(Wx),ev=function(){const e=Wx.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),sv=/Firefox/i.test(Wx),rv=/Edg/i.test(Wx),ov=/Chrome/i.test(Wx)||/CriOS/i.test(Wx),av=!rv&&ov,lv=cv=function(){const e=Wx.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),hv=function(){const e=/MSIE\s(\d+)\.\d/.exec(Wx);let t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Wx)&&/rv:11.0/.test(Wx)&&(t=11),t}(),gv=/Tizen/i.test(Wx),yv=/Web0S/i.test(Wx),_v=gv||yv,dv=/Safari/i.test(Wx)&&!av&&!nv&&!rv&&!_v,pv=/Windows/i.test(Wx),fv=/iPad/i.test(Wx)||dv&&vv&&!/iPhone/i.test(Wx),mv=/iPhone/i.test(Wx)&&!fv}const Tv=mv||fv||tv,wv=(dv||Tv)&&!av;var Sv=Object.freeze({__proto__:null,get IS_IPOD(){return tv},get IOS_VERSION(){return iv},get IS_ANDROID(){return nv},get ANDROID_VERSION(){return ev},get IS_FIREFOX(){return sv},get IS_EDGE(){return rv},get IS_CHROMIUM(){return ov},get IS_CHROME(){return av},get CHROMIUM_VERSION(){return lv},get CHROME_VERSION(){return cv},IS_CHROMECAST_RECEIVER:uv,get IE_VERSION(){return hv},get IS_SAFARI(){return dv},get IS_WINDOWS(){return pv},get IS_IPAD(){return fv},get IS_IPHONE(){return mv},get IS_TIZEN(){return gv},get IS_WEBOS(){return yv},get IS_SMART_TV(){return _v},TOUCH_ENABLED:vv,IS_IOS:Tv,IS_ANY_SAFARI:wv});function Ev(e){return"string"==typeof e&&Boolean(e.trim())}function Cv(){return Lp===tp.document}function kv(e){return X_(e)&&1===e.nodeType}function xv(){try{return tp.parent!==tp.self}catch(e){return!0}}function Iv(e){return function(t,i){if(!Ev(t))return Lp[e](null);Ev(i)&&(i=Lp.querySelector(i));const n=kv(i)?i:Lp;return n[e]&&n[e](t)}}function Av(e="div",t={},i={},n){const s=Lp.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){const i=t[e];"textContent"===e?Lv(s,i):s[e]===i&&"tabIndex"!==e||(s[e]=i)})),Object.getOwnPropertyNames(i).forEach((function(e){s.setAttribute(e,i[e])})),n&&Kv(s,n),s}function Lv(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function Ov(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Pv(e,t){return function(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(t),e.classList.contains(t)}function Dv(e,...t){return e.classList.add(...t.reduce(((e,t)=>e.concat(t.split(/\s+/))),[])),e}function Mv(e,...t){return e?(e.classList.remove(...t.reduce(((e,t)=>e.concat(t.split(/\s+/))),[])),e):(q_.warn("removeClass was called with an element that doesn't exist"),null)}function Nv(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 Rv(e,t){Object.getOwnPropertyNames(t).forEach((function(i){const n=t[i];null==n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)}))}function Fv(e){const t={},i=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const n=e.attributes;for(let e=n.length-1;e>=0;e--){const s=n[e].name;let r=n[e].value;i.includes(s)&&(r=null!==r),t[s]=r}}return t}function Bv(e,t){return e.getAttribute(t)}function Uv(e,t,i){e.setAttribute(t,i)}function jv(e,t){e.removeAttribute(t)}function $v(){Lp.body.focus(),Lp.onselectstart=function(){return!1}}function qv(){Lp.onselectstart=function(){return!0}}function Hv(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(eb(e,"height"))),i.width||(i.width=parseFloat(eb(e,"width"))),i}}function Vv(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,i=e.offsetHeight;let n=0,s=0;for(;e.offsetParent&&e!==Lp[F_.fullscreenElement];)n+=e.offsetLeft,s+=e.offsetTop,e=e.offsetParent;return{left:n,top:s,width:t,height:i}}function zv(e,t){const i={x:0,y:0};if(Tv){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){const e=eb(t,"transform");
vendor: 7,941 bytes, line 31
31if(/^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&&tp.WebKitCSSMatrix){const e=tp.getComputedStyle(t.assignedSlot.parentElement).transform,n=new tp.WebKitCSSMatrix(e);i.x+=n.m41,i.y+=n.m42}t=t.parentNode||t.host}}const n={},s=Vv(t.target),r=Vv(e),o=r.width,a=r.height;let l=t.offsetY-(r.top-s.top),c=t.offsetX-(r.left-s.left);return t.changedTouches&&(c=t.changedTouches[0].pageX-r.left,l=t.changedTouches[0].pageY+r.top,Tv&&(c-=i.x,l-=i.y)),n.y=1-Math.max(0,Math.min(1,l/a)),n.x=Math.max(0,Math.min(1,c/o)),n}function Wv(e){return X_(e)&&3===e.nodeType}function Gv(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Xv(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((e=>("function"==typeof e&&(e=e()),kv(e)||Wv(e)?e:"string"==typeof e&&/\S/.test(e)?Lp.createTextNode(e):void 0))).filter((e=>e))}function Kv(e,t){return Xv(t).forEach((t=>e.appendChild(t))),e}function Yv(e,t){return Kv(Gv(e),t)}function Qv(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 Jv=Iv("querySelector"),Zv=Iv("querySelectorAll");function eb(e,t){if(!e||!t)return"";if("function"==typeof tp.getComputedStyle){let i;try{i=tp.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}function tb(e){[...Lp.styleSheets].forEach((t=>{try{const i=[...t.cssRules].map((e=>e.cssText)).join(""),n=Lp.createElement("style");n.textContent=i,e.document.head.appendChild(n)}catch(i){const n=Lp.createElement("link");n.rel="stylesheet",n.type=t.type,n.media=t.media.mediaText,n.href=t.href,e.document.head.appendChild(n)}}))}var ib=Object.freeze({__proto__:null,isReal:Cv,isEl:kv,isInFrame:xv,createEl:Av,textContent:Lv,prependTo:Ov,hasClass:Pv,addClass:Dv,removeClass:Mv,toggleClass:Nv,setAttributes:Rv,getAttributes:Fv,getAttribute:Bv,setAttribute:Uv,removeAttribute:jv,blockTextSelection:$v,unblockTextSelection:qv,getBoundingClientRect:Hv,findPosition:Vv,getPointerPosition:zv,isTextNode:Wv,emptyEl:Gv,normalizeContent:Xv,appendContent:Kv,insertContent:Yv,isSingleLeftClick:Qv,$:Jv,$$:Zv,computedStyle:eb,copyStyleSheetsToWindow:tb});let nb,sb=!1;const rb=function(){if(!1===nb.options.autoSetup)return;const e=Array.prototype.slice.call(Lp.getElementsByTagName("video")),t=Array.prototype.slice.call(Lp.getElementsByTagName("audio")),i=Array.prototype.slice.call(Lp.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(let e=0,t=n.length;e<t;e++){const t=n[e];if(!t||!t.getAttribute){ob(1);break}if(void 0===t.player){null!==t.getAttribute("data-setup")&&nb(t)}}else sb||ob(1)};function ob(e,t){Cv()&&(t&&(nb=t),tp.setTimeout(rb,e))}function ab(){sb=!0,tp.removeEventListener("load",ab)}Cv()&&("complete"===Lp.readyState?ab():tp.addEventListener("load",ab));const lb=function(e){const t=Lp.createElement("style");return t.className=e,t},cb=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var ub=new WeakMap;let hb,db=3;function pb(){return db++}function fb(e,t){if(!ub.has(e))return;const i=ub.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&&ub.delete(e)}function mb(e,t,i,n){i.forEach((function(i){e(t,i,n)}))}function gb(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const n=e||tp.event;e={};const s=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const t in n)s.includes(t)||"returnValue"===t&&n.preventDefault||(e[t]=n[t]);if(e.target||(e.target=e.srcElement||Lp),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){const t=Lp.documentElement,i=Lp.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 yb=["touchstart","touchmove"];function _b(e,t,i){if(Array.isArray(t))return mb(_b,e,t,i);ub.has(e)||ub.set(e,{});const n=ub.get(e);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),i.guid||(i.guid=pb()),n.handlers[t].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(t,i){if(n.disabled)return;t=gb(t);const s=n.handlers[t.type];if(s){const n=s.slice(0);for(let s=0,r=n.length;s<r&&!t.isImmediatePropagationStopped();s++)try{n[s].call(e,t,i)}catch(e){q_.error(e)}}}),1===n.handlers[t].length)if(e.addEventListener){let i=!1;(function(){if("boolean"!=typeof hb){hb=!1;try{const e=Object.defineProperty({},"passive",{get(){hb=!0}});tp.addEventListener("test",null,e),tp.removeEventListener("test",null,e)}catch(e){}}return hb})()&&yb.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,n.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function vb(e,t,i){if(!ub.has(e))return;const n=ub.get(e);if(!n.handlers)return;if(Array.isArray(t))return mb(vb,e,t,i);const s=function(e,t){n.handlers[t]=[],fb(e,t)};if(void 0===t){for(const t in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},t)&&s(e,t);return}const r=n.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);fb(e,t)}else s(e,t)}function bb(e,t,i){const n=ub.has(e)?ub.get(e):{},s=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=gb(t),n.dispatcher&&n.dispatcher.call(e,t,i),s&&!t.isPropagationStopped()&&!0===t.bubbles)bb.call(null,s,t,i);else if(!s&&!t.defaultPrevented&&t.target&&t.target[t.type]){ub.has(t.target)||ub.set(t.target,{});const e=ub.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 Tb(e,t,i){if(Array.isArray(t))return mb(Tb,e,t,i);const n=function(){vb(e,t,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||pb(),_b(e,t,n)}function wb(e,t,i){const n=function(){vb(e,t,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||pb(),_b(e,t,n)}var Sb=Object.freeze({__proto__:null,fixEvent:gb,on:_b,off:vb,trigger:bb,one:Tb,any:wb});const Eb=30,Cb=function(e,t,i){t.guid||(t.guid=pb());const n=t.bind(e);return n.guid=i?i+"_"+t.guid:t.guid,n},kb=function(e,t){let i=tp.performance.now();return function(...n){const s=tp.performance.now();s-i>=t&&(e(...n),i=s)}},xb=function(e,t,i,n=tp){let s;const r=function(){const r=this,o=arguments;let a=function(){s=null,a=null,i||e.apply(r,o)};!s&&i&&e.apply(r,o),n.clearTimeout(s),s=n.setTimeout(a,t)};return r.cancel=()=>{n.clearTimeout(s),s=null},r};var Ib=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Eb,bind_:Cb,throttle:kb,debounce:xb});let Ab;class Lb{on(e,t){const i=this.addEventListener;this.addEventListener=()=>{},_b(this,e,t),this.addEventListener=i}off(e,t){vb(this,e,t)}
vendor: 89,779 bytes, line 31
31one(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Tb(this,e,t),this.addEventListener=i}any(e,t){const i=this.addEventListener;this.addEventListener=()=>{},wb(this,e,t),this.addEventListener=i}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=gb(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),bb(this,e)}queueTrigger(e){Ab||(Ab=new Map);const t=e.type||e;let i=Ab.get(this);i||(i=new Map,Ab.set(this,i));const n=i.get(t);i.delete(t),tp.clearTimeout(n);const s=tp.setTimeout((()=>{i.delete(t),0===i.size&&(i=null,Ab.delete(this)),this.trigger(e)}),0);i.set(t,s)}}Lb.prototype.allowedEvents_={},Lb.prototype.addEventListener=Lb.prototype.on,Lb.prototype.removeEventListener=Lb.prototype.off,Lb.prototype.dispatchEvent=Lb.prototype.trigger;const Ob=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,Pb=e=>e instanceof Lb||!!e.eventBusEl_&&["on","one","off","trigger"].every((t=>"function"==typeof e[t])),Db=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Mb=(e,t,i)=>{if(!e||!e.nodeName&&!Pb(e))throw new Error(`Invalid target for ${Ob(t)}#${i}; must be a DOM node or evented object.`)},Nb=(e,t,i)=>{if(!Db(e))throw new Error(`Invalid event type for ${Ob(t)}#${i}; must be a non-empty string or array.`)},Rb=(e,t,i)=>{if("function"!=typeof e)throw new Error(`Invalid listener for ${Ob(t)}#${i}; must be a function.`)},Fb=(e,t,i)=>{const n=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let s,r,o;return n?(s=e.eventBusEl_,t.length>=3&&t.shift(),[r,o]=t):(s=t[0],r=t[1],o=t[2]),Mb(s,e,i),Nb(r,e,i),Rb(o,e,i),o=Cb(e,o),{isTargetingSelf:n,target:s,type:r,listener:o}},Bb=(e,t,i,n)=>{Mb(e,e,t),e.nodeName?Sb[t](e,i,n):e[t](i,n)},Ub={on(...e){const{isTargetingSelf:t,target:i,type:n,listener:s}=Fb(this,e,"on");if(Bb(i,"on",n,s),!t){const e=()=>this.off(i,n,s);e.guid=s.guid;const t=()=>this.off("dispose",e);t.guid=s.guid,Bb(this,"on","dispose",e),Bb(i,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:i,type:n,listener:s}=Fb(this,e,"one");if(t)Bb(i,"one",n,s);else{const e=(...t)=>{this.off(i,n,e),s.apply(null,t)};e.guid=s.guid,Bb(i,"one",n,e)}},any(...e){const{isTargetingSelf:t,target:i,type:n,listener:s}=Fb(this,e,"any");if(t)Bb(i,"any",n,s);else{const e=(...t)=>{this.off(i,n,e),s.apply(null,t)};e.guid=s.guid,Bb(i,"any",n,e)}},off(e,t,i){if(!e||Db(e))vb(this.eventBusEl_,e,t);else{const n=e,s=t;Mb(n,this,"off"),Nb(s,this,"off"),Rb(i,this,"off"),i=Cb(this,i),this.off("dispose",i),n.nodeName?(vb(n,s,i),vb(n,"dispose",i)):Pb(n)&&(n.off(s,i),n.off("dispose",i))}},trigger(e,t){Mb(this.eventBusEl_,this,"trigger");const i=e&&"string"!=typeof e?e.type:e;if(!Db(i))throw new Error(`Invalid event type for ${Ob(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return bb(this.eventBusEl_,e,t)}};function jb(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_=Av("span",{className:"vjs-event-bus"});return Object.assign(e,Ub),e.eventedCallbacks&&e.eventedCallbacks.forEach((e=>{e()})),e.on("dispose",(()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&ub.has(e)&&ub.delete(e)})),tp.setTimeout((()=>{e.eventBusEl_=null}),0)})),e}const $b={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),W_(e,((e,i)=>{this.state[i]!==e&&(t=t||{},t[i]={from:this.state[i],to:e}),this.state[i]=e})),t&&Pb(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function qb(e,t){return Object.assign(e,$b),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&Pb(e)&&e.on("statechanged",e.handleStateChanged),e}const Hb=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toLowerCase()))},Vb=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toUpperCase()))},zb=function(e,t){return Vb(e)===Vb(t)};var Wb=Object.freeze({__proto__:null,toLowerCase:Hb,toTitleCase:Vb,titleCaseEquals:zb});class Gb{constructor(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Y_({},this.options_),t=this.options_=Y_(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_${pb()}`}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&&(jb(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),qb(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()}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_=Y_(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,i){return Av(e,t,i)}localize(e,t,i=e){const n=this.player_.language&&this.player_.language(),s=this.player_.languages&&this.player_.languages(),r=s&&s[n],o=n&&n.split("-")[0],a=s&&s[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 n=t[i-1];let s=n;return void 0===n&&(s=e),s}))),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",n=Av("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),s=Lp.createElementNS(i,"svg");s.setAttributeNS(null,"viewBox","0 0 512 512");const r=Lp.createElementNS(i,"use");return s.appendChild(r),r.setAttributeNS(null,"href",`#vjs-icon-${e}`),n.appendChild(s),this.iconIsSet_?t.replaceChild(n,t.querySelector(".vjs-icon-placeholder")):t.appendChild(n),this.iconIsSet_=!0,n}addChild(e,t={},i=this.children_.length){let n,s;if("string"==typeof e){s=Vb(e);const i=t.componentClass||s;t.name=s;const r=Gb.getComponent(i);if(!r)throw new Error(`Component ${i} does not exist`);if("function"!=typeof r)return null;n=new r(this.player_||this,t)}else n=e;if(n.parentComponent_&&n.parentComponent_.removeChild(n),this.children_.splice(i,0,n),n.parentComponent_=this,"function"==typeof n.id&&(this.childIndex_[n.id()]=n),s=s||n.name&&Vb(n.name()),s&&(this.childNameIndex_[s]=n,this.childNameIndex_[Hb(s)]=n),"function"==typeof n.el&&n.el()){let e=null;this.children_[i+1]&&(this.children_[i+1].el_?e=this.children_[i+1].el_:kv(this.children_[i+1])&&(e=this.children_[i+1])),this.contentEl().insertBefore(n.el(),e)}return n}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_[Vb(e.name())]=null,this.childNameIndex_[Hb(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 n=e.opts;if(void 0!==t[i]&&(n=t[i]),!1===n)return;!0===n&&(n={}),n.playerOptions=this.options_.playerOptions;const s=this.addChild(i,n);s&&(this[i]=s)};let n;const s=Gb.getComponent("Tech");n=Array.isArray(e)?e:Object.keys(e),n.concat(Object.keys(this.options_).filter((function(e){return!n.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((t=>{let i,n;return"string"==typeof t?(i=t,n=e[i]||this.options_[i]||{}):(i=t.name,n=t),{name:i,opts:n}})).filter((e=>{const t=Gb.getComponent(e.opts.componentClass||Vb(e.name));return t&&!s.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 Jv(e,t||this.contentEl())}$$(e,t){return Zv(e,t||this.contentEl())}hasClass(e){return Pv(this.el_,e)}addClass(...e){Dv(this.el_,...e)}removeClass(...e){Mv(this.el_,...e)}toggleClass(e,t){Nv(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 Bv(this.el_,e)}setAttribute(e,t){Uv(this.el_,e,t)}removeAttribute(e){jv(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 n=this.el_.style[e],s=n.indexOf("px");return-1!==s?parseInt(n.slice(0,s),10):parseInt(this.el_["offset"+Vb(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=eb(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const i=`offset${Vb(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(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=tp.performance.now(),i=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)i=!1;else if(t){const n=e.touches[0].pageX-t.pageX,s=e.touches[0].pageY-t.pageY;Math.sqrt(n*n+s*s)>10&&(i=!1)}}));const n=function(){i=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",(function(n){if(t=null,!0===i){tp.performance.now()-e<200&&(n.preventDefault(),this.trigger("tap"))}}))}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=Cb(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=Cb(this,e),this.clearTimersOnDispose_(),i=tp.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),tp.clearTimeout(e)),e}setInterval(e,t){e=Cb(this,e),this.clearTimersOnDispose_();const i=tp.setInterval(e,t);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),tp.clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=Cb(this,e),t=tp.requestAnimationFrame((()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()})),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=Cb(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),tp.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=tp.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>(Lp.documentElement.clientWidth||tp.innerWidth))return!1;if(t.y<0)return!1;if(t.y>(Lp.documentElement.clientHeight||tp.innerHeight))return!1;let i=Lp.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"!==tp.getComputedStyle(i).height&&"0px"!==tp.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=Gb.getComponent("Tech"),n=i&&i.isTech(t),s=Gb===t||Gb.prototype.isPrototypeOf(t.prototype);if(n||!s){let t;throw t=n?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=Vb(e),Gb.components_||(Gb.components_={});const r=Gb.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 Gb.components_[e]=t,Gb.components_[Hb(e)]=t,t}static getComponent(e){if(e&&Gb.components_)return Gb.components_[e]}}function Xb(e,t,i,n){return function(e,t,i){if("number"!=typeof t||t<0||t>i)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${i}).`)}(e,n,i.length-1),i[n][t]}function Kb(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:Xb.bind(null,"start",0,e),end:Xb.bind(null,"end",1,e)},tp.Symbol&&tp.Symbol.iterator&&(t[tp.Symbol.iterator]=()=>(e||[]).values()),t}function Yb(e,t){return Array.isArray(e)?Kb(e):void 0===e||void 0===t?Kb():Kb([[e,t]])}Gb.registerComponent("Component",Gb);const Qb=function(e,t){e=e<0?0:e;let i=Math.floor(e%60),n=Math.floor(e/60%60),s=Math.floor(e/3600);const r=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(s=n=i="-"),s=s>0||o>0?s+":":"",n=((s||r>=10)&&n<10?"0"+n:n)+":",i=i<10?"0"+i:i,s+n+i};let Jb=Qb;function Zb(e){Jb=e}function eT(){Jb=Qb}function tT(e,t=e){return Jb(e,t)}var iT=Object.freeze({__proto__:null,createTimeRanges:Yb,createTimeRange:Yb,setFormatTime:Zb,resetFormatTime:eT,formatTime:tT});function nT(e,t){let i,n,s=0;if(!t)return 0;e&&e.length||(e=Yb(0,0));for(let r=0;r<e.length;r++)i=e.start(r),n=e.end(r),n>t&&(n=t),s+=n-i;return s/t}function sT(e){if(e instanceof sT)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:X_(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=sT.defaultMessages[this.code]||"")}function rT(e){return null!=e&&"function"==typeof e.then}function oT(e){rT(e)&&e.then(null,(e=>{}))}sT.prototype.code=0,sT.prototype.message="",sT.prototype.status=null,sT.prototype.metadata=null,sT.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],sT.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."},sT.MEDIA_ERR_CUSTOM=0,sT.prototype.MEDIA_ERR_CUSTOM=0,sT.MEDIA_ERR_ABORTED=1,sT.prototype.MEDIA_ERR_ABORTED=1,sT.MEDIA_ERR_NETWORK=2,sT.prototype.MEDIA_ERR_NETWORK=2,sT.MEDIA_ERR_DECODE=3,sT.prototype.MEDIA_ERR_DECODE=3,sT.MEDIA_ERR_SRC_NOT_SUPPORTED=4,sT.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,sT.MEDIA_ERR_ENCRYPTED=5,sT.prototype.MEDIA_ERR_ENCRYPTED=5;const aT=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(((t,i,n)=>(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 lT=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=aT(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(aT))},cT=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 uT="vjs-modal-dialog";class hT extends Gb{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_=Av("div",{className:`${uT}-content`},{role:"document"}),this.descEl_=Av("p",{className:`${uT}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Lv(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`${uT} 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,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),Yv(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);const s=this.getChild("closeButton");s&&i.appendChild(s.el_),this.trigger("aftermodalfill")}empty(){this.trigger("beforemodalempty"),Gv(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){const e=Lp.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 n;for(let e=0;e<t.length;e++)if(i===t[e]){n=e;break}Lp.activeElement===this.el_&&(n=0),e.shiftKey&&0===n?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||n!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(e=>(e instanceof tp.HTMLAnchorElement||e instanceof tp.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof tp.HTMLInputElement||e instanceof tp.HTMLSelectElement||e instanceof tp.HTMLTextAreaElement||e instanceof tp.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof tp.HTMLIFrameElement||e instanceof tp.HTMLObjectElement||e instanceof tp.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")))}}hT.prototype.options_={pauseOnOpen:!0,temporary:!0},Gb.registerComponent("ModalDialog",hT);class dT extends Lb{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})},Pb(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let i=0,n=this.length;i<n;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,n=this.length;i<n;i++){const n=this[i];if(n.id===e){t=n;break}}return t}}dT.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const Gx in dT.prototype.allowedEvents_)dT.prototype["on"+Gx]=null;const pT=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 fT=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 mT extends dT{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 gT{constructor(e){gT.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let i=0;const n=e.length;this.cues_=e,this.length_=e.length;const s=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<n)for(i=t;i<n;i++)s.call(this,i)}getCueById(e){let t=null;for(let i=0,n=this.length;i<n;i++){const n=this[i];if(n.id===e){t=n;break}}return t}}const yT={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},_T={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},vT={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},bT={disabled:"disabled",hidden:"hidden",showing:"showing"};class TT extends Lb{constructor(e={}){super();const t={id:e.id||"vjs_track_"+pb(),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 wT=function(e){return new URL(e,Lp.baseURI)},ST=function(e){return new URL(e,Lp.baseURI).href},ET=function(e){if("string"==typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},CT=function(e,t=tp.location){return wT(e).origin!==t.origin};var kT=Object.freeze({__proto__:null,parseUrl:wT,getAbsoluteURL:ST,getFileExtension:ET,isCrossOrigin:CT});const xT=function(e,t){const i=new tp.WebVTT.Parser(tp,tp.vttjs,tp.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),n.length>0&&(tp.console&&tp.console.groupCollapsed&&tp.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),n.forEach((e=>q_.error(e))),tp.console&&tp.console.groupEnd&&tp.console.groupEnd()),i.flush()},IT=function(e,t){const i={uri:e},n=CT(e);n&&(i.cors=n);const s="use-credentials"===t.tech_.crossOrigin();s&&(i.withCredentials=s),qp(i,Cb(this,(function(e,i,n){if(e)return q_.error(e,i);t.loaded_=!0,"function"!=typeof tp.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(e=>{if("vttjserror"!==e.type)return xT(n,t);q_.error(`vttjs failed to load, stopping trying to process ${t.src}`)})):xT(n,t)})))};class AT extends TT{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=Y_(e,{kind:vT[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=bT[t.mode]||"disabled";const n=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 s=new gT(this.cues_),r=new gT(this.activeCues_);let o=!1;this.timeupdateHandler=Cb(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:()=>n,set(){}},mode:{get:()=>i,set(e){bT[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||IT(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?s: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,n=this.cues.length;i<n;i++){const n=this.cues[i];n.startTime<=e&&n.endTime>=e&&t.push(n)}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)&&IT(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 tp.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}}}}AT.prototype.allowedEvents_={cuechange:"cuechange"};class LT extends TT{constructor(e={}){const t=Y_(e,{kind:_T[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 OT extends TT{constructor(e={}){const t=Y_(e,{kind:yT[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 PT extends Lb{constructor(e={}){let t;super();const i=new AT(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=PT.NONE,i.addEventListener("loadeddata",(()=>{t=PT.LOADED,this.trigger({type:"load",target:this})}))}}PT.prototype.allowedEvents_={load:"load"},PT.NONE=0,PT.LOADING=1,PT.LOADED=2,PT.ERROR=3;const DT={audio:{ListClass:class extends dT{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){pT(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&pT(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,pT(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:LT,capitalName:"Audio"},video:{ListClass:class extends dT{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){fT(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&&fT(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,fT(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:OT,capitalName:"Video"},text:{ListClass:mT,TrackClass:AT,capitalName:"Text"}};Object.keys(DT).forEach((function(e){DT[e].getterName=`${e}Tracks`,DT[e].privateName=`${e}Tracks_`}));const MT={remoteText:{ListClass:mT,TrackClass:AT,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,n=this.trackElements_.length;i<n;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:PT,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},NT=Object.assign({},DT,MT);MT.names=Object.keys(MT),DT.names=Object.keys(DT),NT.names=[].concat(MT.names).concat(DT.names);class RT extends Gb{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})),NT.names.forEach((t=>{const i=NT[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 NT.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(Cb(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 Yb(0,0)}bufferedPercent(){return nT(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(DT.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 n=t[i];"text"===e&&this.removeRemoteTextTrack(n),t.removeTrack(n)}}))}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 sT(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?Yb(0,0):Yb()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){DT.names.forEach((e=>{const t=DT[e],i=()=>{this.trigger(`${e}trackchange`)},n=this[t.getterName]();n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),this.on("dispose",(()=>{n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i)}))}))}addWebVttScript_(){if(!tp.WebVTT)if(Lp.body.contains(this.el())){if(!this.options_["vtt.js"]&&K_(Sf)&&Object.keys(Sf).length>0)return void this.trigger("vttjsloaded");const e=Lp.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})),tp.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),n=t=>e.removeTrack(t.track);t.on("addtrack",i),t.on("removetrack",n),this.addWebVttScript_();const s=()=>this.trigger("texttrackchange"),r=()=>{s();for(let t=0;t<e.length;t++){const i=e[t];i.removeEventListener("cuechange",s),"showing"===i.mode&&i.addEventListener("cuechange",s)}};r(),e.addEventListener("change",r),e.addEventListener("addtrack",r),e.addEventListener("removetrack",r),this.on("dispose",(function(){t.off("addtrack",i),t.off("removetrack",n),e.removeEventListener("change",r),e.removeEventListener("addtrack",r),e.removeEventListener("removetrack",r);for(let t=0;t<e.length;t++){e[t].removeEventListener("cuechange",s)}}))}addTextTrack(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,n,s={}){const r=e.textTracks();s.kind=t,i&&(s.label=i),n&&(s.language=n),s.tech=e;const o=new NT.text.TrackClass(s);return r.addTrack(o),o}(this,e,t,i)}createRemoteTextTrack(e){const t=Y_(e,{tech:this});return new MT.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=pb();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 RT.canPlayType(e.type)}static isTech(e){return e.prototype instanceof RT||e instanceof RT||e===RT}static registerTech(e,t){if(RT.techs_||(RT.techs_={}),!RT.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!RT.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!RT.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Vb(e),RT.techs_[e]=t,RT.techs_[Hb(e)]=t,"Tech"!==e&&RT.defaultTechOrder_.push(e),t}static getTech(e){if(e)return RT.techs_&&RT.techs_[e]?RT.techs_[e]:(e=Vb(e),tp&&tp.videojs&&tp.videojs[e]?(q_.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),tp.videojs[e]):void 0)}}NT.names.forEach((function(e){const t=NT[e];RT.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),RT.prototype.featuresVolumeControl=!0,RT.prototype.featuresMuteControl=!0,RT.prototype.featuresFullscreenResize=!1,RT.prototype.featuresPlaybackRate=!1,RT.prototype.featuresProgressEvents=!1,RT.prototype.featuresSourceset=!1,RT.prototype.featuresTimeupdateEvents=!1,RT.prototype.featuresNativeTextTracks=!1,RT.prototype.featuresVideoFrameCallback=!1,RT.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){let n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),void 0===i&&(i=n.length),n.splice(i,0,t)},e.canPlayType=function(t){const i=e.sourceHandlers||[];let n;for(let e=0;e<i.length;e++)if(n=i[e].canPlayType(t),n)return n;return""},e.selectSourceHandler=function(t,i){const n=e.sourceHandlers||[];let s;for(let e=0;e<n.length;e++)if(s=n[e].canHandleSource(t,i),s)return n[e];return null},e.canPlaySource=function(t,i){const n=e.selectSourceHandler(t,i);return n?n.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:q_.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)}},Gb.registerComponent("Tech",RT),RT.registerTech("Tech",RT),RT.defaultTechOrder_=[];const FT={},BT={},UT={};function jT(e,t,i){e.setTimeout((()=>WT(t,FT[t.type],i,e)),1)}function $T(e,t,i,n=null){const s="call"+Vb(i),r=e.reduce(zT(s),n),o=r===UT,a=o?null:t[i](r);return function(e,t,i,n){for(let s=e.length-1;s>=0;s--){const r=e[s];r[t]&&r[t](n,i)}}(e,i,a,o),a}const qT={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},HT={setCurrentTime:1,setMuted:1,setVolume:1},VT={play:1,pause:1};function zT(e){return(t,i)=>t===UT?UT:i[e]?i[e](t):t}function WT(e={},t=[],i,n,s=[],r=!1){const[o,...a]=t;if("string"==typeof o)WT(e,FT[o],i,n,s,r);else if(o){const t=function(e,t){const i=BT[e.id()];let n=null;if(null==i)return n=t(e),BT[e.id()]=[[t,n]],n;for(let e=0;e<i.length;e++){const[s,r]=i[e];s===t&&(n=r)}return null===n&&(n=t(e),i.push([t,n])),n}(n,o);if(!t.setSource)return s.push(t),WT(e,a,i,n,s,r);t.setSource(Object.assign({},e),(function(o,l){if(o)return WT(e,a,i,n,s,r);s.push(t),WT(l,e.type===l.type?a:FT[l.type],i,n,s,r)}))}else a.length?WT(e,a,i,n,s,r):r?i(e,s):WT(e,FT["*"],i,n,s,!0)}const GT={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"},XT=function(e=""){const t=ET(e);return GT[t.toLowerCase()]||""},KT=function(e){if(Array.isArray(e)){let t=[];e.forEach((function(e){e=KT(e),Array.isArray(e)?t=t.concat(e):X_(e)&&t.push(e)})),e=t}else e="string"==typeof e&&e.trim()?[QT({src:e})]:X_(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[QT(e)]:[];return e};function QT(e){if(!e.type){const t=XT(e.src);t&&(e.type=t)}return e}const JT=gv?10009:yv?461:8,ZT={codes:{play:415,pause:19,ff:417,rw:412,back:JT},names:{415:"play",19:"pause",417:"ff",412:"rw",[JT]:"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 ew extends Lb{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,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",(()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())})))}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(ZT.isEventKey(t,"play")||ZT.isEventKey(t,"pause")||ZT.isEventKey(t,"ff")||ZT.isEventKey(t,"rw")){t.preventDefault();const e=ZT.getEventName(t);this.performMediaAction_(e)}else ZT.isEventKey(t,"Back")&&e.target&&"function"==typeof e.target.closeable&&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 n=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||(n&&"CloseButton"===n.name()?this.refocusComponent():(this.pause(),n&&n.el()&&(this.lastFocusedComponent_=n)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const e=this.player_,t=[];function i(e){for(const n of e)n.hasOwnProperty("el_")&&n.getIsFocusable()&&n.getIsAvailableToBeFocused(n.el())&&t.push(n),n.hasOwnProperty("children_")&&n.children_.length>0&&i(n.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)}if("ErrorDisplay"===e.name_&&e.opened_){const i=e.el_.querySelector(".vjs-errors-ok-button-container");if(i){i.querySelectorAll("button").forEach(((e,i)=>{t.push({name:()=>"ModalButton"+(i+1),el:()=>e,getPositions:()=>{const t=e.getBoundingClientRect();return{boundingClientRect:{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},center:{x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2}}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:e=>!0,focus:()=>e.focus()})}))}}})),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){return e.el()?function t(i){if(e.getIsFocusable(i)&&e.getIsAvailableToBeFocused(i))return i;for(let e=0;e<i.children.length;e++){const n=t(i.children[e]);if(n)return n}return null}(e.el()):null}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(),n=this.focusableComponents.filter((n=>n!==t&&this.isInDirection_(i.boundingClientRect,n.getPositions().boundingClientRect,e))),s=this.findBestCandidate_(i.center,n,e);s?this.focus(s):this.trigger({type:"endOfFocusableComponents",direction:e,focusedComponent:t})}findBestCandidate_(e,t,i){let n=1/0,s=null;for(const r of t){const t=r.getPositions().center,o=this.calculateDistance_(e,t,i);o<n&&(n=o,s=r)}return s}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){"object"==typeof e&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}calculateDistance_(e,t,i){const n=Math.abs(e.x-t.x),s=Math.abs(e.y-t.y);let r;switch(i){case"right":case"left":r=n+100*s;break;case"up":r=2*s+.5*n;break;case"down":r=5*s+n;break;default:r=n+s}return r}searchForTrackSelect_(){const e=this;for(const t of e.updateFocusableComponents())if("TextTrackSelect"===t.constructor.name){e.focus(t);break}}}Gb.registerComponent("MediaLoader",class extends Gb{constructor(e,t,i){if(super(e,Y_({createEl:!1},t),i),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let i=0,n=t.playerOptions.techOrder;i<n.length;i++){const t=Vb(n[i]);let s=RT.getTech(t);if(t||(s=Gb.getComponent(t)),s&&s.isSupported()){e.loadTech_(t);break}}}});class tw extends Gb{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&&q_.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 n=Av(e,t,i);return this.player_.options_.experimentalSvgIcons||n.appendChild(Av("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Av("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,Lv(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)}}Gb.registerComponent("ClickableComponent",tw);class iw extends tw{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 Av("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(Av("picture",{className:"vjs-poster",tabIndex:-1},{},Av("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()?oT(this.player_.play()):this.player_.pause())}}iw.prototype.crossorigin=iw.prototype.crossOrigin,Gb.registerComponent("PosterImage",iw);const nw="#222",sw="#ccc",rw={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 ow(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 aw(e,t,i){try{e.style[t]=i}catch(e){return}}function lw(e){return e?`${e}px`:""}Gb.registerComponent("TextTrackDisplay",class extends Gb{constructor(e,t,i){super(e,t,i);const n=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(Cb(this,(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",n),e.on("playerresize",n);const t=tp.screen.orientation||tp,i=tp.screen.orientation?"change":"orientationchange";t.addEventListener(i,n),e.on("dispose",(()=>t.removeEventListener(i,n)));const s=this.options_.playerOptions.tracks||[];for(let e=0;e<s.length;e++)this.player_.addRemoteTextTrack(s[e],!0);this.preselectTrack()})))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let n,s,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,n=null,s=null):a.default&&("descriptions"!==a.kind||n?a.kind in e&&!s&&(s=a):n=a)}r?r.mode="showing":s?s.mode="showing":n&&(n.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 tp.WebVTT&&tp.WebVTT.processCues(tp,[],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 n=e[i];"showing"===n.mode&&t.push(n)}return void this.updateForTrack(t)}let i=null,n=null,s=e.length;for(;s--;){const t=e[s];"showing"===t.mode&&("descriptions"===t.kind?i=t:n=t)}if(n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i)),!tp.CSS.supports("inset","10px")){const e=this.el_,t=e.querySelectorAll(".vjs-text-track-cue"),i=this.player_.controlBar.el_.getBoundingClientRect().height,n=this.player_.el_.getBoundingClientRect().height;e.style="",aw(e,"position","relative"),aw(e,"height",n-i+"px"),aw(e,"top","unset"),aw(e,"bottom",_v?n+"px":"0px"),t.length>0&&t.forEach((e=>{if(e.style.inset){const t=e.style.inset.split(" ");3===t.length&&Object.assign(e.style,{top:t[0],right:t[1],bottom:t[2],left:"unset"})}}))}}updateDisplayOverlay(){if(!this.player_.videoHeight()||!tp.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,n=this.player_.videoWidth()/this.player_.videoHeight();let s=0,r=0;Math.abs(i-n)>.1&&(i>n?s=Math.round((e-t*n)/2):r=Math.round((t-e/n)/2)),aw(this.el_,"insetInline",lw(s)),aw(this.el_,"insetBlock",lw(r))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),i=e.activeCues;let n=i.length;for(;n--;){const e=i[n];if(!e)continue;const s=e.displayState;if(t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&aw(s.firstChild,"color",ow(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&aw(s.firstChild,"backgroundColor",ow(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?aw(s,"backgroundColor",ow(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow=`2px 2px 3px ${nw}, 2px 2px 4px ${nw}, 2px 2px 5px ${nw}`:"raised"===t.edgeStyle?s.firstChild.style.textShadow=`1px 1px ${nw}, 2px 2px ${nw}, 3px 3px ${nw}`:"depressed"===t.edgeStyle?s.firstChild.style.textShadow=`1px 1px ${sw}, 0 1px ${sw}, -1px -1px ${nw}, 0 -1px ${nw}`:"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow=`0 0 4px ${nw}, 0 0 4px ${nw}, 0 0 4px ${nw}, 0 0 4px ${nw}`)),t.fontPercent&&1!==t.fontPercent){const e=tp.parseFloat(s.style.fontSize);s.style.fontSize=e*t.fontPercent+"px",s.style.height="auto",s.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=rw[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof tp.WebVTT||e.every((e=>!e.activeCues)))return;const t=[];for(let i=0;i<e.length;++i){const n=e[i];for(let e=0;e<n.activeCues.length;++e)t.push(n.activeCues[e])}tp.WebVTT.processCues(tp,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 n=i.activeCues[e].displayState;Dv(n,"vjs-text-track-cue","vjs-text-track-cue-"+(i.language?i.language:t)),i.language&&Uv(n,"lang",i.language)}this.player_.textTrackSettings&&this.updateDisplayState(i)}}});Gb.registerComponent("LoadingSpinner",class extends Gb{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=Av("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),n=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return n.appendChild(i),n}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class cw extends tw{createEl(e,t={},i={}){const n=Av("button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i));return this.player_.options_.experimentalSvgIcons||n.appendChild(Av("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}addChild(e,t={}){const i=this.constructor.name;return q_.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),Gb.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()}}Gb.registerComponent("Button",cw);class uw extends cw{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 oT(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const i=this.player_.getChild("controlBar"),n=i&&i.getChild("playToggle");if(!n)return void this.player_.tech(!0).focus();const s=()=>n.focus();rT(t)?t.then(s,(()=>{})):this.setTimeout(s,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}uw.prototype.controlText_="Play Video",Gb.registerComponent("BigPlayButton",uw);Gb.registerComponent("CloseButton",class extends cw{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 hw extends cw{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()?oT(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)))}}hw.prototype.controlText_="Play",Gb.registerComponent("PlayToggle",hw);class dw extends Gb{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=Av("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}Â `},{role:"presentation"});return t.appendChild(i),this.contentEl_=Av("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=tT(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,q_.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_=Lp.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))})))}updateContent(e){}}dw.prototype.labelText_="Time",dw.prototype.controlText_="Time",Gb.registerComponent("TimeDisplay",dw);class pw extends dw{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)}}pw.prototype.labelText_="Current Time",pw.prototype.controlText_="Current Time",Gb.registerComponent("CurrentTimeDisplay",pw);class fw extends dw{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)}}fw.prototype.labelText_="Duration",fw.prototype.controlText_="Duration",Gb.registerComponent("DurationDisplay",fw);Gb.registerComponent("TimeDivider",class extends Gb{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 mw extends dw{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(Av("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)}}mw.prototype.labelText_="Remaining Time",mw.prototype.controlText_="Remaining Time",Gb.registerComponent("RemainingTimeDisplay",mw);Gb.registerComponent("LiveDisplay",class extends Gb{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_=Av("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Av("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}Â `})),this.contentEl_.appendChild(Lp.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 gw extends cw{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_=Av("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 yw(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}gw.prototype.controlText_="Seek to live, currently playing live",Gb.registerComponent("SeekToLive",gw);var _w=Object.freeze({__proto__:null,clamp:yw});class vw extends Gb{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||av||e.preventDefault(),$v(),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;qv(),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(yw(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=zv(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){const t=this.options_.playerOptions.spatialNavigation,i=t&&t.enabled,n=t&&t.horizontalSeek;i?n&&"ArrowLeft"===e.key||!n&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):n&&"ArrowRight"===e.key||!n&&"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")}}Gb.registerComponent("Slider",vw);const bw=(e,t)=>yw(e/t*100,0,100).toFixed(2)+"%";Gb.registerComponent("LoadProgressBar",class extends Gb{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=Av("span",{className:"vjs-control-text"}),i=Av("span",{textContent:this.localize("Loaded")}),n=Lp.createTextNode(": ");return this.percentageEl_=Av("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(n),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(),n=this.player_.bufferedEnd(),s=this.partEls_,r=bw(n,i);this.percent_!==r&&(this.el_.style.width=r,Lv(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=s[e];o||(o=this.el_.appendChild(Av()),s[e]=o),o.dataset.start===i&&o.dataset.end===r||(o.dataset.start=i,o.dataset.end=r,o.style.left=bw(i,n),o.style.width=bw(r-i,n))}for(let e=s.length;e>t.length;e--)this.el_.removeChild(s[e-1]);s.length=t.length}))}});Gb.registerComponent("TimeTooltip",class extends Gb{constructor(e,t){super(e,t),this.update=kb(Cb(this,this.update),Eb)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,i){const n=Vv(this.el_),s=Hv(this.player_.el()),r=e.width*t;if(!s||!n)return;let o=e.left-s.left+r,a=e.width-r+(s.right-e.right);a||(a=e.width-r,o=r);let l=n.width/2;o<l?l+=l-o:a<l&&(l=a),l<0?l=0:l>n.width&&(l=n.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(i)}write(e){Lv(this.el_,e)}updateTime(e,t,i,n){this.requestNamedAnimationFrame("TimeTooltip#updateTime",(()=>{let s;const r=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),i=e-t*e;s=(i<1?"":"-")+tT(i,e)}else s=tT(i,r);this.update(e,t,s),n&&n()}))}});class Tw extends Gb{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=kb(Cb(this,this.update),Eb)}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 n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}}Tw.prototype.options_={children:[]},Tv||nv||Tw.prototype.options_.children.push("timeTooltip"),Gb.registerComponent("PlayProgressBar",Tw);class ww extends Gb{constructor(e,t){super(e,t),this.update=kb(Cb(this,this.update),Eb)}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"}))}}ww.prototype.options_={children:["timeTooltip"]},Gb.registerComponent("MouseTimeDisplay",ww);class Sw extends vw{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=Cb(this,this.update),this.update=kb(this.update_,Eb),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 Lp&&"visibilityState"in Lp&&this.on(Lp,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===Lp.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,Eb))}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"===Lp.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 n=this.player_.duration();i&&i.isLive()&&(n=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===e&&this.duration_===n||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[tT(e,n),tT(n,n)],"{1} of {2}")),this.currentTime_=e,this.duration_=n),this.bar&&this.bar.update(Hv(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){Qv(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!Qv(e)||isNaN(this.player_.duration()))return;let i;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const n=this.calculateDistance(e),s=this.player_.liveTracker;if(s&&s.isLive()){if(n>=.99)return void s.seekToLiveEdge();const e=s.seekableStart(),t=s.liveCurrentTime();if(i=e+n*s.liveWindow(),i>=t&&(i=t),i<=e&&(i=e+.1),i===1/0)return}else i=n*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?oT(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 Lp&&"visibilityState"in Lp&&this.off(Lp,"visibilitychange",this.toggleVisibility_),super.dispose()}}Sw.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Tv||nv||Sw.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Gb.registerComponent("SeekBar",Sw);class Ew extends Gb{constructor(e,t){super(e,t),this.handleMouseMove=kb(Cb(this,this.handleMouseMove),Eb),this.throttledHandleMouseSeek=kb(Cb(this,this.handleMouseSeek),Eb),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"),n=t.getChild("mouseTimeDisplay");if(!i&&!n)return;const s=t.el(),r=Vv(s);let o=zv(s,e).x;o=yw(o,0,1),n&&n.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&&oT(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()}}Ew.prototype.options_={children:["seekBar"]},Gb.registerComponent("ProgressControl",Ew);class Cw extends cw{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(){Lp.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in tp?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 Lp.exitPictureInPicture&&super.show()}}Cw.prototype.controlText_="Picture-in-Picture",Gb.registerComponent("PictureInPictureToggle",Cw);class kw extends cw{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",(e=>this.handleFullscreenChange(e))),!1===Lp[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()}}kw.prototype.controlText_="Fullscreen",Gb.registerComponent("FullscreenToggle",kw);Gb.registerComponent("VolumeLevel",class extends Gb{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}});Gb.registerComponent("VolumeLevelTooltip",class extends Gb{constructor(e,t){super(e,t),this.update=kb(Cb(this,this.update),Eb)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,i,n){if(!i){const i=Hv(this.el_),n=Hv(this.player_.el()),s=e.width*t;if(!n||!i)return;const r=e.left-n.left+s,o=e.width-s+(n.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(`${n}%`)}write(e){Lv(this.el_,e)}updateVolume(e,t,i,n,s){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(()=>{this.update(e,t,i,n.toFixed(0)),s&&s()}))}});class xw extends Gb{constructor(e,t){super(e,t),this.update=kb(Cb(this,this.update),Eb)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,i){const n=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,n,(()=>{i?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"}))}}xw.prototype.options_={children:["volumeLevelTooltip"]},Gb.registerComponent("MouseVolumeLevelDisplay",xw);class Iw extends vw{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){Qv(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const i=this.el(),n=Hv(i),s=this.vertical();let r=zv(i,e);r=s?r.y:r.x,r=yw(r,0,1),t.update(n,r,s)}Qv(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)}))}}Iw.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Tv||nv||Iw.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Iw.prototype.playerEvent="volumechange",Gb.registerComponent("
vendor: 4,788 bytes, line 31
31VolumeBar",Iw);class Aw extends Gb{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||K_(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=kb(Cb(this,this.handleMouseMove),Eb),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)}}Aw.prototype.options_={children:["volumeBar"]},Gb.registerComponent("VolumeControl",Aw);class Lw extends cw{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"),Tv&&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),Mv(this.el_,[0,1,2,3].reduce(((e,t)=>e+`${t?" ":""}vjs-vol-${t}`),"")),Dv(this.el_,`vjs-vol-${t}`)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}Lw.prototype.controlText_="Mute",Gb.registerComponent("MuteToggle",Lw);class Ow extends Gb{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||K_(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"),_b(Lp,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),vb(Lp,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){"Escape"===e.key&&this.handleMouseOut()}}Ow.prototype.options_={children:["muteToggle","volumeControl"]}
vendor: 4,945 bytes, line 31
31,Gb.registerComponent("VolumePanel",Ow);class Pw extends cw{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,n=i&&i.isLive()?i.seekableEnd():this.player_.duration();let s;s=t+this.skipTime<=n?t+this.skipTime:n,this.player_.currentTime(s)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}Pw.prototype.controlText_="Skip Forward",Gb.registerComponent("SkipForward",Pw);class Dw extends cw{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,n=i&&i.isLive()&&i.seekableStart();let s;s=n&&t-this.skipTime<=n?n:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(s)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}Dw.prototype.controlText_="Skip Backward",Gb.registerComponent("SkipBackward",Dw);class Mw extends Gb{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 Gb&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Gb&&(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_=Av(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_),_b(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||Lp.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())}}Gb.registerComponent("Menu",Mw);class Nw extends Gb{constructor(e,t={}){super(e,t),this.menuButton_=new cw(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=cw.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const n=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",n),this.on(this.menuButton_,"click",n),this.on(this.menuButton_,"keydown",(e=>this.handleKeyDown(e))),this.on(this.menuButton_,"mouseenter",(()=>{this.addClass("vjs-hover"),this.menu.show(),_b(Lp,"keyup",this.handleMenuKeyUp_)}
vendor: 4,175 bytes, line 31
31)),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 Mw(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=Av("li",{className:"vjs-menu-title",textContent:Vb(this.options_.title),tabIndex:-1}),i=new Gb(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} ${cw.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"),vb(Lp,"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"),Tv&&xv())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()}}Gb.registerComponent("MenuButton",Nw);class Rw extends Nw{constructor(e,t){const i=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!i)return;const n=Cb(this,this.update);i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),i.addEventListener("labelchange",n),this.player_.on("ready",n),this.player_.on("dispose",(function(){i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n),i.removeEventListener("labelchange",n)}))}}Gb.registerComponent("TrackButton",Rw);class Fw extends tw{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 n=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),i),s=Av("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?n.appendChild(s):n.replaceChild(s,n.querySelector(".vjs-icon-placeholder")),n}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.ke
vendor: 48,341 bytes, line 31
31y)||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))}}Gb.registerComponent("MenuItem",Fw);class Bw extends Fw{constructor(e,t){const i=t.track,n=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 s=(...e)=>{this.handleTracksChange.apply(this,e)},r=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],s),n.addEventListener("change",s),n.addEventListener("selectedlanguagechange",r),this.on("dispose",(function(){e.off(["loadstart","texttrackchange"],s),n.removeEventListener("change",s),n.removeEventListener("selectedlanguagechange",r)})),void 0===n.onchange){let e;this.on(["tap","click"],(function(){if("object"!=typeof tp.Event)try{e=new tp.Event("change")}catch(e){}e||(e=Lp.createEvent("Event"),e.initEvent("change",!0,!0)),n.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 n=i[e];-1!==this.kinds.indexOf(n.kind)&&(n===t?"showing"!==n.mode&&(n.mode="showing"):"disabled"!==n.mode&&(n.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()}}Gb.registerComponent("TextTrackMenuItem",Bw);class Uw extends Bw{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,n=t.length;e<n;e++){const n=t[e];if(this.options_.kinds.indexOf(n.kind)>-1&&"showing"===n.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let i=!0;for(let e=0,n=t.length;e<n;e++){const n=t[e];if(["captions","descriptions","subtitles"].indexOf(n.kind)>-1&&"showing"===n.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()}}Gb.registerComponent("OffTextTrackMenuItem",Uw);class jw extends Rw{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=Bw){let i;this.label_&&(i=`${this.label_} off`),e.push(new Uw(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let i=0;i<n.length;i++){const s=n[i];if(this.kinds_.indexOf(s.kind)>-1){const i=new t(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});i.addClass(`vjs-${s.kind}-menu-item`),e.push(i)}}return e}}Gb.registerComponent("TextTrackButton",jw);class $w extends Fw{constructor(e,t){const i=t.track,n=t.cue,s=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=n.text,t.selected=n.startTime<=s&&s<n.endTime,super(e,t),this.track=i,this.cue=n}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Gb.registerComponent("ChaptersTrackMenuItem",$w);class qw extends jw{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(Vb(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,n=t.length;i<n;i++){const n=t[i],s=new $w(this.player_,{track:this.track_,cue:n});e.push(s)}return e}}qw.prototype.kind_="chapters",qw.prototype.controlText_="Chapters",Gb.registerComponent("ChaptersButton",qw);class Hw extends jw{constructor(e,t,i){super(e,t,i),this.setIcon("audio-description");const n=e.textTracks(),s=Cb(this,this.handleTracksChange);n.addEventListener("change",s),this.on("dispose",(function(){n.removeEventListener("change",s)}))}handleTracksChange(e){const t=this.player().textTracks();let i=!1;for(let e=0,n=t.length;e<n;e++){const n=t[e];if(n.kind!==this.kind_&&"showing"===n.mode){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Hw.prototype.kind_="descriptions",Hw.prototype.controlText_="Descriptions",Gb.registerComponent("DescriptionsButton",Hw);class Vw extends jw{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()}`}}Vw.prototype.kind_="subtitles",Vw.prototype.controlText_="Subtitles",Gb.registerComponent("SubtitlesButton",Vw);class zw extends Bw{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()}}Gb.registerComponent("CaptionSettingsMenuItem",zw);class Ww extends jw{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 zw(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}Ww.prototype.kind_="captions",Ww.prototype.controlText_="Captions",Gb.registerComponent("CaptionsButton",Ww);class Gw extends Bw{createEl(e,t,i){const n=super.createEl(e,t,i),s=n.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",n):s.appendChild(Av("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(Av("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),n}}Gb.registerComponent("SubsCapsMenuItem",Gw);class Xw extends jw{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(Vb(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 zw(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,Gw),e}}Xw.prototype.kinds_=["captions","subtitles"],Xw.prototype.controlText_="Subtitles",Gb.registerComponent("SubsCapsButton",Xw);class Kw extends Fw{constructor(e,t){const i=t.track,n=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 s=(...e)=>{this.handleTracksChange.apply(this,e)};n.addEventListener("change",s),this.on("dispose",(()=>{n.removeEventListener("change",s)}))}createEl(e,t,i){const n=super.createEl(e,t,i),s=n.querySelector(".vjs-menu-item-text");return["main-desc","descriptions"].indexOf(this.options_.track.kind)>=0&&(s.appendChild(Av("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(Av("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),n}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)}}Gb.registerComponent("AudioTrackMenuItem",Kw);class Yw extends Rw{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 n=t[i];e.push(new Kw(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e}}Yw.prototype.controlText_="Audio Track",Gb.registerComponent("AudioTrackButton",Yw);class Qw extends Fw{constructor(e,t){const i=t.rate,n=parseFloat(i,10);t.label=i,t.selected=n===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=i,this.rate=n,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)}}Qw.prototype.contentElType="button",Gb.registerComponent("PlaybackRateMenuItem",Qw);class Jw extends Nw{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_=Av("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 Qw(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")}}Jw.prototype.controlText_="Playback Rate",Gb.registerComponent("PlaybackRateMenuButton",Jw);class Zw extends Gb{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},i={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,i)}}Gb.registerComponent("Spacer",Zw);Gb.registerComponent("CustomControlSpacer",class extends Zw{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"Â "})}});class eS extends Gb{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}eS.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},Gb.registerComponent("ControlBar",eS);class tS extends hT{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):""}}tS.prototype.options_=Object.assign({},hT.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Gb.registerComponent("ErrorDisplay",tS);class iS extends Gb{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 Av("select",{id:this.options_.id},{},this.options_.SelectOptions.map((e=>{const t=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${pb()}`)+"-"+e[1].replace(/\W+/g,""),i=Av("option",{id:t,value:this.localize(e[0]),textContent:e[1]});return i.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${t}`),i})))}}Gb.registerComponent("TextTrackSelect",iS);class nS extends Gb{constructor(e,t={}){super(e,t);const i=Av("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(i);const n=this.options_.selects;for(const t of n){const i=this.options_.selectConfigs[t],n=i.className,s=i.id.replace("%s",this.options_.id_);let r=null;const o=`vjs_select_${pb()}`;if("colors"===this.options_.type){r=Av("span",{className:n});const e=Av("label",{id:s,className:"vjs-label",textContent:i.label});e.setAttribute("for",o),r.appendChild(e)}const a=new iS(e,{SelectOptions:i.options,legendId:this.options_.legendId,id:o,labelId:s});this.addChild(a),"colors"===this.options_.type&&(r.appendChild(a.el()),this.el().appendChild(r))}}createEl(){return Av("fieldset",{className:this.options_.className})}}Gb.registerComponent("TextTrackFieldset",nS);class sS extends Gb{constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,n=new nS(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(n);const s=new nS(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(s);const r=new nS(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 Av("div",{className:"vjs-track-settings-colors"})}}Gb.registerComponent("TextTrackSettingsColors",sS);class rS extends Gb{constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,n=new nS(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(n);const s=new nS(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(s);const r=new nS(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 Av("div",{className:"vjs-track-settings-font"})}}Gb.registerComponent("TextTrackSettingsFont",rS);class oS extends Gb{constructor(e,t={}){super(e,t);const i=this.localize("restore all settings to the default values"),n=new cw(e,{controlText:i,className:"vjs-default-button"});n.el().classList.remove("vjs-control","vjs-button"),n.el().textContent=this.localize("Reset"),this.addChild(n);const s=new cw(e,{controlText:i,className:"vjs-done-button"});s.el().classList.remove("vjs-control","vjs-button"),s.el().textContent=this.localize("Done"),this.addChild(s)}createEl(){return Av("div",{className:"vjs-track-settings-controls"})}}Gb.registerComponent("TrackSettingsControls",oS);const aS="vjs-text-track-settings",lS=["#000","Black"],cS=["#00F","Blue"],uS=["#0FF","Cyan"],hS=["#0F0","Green"],dS=["#F0F","Magenta"],pS=["#F00","Red"],fS=["#FFF","White"],mS=["#FF0","Yellow"],gS=["1","Opaque"],yS=["0.5","Semi-Transparent"],_S=["0","Transparent"],vS={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[lS,fS,pS,hS,cS,mS,dS,uS],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[gS,yS,_S],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[fS,lS,pS,hS,cS,mS,dS,uS],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:[gS,yS],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:[_S,yS,gS],className:"vjs-window-opacity vjs-opacity"}};function bS(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}vS.windowColor.options=vS.backgroundColor.options;Gb.registerComponent("TextTrackSettings",class extends hT{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=Av("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 sS(e,{textTrackComponentid:this.id_,selectConfigs:vS,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);const i=new rS(e,{textTrackComponentid:this.id_,selectConfigs:vS,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(i);const n=new oS(e);this.addChild(n)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),["click","tap"],(()=>{this.saveSettings(),this.close()})),this.on(this.$(".vjs-default-button"),["click","tap"],(()=>{this.setDefaults(),this.updateDisplay()})),W_(vS,(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 G_(vS,((e,t,i)=>{const n=(s=this.$(t.selector),r=t.parser,bS(s.options[s.options.selectedIndex].value,r));var s,r;return void 0!==n&&(e[i]=n),e}),{})}setValues(e){W_(vS,((t,i)=>{!function(e,t,i){if(t)for(let n=0;n<e.options.length;n++)if(bS(e.options[n].value,i)===t){e.selectedIndex=n;break}}(this.$(t.selector),e[i],t.parser)}))}setDefaults(){W_(vS,(e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t}))}restoreSettings(){let e;try{e=JSON.parse(tp.localStorage.getItem(aS))}catch(e){q_.warn(e)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?tp.localStorage.setItem(aS,JSON.stringify(e)):tp.localStorage.removeItem(aS)}catch(e){q_.warn(e)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}});Gb.registerComponent("ResizeManager",class extends Gb{constructor(e,t){let i=t.ResizeObserver||tp.ResizeObserver;null===t.ResizeObserver&&(i=!1);super(e,Y_({createEl:!i,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||tp.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=xb((()=>{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(){vb(this,"resize",e),vb(this,"unload",t),t=null};_b(this.el_.contentWindow,"unload",t),_b(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 TS={trackingThreshold:20,liveTolerance:15};Gb.registerComponent("LiveTracker",class extends Gb{constructor(e,t){super(e,Y_(TS,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(tp.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;const n=this.liveCurrentTime(),s=this.player_.currentTime();let r=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-s)>this.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(r=!1),r!==this.behindLiveEdge_&&(this.behindLiveEdge_=r,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_,Eb),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()}});Gb.registerComponent("TitleBar",class extends Gb{constructor(e,t){super(e,t),this.on("statechanged",(e=>this.updateDom_())),this.updateDom_()}createEl(){return this.els={title:Av("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${pb()}`}),description:Av("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${pb()}`})},Av("div",{className:"vjs-title-bar"},{},Q_(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach((e=>{const n=this.state[e],s=this.els[e],r=i[e];Gv(s),n&&Lv(s,n),t&&(t.removeAttribute(r),n&&t.setAttribute(r,s.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 wS={initialDisplay:4e3,position:[],takeFocus:!1};Gb.registerComponent("TransientButton",class extends cw{constructor(e,t){super(e,t=Y_(wS,t)),this.controlText(t.controlText),this.hide(),this.on(this.player_,["useractive","userinactive"],(e=>{this.removeClass("force-display")}))}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map((e=>`vjs-${e}`)).join(" ")}`}createEl(){const e=Av("button",{},{type:"button",class:this.buildCSSClass()},Av("span"));return this.controlTextEl_=e.querySelector("span"),e}show(){super.show(),this.addClass("force-display"),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout((()=>{this.removeClass("force-display")}),this.options_.initialDisplay)}hide(){this.removeClass("force-display"),super.hide()}dispose(){this.player_.clearTimeout(this.forceDisplayTimeout),super.dispose()}});const SS=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const i=e.$$("source"),n=[];let s="";if(!i.length)return!1;for(let e=0;e<i.length;e++){const t=i[e].src;t&&-1===n.indexOf(t)&&n.push(t)}return!!n.length&&(1===n.length&&(s=n[0]),e.triggerSourceset(s),!0)},ES=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=Lp.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const i=Lp.createDocumentFragment();for(;t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",tp.Element.prototype.appendChild.call(this,i),this.innerHTML}}),CS=(e,t)=>{let i={};for(let n=0;n<e.length&&(i=Object.getOwnPropertyDescriptor(e[n],t),!(i&&i.set&&i.get));n++);return i.enumerable=!0,i.configurable=!0,i},kS=function(e){const t=e.el();if(t.resetSourceWatch_)return;const i={},n=(e=>CS([e.el(),tp.HTMLMediaElement.prototype,tp.Element.prototype,ES],"innerHTML"))(e),s=i=>(...n)=>{const s=i.apply(t,n);return SS(e),s};["append","appendChild","insertAdjacentHTML"].forEach((e=>{t[e]&&(i[e]=t[e],t[e]=s(i[e]))})),Object.defineProperty(t,"innerHTML",Y_(n,{set:s(n.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(i).forEach((e=>{t[e]=i[e]})),Object.defineProperty(t,"innerHTML",n)},e.one("sourceset",t.resetSourceWatch_)},xS=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?ST(tp.Element.prototype.getAttribute.call(this,"src")):""},set(e){return tp.Element.prototype.setAttribute.call(this,"src",e),e}}),IS=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const i=(e=>CS([e.el(),tp.HTMLMediaElement.prototype,xS],"src"))(e),n=t.setAttribute,s=t.load;Object.defineProperty(t,"src",Y_(i,{set:n=>{const s=i.set.call(t,n);return e.triggerSourceset(t.src),s}})),t.setAttribute=(i,s)=>{const r=n.call(t,i,s);return/src/i.test(i)&&e.triggerSourceset(t.src),r},t.load=()=>{const i=s.call(t);return SS(e)||(e.triggerSourceset(""),kS(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):SS(e)||kS(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=s,t.setAttribute=n,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}};class AS extends RT{constructor(e,t){super(e,t);const i=e.source;let n=!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 s=e[t];"track"===s.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(s),this.remoteTextTracks().addTrack(s.track),this.textTracks().addTrack(s.track),n||this.el_.hasAttribute("crossorigin")||!CT(s.src)||(n=!0)):i.push(s))}for(let e=0;e<i.length;e++)this.el_.removeChild(i[e])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&n&&q_.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_(),(vv||mv)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),AS.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){IS(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let i=0;i<e.length;i++){const n=e[i];"metadata"===n.kind&&t.push({track:n,storedMode:n.mode})}};i(),e.addEventListener("change",i),this.on("dispose",(()=>e.removeEventListener("change",i)));const n=()=>{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",n)};this.on("webkitbeginfullscreen",(()=>{e.removeEventListener("change",i),e.removeEventListener("change",n),e.addEventListener("change",n)})),this.on("webkitendfullscreen",(()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",n)}))}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=DT[e],i=this.el()[t.getterName],n=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const s={change:t=>{const i={type:"change",target:n,currentTarget:n,srcElement:n};n.trigger(i),"text"===e&&this[MT.remoteText.getterName]().trigger(i)},addtrack(e){n.addTrack(e.track)},removetrack(e){n.removeTrack(e.track)}},r=function(){const e=[];for(let t=0;t<n.length;t++){let s=!1;for(let e=0;e<i.length;e++)if(i[e]===n[t]){s=!0;break}s||e.push(n[t])}for(;e.length;)n.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=s,Object.keys(s).forEach((e=>{const t=s[e];i.addEventListener(e,t),this.on("dispose",(n=>i.removeEventListener(e,t)))})),this.on("loadstart",r),this.on("dispose",(e=>this.off("loadstart",r)))}proxyNativeTracks_(){DT.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),AS.disposeMediaElement(e),e=t}else{e=Lp.createElement("video");const t=Y_({},this.options_.tag&&Fv(this.options_.tag));vv&&!0===this.options_.nativeControlsForTouch||delete t.controls,Rv(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Uv(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 n=t[i],s=this.options_[n];void 0!==s&&(s?Uv(e,n,n):jv(e,n),e[n]=s)}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&&wv?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){q_(e,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&nv&&av&&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)oT(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)}addSourceElement(e,t){if(!e)return q_.error("Invalid source URL."),!1;const i={src:e};t&&(i.type=t);const n=Av("source",{},i);return this.el_.appendChild(n),!0}removeSourceElement(e){if(!e)return q_.error("Source URL is required to remove the source element."),!1;const t=this.el_.querySelectorAll("source");for(const i of t)if(i.src===e)return this.el_.removeChild(i),!0;return q_.warn(`No matching source element found with src: ${e}`),!1}reset(){AS.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=Lp.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),tp.performance&&(e.creationTime=tp.performance.now()),e}}J_(AS,"TEST_VID",(function(){if(!Cv())return;const e=Lp.createElement("video"),t=Lp.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e})),AS.isSupported=function(){try{AS.TEST_VID.volume=.5}catch(e){return!1}return!(!AS.TEST_VID||!AS.TEST_VID.canPlayType)},AS.canPlayType=function(e){return AS.TEST_VID.canPlayType(e)},AS.canPlaySource=function(e,t){return AS.canPlayType(e.type)},AS.canControlVolume=function(){try{const e=AS.TEST_VID.volume;AS.TEST_VID.volume=e/2+.1;const t=e!==AS.TEST_VID.volume;return t&&Tv?(tp.setTimeout((()=>{AS&&AS.prototype&&(AS.prototype.featuresVolumeControl=e!==AS.TEST_VID.volume)})),!1):t}catch(e){return!1}},AS.canMuteVolume=function(){try{const e=AS.TEST_VID.muted;return AS.TEST_VID.muted=!e,AS.TEST_VID.muted?Uv(AS.TEST_VID,"muted","muted"):jv(AS.TEST_VID,"muted"),e!==AS.TEST_VID.muted}catch(e){return!1}},AS.canControlPlaybackRate=function(){if(nv&&av&&cv<58)return!1;try{const e=AS.TEST_VID.playbackRate;return AS.TEST_VID.playbackRate=e/2+.1,e!==AS.TEST_VID.playbackRate}catch(e){return!1}},AS.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(Lp.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(Lp.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(Lp.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(Lp.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},AS.supportsNativeTextTracks=function(){return wv||Tv&&av},AS.supportsNativeVideoTracks=function(){return!(!AS.TEST_VID||!AS.TEST_VID.videoTracks)},AS.supportsNativeAudioTracks=function(){return!(!AS.TEST_VID||!AS.TEST_VID.audioTracks)},AS.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]){J_(AS.prototype,e,(()=>AS[t]()),!0)})),AS.prototype.featuresVolumeControl=AS.canControlVolume(),AS.prototype.movingMediaElementInDOM=!Tv,AS.prototype.featuresFullscreenResize=!0,AS.prototype.featuresProgressEvents=!0,AS.prototype.featuresTimeupdateEvents=!0,AS.prototype.featuresVideoFrameCallback=!(!AS.TEST_VID||!AS.TEST_VID.requestVideoFrameCallback),AS.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){}}()}},AS.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){AS.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){AS.prototype["set"+Vb(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){AS.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){AS.prototype["set"+Vb(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){AS.prototype[e]=function(){return this.el_[e]()}})),RT.withSourceHandlers(AS),AS.nativeSourceHandler={},AS.nativeSourceHandler.canPlayType=function(e){try{return AS.TEST_VID.canPlayType(e)}catch(e){return""}},AS.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return AS.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=ET(e.src);return AS.nativeSourceHandler.canPlayType(`video/${t}`)}return""},AS.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},AS.nativeSourceHandler.dispose=function(){},AS.registerSourceHandler(AS.nativeSourceHandler),RT.registerTech("Html5",AS);const LS=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],OS={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},PS=["tiny","xsmall","small","medium","large","xlarge","huge"],DS={};PS.forEach((e=>{const t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;DS[e]=`vjs-layout-${t}`}));const MS={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class NS extends Gb{constructor(e,t,i){if(e.id=e.id||t.id||`vjs_video_${pb()}`,(t=Object.assign(NS.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=H_(this.id_),this.fsApi_=F_,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&&Fv(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_=NS.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(),jb(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(_b(Lp,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const n=Y_(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach((e=>{this[e](t.plugins[e])})),t.debug&&this.debug(!0),this.options_.playerOptions=n,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const e=(new t
vendor: 17,828 bytes, line 31
31p.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"))
vendor: 6,188 bytes, line 31
31q_.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 ew(this),this.addClass("vjs-spatial-navigation-enabled")),vv&&this.addClass("vjs-touch-enabled"),Tv||this.addClass("vjs-workinghover"),NS.players[this.id_]=this;const s=D_.split(".")[0];this.addClass(`vjs-v${s}`),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(){var e;this.trigger("dispose"),this.off("dispose"),vb(Lp,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),vb(Lp,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),NS.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),e=this,BT.hasOwnProperty(e.id())&&delete BT[e.id()],NT.names.forEach((e=>{const t=this[NT[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 n="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=t.parentNode:n||(e=this.el_=super.createEl("div"));const s=Fv(t);if(n){for(e=this.el_=t,t=this.tag=Lp.createElement("video");e.children.length;)t.appendChild(e.firstChild);Pv(e,"video-js")||Dv(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"),s.tabindex="-1",av&&pv&&(t.setAttribute("role","application"),s.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(i){n&&"class"===i||e.setAttribute(i,s[i]),n&&t.setAttribute(i,s[i])})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused");const r=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter((e=>Sv[e])).map((e=>"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-")));if(this.addClass(...r),!0!==tp.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=lb("vjs-styles-dimensions");const e=Jv(".vjs-styles-defaults"),t=Jv("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 o=t.getElementsByTagName("a");for(let e=0;e<o.length;e++){const t=o.item(e);Dv(t,"vjs-hidden"),t.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(e,t),Ov(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)):q_.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 n=parseFloat(t);isNaN(n)?q_.error(`Improper value "${t}" supplied for for ${e}`):(this[i]=n,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;var t,i;this.fluid_=!!e,Pb(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),i=()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)},Pb(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===tp.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,n;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const s=i.split(":"),r=s[1]/s[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),cb(this.styleEl_,`\n .${n}
31 {\n width: ${e}px;\n height: ${t}px;\n }\n\n .${n}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${100*r}%;\n }\n `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=Vb(e),n=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(RT.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let s=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(s=!1);const r={source:t,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${n}_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};NT.names.forEach((e=>{const t=NT[e];r[t.getterName]=this[t.privateName]})),Object.assign(r,this.options_[i]),Object.assign(r,this.options_[n]),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=RT.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(Cb(this,this.handleTechReady_),!0),cT(this.textTracksJson_||[],this.tech_),LS.forEach((e=>{this.on(this.tech_,e,(t=>this[`handleTech${Vb(e)}_`](t)))})),Object.keys(OS).forEach((e=>{this.on(this.tech_,e,(t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${OS[e]}_`].bind(this),event:t}):this[`handleTech${OS[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||Ov(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){NT.names.forEach((e=>{const t=NT[e];this[t.privateName]=this[t.getterName]()})),this.textTracksJson_=lT(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&&q_.warn("Using the tech directly can be dangerous. I hope you know
31what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":D_}}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(rT(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(),rT(i)&&(i=i.catch(t))),rT(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 n=e.$$("source");for(let e=0;e<n.length;e++){const i=n[e];if(i.type&&i.src&&i.src===t)return i.type}return XT(t)})(this,t)),this.cache_.source=Y_({},e,{src:t,type:i});const n=this.cache_.sources.filter((e=>e.src&&e.src===t)),s=[],r=this.$$("source"),o=[];for(let e=0;e<r.length;e++){const i=Fv(r[e]);s.push(i),i.src&&i.src===t&&o.push(i.src)}o.length&&!n.length?this.cache_.sources=s:n.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,n=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(n)&&(!this.lastSource_||this.lastSource_.tech!==n&&this.lastSource_.player!==i)&&(t=()=>{}),t(n),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")}
vendor: 10,951 bytes, line 31
31handleTechSeeked_(){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()?oT(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.isInPictureInPicture()&&!Lp.pictureInPictureElement?this.exitPictureInPicture():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 n=Lp[this.fsApi_.fullscreenElement]===i;!n&&i.matches&&(n=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}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 HT)return function(e,t,i,n){return t[i](e.reduce(zT(i),n))}(this.middleware_,this.tech_,e,t);if(e in VT)return $T(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw q_(e),e}}),!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in qT)return function(e,t,i){return e.reduceRight(zT(i),t[i]())}(this.middleware_,this.tech_,e);if(e in VT)return $T(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw q_(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw q_(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw q_(t),t}}}play(){return new Promise((e=>{this.play_(e)}))}play_(e=oT){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(wv||Tv);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 n=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)}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")||Yb(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=Yb(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=Yb(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 nT(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,n)=>{function s(){t.off("fullscreenerror",o),t.off("fullscreenchange",r)}function r(){s(),i()}function o(e,t){s(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",o);const a=t.requestFullscreenHelper_(e);a&&(a.then(s,s),a.then(i,n))}))}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 n(){e.off("fullscreenerror",r),e.off("fullscreenchange",s)}function s(){n(),t()}function r(e,t){n(),i(t)}e.one("fullscreenchange",s),e.one("fullscreenerror",r);const o=e.exitFullscreenHelper_();o&&(o.then(n,n),o.then(t,i))}))}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=Lp[this.fsApi_.exitFullscreen]();return e&&oT(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=Lp.documentElement.style.overflow,_b(Lp,"keydown",this.boundFullWindowOnEscKey_),Lp.documentElement.style.overflow="hidden",Dv(Lp.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,vb(Lp,"keydown",this.boundFullWindowOnEscKey_),Lp.documentElement.style.overflow=this.docOrigOverflow,Mv(Lp.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&&tp.documentPictureInPicture){const e=Lp.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(Av("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),tp.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then((t=>(tb(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 Lp&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return tp.documentPictureInPicture&&tp.documentPictureInPicture.window?(tp.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in Lp?Lp.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;
vendor: 5,661 bytes, line 31
31if("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:n=t=>"m"===e.key.toLowerCase(),playPauseKey:s=t=>"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}=t;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Gb.getComponent("FullscreenToggle");!1!==Lp[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else if(n.call(this,e)){e.preventDefault(),e.stopPropagation();Gb.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(s.call(this,e)){e.preventDefault(),e.stopPropagation();Gb.getComponent("PlayToggle").prototype.handleClick.call(this,e)}}canPlayType(e){let t;for(let i=0,n=this.options_.techOrder;i<n.length;i++){const s=n[i];let r=RT.getTech(s);if(r||(r=Gb.getComponent(s)),r){if(r.isSupported()&&(t=r.canPlayType(e),t))return t}else q_.error(`The "${s}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map((e=>[e,RT.getTech(e)])).filter((([e,t])=>t?t.isSupported():(q_.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1))),i=function(e,t,i){let n;return e.some((e=>t.some((t=>{if(n=i(e,t),n)return!0})))),n};let n;const s=([e,t],i)=>{if(t.canPlaySource(i,this.options_[e.toLowerCase()]))return{source:i,tech:e}};var r;return n=this.options_.sourceOrder?i(e,t,(r=s,(e,t)=>r(t,e))):i(t,e,s),n||!1}handleSrc_(e,t){if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=KT(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),jT(this,i[0],((e,n)=>{this.middleware_=n,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 s,r;s=n,r=this.tech_,s.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||(zb(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))}addSourceElement(e,t){return!!this.tech_&&this.tech_.addSourceElement(e,t)}removeSourceElement(e){return!!this.tech_&&this.tech_.removeSourceElement(e)}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{oT(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}),Pb(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:i,remainingTimeDisplay:n}=this.controlBar||{},{seekBar:s}=i||{};e&&e.updateContent(),t&&t.updateContent(),n&&n.updateContent(),s&&(s.update(),s.loadProgressBar&&s.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"))}}
vendor: 21,143 bytes, lines 31-35
31controls(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(N_("beforeerror").forEach((t=>{const i=t(this,e);X_(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 sT(e),this.addClass("vjs-error"),q_.error(`(CODE:${this.error_.code} ${sT.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),N_("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 n=Cb(this,this.reportUserActivity),s=function(t){n(),this.clearInterval(e)};this.on("mousedown",(function(){n(),this.clearInterval(e),e=this.setInterval(n,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,n())})),this.on("mouseup",s),this.on("mouseleave",s);const r=this.getChild("controlBar");let o;!r||Tv||nv||(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",n),this.on("keyup",n);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(),Pb(this)&&this.trigger("languagechange"))}languages(){return Y_(NS.prototype.options_.languages,this.languages_)}toJSON(){const e=Y_(this.options_),t=e.tracks;e.tracks=[];for(let i=0;i<t.length;i++){let n=t[i];n=Y_(n),n.player=void 0,e.tracks[i]=n}return e}createModal(e,t){(t=t||{}).content=e||"";const i=new hT(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<PS.length;i++){const n=PS[i];if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(DS[e]),this.addClass(DS[n]),this.breakpoint_=n;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},MS,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 DS[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const i=this.crossOrigin();this.reset(),this.cache_.media=Y_(e);const{artist:n,artwork:s,description:r,poster:o,src:a,textTracks:l,title:c}=this.cache_.media;!s&&o&&(this.cache_.media.artwork=[{src:o,type:XT(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:c,description:r||n||""}),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:XT(t.poster)}]),t}return Y_(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},i=Fv(e),n=i["data-setup"];if(Pv(e,"vjs-fill")&&(i.fill=!0),Pv(e,"vjs-fluid")&&(i.fluid=!0),null!==n)try{Object.assign(i,JSON.parse(n||"{}"))}catch(e){q_.error("data-setup",e)}if(Object.assign(t,i),e.hasChildNodes()){const i=e.childNodes;for(let e=0,n=i.length;e<n;e++){const n=i[e],s=n.nodeName.toLowerCase();"source"===s?t.sources.push(Fv(n)):"track"===s&&t.tracks.push(Fv(n))}}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"))}}NT.names.forEach((function(e){const t=NT[e];NS.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),NS.prototype.crossorigin=NS.prototype.crossOrigin,NS.players={};const RS=tp.navigator;NS.prototype.options_={techOrder:RT.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:RS&&(RS.languages&&RS.languages[0]||RS.userLanguage||RS.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},LS.forEach((function(e){NS.prototype[`handleTech${Vb(e)}_`]=function(){return this.trigger(e)}})),Gb.registerComponent("Player",NS);const FS="plugin",BS="activePlugins_",US={},jS=e=>US.hasOwnProperty(e),$S=e=>jS(e)?US[e]:void 0,qS=(e,t)=>{e[BS]=e[BS]||{},e[BS][t]=!0},HS=(e,t,i)=>{const n=(i?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)},VS=(e,t)=>(t.prototype.name=e,function(...i){HS(this,{name:e,plugin:t,instance:null},!0);const n=new t(...[this,...i]);return this[e]=()=>n,HS(this,n.getEventHash()),n});class zS{constructor(e){if(this.constructor===zS)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),jb(this),delete this.trigger,qb(this,this.constructor.defaultState),qS(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 bb(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[BS][e]=!1,this.player=this.state=null,t[e]=VS(e,US[e])}static isBasic(e){const t="string"==typeof e?$S(e):e;return"function"==typeof t&&!zS.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(jS(e))q_.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(NS.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 US[e]=t,e!==FS&&(zS.isBasic(t)?NS.prototype[e]=function(e,t){const i=function(){HS(this,{name:e,plugin:t,instance:null},!0);const i=t.apply(this,arguments);return qS(this,e),HS(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach((function(e){i[e]=t[e]})),i}(e,t):NS.prototype[e]=VS(e,t)),t}static deregisterPlugin(e){if(e===FS)throw new Error("Cannot de-register base plugin.");jS(e)&&(delete US[e],delete NS.prototype[e])}static getPlugins(e=Object.keys(US)){let t;return e.forEach((e=>{const i=$S(e);i&&(t=t||{},t[e]=i)})),t}static getPluginVersion(e){const t=$S(e);return t&&t.VERSION||""}}function WS(e,t,i,n){return function(e,t){let i=!1;return function(...n){return i||q_.warn(e),i=!0,t.apply(this,n)}}(`${t} is deprecated and will be removed in ${e}.0; please use ${i} instead.`,n)}zS.getPlugin=$S,zS.BASE_PLUGIN_NAME=FS,zS.registerPlugin(FS,zS),NS.prototype.usingPlugin=function(e){return!!this[BS]&&!0===this[BS][e]},NS.prototype.hasPlugin=function(e){return!!jS(e)};const GS=e=>0===e.indexOf("#")?e.slice(1):e;function XS(e,t,i){let n=XS.getPlayer(e);if(n)return t&&q_.warn(`Player "${e}" is already initialised. Options will not be applied.`),i&&n.ready(i),n;const s="string"==typeof e?Jv("#"+GS(e)):e;if(!kv(s))throw new TypeError("The element or ID supplied is not valid. (videojs)");const r="getRootNode"in s&&s.getRootNode()instanceof tp.ShadowRoot?s.getRootNode():s.ownerDocument.body;s.ownerDocument.defaultView&&r.contains(s)||q_.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player")?s.parentNode:s).cloneNode(!0)),N_("beforesetup").forEach((e=>{const i=e(s,Y_(t));X_(i)&&!Array.isArray(i)?t=Y_(t,i):q_.error("please return an object in beforesetup hooks")}));const o=Gb.getComponent("Player");return n=new o(s,t,i),N_("setup").forEach((e=>e(n))),n}if(XS.hooks_=M_,XS.hooks=N_,XS.hook=function(e,t){N_(e,t)},XS.hookOnce=function(e,t){N_(e,[].concat(t).map((t=>{const i=(...n)=>(R_(e,i),t(...n));return i})))},XS.removeHook=R_,!0!==tp.VIDEOJS_NO_DYNAMIC_STYLE&&Cv()){let Xx=Jv(".vjs-styles-defaults");if(!Xx){Xx=lb("vjs-styles-defaults");const Kx=Jv("head");Kx&&Kx.insertBefore(Xx,Kx.firstChild),cb(Xx,"\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 ")}}ob(1,XS),XS.VERSION=D_,XS.options=NS.prototype.options_,XS.getPlayers=()=>NS.players,XS.getPlayer=e=>{const t=NS.players;let i;if("string"==typeof e){const n=GS(e),s=t[n];if(s)return s;i=Jv("#"+n)}else i=e;if(kv(i)){const{player:e,playerId:n}=i;if(e||t[n])return e||t[n]}},XS.getAllPlayers=()=>Object.keys(NS.players).map((e=>NS.players[e])).filter(Boolean),XS.players=NS.players,XS.getComponent=Gb.getComponent,XS.registerComponent=(e,t)=>(RT.isTech(t)&&q_.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Gb.registerComponent.call(Gb,e,t)),XS.getTech=RT.getTech,XS.registerTech=RT.registerTech,XS.use=function(e,t){FT[e]=FT[e]||[],FT[e].push(t)},Object.defineProperty(XS,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(XS.middleware,"TERMINATOR",{value:UT,writeable:!1,enumerable:!0}),XS.browser=Sv,XS.obj=Z_,XS.mergeOptions=WS(9,"videojs.mergeOptions","videojs.obj.merge",Y_),XS.defineLazyProperty=WS(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",J_),XS.bind=WS(9,"videojs.bind","native Function.prototype.bind",Cb),XS.registerPlugin=zS.registerPlugin,XS.deregisterPlugin=zS.deregisterPlugin,XS.plugin=(e,t)=>(q_.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),zS.registerPlugin(e,t)),XS.getPlugins=zS.getPlugins,XS.getPlugin=zS.getPlugin,XS.getPluginVersion=zS.getPluginVersion,XS.addLanguage=function(e,t){return e=(""+e).toLowerCase(),XS.options.languages=Y_(XS.options.languages,{[e]:t}),XS.options.languages[e]},XS.log=q_,XS.createLogger=H_,XS.time=iT,XS.createTimeRange=WS(9,"videojs.createTimeRange","videojs.time.createTimeRanges",Yb),XS.createTimeRanges=WS(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",Yb),XS.formatTime=WS(9,"videojs.formatTime","videojs.time.formatTime",tT),XS.setFormatTime=WS(9,"videojs.setFormatTime","videojs.time.setFormatTime",Zb),XS.resetFormatTime=WS(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",eT),XS.parseUrl=WS(9,"videojs.parseUrl","videojs.url.parseUrl",wT),XS.isCrossOrigin=WS(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",CT),XS.EventTarget=Lb,XS.any=wb,XS.on=_b,XS.one=Tb,XS.off=vb,XS.trigger=bb,XS.xhr=qp,XS.TextTrack=AT,XS.AudioTrack=LT,XS.VideoTrack=OT,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((e=>{XS[e]=function(){return q_.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),ib[e].apply(null,arguments)}})),XS.computedStyle=WS(9,"videojs.computedStyle","videojs.dom.computedStyle",eb),XS.dom=ib,XS.fn=Ib,XS.num=_w,XS.str=Wb,XS.url=kT,XS.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"}; 32/*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */ 33class KS{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 YS extends XS.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 KS(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,n=this.length;i<n;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}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}}YS.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const Yx in YS.prototype.allowedEvents_)YS.prototype["on"+Yx]=null;var QS="4.1.0";const JS=function(e){return function(e){const t=e.qualityLevels,i=new YS,n=function(){i.dispose(),e.qualityLevels=t,e.off("dispose",n)};return e.on("dispose",n),e.qualityLevels=()=>i,e.qualityLevels.VERSION=QS,i}(this,XS.obj.merge({},e))};XS.registerPlugin("qualityLevels",JS),JS.VERSION=QS; 34/*! @name @videojs/http-streaming @version 3.15.0 @license Apache-2.0 */ 35const ZS=Cf,eE=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,tE=e=>XS.log.debug?XS.log.debug.bind(XS,"VHS:",`${e} >`):function(){};function iE(...e){const t=XS.obj||XS;return(t.merge||t.mergeOptions).apply(t,e)}function nE(...e){const t=XS.time||XS;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const sE=1/30,rE=.1,oE=function(e,t){const i=[];let n;if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return nE(i)},aE=function(e,t){return oE(e,(function(e,i){return e-rE<=t&&i+rE>=t}))},lE=function(e,t){return oE(e,(function(e){return e-sE>=t}))},cE=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(", ")},uE=e=>{const t=[];for(let i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t},hE=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},dE=function(e,t){let i=0;if(!e||!e.length)return i;for(let n=0;n<e.length;n++){const s=e.start(n),r=e.end(n);t>r||(i+=t>s&&t<=r?r-t:r-s)}return i},pE=(e,t)=>{if(!t.preload)return t.duration;let i=0;
vendor: 4,493 bytes, line 35
35return(t.parts||[]).forEach((function(e){i+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(i+=e.partTargetDuration)})),i},fE=e=>(e.segments||[]).reduce(((e,t,i)=>(t.parts?t.parts.forEach((function(n,s){e.push({duration:n.duration,segmentIndex:i,partIndex:s,part:n,segment:t})})):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e)),[]),mE=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},gE=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:i}=e;let n=(i||[]).reduce(((e,t)=>e+("PART"===t.type?1:0)),0);return n+=t&&t.length?t.length:0,n},yE=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const i=mE(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},_E=function(e,t,i){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const n=function(e,t){let i=0,n=t-e.mediaSequence,s=e.segments[n];if(s){if(void 0!==s.start)return{result:s.start,precise:!0};if(void 0!==s.end)return{result:s.end-s.duration,precise:!0}}for(;n--;){if(s=e.segments[n],void 0!==s.end)return{result:i+s.end,precise:!0};if(i+=pE(e,s),void 0!==s.start)return{result:i+s.start,precise:!0}}return{result:i,precise:!1}}(e,t);if(n.precise)return n.result;const s=function(e,t){let i,n=0,s=t-e.mediaSequence;for(;s<e.segments.length;s++){if(i=e.segments[s],void 0!==i.start)return{result:i.start-n,precise:!0};if(n+=pE(e,i),void 0!==i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}}(e,t);return s.precise?s.result:n.result+i},vE=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 tp.Infinity}return _E(e,t,i)},bE=function({defaultDuration:e,durationList:t,startIndex:i,endIndex:n}){let s=0;if(i>n&&([i,n]=[n,i]),i<0){for(let t=i;t<Math.min(0,n);t++)s+=e;i=0}for(let e=i;e<n;e++)s+=t[e].duration;return s},TE=function(e,t,i,n){if(!e||!e.segments)return null;if(e.endList)return vE(e);if(null===t)return null;t=t||0;let s=_E(e,e.mediaSequence+e.segments.length,t);return i&&(s-=n="number"==typeof n?n:yE(null,e)),Math.max(0,s)},wE=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},SE=function(e){return e.excludeUntil&&e.excludeUntil===1/0},EE=function(e){const t=wE(e);return!e.disabled&&!t},CE=function(e,t){return t.attributes&&t.attributes[e]},kE=(e,t)=>{if(1===e.playlists.length)return!0;const i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((e=>!!EE(e)&&(e.attributes.BANDWIDTH||0)<i)).length},xE=(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)))),IE=function(e,t){const i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let n=!1;for(const e in i){for(const s in i[e])if(n=t(i[e][s]),n)break;if(n)break}return!!n},AE=e=>{if(!e||!e.playlists||!e.playlists.length){return IE(e,(e=>e.playlists&&e.playlists.length||e.uri))}for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t],n=i.attributes&&i.attributes.CODECS;if(n&&n.split(",").every((e=>Vf(e))))continue;if(!IE(e,(e=>xE(i,e))))return!1}return!0};var LE={liveEdgeDelay:yE,duration:vE,seekable:function(e,t,i){const n=t||0;let s=TE(e,t,!0,i);return null===s?nE():(s<n&&(s=n),nE(n,s))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:i,startingPartIndex:n,startTime:s,exactManifestTimings:r}){let o=t-s;const a=fE(e);let l=0;for(let e=0;e<a.length;e++){const t=a[e];if(i===t.segmentIndex&&("number"!=typeof n||"number"!=typeof t.partIndex||n===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+sE<=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:s-bE({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 n=i.duration>sE;if(!(0===o)&&!(n&&o+sE>
vendor: 1,499 bytes, line 35
35=0)||t===a.length-1){if(r){if(o>0)continue}else if(o-sE>=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:s+bE({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:EE,isDisabled:function(e){return e.disabled},isExcluded:wE,isIncompatible:SE,playlistEnd:TE,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:CE,estimateSegmentRequestTime:function(e,t,i,n=0){if(!CE("BANDWIDTH",i))return NaN;return(e*i.attributes.BANDWIDTH-8*n)/t},isLowestEnabledRendition:kE,isAudioOnly:AE,playlistMatch:xE,segmentDurationWithParts:pE};const{log:OE}=XS,PE=(e,t)=>`${e}-${t}`,DE=(e,t,i)=>`placeholder-uri-${e}-${t}-${i}`,ME=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((i=>{if(e.mediaGroups[i])for(const n in e.mediaGroups[i])for(const s in e.mediaGroups[i][n]){const r=e.mediaGroups[i][n][s];t(r,i,n,s)}}))},NE=({playlist:e,uri:t,id:i})=>{e.id=i,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},RE=(e,t,i=DE)=>{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 n=AE(e);ME(e,((t,s,r,o)=>{if(!t.playlists||!t.playlists.length){if(n&&"AUDIO"===s&&!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=[Op({},t)]}
vendor: 12,653 bytes, line 35
35t.playlists.forEach((function(t,n){const a=i(s,r,o,t),l=PE(n,a);t.uri?t.resolvedUri=t.resolvedUri||ZS(e.uri,t.uri):(t.uri=0===n?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];NE({playlist:i,id:PE(t,i.uri)}),i.resolvedUri=ZS(e.uri,i.uri),e.playlists[i.id]=i,e.playlists[i.uri]=i,i.attributes.BANDWIDTH||OE.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(e),(e=>{ME(e,(t=>{t.uri&&(t.resolvedUri=ZS(e.uri,t.uri))}))})(e)};class FE{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,n)=>{if(!this.processedDateRanges_.has(n)&&(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 BE=({requestType:e,request:t,error:i,parseFailure:n})=>{const s=t.status<200||t.status>299,r=t.status>=400&&t.status<=499,o={uri:t.uri,requestType:e},a=s&&!r||n;if(i&&r)o.error=Op({},i),o.errorType=XS.Error.NetworkRequestFailed;else if(t.aborted)o.errorType=XS.Error.NetworkRequestAborted;else if(t.timedout)o.erroType=XS.Error.NetworkRequestTimeout;else if(a){const e=n?XS.Error.NetworkBodyParserFailed:XS.Error.NetworkBadStatus;o.errorType=e,o.status=t.status,o.headers=t.headers}return o},{EventTarget:UE}=XS,jE=(e,t)=>{if(!e)return t;const i=iE(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 n=0;n<t.parts.length;n++)e.parts&&e.parts[n]&&(i.parts[n]=iE(e.parts[n],t.parts[n]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},$E=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=ZS(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=ZS(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=ZS(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=ZS(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((e=>{e.resolvedUri||(e.resolvedUri=ZS(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((e=>{e.resolvedUri||(e.resolvedUri=ZS(t,e.uri))}))},qE=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},HE=(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,VE=(e,t,i=HE)=>{const n=iE(e,{}),s=n.playlists[t.id];if(!s)return null;if(i(s,t))return null;t.segments=qE(t);const r=iE(s,t);if(r.preloadSegment&&!t.preloadSegment&&delete r.preloadSegment,s.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 n=e.slice(),s=t.slice();i=i||0;const r=[];let o;for(let e=0;e<s.length;e++){const t=n[e+i],a=s[e];t?(o=t.map||o,r.push(jE(t,a))):(o&&!a.map&&(a.map=o),r.push(a))}return r})(s.segments,t.segments,t.mediaSequence-s.mediaSequence)}r.segments.forEach((e=>{$E(e,r.resolvedUri)}));for(let e=0;e<n.playlists.length;e++)n.playlists[e].id===t.id&&(n.playlists[e]=r);return n.playlists[t.id]=r,n.playlists[t.uri]=r,ME(e,((e,i,n,s)=>{if(e.playlists)for(let i=0;i<e.playlists.length;i++)t.id===e.playlists[i].id&&(e.playlists[i]=r)})),n},zE=(e,t)=>{const i=e.segments||[],n=i[i.length-1],s=n&&n.parts&&n.parts[n.parts.length-1],r=s&&s.duration||n&&n.duration;return t&&r?1e3*r:500*(e.partTargetDuration||e.targetDuration||10)},WE=(e,t,i)=>{if(!e)return;const n=[];return e.forEach((e=>{if(!e.attributes)return;const{BANDWIDTH:t,RESOLUTION:i,CODECS:s}=e.attributes;n.push({id:e.id,bandwidth:t,resolution:i,codecs:s})})),{type:t,isLive:i,renditions:n}};class GE extends UE{constructor(e,t,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=tE("PlaylistLoader");const{withCredentials:n=!1}=i;this.src=e,this.vhs_=t,this.withCredentials=n,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const s=t.options_;this.customTagParsers=s&&s.customTagParsers||[],this.customTagMappers=s&&s.customTagMappers||[],this.llhls=s&&s.llhls,this.dateRangesStorage_=new FE,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=ZS(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 n=t.mediaSequence+t.segments.length;if(e){const s=e.parts||[],r=gE(t)-1;r>-1&&r!==s.length-1&&(i._HLS_part=r),(r>-1||s.length)&&n--}i._HLS_msn=n}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){const t=new tp.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:n,id:s}=t;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[s],status:e.status,message:`HLS playlist request error at URL: ${n}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:BE({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:n=[],customTagMappers:s=[],llhls:r})=>{const o=new Rf;e&&o.on("warn",e),t&&o.on("info",t),n.forEach((e=>o.addParser(e))),s.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=mE(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}`}),OE.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:XS.Error.StreamingHlsPlaylistParserError,error:e}}}haveMetadata({playlistString:e,playlistObject:t,url:i,id:n}){this.request=null,this.state="HAVE_METADATA";const s={playlistInfo:{type:"media",uri:i}};this.trigger({type:"playlistparsestart",metadata:s});const r=t||this.parseManifest_({url:i,manifestString:e});r.lastRequest=Date.now(),NE({playlist:r,uri:i,id:n});const o=VE(this.main,r);this.targetDuration=r.partTargetDuration||r.targetDuration,this.pendingMedia_=null,o?(this.main=o,this.media_=this.main.playlists[n]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(zE(this.media(),!!o)),s.parsedPlaylist=WE(this.main.playlists,s.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:s}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),tp.clearTimeout(this.mediaUpdateTimeout),tp.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new FE,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(tp.clearTimeout(this.finalRenditionTimeout),t){const t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=tp.setTimeout(this.media.bind(this,e,!1),t))}const i=this.state,n=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.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(n&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(zE(e,!0)),!n)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 r={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:r}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},((t,n)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=eE(e.resolvedUri,n),t)return this.playlistRequestError(this.request,e,i);this.trigger({type:"playlistrequestcomplete",metadata:r}),this.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")}}))}pause(){this.mediaUpdateTimeout&&(tp.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&&(tp.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=tp.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&&(tp.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=tp.setTimeout((()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)}),e))}
vendor: 1,088 bytes, line 35
35start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=tp.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:BE({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=eE(this.src,i),this.trigger({type:"playlistparsestart",metadata:e});const n=this.parseManifest_({manifestString:i.responseText,url:this.src});e.parsedPlaylist=WE(n.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(n)}))}
vendor: 1,531 bytes, line 35
35srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,RE(this.main,this.srcUri()),e.playlists.forEach((e=>{e.segments=qE(e),e.segments.forEach((t=>{$E(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||tp.location.href;this.main=((e,t)=>{const i=PE(0,t),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:tp.location.href,resolvedUri:tp.location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return n.playlists[i]=n.playlists[0],n.playlists[t]=n.playlists[0],n})(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const i=this.main,n=e.ID;let s=i.playlists.length;for(;s--;){const r=i.playlists[s];if(r.attributes["PATHWAY-ID"]===n){const o=r.resolvedUri,a=r.id;if(t){const t=this.createCloneURI_(r.resolvedUri,e),o=PE(n,t),a=this.createCloneAttributes_(n,r.attributes),l=this.createClonePlaylist_(r,o,e,a);i.playlists[s]=l,i.playlists[o]=l,i.playlists[t]=l}else i.playlists.splice(s,1);delete i.playlists[a],delete i.playlists[o]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const i=this.main,n=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((e=>{if(i.mediaGroups[e]&&i.mediaGroups[e][n])for(const t in i.mediaGroups[e])if(t===n){for(const n in i.mediaGroups[e][t]){i.mediaGroups[e][t][n].playlists.forEac
vendor: 4,383 bytes, line 35
35h(((e,t)=>{const n=i.playlists[e.id],s=n.id,r=n.resolvedUri;delete i.playlists[s],delete i.playlists[r]}))}delete i.mediaGroups[e][t]}})),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const i=this.main,n=i.playlists.length,s=this.createCloneURI_(t.resolvedUri,e),r=PE(e.ID,s),o=this.createCloneAttributes_(e.ID,t.attributes),a=this.createClonePlaylist_(t,r,e,o);i.playlists[n]=a,i.playlists[r]=a,i.playlists[s]=a,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,i=e["BASE-ID"],n=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((s=>{if(n.mediaGroups[s]&&!n.mediaGroups[s][t])for(const r in n.mediaGroups[s])if(r===i){n.mediaGroups[s][t]={};for(const i in n.mediaGroups[s][r]){const o=n.mediaGroups[s][r][i];n.mediaGroups[s][t][i]=Op({},o);const a=n.mediaGroups[s][t][i],l=this.createCloneURI_(o.resolvedUri,e);a.resolvedUri=l,a.uri=l,a.playlists=[],o.playlists.forEach(((r,o)=>{const l=n.playlists[r.id],c=DE(s,t,i),u=PE(t,c);if(l&&!n.playlists[u]){const t=this.createClonePlaylist_(l,u,e),i=t.resolvedUri;n.playlists[u]=t,n.playlists[i]=t}a.playlists[o]=this.createClonePlaylist_(r,u,e)}))}}}))}createClonePlaylist_(e,t,i,n){const s=this.createCloneURI_(e.resolvedUri,i),r={resolvedUri:s,uri:s,id:t};return e.segments&&(r.segments=[]),n&&(r.attributes=n),iE(e,r)}createCloneURI_(e,t){const i=new URL(e);i.hostname=t["URI-REPLACEMENT"].HOST;const n=t["URI-REPLACEMENT"].PARAMS;for(const e of Object.keys(n))i.searchParams.set(e,n[e]);return i.href}createCloneAttributes_(e,t){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((n=>{t[n]&&(i[n]=e)})),i}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const n=e.contentProtection[i].attributes.keyId;n&&t.add(n.toLowerCase())}return t}}}const XE=function(e,t,i,n){const s="arraybuffer"===e.responseType?e.response:e.responseText;!t&&s&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=s.byteLength||s.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&&(s||e.responseText)))),n(t,e)},KE=function(){const e=function e(t,i){t=iE({timeout:45e3},t);const n=e.beforeRequest||XS.Vhs.xhr.beforeRequest,s=e._requestCallbackSet||XS.Vhs.xhr._requestCallbackSet||new Set,r=e._responseCallbackSet||XS.Vhs.xhr._responseCallbackSet;n&&"function"==typeof n&&(XS.log.warn("beforeRequest is deprecated, use onRequest instead."),s.add(n));const o=!0===XS.Vhs.xhr.original?XS.xhr:XS.Vhs.xhr,a=((e,t)=>{if(!e||!e.size)return;let i=t;return e.forEach((e=>{i=e(i)})),i})(s,t);s.delete(n);const l=o(a||t,(function(e,t){return((e,t,i,n)=>{e&&e.size&&e.forEach((e=>{e(t,i,n)}))})(r,l,e,t),XE(l,e,t,i)})),c=l.abort;return l.abort=function(){return l.aborted=!0,c.apply(l,arguments)},l.uri=t.uri,l.requestType=t.requestType,l.requestTime=Date.now(),l};return e.original=!0,e},YE=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?tp.BigInt(e.offset)+tp.BigInt(e.length)-tp.BigInt(1):e.offset+e.length-1,"bytes="+i+"-"+t}(e.byterange)),t},QE=function(e,t){return e.start(t)+"-"+e.end(t)},JE=function(e,t){const i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},ZE=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},eC=function(e){const t={};return Object.keys(e).forEach((i=>{const n=e[i];Jf(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n})),t},tC=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},iC=function(e){return e.resolvedUri},nC=e=>{const t=Array.prototype.slice.call(e),i=16;let n,s,r="";for(let e=0;e<t.length/i;e++)n=t.slice(e*i,e*i+i).map(JE).join(""),s=t.slice(e*i,e*i+i).map(ZE).join(""),r+=n+" "+s+"\n";return r};var sC=Object.freeze({__proto__:null,createTransferableMessage:eC,initSegmentId:tC,segmentKeyId:iC,hexDump:nC,tagDump:({bytes:e})=>nC(e),textRanges:e=>{let t,i="";for(t=0;t<e.length;t++)i+=QE(e,t)+" ";return i}});const rC=({playlist:e,time:t,callback:i})=>{if(!i)throw new Error("getProgramTime: callback must be provided");
vendor: 11,857 bytes, line 35
35if(!e||void 0===t)return i({message:"getProgramTime: playlist and time must be provided"});const n=((e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let i,n=0;for(let s=0;s<t.segments.length&&(i=t.segments[s],n=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration,!(e<=n));s++);const s=t.segments[t.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>n){if(e>n+.25*s.duration)return null;i=s}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}})(t,e);if(!n)return i({message:"valid programTime was not found"});if("estimate"===n.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:n.estimatedStart});const s={mediaSeconds:t},r=((e,t)=>{if(!t.dateTimeObject)return null;const i=t.videoTimingInfo.transmuxerPrependedSeconds,n=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*n)})(t,n.segment);return r&&(s.programDateTime=r.toISOString()),i(null,s)},oC=({programTime:e,playlist:t,retryCount:i=2,seekTo:n,pauseAfterSeek:s=!0,tech:r,callback:o})=>{if(!o)throw new Error("seekToProgramTime: callback must be provided");if(void 0===e||!t||!n)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 n=t.segments[0];if(i<new Date(n.dateTimeObject))return null;for(let e=0;e<t.segments.length-1&&(n=t.segments[e],!(i<new Date(t.segments[e+1].dateTimeObject)));e++);const s=t.segments[t.segments.length-1],r=s.dateTimeObject,o=s.videoTimingInfo?(a=s.videoTimingInfo).transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds:s.duration+.25*s.duration;var a;return i>new Date(r.getTime()+1e3*o)?null:(i>new Date(r)&&(n=s),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:LE.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})})(e,t);if(!a)return o({message:`${e} was not found in the stream`});const l=a.segment,c=((e,t)=>{let i,n;try{i=new Date(e),n=new Date(t)}catch(e){}const s=i.getTime();return(n.getTime()-s)/1e3})(l.dateTimeObject,e);if("estimate"===a.type)return 0===i?o({message:`${e} is not buffered yet. Try again`}):(n(a.estimatedStart+c),void r.one("seeked",(()=>{oC({programTime:e,playlist:t,retryCount:i-1,seekTo:n,pauseAfterSeek:s,tech:r,callback:o})})));const u=l.start+c;r.one("seeked",(()=>o(null,r.currentTime()))),s&&r.pause(),n(u)},aC=(e,t)=>{if(4===e.readyState)return t()},lC=(e,t,i,n)=>{let s,r=[],o=!1;const a=function(e,t,n,s){return t.abort(),o=!0,i(e,t,n,s)},l=function(e,t){if(o)return;if(e)return e.metadata=BE({requestType:n,request:t,error:e}),a(e,t,"",r);const i=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})),t.length<=1)return Zf(t[0]);var n=t.reduce((function(e,t,i){return e+(t.byteLength||t.length)}),0),s=new Uint8Array(n),r=0;return t.forEach((function(e){e=Zf(e),s.set(e,r),r+=e.byteLength})),s}(r,sm(i,!0)),s=s||l_(r),r.length<10||s&&r.length<s+2)return aC(t,(()=>a(e,t,"",r)));const l=L_(r);return"ts"===l&&r.length<188||!l&&r.length<376?aC(t,(()=>a(e,t,"",r))):a(null,t,l,r)},c={uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function({total:t,loaded:i}){return XE(e,null,{statusCode:e.status},l)}))}},u=t(c,(function(e,t){return XE(u,e,t,l)}));return u},{EventTarget:cC}=XS,uC=function(e,t){if(!HE(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 n=e.segments[i],s=t.segments[i];if(n.uri!==s.uri)return!1;if(!n.byterange&&!s.byterange)continue;const r=n.byterange,o=s.byterange;if(r&&!o||!r&&o)return!1;if(r.offset!==o.offset||r.length!==o.length)return!1}return!0},hC=(e,t,i,n)=>`placeholder-uri-${e}-${t}-${n.attributes.NAME||i}`,dC=(e,t,i)=>{let n=!0,s=iE(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=ky(r.sidx);i&&i[e]&&i[e].sidx&&vy(r,i[e].sidx,r.sidx.resolvedUri)}const o=VE(s,r,uC);o&&(s=o,n=!1)}return ME(t,((e,t,i,r)=>{if(e.playlists&&e.playlists.length){const o=e.playlists[0].id,a=VE(s,e.playlists[0],uC);a&&(s=a,r in s.mediaGroups[t][i]||(s.mediaGroups[t][i][r]=e),s.mediaGroups[t][i][r].playlists[0]=s.playlists[o],n=!1)}})),((e,t)=>{ME(e,((i,n,s,r)=>{t.mediaGroups[n][s]&&r in t.mediaGroups[n][s]||delete e.mediaGroups[n][s][r]}))})(s,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(n=!1),n?null:s},pC=(e,t)=>(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,fC=(e,t)=>{const i={};for(const n in e){const s=e[n].sidx;if(s){const e=ky(s);if(!t[e])break;const n=t[e].sidxInfo;pC(n,s)&&(i[e]=t[e])}}return i};class mC extends cC{constructor(e,t,i={},n){super(),this.mainPlaylistLoader_=n||this,n||(this.isMain_=!0);const{withCredentials:s=!1}=i;if(this.vhs_=t,this.withCredentials=s,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_=tE("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 n=e.sidx&&ky(e.sidx);if(!e.sidx||!n||this.mainPlaylistLoader_.sidxMapping_[n])return void(this.mediaRequest_=tp.setTimeout((()=>i(!1)),0));const s=eE(e.sidx.resolvedUri),r=(s,r)=>{if(this.requestErrored_(s,r,t))return;const o=this.mainPlaylistLoader_.sidxMapping_,{requestType:a}=r;let l;try{l=o_(Zf(r.response).subarray(8))}catch(e){return e.metadata=BE({requestType:a,request:r,parseFailure:!0}),void this.requestErrored_(e,r,t)}return o[n]={sidxInfo:e.sidx,sidx:l},vy(e,l,e.sidx.resolvedUri),i(!0)};this.request=lC(s,this.vhs_.xhr,((t,i,n,o)=>{if(t)return r(t,i);if(!n||"mp4"!==n){const t=n||"unknown";return r({status:i.status,message:`Unsupported ${t} container type for sidx segment at URL: ${s}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},i)}const{offset:a,length:l}=e.sidx.byterange;if(o.length>=l+a)return r(t,{response:o.subarray(a,a+l),status:i.status,uri:i.uri});this.request=this.vhs_.xhr({uri:s,responseType:"arraybuffer",requestType:"dash-sidx",headers:YE({byterange:e.sidx.byterange})},r)}),"dash-sidx")}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},tp.clearTimeout(this.minimumUpdatePeriodTimeout_),tp.clearTimeout(this.mediaRequest_),tp.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(),tp.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(tp.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){tp.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const e=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=tp.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_=tp.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,n)=>{if(i){const{requestType:e}=n;i.metadata=BE({requestType:e,request:n,error:i})}if(this.requestErrored_(i,n))return void("HAVE_NOTHING"===this.state&&(this.started=!1));this.trigger({type:"manifestrequestcomplete",metadata:t});const s=n.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?this.mainLoaded_=Date.parse(n.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=eE(this.mainPlaylistLoader_.srcUrl,n),s?(this.handleMain_(),void this.syncClientServerClock_((()=>e(n,s)))):e(n,s)}))}syncClientServerClock_(e){const t=n_(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:ZS(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"}
vendor: 1,673 bytes, line 35
35,((i,n)=>{if(!this.request)return;if(i){const{requestType:t}=n;return this.error.metadata=BE({requestType:t,request:n,error:i}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let s;s="HEAD"===t.method?n.responseHeaders&&n.responseHeaders.date?Date.parse(n.responseHeaders.date):this.mainLoaded_:Date.parse(n.responseText),this.mainPlaylistLoader_.clientOffset_=s-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:n,previousManifest:s})=>{const r=i_(e,{manifestUri:t,clientOffset:i,sidxMapping:n,previousManifest:s});return RE(r,t,hC),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:XS.Error.StreamingDashManifestParserError,error:e},this.trigger("error")}e&&(i=dC(e,i,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=i||e;const n=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(n&&n!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=n),(!e||i&&i.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(i),i){const{duration:e,endList:n}=i,s=[];
vendor: 4,976 bytes, line 35
35i.playlists.forEach((e=>{s.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})}));const r={duration:e,isLive:!n,renditions:s};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_&&(tp.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_=tp.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=fC(e.playlists,t);return ME(e,((e,n,s,r)=>{if(e.playlists&&e.playlists.length){const n=e.playlists;i=iE(i,fC(n,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=tp.setTimeout((()=>{this.trigger("mediaupdatetimeout"),e()}),zE(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 n=e.contentProtection[i].attributes["cenc:default_KID"];n&&t.add(n.replace(/-/g,"").toLowerCase())}return t}}}var gC={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 yC=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},_C=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=yC(new Worker(t));i.objURL=t;const n=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),n.call(this)},i}},vC=function(e){return`var browserWorkerPolyFill = ${yC.toString()};\nbrowserWorkerPolyFill(self);\n`+e},bC=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},TC=vC(bC((function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"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 n;return!!e[t]&&(n=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(n,1),n>-1)},this.trigger=function(t){var i,n,s,r;if(i=e[t])if(2===arguments.length)for(s=i.length,n=0;n<s;++n)i[n].call(this,arguments[1]);else{for(r=[],n=arguments.length,n=1;n<arguments.length;++n)r.push(arguments[n]);for(s=i.length,n=0;n<s;++n)i[n].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 i,n,s,r,o,a,l,c,u,h,d,p,f,m,g,y,_,v,b,T,w,S,E,C,k,x,I,A,L,O,P,D,M,N,R,F,B,U,j,$,q=t,H=Math.pow(2,32),V={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?
vendor: 4,191 bytes, line 35
35Number(t):t:i.getUint32(0)*H+i.getUint32(4)},MAX_UINT32:H},z=V.MAX_UINT32;!function(){var e;if(S={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 S)S.hasOwnProperty(e)&&(S[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),k=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),C=new Uint8Array([0,0,0,1]),x=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]),I=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:x,audio:I},P=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,L=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),i=function(e){var t,i,n=[],s=0;for(t=1;t<arguments.length;t++)n.push(arguments[t]);for(t=n.length;t--;)s+=n[t].byteLength;for(i=new Uint8Array(s+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(e,4),t=0,s=8;t<n.length;t++)i.set(n[t],s),s+=n[t].byteLength;return i},n=function(){return i(S.dinf,i(S.dref,P))},s=function(e){return i(S.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]))},g=function(e){return i(S.hdlr,A[e])},m=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),i(S.mdhd,t)},f=function(e){return i(S.mdia,m(e),g(e.type),a(e))},o=function(e){return i(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},a=function(e){return i(S.minf,"video"===e.type?i(S.vmhd,L):i(S.smhd,O),n(),_(e))},l=function(e,t){for(var n=[],s=t.length;s--;)n[s]=b(t[s]);return i.apply(null,[S.moof,o(e)].concat(n))},c=function(e){for(var t=e.length,n=[];t--;)n[t]=d(e[t]);return i.apply(null,[S.moov,h(4294967295)].concat(n).concat(u(e)))},u=function(e){for(var t=e.length,n=[];t--;)n[t]=T(e[t]);return i.apply(null,[S.mvex].concat(n))},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 i(S.mvhd,t)},y=function(e){var t,n,s=e.samples||[],r=new Uint8Array(4+s.length);for(n=0;n<s.length;n++)t=s[n].flags,r[n+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return i(S.sdtp,r)},_=function(e){return i(S.stbl,v(e),i(S.stts,R),i(S.stsc,M),i(S.stsz,N),i(S.stco,D))},v=function(e){return i(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?F(e):B(e))},F=function(e){var t,n,s=e.sps||[],r=e.pps||[],o=[],a=[];for(t=0;t<s.length;t++)o.push((65280&s[t].byteLength)>>>8),o.push(255&s[t].byteLength),o=o.concat(Array.prototype.slice.call(s[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(n=[S.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]),i(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([s.length],o,[r.length],a))),i(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.s
vendor: 6,796 bytes, line 35
35arRatio[0],c=e.sarRatio[1];n.push(i(S.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return i.apply(null,n)},B=function(e){return i(S.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]),s(e))},p=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 i(S.tkhd,t)},b=function(e){var t,n,s,r,o,a;return t=i(S.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/z),a=Math.floor(e.baseMediaDecodeTime%z),n=i(S.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?(s=w(e,92),i(S.traf,t,n,s)):(r=y(e),s=w(e,r.length+92),i(S.traf,t,n,s,r))},d=function(e){return e.duration=e.duration||4294967295,i(S.trak,p(e),f(e))},T=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),i(S.trex,t)},$=function(e,t){var i=0,n=0,s=0,r=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(s=4),void 0!==e[0].compositionTimeOffset&&(r=8)),[0,0,i|n|s|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]},j=function(e,t){var n,s,r,o,a,l;for(t+=20+16*(o=e.samples||[]).length,r=$(o,t),(s=new Uint8Array(r.length+16*o.length)).set(r),n=r.length,l=0;l<o.length;l++)a=o[l],s[n++]=(4278190080&a.duration)>>>24,s[n++]=(16711680&a.duration)>>>16,s[n++]=(65280&a.duration)>>>8,s[n++]=255&a.duration,s[n++]=(4278190080&a.size)>>>24,s[n++]=(16711680&a.size)>>>16,s[n++]=(65280&a.size)>>>8,s[n++]=255&a.size,s[n++]=a.flags.isLeading<<2|a.flags.dependsOn,s[n++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,s[n++]=61440&a.flags.degradationPriority,s[n++]=15&a.flags.degradationPriority,s[n++]=(4278190080&a.compositionTimeOffset)>>>24,s[n++]=(16711680&a.compositionTimeOffset)>>>16,s[n++]=(65280&a.compositionTimeOffset)>>>8,s[n++]=255&a.compositionTimeOffset;return i(S.trun,s)},U=function(e,t){var n,s,r,o,a,l;for(t+=20+8*(o=e.samples||[]).length,r=$(o,t),(n=new Uint8Array(r.length+8*o.length)).set(r),s=r.length,l=0;l<o.length;l++)a=o[l],n[s++]=(4278190080&a.duration)>>>24,n[s++]=(16711680&a.duration)>>>16,n[s++]=(65280&a.duration)>>>8,n[s++]=255&a.duration,n[s++]=(4278190080&a.size)>>>24,n[s++]=(16711680&a.size)>>>16,n[s++]=(65280&a.size)>>>8,n[s++]=255&a.size;return i(S.trun,n)},w=function(e,t){return"audio"===e.type?U(e,t):j(e,t)};var W,G,X,K,Y,Q,J,Z,ee={ftyp:r=function(){return i(S.ftyp,E,C,E,k)},mdat:function(e){return i(S.mdat,e)},moof:l,moov:c,initSegment:function(e){var t,i=r(),n=c(e);return(t=new Uint8Array(i.byteLength+n.byteLength)).set(i),t.set(n,i.byteLength),t}},te=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},ie={groupNalsIntoFrames:function(e){var t,i,n=[],s=[];for(s.byteLength=0,s.nalCount=0,s.duration=0,n.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(n.length&&(n.duration=i.dts-n.dts,s.byteLength+=n.byteLength,s.nalCount+=n.length,s.duration+=n.duration,s.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return s.length&&(!n.duration||n.duration<=0)&&(n.duration=s[s.length-1].duration),s.byteLength+=n.byteLength,s.nalCount+=n.length,s.duration+=n.duration,s.push(n),s},groupFramesIntoGops:function(e){var t,i,n=[],s=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts,s.byteLength=0,s.nalCount=0,s.duration=0,s.pts=e[0].pts,s.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(n.length&&(s.push(n),s.byteLength+=n.byteLength,s.nalCount+=n.nalCount,s.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return s.length&&n.duration<=0&&(n.duration=s[s.length-1].duration),s.byteLength+=n.byteLength,s.nalCount+=n.nalCount,s.duration+=n.duration,s.push(n),s},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,n,s,r,o,a=t||0,l=[];for(i=0;i<e.length;i++)for(r=e[i],n=0;n<r.length;n++)o=r[n],a+=(s=te(o,a)).size,l.push(s);return l},concatenateNalData:function(e){var t,i,n,s,r,o,a=0,l=e.byteLength,c=e.nalCount,u=new Uint8Array(l+4*c),h=new DataView(u.buffer);for(t=0;t<e.length;t++)for(s=e[t],i=0;i<s.length;i++)for(r=s[i],n=0;n<r.length;n++)o=r[n],h.setUint32(a,o.data.byteLength),a+=4,u.set(o.data,a),a+=o.data.byteLength;return u},generateSampleTableForFrame:function(e,t){var i,n=[];return i=te(e,t||0),n.push(i),n},concatenateNalDataForFrame:function(e){var t,i,n=0,s=e.byteLength,r=e.length,o=new Uint8Array(s+4*r),a=new DataView(o.buffer);for(t=0;t<e.length;t++)i=e[t],a.setUint32(n,i.data.byteLength),n+=4,o.set(i.data,n),n+=i.data.byteLength;return o}},ne=[33,16,5,32,164,27],se=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],re=function(e){for(var t=[];e--;)t.push(0);return t},oe=9e4;Q=function(e,t){return G(Y(e,t))},J=function(e,t){return X(K(e),t)},Z=function(e,t,i){return K(i?e:e-t)};var ae={ONE_SECOND_IN_TS:oe,secondsToVideoTs:G=function(e){return e*oe},secondsToAudioTs:X=function(e,t){return e*t},videoTsToSeconds:K=function(e){return e/oe},audioTsToSeconds:Y=function(e,t){return e/t},audioTsToVideoTs:Q,videoTsToAudioTs:J,metadataTsToSeconds:Z},le=function(){if(!W){var e={96e3:[ne,[227,64],re(154),[56]],88200:[ne,[231],re(170),[56]],64e3:[ne,[248,192],re(240),[56]],48e3:[ne,[255,192],re(268),[55,148,128],re(54),[112]],44100:[ne,[25
vendor: 4,610 bytes, line 35
355,192],re(268),[55,163,128],re(84),[112]],32e3:[ne,[255,192],re(268),[55,234],re(226),[112]],24e3:[ne,[255,192],re(268),[55,255,128],re(268),[111,112],re(126),[224]],16e3:[ne,[255,192],re(268),[55,255,128],re(268),[111,255],re(269),[223,108],re(195),[1,192]],12e3:[se,re(268),[3,127,248],re(268),[6,255,240],re(268),[13,255,224],re(268),[27,253,128],re(259),[56]],11025:[se,re(268),[3,127,248],re(268),[6,255,240],re(268),[13,255,224],re(268),[27,255,192],re(268),[55,175,128],re(108),[112]],8e3:[se,re(268),[3,121,16],re(47),[7]]};t=e,W=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 W},ce=ae,ue={prefixWithSilence:function(e,t,i,n){var s,r,o,a,l,c=0,u=0,h=0;if(t.length&&(s=ce.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),r=Math.ceil(ce.ONE_SECOND_IN_TS/(e.samplerate/1024)),i&&n&&(c=s-Math.max(i,n),h=(u=Math.floor(c/r))*r),!(u<1||h>ce.ONE_SECOND_IN_TS/2))){for((o=le()[e.samplerate])||(o=t[0].data),a=0;a<u;a++)l=t[0],t.splice(0,0,{data:o,dts:l.dts-r,pts:l.pts-r});return e.baseMediaDecodeTime-=Math.floor(ce.videoTsToAudioTs(h,e.samplerate)),h}},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,n=[];for(t=0;t<e.length;t++)i=e[t],n.push({size:i.data.byteLength,duration:1024});return n},concatenateFrameData:function(e){var t,i,n=0,s=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],s.set(i.data,n),n+=i.data.byteLength;return s}},he=ae.ONE_SECOND_IN_TS,de={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var i,n=e.minSegmentDts;return t||(n-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===e.type&&(i*=e.samplerate/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))}},pe={parseSei:function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,s=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)s+=255,t++;if(s+=e[t++],!i.payload&&4===n){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=n,i.payloadSize=s,i.payload=e.subarray(t,t+s);break}i.payload=void 0}t+=s,n=0,s=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,n,s,r,o=[];if(!(64&t[0]))return o;for(n=31&t[0],i=0;i<n;i++)r={type:3&t[(s=3*i)+2],pts:e},4&t[s+2]&&(r.ccData=t[s+3]<<8|t[s+4],o.push(r));return o},discardEmulationPreventionBytes:function(e){for(var t,i,n=e.byteLength,s=[],r=1;r<n-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(s.push(r+2),r+=2):r++;if(0===s.length)return e;t=n-s.length,i=new Uint8Array(t);var o=0;for(r=0;r<t;o++,r++)o===s[0]&&(o++,s.shift()),i[r]=e[o];return i},USER_DATA_REGISTERED_ITU_T_T35:4},fe=q,me=pe,ge=function(e){e=e||{},ge.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new ke(0,0),new ke(0,1),new ke(1,0),new ke(1,1)],this.parse708captions_&&(this.cc708Stream_=new Te({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")))};ge.prototype=new fe,ge.prototype.push=function(e){var t,i,n;
vendor: 4,453 bytes, line 35
35if("sei_rbsp"===e.nalUnitType&&(t=me.parseSei(e.escapedRBSP)).payload&&t.payloadType===me.USER_DATA_REGISTERED_ITU_T_T35&&(i=me.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));n=me.parseCaptionPackets(e.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},ge.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},ge.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)},ge.prototype.flush=function(){return this.flushStream("flush")},ge.prototype.partialFlush=function(){return this.flushStream("partialFlush")},ge.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},ge.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)},ge.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},ge.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},ge.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},ge.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},_e=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 be=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)};be.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)},be.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},be.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 Te=function(e){e=e||{},Te.prototype.init.call(this);var t,i=this,n=e.captionServices||{},s={};
vendor: 2,619 bytes, line 35
35Object.keys(n).forEach((e=>{t=n[e],/^SERVICE/.test(e)&&(s[e]=t.encoding)})),this.serviceEncodings=s,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))}};Te.prototype=new fe,Te.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Te.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,n=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(n)},Te.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,n=null,s=0,r=t[s++];for(e.seq=r>>6,e.sizeCode=63&r;s<t.length;s++)n=31&(r=t[s++]),7===(i=r>>5)&&n>0&&(i=r=t[s++]),this.pushServiceBlock(i,s,n),n>0&&(s+=n-1)},Te.prototype.pushServiceBlock=function(e,t,i){var n,s=t,r=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,s));s<t+i&&s<r.length;s++)n=r[s],_e(n)?s=this.handleText(s,o):24===n?s=this.multiByteCharacter(s,o):16===n?s=this.extendedCommands(s,o):128<=n&&n<=135?s=this.setCurrentWindow(s,o):152<=n&&n<=159?s=this.defineWindow(s,o):136===n?s=this.clearWindows(s,o):140===n?s=this.deleteWindows(s,o):137===n?s=this.displayWindows(s,o):138===n?s=this.hideWindows(s,o):139===n?s=this.toggleWindows(s,o):151===n?s=this.setWindowAttributes(s,o):144===n?s=this.setPenAttributes(s,o):145===n?s=this.setPenColor(s,o):146===n?s=this.setPenLocation(s,o):143===n?o=this.reset(s,o):8===n?o.currentWindow.backspace():12===n?o.currentWindow.clearText():13===n?o.currentWindow.pendingNewLine=!0:14===n?o.currentWindow.clearText():141===n&&s++},Te.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data[++e];return _e(i)&&(e=this.handleText(e,t,{isExtended:!0})),e},Te.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Te.prototype.initService=function(e,t){var i,n,s=this;return(i="SERVICE"+e)in this.serviceEncodings&&(n=this.serviceEncodings[i]),this.services[e]=new be(e,n,s),this.services[e].init(this.getPts(t),(function(t){s.flushDisplayed(t,s.services[e])})),this.services[e]},Te.prototype.handleText=function(e,t,i){var n,s,r,o,a=i&&i.isExtended,l=i&&i.isMultiByte,c=this.current708Packet.data,u=a?4096:0,h=c[e],d=c[e+1],p=t.currentWindow;if(l?(s=[h,d],e++):s=[h],t.textDecoder_&&!a)n=t.textDecoder_.decode(new Uint8Array(s));else if(l){const e=s.map((e=>("0"+(255&e).toString(16)).slice(-2))).join("");n=String.fromCharCode(parseInt(e,16))}else o=ye[r=u|h]||r,n=4096&r&&r===o?"":String.fromCharCode(o
vendor: 6,789 bytes, line 35
35);return p.pendingNewLine&&!p.isEmpty()&&p.newLine(this.getPts(e)),p.pendingNewLine=!1,p.addText(n),e},Te.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data,n=i[e+1],s=i[e+2];return _e(n)&&_e(s)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Te.prototype.setCurrentWindow=function(e,t){var i=7&this.current708Packet.data[e];return t.setCurrentWindow(i),e},Te.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,n=i[e],s=7&n;t.setCurrentWindow(s);var r=t.currentWindow;return n=i[++e],r.visible=(32&n)>>5,r.rowLock=(16&n)>>4,r.columnLock=(8&n)>>3,r.priority=7&n,n=i[++e],r.relativePositioning=(128&n)>>7,r.anchorVertical=127&n,n=i[++e],r.anchorHorizontal=n,n=i[++e],r.anchorPoint=(240&n)>>4,r.rowCount=15&n,n=i[++e],r.columnCount=63&n,n=i[++e],r.windowStyle=(56&n)>>3,r.penStyle=7&n,r.virtualRowCount=r.rowCount+1,e},Te.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],s=t.currentWindow.winAttr;return n=i[++e],s.fillOpacity=(192&n)>>6,s.fillRed=(48&n)>>4,s.fillGreen=(12&n)>>2,s.fillBlue=3&n,n=i[++e],s.borderType=(192&n)>>6,s.borderRed=(48&n)>>4,s.borderGreen=(12&n)>>2,s.borderBlue=3&n,n=i[++e],s.borderType+=(128&n)>>5,s.wordWrap=(64&n)>>6,s.printDirection=(48&n)>>4,s.scrollDirection=(12&n)>>2,s.justify=3&n,n=i[++e],s.effectSpeed=(240&n)>>4,s.effectDirection=(12&n)>>2,s.displayEffect=3&n,e},Te.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},Te.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)},Te.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var s=0;s<8;s++)i&1<<s&&(t.windows[s].visible=1);return e},Te.prototype.hideWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var s=0;s<8;s++)i&1<<s&&(t.windows[s].visible=0);return e},Te.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var s=0;s<8;s++)i&1<<s&&(t.windows[s].visible^=1);return e},Te.prototype.clearWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var s=0;s<8;s++)i&1<<s&&t.windows[s].clearText();return e},Te.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var s=0;s<8;s++)i&1<<s&&t.windows[s].reset();return e},Te.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],s=t.currentWindow.penAttr;return n=i[++e],s.textTag=(240&n)>>4,s.offset=(12&n)>>2,s.penSize=3&n,n=i[++e],s.italics=(128&n)>>7,s.underline=(64&n)>>6,s.edgeType=(56&n)>>3,s.fontStyle=7&n,e},Te.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],s=t.currentWindow.penColor;return n=i[++e],s.fgOpacity=(192&n)>>6,s.fgRed=(48&n)>>4,s.fgGreen=(12&n)>>2,s.fgBlue=3&n,n=i[++e],s.bgOpacity=(192&n)>>6,s.bgRed=(48&n)>>4,s.bgGreen=(12&n)>>2,s.bgBlue=3&n,n=i[++e],s.edgeRed=(48&n)>>4,s.edgeGreen=(12&n)>>2,s.edgeBlue=3&n,e},Te.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],s=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],s.row=15&n,n=i[++e],s.column=63&n,e},Te.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},Se=function(e){return null===e?"":(e=we[e]||e,String.fromCharCode(e))},Ee=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ce=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},ke=function(e,t){ke.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,n,s,r;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,s=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_=Ce();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ce();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ce()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,s))r=Se((n=(3&n)<<8)|s),this[this.mode_](e.pts,r),this.column_++;else if(this.isExtCharacter(n,s))"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=Se((n=(3&n)<<8)|s),this[this.mode_](e.pts,r),this.column_++;else if(this.isMidRowCode(n,s))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~s||this.addFormatting(e.pts,["i"]),1&~s||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,s)){const e=3&s;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(n,s)){var
vendor: 3,516 bytes, line 35
35o=Ee.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&s&&-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(s)&&(14&~s||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(n)&&(0===s&&(s=null),r=Se(n),r+=Se(s),this[this.mode_](e.pts,r),this.column_+=r.length)}else this.lastControlCode_=null}};ke.prototype=new fe,ke.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,n)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){t(n)}e.text.length&&i.push({text:e.text,line:n+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(n)})),i.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:i,stream:this.name_})},ke.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ce(),this.nonDisplayed_=Ce(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},ke.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_},ke.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},ke.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},ke.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},ke.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},ke.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},ke.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},ke.prototype.isNormalChar=function(e){return e>=32&&e<=127},ke.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ce(),this.displayed_=Ce()),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},ke.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)},ke.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)}},ke.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_].text;i+=t,this.nonDisplayed_[this.row_].text=i},ke.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i},ke.prototype.shiftRowsUp_=function(){var e;
vendor: 6,743 bytes, line 35
35for(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}},ke.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i};var xe={CaptionStream:ge,Cea608Stream:ke,Cea708Stream:Te},Ie={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ae=q,Le="shared",Oe=function(e,t){var i=1;for(e>t&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},Pe=function(e){var t,i;Pe.prototype.init.call(this),this.type_=e||Le,this.push=function(e){"metadata"!==e.type?this.type_!==Le&&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")}};Pe.prototype=new Ae;var De,Me={TimestampRolloverStream:Pe,handleRollover:Oe},Ne=(e,t,i)=>{if(!e)return-1;for(var n=i;n<e.length;n++)if(e[n]===t)return n;return-1},Re=Ne,Fe=3,Be=function(e,t,i){var n,s="";for(n=t;n<i;n++)s+="%"+("00"+e[n].toString(16)).slice(-2);return s},Ue=function(e,t,i){return decodeURIComponent(Be(e,t,i))},je=function(e,t,i){return unescape(Be(e,t,i))},$e=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},qe={APIC:function(e){var t,i,n=1;e.data[0]===Fe&&((t=Re(e.data,0,n))<0||(e.mimeType=je(e.data,n,t),n=t+1,e.pictureType=e.data[n],n++,(i=Re(e.data,0,n))<0||(e.description=Ue(e.data,n,i),n=i+1,"--\x3e"===e.mimeType?e.url=je(e.data,n,e.data.length):e.pictureData=e.data.subarray(n,e.data.length))))},"T*":function(e){e.data[0]===Fe&&(e.value=Ue(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=Ue(e.data,1,t),e.value=Ue(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=je(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=Ue(e.data,1,t),e.url=je(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=je(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},He={parseId3Frames:function(e){var t,i=10,n=0,s=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){n=$e(e.subarray(6,10)),n+=10,64&e[5]&&(i+=4,i+=$e(e.subarray(10,14)),n-=$e(e.subarray(16,20)));do{if((t=$e(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,qe[r.id]?qe[r.id](r):"T"===r.id[0]?qe["T*"](r):"W"===r.id[0]&&qe["W*"](r),s.push(r),i+=10,i+=t}while(i<n);return s}},parseSyncSafeInteger:$e,frameParsers:qe},Ve=q,ze=Ie,We=He;De=function(e){var t,i={descriptor:e&&e.descriptor},n=0,s=[],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,s.length=0),0===s.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(s.push(e),r+=e.data.byteLength,1===s.length&&(n=We.parseSyncSafeInteger(e.data.subarray(6,10)),n+=10),!(r<n)){for(t={data:new Uint8Array(n),frames:[],pts:s[0].pts,dts:s[0].dts},l=0;l<n;)t.data.set(s[0].data.subarray(0,n-l),l),l+=s[0].data.byteLength,r-=s[0].data.byteLength,s.shift();i=10,64&t.data[5]&&(i+=4,i+=We.parseSyncSafeInteger(t.data.subarray(10,14)),n-=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 c=a.data,u=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;u*=4,u+=3&c[7],a.timeStamp=u,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<n);this.trigger("data",t)}}},De.prototype=new Ve;var Ge,Xe,Ke,Ye=De,Qe=q,Je=xe,Ze=Ie,et=Me.TimestampRolloverStream,tt=188;(Ge=function(){var e=new Uint8Array(tt),t=0;Ge.prototype.init.call(this),this.push=function(i){var n,s=0,r=tt;for(t?((n=new Uint8Array(i.byteLength+t)).set(e.subarray(0,t)),n.set(i,t),t=0):n=i;r<n.byteLength;)71!==n[s]||71!==n[r]?(s++,r++):(this.trigger("data",n.subarray(s,r)),s+=tt,r+=tt);s<n.byteLength&&(e.set(n.subarray(s),0),t=n.byteLength-s)},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,n;Xe.prototype.init.call(this),n=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,n){var s=0;n.payloadUnitStartIndicator&&(s+=e[s]+1),"pat"===n.type?t(e.subarray(s),n):i(e.subarray(s),n)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],n.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=n.pmtPid},i=function(e,t){var i,s;if(1&e[5]){for(n.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,s=12+((15&e[10])<<8|e[11]);s<i;){var r=e[s],o=(31&e[s+1])<<8|e[s+2];r===Ze.H264_STREAM_TYPE&&null===n.programMapTable.video?n.programMapTable.video=o:r===Ze.ADTS_STREAM_TYPE&&null===n.programMapTable.audio?n.programMapTable.audio=o:r===Ze.METADATA_STREAM_TYPE&&(n.programMapTable["timed-metadata"][o]=r),s+=5+((15&e[s+3])<<8|e[s+4])}t.programMapTable=n.programMapTable}},this.push=function(t){var i={},n=4;if(i.payloadUnitStartIndicator=!!(64&t[1]),i.pid=31&t[1],i.pid<<=8,i.pid|=t[2],(48&t[3])>>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
vendor: 3,067 bytes, line 35
35else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=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,n={data:[],size:0},s={data:[],size:0},r={data:[],size:0},o=function(e,i,n){var s,r,o=new Uint8Array(e.size),a={type:i},l=0,c=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,c),c+=r.data.byteLength;!function(e,t){var i;const n=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===n&&(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),s="video"===i||a.packetLength<=e.size,(n||s)&&(e.size=0,e.data.length=0),s&&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=n,t="video";break;case Ze.ADTS_STREAM_TYPE:e=s,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 n={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",n)}})[a.type]()},this.reset=function(){n.size=0,n.data.length=0,s.size=0,s.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(n,"video"),o(s,"audio"),o(r,"timed-metadata")},this.flush=function(){if(!i&&e){var n={type:"metadata",tracks:[]};null!==e.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}i=!1,this.flushStreams_(),this.trigger("done")}},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 nt in Ze)Ze.hasOwnProperty(nt)&&(it[nt]=Ze[nt]);var st,rt=it,ot=q,at=ae.ONE_SECOND_IN_TS,lt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];st=function(e){var t,i=0;st.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts ski
35ping bytes ${e} to ${t} in frame ${i} outside syncword`})},this.push=function(n){var s,r,o,a,l,c=0;if(e||(i=0),"audio"===n.type){var u;for(t&&t.length?(o=t,(t=new Uint8Array(o.byteLength+n.data.byteLength)).set(o),t.set(n.data,o.byteLength)):t=n.data;c+7<t.length;)if(255===t[c]&&240==(246&t[c+1])){if("number"==typeof u&&(this.skipWarn_(u,c),u=null),r=2*(1&~t[c+1]),s=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,l=(a=1024*(1+(3&t[c+6])))*at/lt[(60&t[c+2])>>>2],t.byteLength-c<s)break;this.trigger("data",{pts:n.pts+i*l,dts:n.dts+i*l,sampleCount:a,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:lt[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+r,c+s)}),i++,c+=s}else"number"!=typeof u&&(u=c),c++;"number"==typeof u&&(this.skipWarn_(u,c),u=null),t=t.subarray(c)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},st.prototype=new ot;var ct,ut=st;ct=function(e){var t=e.byteLength,i=0,n=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+n},this.loadWord=function(){var s=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(s,s+o)),i=new DataView(r.buffer).getUint32(0),n=8*o,t-=o},this.skipBits=function(e){var s;n>e?(i<<=e,n-=e):(e-=n,e-=8*(s=Math.floor(e/8)),t-=s,this.loadWord(),i<<=e,n-=e)},this.readBits=function(e){var s=Math.min(n,e),r=i>>>32-s;return(n-=s)>0?i<<=s:t>0&&this.loadWord(),(s=e-s)>0?r<<s|this.readBits(s):r},this.skipLeadingZeros=function(){var e;for(e=0;e<n;++e)if(i&2147483648>>>e)return i<<=e,n-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var ht,dt,pt,ft=q,mt=ct;dt=function(){var e,t,i=0;dt.prototype.init.call(this),this.push=function(n){var s;t?((s=new Uint8Array(t.byteLength+n.data.byteLength)).set(t),s.set(n.data,t.byteLength),t=s):t=n.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")}},dt.prototype=new ft,pt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},ht=function(){var e,t,i,n,s,r,o,a=new dt;ht.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,n=e.dts,a.push(e))},a.on("data",(function(o){var a={trackId:t,pts:i,dts:n,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=s(o.subarray(1));break;case 7:a.nalUnitType="seq_parameter_set_rbsp",a.escapedRBSP=s(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,n=8,s=8;for(i=0;i<e;i++)0!==s&&(s=(n+t.readExpGolomb()+256)%256),n=0===s?n:s},s=function(e){for(var t,i,n=e.byteLength,s=[],r=1;r<n-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(s.push(r+2),r+=2):r++;if(0===s.length)return e;t=n-s.length,i=new Uint8Array(t);var o=0;for(r=0;r<t;o++,r++)o===s[0]&&(o++,s.shift()),i[r]=e[o];return i},r=function(e){var t,i,n,s,r,a,l,c,u,h,d,p,f=0,m=0,g=0,y=0,_=[1,1];if(i=(t=new mt(e)).readUnsignedByte(),s=t.readUnsignedByte(),n=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),pt[i]&&(3===(r=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(d=3!==r?8:12,p=0;p<d;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),c=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(h=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:_=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}_&&(_[0],_[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:s,width:16*(c+1)-2*f-2*m,height:(2-h)*(u+1)*16-2*g-2*y,sarRatio:_}}},ht.prototype=new ft;var gt,yt={H264Stream:ht,NalByteStream:dt},_t=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],vt=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},bt=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1
vendor: 4,592 bytes, line 35
35]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=vt(e,t),bt(e,t))},Tt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},wt=function(e,t,i){return unescape(function(e,t,i){var n,s="";for(n=t;n<i;n++)s+="%"+("00"+e[n].toString(16)).slice(-2);return s}(e,t,i))},St={isLikelyAacData:function(e){var t=bt(e,0);return e.length>=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:vt,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return _t[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i,n;t=10,64&e[5]&&(t+=4,t+=Tt(e.subarray(10,14)));do{if((i=Tt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var s=0;s<n.byteLength;s++)if(0===n[s]){if("com.apple.streaming.transportStreamTimestamp"===wt(n,0,s)){var r=n.subarray(s+1),o=(1&r[3])<<30|r[4]<<22|r[5]<<14|r[6]<<6|r[7]>>>2;return o*=4,o+=3&r[7]}break}}t+=10,t+=i}while(t<e.byteLength);return null}},Et=St;(gt=function(){var e=new Uint8Array,t=0;gt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(i){var n,s,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=Et.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=Et.parseId3TagSize(e,l))>e.length)break;s={type:"timed-metadata",data:e.subarray(l,l+a)},this.trigger("data",s),l+=a}n=e.length-l,e=n>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new q;var Ct,kt,xt,It,At=q,Lt=ee,Ot=ie,Pt=ue,Dt=de,Mt=rt,Nt=ae,Rt=ut,Ft=yt.H264Stream,Bt=gt,Ut=St.isLikelyAacData,jt=ae.ONE_SECOND_IN_TS,$t=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],qt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ht=function(e,t){t.stream=e,this.trigger("log",t)},Vt=function(e,t){for(var i=Object.keys(t),n=0;n<i.length;n++){var s=i[n];"headOfPipeline"!==s&&t[s].on&&t[s].on("log",Ht.bind(e,s))}},zt=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},Wt=function(e,t,i,n,s,r){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(s-i)},prependedContentDuration:r,baseMediaDecodeTime:e}};kt=function(e,t){var i,n=[],s=0,r=0,o=1/0;i=(t=t||{}).firstSequenceNumber||0,kt.prototype.init.call(this),this.push=function(t){Dt.collectDtsInfo(e,t),e&&$t.forEach((function(i){e[i]=t[i]})),n.push(t)},this.setEarliestDts=function(e){s=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){r=e},this.flush=function(){var a,l,c,u,h,d,p;0!==n.length?(a=Pt.trimAdtsFramesByEarliestDts(n,e,s),e.baseMediaDecodeTime=Dt.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=Pt.prefixWithSilence(e,a,r,o),e.samples=Pt.generateSampleTable(a),c=Lt.mdat(Pt.concatenateFrameData(a)),n=[],l=Lt.moof(i,[e]),u=new Uint8Array(l.byteLength+c.byteLength),i++,u.set(l),u.set(c,l.byteLength),Dt.clearDtsInfo(e),h=Math.ceil(1024*jt/e.samplerate),a.length&&(d=a.length*h,this.trigger("segmentTimingInfo",Wt(Nt.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),a[0].dts,a[0].pts,a[0].dts+d,a[0].pts+d,p||0)),this.trigger("timingInfo",{start:a[0].pts,end:a[0].pts+d})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Dt.clearDtsInfo(e),n=[],this.trigger("reset")}},kt.prototype=new At,Ct=function(e,t){var i,n,s,r=[],o=[];i=(t=t||{}).firstSequenceNumber||0,Ct.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Dt.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],qt.forEach((function(t){e[t]=n[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||s||(s=t.data,e.pps=[t.data]),r.push(t)},this.flush=function(){for(var n,s,a,l,c,u,h,d,p=0;r.length&&"access_unit_delimiter_rbsp"!==r[0].nalUnitType;)r.shift();
vendor: 14,051 bytes, line 35
35if(0===r.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=Ot.groupNalsIntoFrames(r),(a=Ot.groupFramesIntoGops(n))[0][0].keyFrame||((s=this.getGopForFusion_(r[0],e))?(p=s.duration,a.unshift(s),a.byteLength+=s.byteLength,a.nalCount+=s.nalCount,a.pts=s.pts,a.dts=s.dts,a.duration+=s.duration):a=Ot.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");Dt.clearDtsInfo(e),a=f}Dt.collectDtsInfo(e,a),e.samples=Ot.generateSampleTable(a),c=Lt.mdat(Ot.concatenateNalData(a)),e.baseMediaDecodeTime=Dt.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",a.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),h=a[0],d=a[a.length-1],this.trigger("segmentTimingInfo",Wt(e.baseMediaDecodeTime,h.dts,h.pts,d.dts+d.duration,d.pts+d.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=Lt.moof(i,[e]),u=new Uint8Array(l.byteLength+c.byteLength),i++,u.set(l),u.set(c,l.byteLength),this.trigger("data",{track:e,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),r=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){Dt.clearDtsInfo(e),n=void 0,s=void 0},this.getGopForFusion_=function(t){var i,n,s,r,o,a=1/0;for(o=0;o<this.gopCache_.length;o++)s=(r=this.gopCache_[o]).gop,e.pps&&zt(e.pps[0],r.pps[0])&&e.sps&&zt(e.sps[0],r.sps[0])&&(s.dts<e.timelineStartInfo.dts||(i=t.dts-s.dts-s.duration)>=-1e4&&i<=45e3&&(!n||a>i)&&(n=r,a=i));return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,s,r,a,l,c;for(r=e.byteLength,a=e.nalCount,l=e.duration,t=i=0;t<o.length&&i<e.length&&(n=o[t],s=e[i],n.pts!==s.pts);)s.pts>n.pts?t++:(i++,r-=s.byteLength,a-=s.nalCount,l-=s.duration);return 0===i?e:i===e.length?null:((c=e.slice(i)).byteLength=r,c.duration=l,c.nalCount=a,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,i,n,s,r,a,l;for(t=o.length-1,i=e.length-1,r=null,a=!1;t>=0&&i>=0;){if(n=o[t],s=e[i],n.pts===s.pts){a=!0;break}n.pts>s.pts?t--:(t===o.length-1&&(r=i),i--)}if(!a&&null===r)return null;if(0===(l=a?i:r))return e;var c=e.slice(l),u=c.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){o=e}},Ct.prototype=new At,It=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,It.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))))}},It.prototype=new At,It.prototype.flush=function(e){var t,i,n,s,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,qt.forEach((function(e){o.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(a=this.audioTrack.timelineStartInfo.pts,$t.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,n=Lt.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(n.byteLength),o.initSegment.set(n),o.data=new Uint8Array(this.pendingBytes),s=0;s<this.pendingBoxes.length;s++)o.data.set(this.pendingBoxes[s],r),r+=this.pendingBoxes[s].byteLength;for(s=0;s<this.pendingCaptions.length;s++)(t=this.pendingCaptions[s]).startTime=Nt.metadataTsToSeconds(t.startPts,a,this.keepOriginalTimestamps),t.endTime=Nt.metadataTsToSeconds(t.endPts,a,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(s=0;s<this.pendingMetadata.length;s++)(i=this.pendingMetadata[s]).cueTime=Nt.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),s=0;s<o.captions.length;s++)t=o.captions[s],this.trigger("caption",t);for(s=0;s<o.metadata.length;s++)i=o.metadata[s],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},It.prototype.setRemux=function(e){this.remuxTracks=e},xt=function(e){var t,i,n=this,s=!0;xt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var s={};this.transmuxPipeline_=s,s.type="aac",s.metadataStream=new Mt.MetadataStream,s.aacStream=new Bt,s.audioTimestampRolloverStream=new Mt.TimestampRolloverStream("audio"),s.timedMetadataTimestampRolloverStream=new Mt.TimestampRolloverStream("timed-metadata"),s.adtsStream=new Rt,s.coalesceStream=new It(e,s.metadataStream),s.headOfPipeline=s.aacStream,s.aacStream.pipe(s.audioTimestampRolloverStream).pipe(s.adtsStream),s.aacStream.pipe(s.timedMetadataTimestampRolloverStream).pipe(s.metadataStream).pipe(s.coalesceStream),s.metadataStream.on("timestamp",(function(e){s.aacStream.setTimestamp(e.timeStamp)})),s.aacStream.on("data",(function(r){"timed-metadata"!==r.type&&"audio"!==r.type||s.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},s.coalesceStream.numberOfTracks++,s.audioSegmentStream=new kt(i,e),s.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),s.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),s.adtsStream.pipe(s.audioSegmentStream).pipe(s.coalesceStream),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))})),s.coalesceStream.on("data",this.trigger.bind(this,"data")),s.coalesceStream.on("done",this.trigger.bind(this,"done")),Vt(this,s)},this.setupTsPipeline=function(){var s={};this.transmuxPipeline_=s,s.type="ts",s.metadataStream=new Mt.MetadataStream,s.packetStream=new Mt.TransportPacketStream,s.parseStream=new Mt.TransportParseStream,s.elementaryStream=new Mt.ElementaryStream,s.timestampRolloverStream=new Mt.TimestampRolloverStream,s.adtsStream=new Rt,s.h264Stream=new Ft,s.captionStream=new Mt.CaptionStream(e),s.coalesceStream=new It(e,s.metadataStream),s.headOfPipeline=s.packetStream,s.packetStream.pipe(s.parseStream).pipe(s.elementaryStream).pipe(s.timestampRolloverStream),s.timestampRolloverStream.pipe(s.h264Stream),s.timestampRolloverStream.pipe(s.adtsStream),s.timestampRolloverStream.pipe(s.metadataStream).pipe(s.coalesceStream),s.h264Stream.pipe(s.captionStream).pipe(s.coalesceStream),s.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=n.baseMediaDecodeTime):(t=r.tracks[o]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime;t&&!s.videoSegmentStream&&(s.coalesceStream.numberOfTracks++,s.videoSegmentStream=new Ct(t,e),s.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),s.videoSegmentStream.on("timelineStartInfo",(function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,s.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))})),s.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),s.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),s.videoSegmentStream.on("baseMediaDecodeTime",(function(e){i&&s.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),s.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),s.h264Stream.pipe(s.videoSegmentStream).pipe(s.coalesceStream)),i&&!s.audioSegmentStream&&(s.coalesceStream.numberOfTracks++,s.audioSegmentStream=new kt(i,e),s.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),s.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),s.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),s.adtsStream.pipe(s.audioSegmentStream).pipe(s.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}})),s.coalesceStream.on("data",this.trigger.bind(this,"data")),s.coalesceStream.on("id3Frame",(function(e){e.dispatchType=s.metadataStream.dispatchType,n.trigger("id3Frame",e)})),s.coalesceStream.on("caption",this.trigger.bind(this,"caption")),s.coalesceStream.on("done",this.trigger.bind(this,"done")),Vt(this,s)},this.setBaseMediaDecodeTime=function(n){var s=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,Dt.clearDtsInfo(i),s.audioTimestampRolloverStream&&s.audioTimestampRolloverStream.discontinuity()),t&&(s.videoSegmentStream&&(s.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Dt.clearDtsInfo(t),s.captionStream.reset()),s.timestampRolloverStream&&s.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(s){var t=Ut(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),s=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){s=!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()}},xt.prototype=new At;var Gt,Xt,Kt,Yt,Qt,Jt={Transmuxer:xt,VideoSegmentStream:Ct,AudioSegmentStream:kt,AUDIO_PROPERTIES:$t,VIDEO_PROPERTIES:qt,generateSegmentTimingInfo:Wt},Zt=function(e){return e>>>0},ei=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])},ti=Zt,ii=ei,ni=function(e,t){var i,n,s,r,o,a=[];if(!t.length)return null;for(i=0;i<e.byteLength;)n=ti(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),s=ii(e.subarray(i+4,i+8)),r=n>1?i+n:e.byteLength,s===t[0]&&(1===t.length?a.push(e.subarray(i+8,r)):(o=ni(e.subarray(i+8,r),t.slice(1))).length&&(a=a.concat(o))),i=r;return a},si=Zt,ri=V.getUint64,oi=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=ri(e.subarray(4)):t.baseMediaDecodeTime=si(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},ai=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]}},li=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),s=1&i.flags[2],r=4&i.flags[2],o=1&i.flags[1],a=2&i.flags[1],l=4&i.flags[1],c=8&i.flags[1],u=n.getUint32(4),h=8;for(s&&(i.dataOffset=n.getInt32(h),h+=4),r&&u&&(t={flags:ai(e.subarray(h,h+4))},h+=4,o&&(t.duration=n.getUint32(h),h+=4),a&&(t.size=n.getUint32(h),h+=4),c&&(1===i.version?t.compositionTimeOffset=n.getInt32(h):t.compositionTimeOffset=n.getUint32(h),h+=4),i.samples.push(t),u--);u--;)t={},o&&(t.duration=n.getUint32(h),h+=4),a&&(t.size=n.getUint32(h),h+=4),l&&(t.flags=ai(e.subarray(h,h+4)),h+=4),c&&(1===i.version?t.compositionTimeOffset=n.getInt32(h):t.compositionTimeOffset=n.getUint32(h),h+=4),i.samples.push(t);return i},ci=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},s=1&n.flags[2],r=2&n.flags[2],o=8&n.flags[2],a=16&n.flags[2],l=32&n.flags[2],c=65536&n.flags[0],u=131072&n.flags[0];return t=8,s&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),r&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),o&&(n.defaultSampleDuration=i.getUint32(t),t+=4),a&&(n.defaultSampleSize=i.getUint32(t),t+=4),l&&(n.defaultSampleFlags=i.getUint32(t)),c&&(n.durationIsEmpty=!0),!s&&u&&(n.baseDataOffsetIsMoof=!0),n},ui=(Gt="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},pe.discardEmulationPreventionBytes),hi=xe.CaptionStream,di=ni,pi=oi,fi=li,mi=ci,gi=Gt,
vendor: 4,208 bytes, line 35
35yi=function(e,t){for(var i=e,n=0;n<t.length;n++){var s=t[n];if(i<s.size)return s;i-=s.size}return null},_i=function(e,t){var i=di(e,["moof","traf"]),n=di(e,["mdat"]),s={},r=[];return n.forEach((function(e,t){var n=i[t];r.push({mdat:e,traf:n})})),r.forEach((function(e){var i,n,r=e.mdat,o=e.traf,a=di(o,["tfhd"]),l=mi(a[0]),c=l.trackId,u=di(o,["tfdt"]),h=u.length>0?pi(u[0]).baseMediaDecodeTime:0,d=di(o,["trun"]);t===c&&d.length>0&&(i=function(e,t,i){var n=t,s=i.defaultSampleDuration||0,r=i.defaultSampleSize||0,o=i.trackId,a=[];return e.forEach((function(e){var t=fi(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=s),void 0===e.size&&(e.size=r),e.trackId=o,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof n?(e.pts=n+gi.BigInt(e.compositionTimeOffset),n+=gi.BigInt(e.duration)):(e.pts=n+e.compositionTimeOffset,n+=e.duration)})),a=a.concat(t)})),a}(d,h,l),n=function(e,t,i){var n,s,r,o,a=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(s=0;s+4<e.length;s+=r)if(r=a.getUint32(s),s+=4,!(r<=0))switch(31&e[s]){case 6:var c=e.subarray(s+1,s+1+r),u=yi(s,t);if(n={nalUnitType:"sei_rbsp",size:r,data:c,escapedRBSP:ui(c),trackId:i},u)n.pts=u.pts,n.dts=u.dts,o=u;else{if(!o){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+s+" for trackId "+i+". See mux.js#223."});break}n.pts=o.pts,n.dts=o.dts}l.seiNals.push(n)}return l}(r,i,c),s[c]||(s[c]={seiNals:[],logs:[]}),s[c].seiNals=s[c].seiNals.concat(n.seiNals),s[c].logs=s[c].logs.concat(n.logs))})),s},vi=function(){var e,t,i,n,s,r,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new hi,o=!0,r=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/n,e.endTime=e.endPts/n,s.captions.push(e),s.captionStreams[e.stream]=!0})),e.on("log",(function(e){s.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(i!==e[0]||n!==t[i])},this.parse=function(e,r,o){var a;if(!this.isInitialized())return null;if(!r||!o)return null;if(this.isNewInit(r,o))i=r[0],n=o[i];else if(null===i||!n)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 n=_i(e,t)[t]||{};return{seiNals:n.seiNals,logs:n.logs,timescale:i}}(e,i,n),a&&a.logs&&(s.logs=s.logs.concat(a.logs)),null!==a&&a.seiNals?(this.pushNals(a.seiNals),this.flushStream(),s):s.logs.length?{logs:s.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(){s.captions=[],s.captionStreams={},s.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,n=null,s?this.clearParsedCaptions():s={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},bi=function(e){for(var t=0,i=String.fromCharCode(e[t]),n="";"\0"!==i;)n+=i,t++,i=String.fromCharCode(e[t]);return n+=i},Ti=V.getUint64,wi=function(e,t){var i="\0"!==t.scheme_id_uri,n=0===e&&Si(t.presentation_time_delta)&&i,s=1===e&&Si(t.presentation_time)&&i;return!(e>1)&&n||s},Si=function(e){return void 0!==e||null!==e},Ei={parseEmsgBox:function(e){var t,i,n,s,r,o,a,l=4,c=e[0];if(0===c)l+=(t=bi(e.subarray(l))).length,l+=(i=bi(e.subarray(l))).length,n=(u=new DataView(e.buffer)).getUint32(l),l+=4,r=u.getUint32(l),l+=4,o=u.getUint32(l),l+=4,a=u.getUint32(l),l+=4;else if(1===c){var u;n=(u=new DataView(e.buffer)).getUint32(l),l+=4,s=Ti(e.subarray(l)),l+=8,o=u.getUint32(l),l+=4,a=u.getUint32(l),l+=4,l+=(t=bi(e.subarray(l))).length,l+=(i=bi(e.subarray(l))).length}var h={scheme_id_uri:t,value:i,timescale:n||1,presentation_time:s,presentation_time_delta:r,event_duration:o,id:a,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return wi(c,h)?h:void 0},scaleTime:function(e,t,i,n){return e||0===e?e/t:n+i/t}},Ci=Zt,ki=function(e){return("00"+e.toString(16)).slice(-2)}
vendor: 7,330 bytes, line 35
35,xi=ni,Ii=ei,Ai=Ei,Li=ci,Oi=li,Pi=oi,Di=V.getUint64,Mi=Gt,Ni=He.parseId3Frames;Xt=function(e,t){var i=xi(t,["moof","traf"]).reduce((function(t,i){var n,s=xi(i,["tfhd"])[0],r=Ci(s[4]<<24|s[5]<<16|s[6]<<8|s[7]),o=e[r]||9e4,a=xi(i,["tfdt"])[0],l=new DataView(a.buffer,a.byteOffset,a.byteLength);let c;return"bigint"==typeof(n=1===a[0]?Di(a.subarray(4,12)):l.getUint32(4))?c=n/Mi.BigInt(o):"number"!=typeof n||isNaN(n)||(c=n/o),c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),c<t&&(t=c),t}),1/0);return"bigint"==typeof i||isFinite(i)?i:0},Yt=function(e){var t=0===e[0]?12:20;return Ci(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Kt=function(e){var t=xi(e,["moov","trak"]),i=[];return t.forEach((function(e){var t,n,s={},r=xi(e,["tkhd"])[0];r&&(n=(t=new DataView(r.buffer,r.byteOffset,r.byteLength)).getUint8(0),s.id=0===n?t.getUint32(12):t.getUint32(20));var o=xi(e,["mdia","hdlr"])[0];if(o){var a=Ii(o.subarray(8,12));s.type="vide"===a?"video":"soun"===a?"audio":a}var l=xi(e,["mdia","minf","stbl","stsd"])[0];if(l){var c=l.subarray(8);s.codec=Ii(c.subarray(4,8));var u,h=xi(c,[s.codec])[0];h&&(/^[asm]vc[1-9]$/i.test(s.codec)?(u=h.subarray(78),"avcC"===Ii(u.subarray(4,8))&&u.length>11?(s.codec+=".",s.codec+=ki(u[9]),s.codec+=ki(u[10]),s.codec+=ki(u[11])):s.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(s.codec)?(u=h.subarray(28),"esds"===Ii(u.subarray(4,8))&&u.length>20&&0!==u[19]?(s.codec+="."+ki(u[19]),s.codec+="."+ki(u[20]>>>2&63).replace(/^0/,"")):s.codec="mp4a.40.2"):s.codec=s.codec.toLowerCase())}var d=xi(e,["mdia","mdhd"])[0];d&&(s.timescale=Yt(d)),i.push(s)})),i},Qt=function(e,t=0){return xi(e,["emsg"]).map((e=>{var i=Ai.parseEmsgBox(new Uint8Array(e)),n=Ni(i.message_data);return{cueTime:Ai.scaleTime(i.presentation_time,i.timescale,i.presentation_time_delta,t),duration:Ai.scaleTime(i.event_duration,i.timescale),frames:n}}))};var Ri=Xt,Fi=Kt,Bi=Qt,Ui=Ie,ji=function(e){var t=31&e[1];return t<<=8,t|=e[2]},$i=function(e){return!!(64&e[1])},qi=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Hi=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}},Vi={parseType:function(e,t){var i=ji(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=$i(e),i=4+qi(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=$i(e),n=4+qi(e);if(i&&(n+=e[n]+1),1&e[n+5]){var s;s=3+((15&e[n+1])<<8|e[n+2])-4;for(var r=12+((15&e[n+10])<<8|e[n+11]);r<s;){var o=n+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:$i,parsePesType:function(e,t){switch(t[ji(e)]){case Ui.H264_STREAM_TYPE:return"video";case Ui.ADTS_STREAM_TYPE:return"audio";case Ui.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!$i(e))return null;var t=4+qi(e);if(t>=e.byteLength)return null;var i,n=null;return 192&(i=e[t+7])&&((n={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+qi(e),i=e.subarray(t),n=0,s=0,r=!1;s<i.byteLength-3;s++)if(1===i[s+2]){n=s+5;break}for(;n<i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}s+3!==n-2&&"slice_layer_without_partitioning_rbsp_idr"===Hi(31&i[s+3])&&(r=!0);do{n++}while(1!==i[n]&&n<i.length);s=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Hi(31&i[s+3])&&(r=!0),s=n-2,n+=3;break;default:n+=3}return i=i.subarray(s),n-=s,s=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Hi(31&i[s+3])&&(r=!0),r}},zi=Ie,Wi=Me.handleRollover,Gi={};Gi.ts=Vi,Gi.aac=St;var Xi=ae.ONE_SECOND_IN_TS,Ki=188,Yi=71,Qi=function(e,t,i){for(var n,s,r,o,a=0,l=Ki,c=!1;l<=e.byteLength;)if(e[a]!==Yi||e[l]!==Yi&&l!==e.byteLength)a++,l++;else{if(n=e.subarray(a,l),"pes"===Gi.ts.parseType(n,t.pid))s=Gi.ts.parsePesType(n,t.table),r=Gi.ts.parsePayloadUnitStartIndicator(n),"audio"===s&&r&&(o=Gi.ts.parsePesTime(n))&&(o.type="audio",i.audio.push(o),c=!0);if(c)break;a+=Ki,l+=Ki}for(a=(l=e.byteLength)-Ki,c=!1;a>=0;)if(e[a]!==Yi||e[l]!==Yi&&l!==e.byteLength)a--,l--;else{if(n=e.subarray(a,l),"pes"===Gi.ts.parseType(n,t.pid))s=Gi.ts.parsePesType(n,t.table),r=Gi.ts.parsePayloadUnitStartIndicator(n),"audio"===s&&r&&(o=Gi.ts.parsePesTime(n))&&(o.type="audio",i.audio.push(o),c=!0);if(c)break;a-=Ki,l-=Ki}},Ji=function(e,t,i){for(var n,s,r,o,a,l,c,u=0,h=Ki,d=!1,p={data:[],size:0};h<e.byteLength;)if(e[u]!==Yi||e[h]!==Yi)u++,h++;else{if(n=e.subarray(u,h),"pes"===Gi.ts.parseType(n,t.pid))if(s=Gi.ts.parsePesType(n,t.table),r=Gi.ts.parsePayloadUnitStartIndicator(n),"video"===s&&(r&&!d&&(o=Gi.ts.parsePesTime(n))&&(o.type="video",i.video.push(o),d=!0),!i.firstKeyFrame)){if(r&&0!==p.size){for(a=new Uint8Array(p.size),l=0;p.data.length;)c=p.data.shift(),a.set(c,l),l+=c.byteLength;if(Gi.ts.videoPacketContainsKeyFrame(a)){var f=Gi.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(n),p.size+=n.byteLength}if(d&&i.firstKeyFrame)break;u+=Ki,h+=Ki}for(u=(h=e.byteLength)-Ki,d=!1;u>=0;)if(e[u]!==Yi||e[h]!==Yi)u--,h--;else{if(n=e.subarray(u,h),"pes"===Gi.ts.parseType(n,t.pid))s=Gi.ts.parsePesType(n,t.table),r=Gi.ts.parsePayloadUnitStartIndicator(n),"video"===s&&r&&(o=Gi.ts.parsePesTime(n))&&(o.type="video",i.video.push(o),d=!0);if(d)break;u-=Ki,h-=Ki}},Zi=function(e){var t={pid:null,table:null},i={};for(var n in function(e,t){for(var i,n=0,s=Ki;s<e.byteLength;)if(e[n]!==Yi||e[s]!==Yi)n++,s++;else{switch(i=e.subarray(n,s),Gi.ts.parseType(i,t.pid)){case"pat":t.pid=Gi.ts.parsePat(i);break;case"pmt":var r=Gi.ts.parsePmt(i);t.table=t.table||{},Object.keys(r).forEach((function(e){t.table[e]=r[e]}))}n+=Ki,s+=Ki}}(e,t),t.table){if(t.table.hasOwnProperty(n))switch(t.table[n]){case zi.H264_STREAM_TYPE:i.video=[],Ji(e,t,i),0===i.video.length&&delete i.video;break;case zi.ADTS_STREAM_TYPE:i.audio=[],Qi(e,t,i),0===i.audio.length&&delete i.audio}}return i},en=function(e,t){var i;return i=Gi.aac.isLikelyAacData(e)?function(e){for(var t,i=!1,n=0,s=null,r=null,o=0,a=0;e.length-a>=3;){switch(Gi.aac.parseType(e,a)){case"timed-metadata":if(e.length-a<10){i=!0;break}if((o=Gi.aac.parseId3TagSize(e,a))>e.length){i=!0;break}null===r&&(t=e.subarray(a,a+o),r=Gi.aac.parseAacTimestamp(t)),a+=o;break;case"audio":if(e.length-a<7){i=!0;break}if((o=Gi.aac.parseAdtsSize(e,a))>e.length){i=!0;break}null===s&&(t=e.subarray(a,a+o),s=Gi.aac.parseSampleRate(t)),n++,a+=o;break;default:a++}if(i)return null}if(null===s||null===r)return null;var l=Xi/s;return{audio:[{type:"audio",dts:r,pts:r},{type:"audio",dts:r+1024*n*l,pts:r+1024*n*l}]}}(e):Zi(e),i&&(i.audio||i.video)?(function(e,t){if(e.audio&&e.audio.length){var i=t;
vendor: 4,561 bytes, line 35
35(void 0===i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach((function(e){e.dts=Wi(e.dts,i),e.pts=Wi(e.pts,i),e.dtsTime=e.dts/Xi,e.ptsTime=e.pts/Xi}))}if(e.video&&e.video.length){var n=t;if((void 0===n||isNaN(n))&&(n=e.video[0].dts),e.video.forEach((function(e){e.dts=Wi(e.dts,n),e.pts=Wi(e.pts,n),e.dtsTime=e.dts/Xi,e.ptsTime=e.pts/Xi})),e.firstKeyFrame){var s=e.firstKeyFrame;s.dts=Wi(s.dts,n),s.pts=Wi(s.pts,n),s.dtsTime=s.dts/Xi,s.ptsTime=s.pts/Xi}}}(i,t),i):null};class tn{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Jt.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 n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){const i={start:{decode:ae.videoTsToSeconds(t.start.dts),presentation:ae.videoTsToSeconds(t.start.pts)},end:{decode:ae.videoTsToSeconds(t.end.dts),presentation:ae.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ae.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=ae.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})})),t.on("audioSegmentTimingInfo",(function(t){const i={start:{decode:ae.videoTsToSeconds(t.start.dts),presentation:ae.videoTsToSeconds(t.start.pts)},end:{decode:ae.videoTsToSeconds(t.end.dts),presentation:ae.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ae.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=ae.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:ae.videoTsToSeconds(t.start),end:ae.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ae.videoTsToSeconds(t.start),end:ae.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 vi,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=Ri(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=Fi(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const i=Bi(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*ae.ONE_SECOND_IN_TS,n=en(e,i);let s=null;n&&(s={hasVideo:n.video&&2===n.video.length||!1,hasAudio:n.audio&&2===n.audio.length||!1},s.hasVideo&&(s.videoStart=n.video[0].ptsTime),s.hasAudio&&(s.audioStart=n.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:s,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(ae.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(ae.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())}}
vendor: 5,221 bytes, line 35
35self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new tn(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new tn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})));var wC=_C(TC);const SC=e=>{const{transmuxer:t,bytes:i,audioAppendStart:n,gopsToAlignWith:s,remux:r,onData:o,onTrackInfo:a,onAudioTimingInfo:l,onVideoTimingInfo:c,onVideoSegmentTimingInfo:u,onAudioSegmentTimingInfo:h,onId3:d,onCaptions:p,onDone:f,onEndedTimeline:m,onTransmuxerLog:g,isEndOfTimeline:y,segment:_,triggerSegmentEventFn:v}=e,b={buffer:[]};let T=y;if(t.onmessage=i=>{t.currentTransmux===e&&("data"===i.data.action&&((e,t,i)=>{const{type:n,initSegment:s,captions:r,captionStreams:o,metadata:a,videoFrameDtsTime:l,videoFramePtsTime:c}=e.data.segment;t.buffer.push({captions:r,captionStreams:o,metadata:a});const u=e.data.segment.boxes||{data:e.data.segment.data},h={type:n,data:new Uint8Array(u.data,u.data.byteOffset,u.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};void 0!==l&&(h.videoFrameDtsTime=l),void 0!==c&&(h.videoFramePtsTime=c),i(h)})(i,b,o),"trackinfo"===i.data.action&&a(i.data.trackInfo),"gopInfo"===i.data.action&&((e,t)=>{t.gopInfo=e.data.gopInfo})(i,b),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&c(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&u(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&h(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&d([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:b,callback:f}),EC(t))))},t.onerror=()=>{const e={message:"Received an error message from the transmuxer worker",metadata:{errorType:XS.Error.StreamingFailedToTransmuxSegment,segmentInfo:yk({segment:_})}};f(null,e)},n&&t.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(s)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:s}),void 0!==r&&t.postMessage({action:"setRemux",remux:r}),i.byteLength){const e=i instanceof ArrayBuffer?i:i.buffer,n=i instanceof ArrayBuffer?0:i.byteOffset;v({type:"segmenttransmuxingstart",segment:_}),t.postMessage({action:"push",data:e,byteOffset:n,byteLength:i.byteLength},[e])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},EC=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():SC(e.currentTransmux))},CC=(e,t)=>{e.postMessage({action:t}),EC(e)},kC=(e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void CC(t,e);t.transmuxQueue.push(CC.bind(null,t,e))},xC=e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void SC(e);e.transmuxer.transmuxQueue.push(e)};var IC=e=>{kC("reset",e)},AC=e=>{const t=new wC;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 LC=function(e){const t=e.transmuxer,i=e.endAction||e.action,n=e.callback,s=Op({},e,{endAction:null,transmuxer:null,callback:null}),r=s=>{s.data.action===i&&(t.removeEventListener("message",r),s.data.data&&(s.data.data=new Uint8Array(s.data.data,e.byteOffset||0,e.byteLength||s.data.data.byteLength),e.data&&(e.data=s.data.data)),n(s.data))};if(t.addEventListener("message",r),e.data){const i=e.data instanceof ArrayBuffer;s.byteOffset=i?0:e.data.byteOffset,s.byteLength=e.data.byteLength;const n=[i?e.data:e.data.buffer];t.postMessage(s,n)}else t.postMessage(s)},OC=2,PC=-101,DC=-102,MC=e=>{e.forEach((e=>{e.abort()}))},NC=(e,t)=>{const{requestType:i}=t,n=BE({requestType:i,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:PC,xhr:t,metadata:n}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:DC,xhr:t,metadata:n}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:OC,xhr:t,metadata:n}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:OC,xhr:t,metadata:n}:null},RC=(e,t,i,n)=>(s,r)=>{const o=r.response,a=NC(s,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:OC,xhr:r},e);const l=new DataView(o),c=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=c;const u={uri:r.uri};return n({type:"segmentkeyloadcomplete",segment:e,keyInfo:u}),i(null,e)},FC=(e,t)=>{const i=L_(e.map.bytes);if("mp4"!==i){const n=e.map.resolvedUri||e.map.uri,s=i||"unknown";return t({internal:!0,message:`Found unsupported ${s} container for initialization segment at URL: ${n}`,code:OC,metadata:{mediaType:s}})}LC({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:i,data:n})=>
vendor: 27,326 bytes, line 35
35(e.map.bytes=n,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))})},BC=({segment:e,finishProcessingFn:t,responseType:i,triggerSegmentEventFn:n})=>(s,r)=>{const o=NC(s,r);if(o)return t(o,e);n({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)},UC=({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{const f=e.map&&e.map.tracks||{},m=Boolean(f.audio&&f.video);let g=n.bind(null,e,"audio","start");const y=n.bind(null,e,"audio","end");let _=n.bind(null,e,"video","start");const v=n.bind(null,e,"video","end");LC({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:n=>{e.bytes=t=n.data;const f=n.result;f&&(i(e,{hasAudio:f.hasAudio,hasVideo:f.hasVideo,isMuxed:m}),i=null),xC({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:m,onData:t=>{t.type="combined"===t.type?"video":t.type,u(e,t)},onTrackInfo:t=>{i&&(m&&(t.isMuxed=!0),i(e,t))},onAudioTimingInfo:e=>{g&&void 0!==e.start&&(g(e.start),g=null),y&&void 0!==e.end&&y(e.end)},onVideoTimingInfo:e=>{_&&void 0!==e.start&&(_(e.start),_=null),v&&void 0!==e.end&&v(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}),s(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:()=>{c()},onTransmuxerLog:d,onDone:(t,i)=>{h&&(t.type="combined"===t.type?"video":t.type,p({type:"segmenttransmuxingcomplete",segment:e}),h(i,e,t))},segment:e,triggerSegmentEventFn:p})}})},jC=({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{let f=new Uint8Array(t);if(function(e){return u_(e,["moof"]).length>0}(f)){e.isFmp4=!0;const{tracks:s}=e.map,r={isFmp4:!0,hasVideo:!!s.video,hasAudio:!!s.audio};s.audio&&s.audio.codec&&"enca"!==s.audio.codec&&(r.audioCodec=s.audio.codec),s.video&&s.video.codec&&"encv"!==s.video.codec&&(r.videoCodec=s.video.codec),s.video&&s.audio&&(r.isMuxed=!0),i(e,r);const l=(t,i)=>{u(e,{data:f,type:r.hasAudio&&!r.isMuxed?"audio":"video"}),i&&i.length&&o(e,i),t&&t.length&&a(e,t),h(null,e,{})};LC({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&&n(e,"audio","start",o),r.hasVideo&&n(e,"video","start",o),LC({action:"probeEmsgID3",data:f,transmuxer:e.transmuxer,offset:o,callback:({emsgData:i,id3Frames:n})=>{t=i.buffer,e.bytes=f=i,s.video&&i.byteLength&&e.transmuxer?LC({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:f,timescales:e.map.timescales,trackIds:[s.video.id],callback:i=>{t=i.data.buffer,e.bytes=f=i.data,i.logs.forEach((function(e){d(iE(e,{stream:"mp4CaptionParser"}))})),l(i.captions,n)}}):l(void 0,n)}})}})}else if(e.transmuxer){if(void 0===e.container&&(e.container=L_(f)),"ts"!==e.container&&"aac"!==e.container)return i(e,{hasAudio:!1,hasVideo:!1}),void h(null,e,{});UC({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})}else h(null,e,{})},$C=function({id:e,key:t,encryptedBytes:i,decryptionWorker:n,segment:s,doneFn:r},o){const a=t=>{if(t.data.source===e){n.removeEventListener("message",a);const e=t.data.decrypted;o(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};let l;n.onerror=()=>{const e="An error occurred in the decryption worker",t=yk({segment:s}),i={message:e,metadata:{error:new Error(e),errorType:XS.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:s.key.resolvedUri||s.map.key.resolvedUri}}};r(i,s)},n.addEventListener("message",a),l=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),n.postMessage(eC({source:e,encrypted:i,key:l,iv:t.iv}),[i.buffer,l.buffer])},qC=({activeXhrs:e,decryptionWorker:t,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{let f=0,m=!1;return(g,y)=>{if(!m){if(g)return m=!0,MC(e),h(g,y);if(f+=1,f===e.length){const f=function(){if(y.encryptedBytes)return(({decryptionWorker:e,segment:t,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})=>{p({type:"segmentdecryptionstart"}),$C({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:h},(e=>{t.bytes=e,p({type:"segmentdecryptioncomplete",segment:t}),jC({segment:t,bytes:t.bytes,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})}))})({decryptionWorker:t,segment:y,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p});jC({segment:y,bytes:y.bytes,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d,triggerSegmentEventFn:p})};if(y.endOfAllRequests=Date.now(),y.map&&y.map.encryptedBytes&&!y.map.bytes)return p({type:"segmentdecryptionstart",segment:y}),$C({decryptionWorker:t,id:y.requestId+"-init",encryptedBytes:y.map.encryptedBytes,key:y.map.key,segment:y,doneFn:h},(t=>{y.map.bytes=t,p({type:"segmentdecryptioncomplete",segment:y}),FC(y,(t=>{if(t)return MC(e),h(t,y);f()}))}));f()}}}},HC=({segment:e,progressFn:t,trackInfoFn:i,timingInfoFn:n,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u})=>i=>{if(!i.target.aborted)return e.stats=iE(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)},VC=({xhr:e,xhrOptions:t,decryptionWorker:i,segment:n,abortFn:s,progressFn:r,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g,triggerSegmentEventFn:y})=>{const _=[],v=qC({activeXhrs:_,decryptionWorker:i,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g,triggerSegmentEventFn:y});if(n.key&&!n.key.bytes){const i=[n.key];n.map&&!n.map.bytes&&n.map.key&&n.map.key.resolvedUri===n.key.resolvedUri&&i.push(n.map.key);const s=iE(t,{uri:n.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),r=RC(n,i,v,y);y({type:"segmentkeyloadstart",segment:n,keyInfo:{uri:n.key.resolvedUri}});const o=e(s,r);_.push(o)}if(n.map&&!n.map.bytes){if(n.map.key&&(!n.key||n.key.resolvedUri!==n.map.key.resolvedUri)){const i=iE(t,{uri:n.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),s=RC(n,[n.map.key],v,y);y({type:"segmentkeyloadstart",segment:n,keyInfo:{uri:n.map.key.resolvedUri}});const r=e(i,s);_.push(r)}const i=iE(t,{uri:n.map.resolvedUri,responseType:"arraybuffer",headers:YE(n.map),requestType:"segment-media-initialization"}),s=(({segment:e,finishProcessingFn:t,triggerSegmentEventFn:i})=>(n,s)=>{const r=NC(n,s);if(r)return t(r,e);const o=new Uint8Array(s.response);if(i({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=o,t(null,e);e.map.bytes=o,FC(e,(function(i){if(i)return i.xhr=s,i.status=s.status,t(i,e);t(null,e)}))})({segment:n,finishProcessingFn:v,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:n});const r=e(i,s);_.push(r)}const b=iE(t,{uri:n.part&&n.part.resolvedUri||n.resolvedUri,responseType:"arraybuffer",headers:YE(n),requestType:"segment"}),T=BC({segment:n,finishProcessingFn:v,responseType:b.responseType,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:n});const w=e(b,T);w.addEventListener("progress",HC({segment:n,progressFn:r,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:p,dataFn:f})),_.push(w);const S={};return _.forEach((e=>{e.addEventListener("loadend",(({loadendState:e,abortFn:t})=>i=>{i.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)})({loadendState:S,abortFn:s}))})),()=>MC(_)},zC=tE("CodecUtils"),WC=(e,t)=>{const i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]},GC=function(e){const t={};return e.forEach((({mediaType:e,type:i,details:n})=>{t[e]=t[e]||[],t[e].push(qf(`${i}${n}`))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return zC(`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},XC=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},KC=function(e,t){const i=t.attributes||{},n=GC(function(e){const t=e.attributes||{};if(t.CODECS)return Hf(t.CODECS)}(t)||[]);if(WC(e,t)&&!n.audio&&!((e,t)=>{if(!WC(e,t))return!0;const i=t.attributes||{},n=e.mediaGroups.AUDIO[i.AUDIO];for(const e in n)if(!n[e].uri&&!n[e].playlists)return!0;return!1})(e,t)){const t=GC(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var s=i[n];if(s.default&&s.playlists)return Hf(s.playlists[0].attributes.CODECS)}return null}(e,i.AUDIO)||[]);t.audio&&(n.audio=t.audio)}return n},YC=tE("PlaylistSelector"),QC=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||""})},JC=function(e,t){if(!e)return"";const i=tp.getComputedStyle(e);return i?i[t]:""},ZC=function(e,t){const i=e.slice();e.sort((function(e,n){const s=t(e,n);return 0===s?i.indexOf(e)-i.indexOf(n):s}))},ek=function(e,t){let i,n;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||tp.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||tp.Number.MAX_VALUE,i-n};let tk=function(e,t,i,n,s,r){if(!e)return;const o={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:s};let a=e.playlists;LE.isAudioOnly(e)&&(a=r.getAudioTrackPlaylists_(),o.audioOnly=!0);let l=a.map((e=>{let t;const i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||tp.Number.MAX_VALUE,{bandwidth:t,width:i,height:n,playlist:e}}));ZC(l,((e,t)=>e.bandwidth-t.bandwidth)),l=l.filter((e=>!LE.isIncompatible(e.playlist)));let c=l.filter((e=>LE.isEnabled(e.playlist)));c.length||(c=l.filter((e=>!LE.isDisabled(e.playlist))));const u=c.filter((e=>e.bandwidth*gC.BANDWIDTH_VARIANCE<t));let h=u[u.length-1];const d=u.filter((e=>e.bandwidth===h.bandwidth))[0];if(!1===s){const e=d||c[0]||l[0];if(e&&e.playlist){let t="sortedPlaylistReps";return d&&(t="bandwidthBestRep"),c[0]&&(t="enabledPlaylistReps"),YC(`choosing ${QC(e)} using ${t} with options`,o),e.playlist}return YC("could not choose a playlist with options",o),null}const p=u.filter((e=>e.width&&e.height));ZC(p,((e,t)=>e.width-t.width));const f=p.filter((e=>e.width===i&&e.height===n));h=f[f.length-1];const m=f.filter((e=>e.bandwidth===h.bandwidth))[0];let g,y,_,v;if(m||(g=p.filter((e=>e.width>i||e.height>n)),y=g.filter((e=>e.width===g[0].width&&e.height===g[0].height)),h=y[y.length-1],_=y.filter((e=>e.bandwidth===h.bandwidth))[0]),r.leastPixelDiffSelector){const e=p.map((e=>(e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e)));ZC(e,((e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff)),v=e[0]}const b=v||_||m||d||c[0]||l[0];if(b&&b.playlist){let e="sortedPlaylistReps";return v?e="leastPixelDiffRep":_?e="resolutionPlusOneRep":m?e="resolutionBestRep":d?e="bandwidthBestRep":c[0]&&(e="enabledPlaylistReps"),YC(`choosing ${QC(b)} using ${e} with options`,o),b.playlist}return YC("could not choose a playlist with options",o),null};const ik=function(){let e=this.useDevicePixelRatio&&tp.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),tk(this.playlists.main,this.systemBandwidth,parseInt(JC(this.tech_.el(),"width"),10)*e,parseInt(JC(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)};function nk(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(e){return""}}const sk=({inbandTextTracks:e,metadataArray:t,timestampOffset:i,videoDuration:n})=>{if(!t)return;const s=tp.WebKitDataCue||tp.VTTCue,r=e.metadataTrack_;if(!r)return;if(t.forEach((e=>{const t=e.cueTime+i;!("number"!=typeof t||tp.isNaN(t)||t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEach((e=>{const i=new s(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,function(e){Object.defineProperties(e.frame,{id:{get:()=>(XS.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(XS.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(XS.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})}(i),r.addCue(i)}))})),!r.cues||!r.cues.length)return;const o=r.cues,a=[];for(let e=0;e<o.length;e++)o[e]&&a.push(o[e]);const l=a.reduce(((e,t)=>{const i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e}),{}),c=Object.keys(l).sort(((e,t)=>Number(e)-Number(t)));c.forEach(((e,t)=>{const i=l[e],s=isFinite(n)?n:e,r=Number(c[t+1])||s;i.forEach((e=>{e.endTime=r}))}))},rk={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"},ok=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),ak=(e,t,i)=>{e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,XS.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},lk=function(e,t,i){let n,s;if(i&&i.cues)for(n=i.cues.length;n--;)s=i.cues[n],s.startTime>=e&&s.endTime<=t&&i.removeCue(s)},ck=e=>"number"==typeof e&&isFinite(e),uk=1/60,hk=e=>{const{startOfSegment:t,duration:i,segment:n,part:s,playlist:{mediaSequence:r,id:o,segments:a=[]},mediaIndex:l,partIndex:c,timeline:u}=e,h=a.length-1;let d="mediaIndex/partIndex increment";e.getMediaInfoForTime?d=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(d="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(d+=` with independent ${e.independent}`);const p="number"==typeof c,f=e.segment.uri?"segment":"pre-segment",m=p?gE({preloadSegment:n})-1:0;return`${f} [${r+l}/${r+h}]`+(p?` part [${c}/${m}]`:"")+` segment start/end [${n.start} => ${n.end}]`+(p?` part start/end [${s.start} => ${s.end}]`:"")+` startOfSegment [${t}]`+` duration [${i}]`+` timeline [${u}]`+` selected by [${d}]`+` playlist [${o}]`},dk=e=>`${e}TimingInfo`,pk=({timelineChangeController:e,currentTimeline:t,segmentTimeline:i,loaderType:n,audioDisabled:s})=>{if(t===i)return!1;if("audio"===n){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==i}if("main"===n&&s){const t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==i}return!1},fk=e=>{const t=e.pendingSegment_;if(!t)return;if(pk({timelineChangeController:e.timelineChangeController_,currentTimeline:e.currentTimeline_,segmentTimeline:t.timeline,loaderType:e.loaderType_,audioDisabled:e.audioDisabled_})&&(e=>{if(!e)return!1;const t=e.pendingTimelineChange({type:"audio"}),i=e.pendingTimelineChange({type:"main"}),n=t&&i,s=n&&t.to!==i.to;return!(!n||-1===t.from||-1===i.from||!s)})(e.timelineChangeController_)){if((e=>{const t=e.timelineChangeController_.pendingTimelineChange({type:"audio"}),i=e.timelineChangeController_.pendingTimelineChange({type:"main"});return t&&i&&t.to<i.to})(e))return void e.timelineChangeController_.trigger("audioTimelineBehind");(e=>{e&&(e.pause(),e.resetEverything(),e.load())})(e)}},mk=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+sE,gk=(e,t)=>{if("hls"!==t)return null;const i=(e=>{let t=0;return["video","audio"].forEach((function(i){const n=e[`${i}TimingInfo`];if(!n)return;const{start:s,end:r}=n;let o;"bigint"==typeof s||"bigint"==typeof r?o=tp.BigInt(r)-tp.BigInt(s):"number"==typeof s&&"number"==typeof r&&(o=r-s),void 0!==o&&o>t&&(t=o)})),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t})({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;const n=e.playlist.targetDuration,s=mk({segmentDuration:i,maxDuration:2*n}),r=mk({segmentDuration:i,maxDuration:n}),o=`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 ${n}. 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 s||r?{severity:s?"warn":"info",message:o}:null},yk=({type:e,segment:t})=>{if(!t)return;const i=Boolean(t.key||t.map&&t.map.ke),n=Boolean(t.map&&!t.map.bytes),s=void 0===t.startOfSegment?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:s,duration:t.duration,isEncrypted:i,isMediaInitialization:n}};class _k extends XS.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_=tE(`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_():fk(this)})),this.sourceUpdater_.on("codecschange",(e=>{this.trigger(Op({type:"codecschange"},e))})),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",(()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():fk(this)})),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",(e=>{this.trigger(Op({type:"timelinechange"},e)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():fk(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():fk(this)}))}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return AC({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_&&tp.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,tp.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_&&IC(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return nE();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:i,isMuxed:n}=e;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const i=tC(e);let n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e}segmentKey(e,t=!1){if(!e)return null;const i=iC(e);let n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});const s={resolvedUri:(n||e).resolvedUri};return n&&(s.bytes=n.bytes),s}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_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let s=null;if(i&&(i.id?s=i.id:i.uri&&(s=i.uri)),this.logger_(`playlist update [${s} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:\ncurrentTime: ${this.currentTime_()}\nbufferedEnd: ${hE(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}}n&&(n.mediaIndex-=r,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(tp.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"}))}
vendor: 6,789 bytes, line 35
35resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&IC(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=()=>{},n=!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 s=1;const r=()=>{s--,0===s&&i()};!n&&this.audioDisabled_||(s++,this.sourceUpdater_.removeAudio(e,t,r)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=((e,t,i,n)=>{const s=Math.ceil((t-n)*P_),r=Math.ceil((i-n)*P_),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<=s););return l=Math.max(l,0),o.splice(l,a-l+1),o})(this.gopBuffer_,e,t,this.timeMapping_),s++,this.sourceUpdater_.removeVideo(e,t,r));for(const i in this.inbandTextTracks_)lk(e,t,this.inbandTextTracks_[i]);lk(e,t,this.segmentMetadataTrack_),r()}monitorBuffer_(){this.checkBufferTimeout_&&tp.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=tp.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&tp.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=tp.setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();if(!e)return;const t={segmentInfo:yk({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 n="number"==typeof e&&t.segments[e],s=e+1===t.segments.length,r=!n||!n.parts||i+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&s&&r}chooseNextRequest_(){const e=this.buffered_(),t=hE(e)||0,i=dE(e,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,s=i>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||n||s)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 n=[];let s=0;for(let r=0;r<t.length;r++){const o=t[r];if(e===o.timeline&&(n.push(r),s+=o.duration,s>i))return r}return 0===n.length?0:n[n.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,n;const s=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:\nFor TargetTime: ${s}.\nCurrentTime: ${this.currentTime_()}\nBufferedEnd: ${t}\nFetch At Buffer: ${this.fetchAtBuffer_}\n`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const t=this.getSyncInfoFromMediaSequenceSync_(s);if(!t){const e="No sync info found while using media sequence sync";return this.error({message:e,metadata:{errorType:XS.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,n=t.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const t=LE.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:s,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,i=t.partIndex,n=t.startTime}o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${s}`:`currentTime ${s}`,o.mediaIndex=e,o.startOfSegment=n,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 c=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&l&&!c&&!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 u=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=r.length-1&&u&&!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 n=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return n?(n.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),n):null}generateSegmentInfo_(e){const{independent:t,playlist:i,mediaIndex:n,startOfSegment:s,isSyncRequest:r,partIndex:o,forceTimestampOffset:a,getMediaInfoForTime:l}
vendor: 4,321 bytes, line 35
35=e,c=i.segments[n],u="number"==typeof o&&c.parts[o],h={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||c.resolvedUri,mediaIndex:n,partIndex:u?o:null,isSyncRequest:r,startOfSegment:s,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:u&&u.duration||c.duration,segment:c,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},d=void 0!==a?a:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:s,buffered:this.buffered_(),overrideCheck:d});const p=hE(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(h.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=((e,t,i)=>{if(null==t||!e.length)return[];const n=Math.ceil((t-i+3)*P_);let s;for(s=0;s<e.length&&!(e[s].pts>n);s++);return e.slice(s)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h}timestampOffsetForSegment_(e){return(({segmentTimeline:e,currentTimeline:t,startOfSegment:i,buffered:n,overrideCheck:s})=>s||e!==t?e<t?i:n.length?n.end(n.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,n=this.pendingSegment_.duration,s=LE.estimateSegmentRequestTime(n,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(s<=r)return;const o=function(e){const{main:t,currentTime:i,bandwidth:n,duration:s,segmentDuration:r,timeUntilRebuffer:o,currentTimeline:a,syncController:l}=e,c=t.playlists.filter((e=>!LE.isIncompatible(e)));let u=c.filter(LE.isEnabled);u.length||(u=c.filter((e=>!LE.isDisabled(e))));const h=u.filter(LE.hasAttribute.bind(null,"BANDWIDTH")).map((e=>{const t=l.getSyncPoint(e,s,a,i)?1:2;return{playlist:e,rebufferingImpact:LE.estimateSegmentRequestTime(r,n,e)*t-o}})),d=h.filter((e=>e.rebufferingImpact<=0));return ZC(d,((e,t)=>ek(t.playlist,e.playlist))),d.length?d[0]:(ZC(h,((e,t)=>e.rebufferingImpact-t.rebufferingImpact)),h[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:r,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const a=s-r-o.rebufferingImpact;let l=.5;r<=sE&&(l=1),!o.playlist||o.playlist.uri===this.playlist_.uri||a<l||(this.bandwidth=o.playlist.attributes.BANDWIDTH*gC.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${hk(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:n}=t,s={segmentInfo:yk({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:i,hasVideo:n}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:s}),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(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(let s=0;s<i.length;s++){const r=i[s];if(r!==n[s])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_():fk(this)))}handleTimingInfo_(e,t,i,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const s=this.pendingSegment_,r=dk(t);s[r]=s[r]||{},s[r][i]=n,this.logger_(`timinginfo: ${t} - ${i} - ${n}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():fk(this)}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");
vendor: 5,530 bytes, line 35
35if(!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(),n={};t.forEach((e=>{n[e.stream]=n[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=n[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(n).forEach((e=>{const{startTime:t,endTime:s,captions:r}=n[e],o=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${s} for ${e}`),function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"});let n=i;/^cc708_/.test(i)&&(n="SERVICE"+i.split("_")[1]);const s=t.textTracks().getTrackById(n);if(s)e[i]=s;else{let s=i,r=i,o=!1;const a=(t.options_.vhs&&t.options_.vhs.captionServices||{})[n];a&&(s=a.label,r=a.language,o=a.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:n,default:o,label:s,language:r},!1).track}}}(o,this.vhs_.tech_,e),lk(t,s,o[e]),function({inbandTextTracks:e,captionArray:t,timestampOffset:i}){if(!t)return;const n=tp.WebKitDataCue||tp.VTTCue;t.forEach((t=>{const s=t.stream;t.content?t.content.forEach((r=>{const o=new n(t.startTime+i,t.endTime+i,r.text);o.line=r.line,o.align="left",o.position=r.position,o.positionAlign="line-left",e[s].addCue(o)})):e[s].addCue(new n(t.startTime+i,t.endTime+i,t.text))}))}({captionArray:r,inbandTextTracks:o,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_()||!pk({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:n,isMuxed:s}=t;return!(n&&!e.videoTimingInfo)&&(!(i&&!this.audioDisabled_&&!s&&!e.audioTimingInfo)&&!pk({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 fk(this),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[dk(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let n;t&&(n=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:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});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:n}){if(i){const e=tC(i);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=n,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i}
vendor: 4,437 bytes, line 35
35,n){const s=this.sourceUpdater_.audioBuffered(),r=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+uE(s).join(", ")),r.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+uE(r).join(", "));const o=s.length?s.start(0):0,a=s.length?s.end(s.length-1):0,l=r.length?r.start(0):0,c=r.length?r.end(r.length-1):0;if(a-o<=1&&c-l<=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: ${uE(s).join(", ")}, video buffer: ${uE(r).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 u=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${u}`),this.remove(0,u,(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=tp.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},n){n&&(22!==n.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",n),this.error({message:`${t} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:XS.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i}))}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:i,data:n,bytes:s}){if(!s){const e=[n];let t=n.byteLength;i&&(e.unshift(i),t+=i.byteLength),s=(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:yk({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:r}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:s},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:s}))}handleSegmentTimingInfo_(e,t,i){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const n=this.pendingSegment_.segment,s=`${e}TimingInfo`;n[s]||(n[s]={}),n[s].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[s].transmuxedPresentationStart=i.start.presentation,n[s].transmuxedDecodeStart=i.start.decode,n[s].transmuxedPresentationEnd=i.end.presentation,n[s].transmuxedDecodeEnd=i.end.decode,n[s].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,t){const{type:i,data:n}=t;if(!n||!n.byteLength)return;if("audio"===i&&this.audioDisabled_)return;const s=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:s,data:n})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_())return fk(this),void this.loadQueue_.push((()=>{const t=Op({},e,{forceTimestampOffset:!0});Op(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)}));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),n=null!==this.mediaIndex,s=e.timeline!==this.currentTimeline_&&e.timeline>0,r=i||n&&s;this.logger_(`Requesting\n${nk(e.uri)}\n${hk(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=VC({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_.b
vendor: 14,976 bytes, line 35
35ind(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:n})=>{this.logger_(`${hk(e)} logged from transmuxer stream ${n} as a ${i}: ${t}`)},triggerSegmentEventFn:({type:e,segment:t,keyInfo:i,trackInfo:n,timingInfo:s})=>{const r={segmentInfo:yk({segment:t})};i&&(r.keyInfo=i),n&&(r.trackInfo=n),s&&(r.timingInfo=s),this.trigger({type:e,metadata:r})}})}trimBackBuffer_(e){const t=((e,t,i)=>{let n=t-gC.BACK_BUFFER_LENGTH;e.length&&(n=Math.max(n,e.start(0)));const s=t-i;return Math.min(s,n)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,i=e.part,n=e.segment.key||e.segment.map&&e.segment.map.key,s=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:n,isMediaInitialization:s},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<uk)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===DC)return;return this.pause(),e.code===PC?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),n.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=((e,t,i)=>{if(!t.length)return e;if(i)return t.slice();const n=t[0].pts;let s=0;for(;s<e.length&&!(e[s].pts>=n);s++);return e.slice(0,s).concat(t)})(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}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:n,currentVideoTimestampOffset:s,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===n+s?o.start:n}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:n,isMuxed:s}=t,r="main"===this.loaderType_&&n,o=!this.audioDisabled_&&i&&!s;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:yk({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=gk(e,this.sourceType_);if(t&&("warn"===t.severity?XS.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 ${hk(e)}`);this.logger_(`Appended ${hk(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,n=e.part,s=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,r=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(s||r)return this.logger_(`bad ${s?"segment":"part"} ${hk(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<uk)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,n=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(n-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,i=t.start,n=t.end;if(!ck(i)||!ck(n))return;lk(i,n,this.segmentMetadataTrack_);const s=tp.WebKitDataCue||tp.VTTCue,r={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:n},o=new s(i,n,JSON.stringify(r));o.value=r,this.segmentMetadataTrack_.addCue(o)}}function vk(){}const bk=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toUpperCase()))},Tk=["video","audio"],wk=(e,t)=>{const i=t[`${e}Buffer`];return i&&i.updating||t.queuePending[e]},Sk=(e,t)=>{if(0===t.queue.length)return;let i=0,n=t.queue[i];if("mediaSource"!==n.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!wk(e,t)){if(n.type!==e){if(i=((e,t)=>{for(let i=0;i<t.length;i++){const n=t[i];if("mediaSource"===n.type)return null;if(n.type===e)return i}return null})(e,t.queue),null===i)return;n=t.queue[i]}return t.queue.splice(i,1),t.queuePending[e]=n,n.action(e,t),n.doneFn?void 0:(t.queuePending[e]=null,void Sk(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),n.action(t),n.doneFn&&n.doneFn(),Sk("audio",t),Sk("video",t))},Ek=(e,t)=>{const i=t[`${e}Buffer`],n=bk(e);i&&(i.removeEventListener("updateend",t[`on${n}UpdateEnd_`]),i.removeEventListener("error",t[`on${n}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},Ck=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),kk=(e,t,i)=>(n,s)=>{const r=s[`${n}Buffer`];if(Ck(s.mediaSource,r)){s.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${n}Buffer`);try{r.appendBuffer(e)}catch(e){s.logger_(`Error with code ${e.code} `+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${n}Buffer`),s.queuePending[n]=null,i(e)}}},xk=(e,t)=>(i,n)=>{const s=n[`${i}Buffer`];if(Ck(n.mediaSource,s)){n.logger_(`Removing ${e} to ${t} from ${i}Buffer`);try{s.remove(e,t)}catch(s){n.logger_(`Remove ${e} to ${t} from ${i}Buffer failed`)}}},Ik=e=>(t,i)=>{const n=i[`${t}Buffer`];Ck(i.mediaSource,n)&&(i.logger_(`Setting ${t}timestampOffset to ${e}`),n.timestampOffset=e)},Ak=e=>(t,i)=>{e()},Lk=e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(e){XS.log.warn("Failed to call media source endOfStream",e)}}},Ok=e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(e){XS.log.warn("Failed to set media source duration",e)}},Pk=()=>(e,t)=>{if("open"!==t.mediaSource.readyState)return;const i=t[`${e}Buffer`];if(Ck(t.mediaSource,i)){t.logger_(`calling abort on ${e}Buffer`);try{i.abort()}catch(t){XS.log.warn(`Failed to abort on ${e}Buffer`,t)}}},Dk=(e,t)=>i=>{const n=bk(e),s=zf(t);i.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const r=i.mediaSource.addSourceBuffer(s);r.addEventListener("updateend",i[`on${n}UpdateEnd_`]),r.addEventListener("error",i[`on${n}Error_`]),i.codecs[e]=t,i[`${e}Buffer`]=r},Mk=e=>t=>{const i=t[`${e}Buffer`];if(Ek(e,t),Ck(t.mediaSource,i)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(i)}catch(t){XS.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,t)}}},Nk=e=>(t,i)=>{const n=i[`${t}Buffer`],s=zf(e);if(!Ck(i.mediaSource,n))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{n.changeType(s),i.codecs[t]=e}catch(e){a.errorType=XS.Error.StreamingCodecsChangeError,a.error=e,e.metadata=a,i.error_=e,i.trigger("error"),XS.log.warn(`Failed to changeType on ${t}Buffer`,e)}},Rk=({type:e,sourceUpdater:t,action:i,doneFn:n,name:s})=>{t.queue.push({type:e,action:i,doneFn:n,name:s}),Sk(e,t)},Fk=(e,t)=>i=>{const n=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 n=e.start(i),s=e.end(i);t+=`${n} --\x3e ${s}. Duration (${s-n})\n`}return t}(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,n),t.queuePending[e]){const i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[`${e}Error_`])}Sk(e,t)};class Bk extends XS.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>Sk("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=tE("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=Fk("video",this),this.onAudioUpdateEnd_=Fk("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())}
vendor: 4,192 bytes, line 35
35triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){Rk({type:"mediaSource",sourceUpdater:this,action:Dk(e,t),name:"addSourceBuffer"})}abort(e){Rk({type:e,sourceUpdater:this,action:Pk(e),name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?Rk({type:"mediaSource",sourceUpdater:this,action:Mk(e),name:"removeSourceBuffer"}):XS.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!XS.browser.IS_FIREFOX&&tp.MediaSource&&tp.MediaSource.prototype&&"function"==typeof tp.MediaSource.prototype.removeSourceBuffer}static canChangeType(){return tp.SourceBuffer&&tp.SourceBuffer.prototype&&"function"==typeof tp.SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?Rk({type:e,sourceUpdater:this,action:Nk(t),name:"changeType"}):XS.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:n,bytes:s}=e;if(this.processedAppend_=!0,"audio"===n&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${s.length} until video append`);if(Rk({type:n,sourceUpdater:this,action:kk(s,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===n){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 Ck(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:nE()}videoBuffered(){return Ck(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:nE()}buffered(){const e=Ck(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Ck(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){let i=null,n=null,s=0;const r=[],o=[];if(!(e&&e.length&&t&&t.length))return nE();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?(s++,2===s&&(i=r[a].time)):"end"===r[a].type&&(s--,1===s&&(n=r[a].time)),null!==i&&null!==n&&(o.push([i,n]),i=null,n=null);return nE(o)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=vk){Rk({type:"mediaSource",sourceUpdater:this,action:Ok(e),name:"duration",doneFn:t})}endOfStream(e=null,t=vk){"string"!=typeof e&&(e=void 0),Rk({type:"mediaSource",sourceUpdater:this,action:Lk(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,i=vk){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Rk({type:"audio",sourceUpdater:this,action:xk(e,t),doneFn:i,name:"remove"}):i()}removeVideo(e,t,i=vk){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Rk({type:"video",sourceUpdater:this,action:xk(e,t),doneFn:i,name:"remove"}):i()}updating(){return!(!wk("audio",this)&&!wk("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Rk({type:"audio",sourceUpdater:this,action:Ik(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(Rk({type:"video",sourceUpdater:this,action:Ik(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&Rk({type:"audio",sourceUpdater:this,action:Ak(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&Rk({type:"video",sourceUpdater:this,action:Ak(e),name:"callback"})}
vendor: 9,129 bytes, line 35
35dispose(){this.trigger("dispose"),Tk.forEach((e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`]((()=>Ek(e,this)))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const Uk=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),jk=new Uint8Array("\n\n".split("").map((e=>e.charCodeAt(0))));class $k extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class qk extends _k{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 nE();const e=this.subtitlesTrack_.cues;return nE([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const i=tC(e);let n=this.initSegments_[i];if(t&&!n&&e.bytes){const t=jk.byteLength+e.bytes.byteLength,s=new Uint8Array(t);s.set(e.bytes),s.set(jk,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:s}}return n||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){lk(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===PC&&this.handleTimeout_(),e.code===DC?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const s=n.segment;if(s.map&&(s.map.bytes=t.map.bytes),n.bytes=t.bytes,"function"!=typeof tp.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"})));s.requested=!0;try{this.parseVTTCues_(n)}catch(e){return void this.stopForError({message:e.message,metadata:{errorType:XS.Error.StreamingVttParserError,error:e}})}if(this.updateTimeMapping_(n,this.syncController_.timelines[n.timeline],this.playlist_),n.cues.length?n.timingInfo={start:n.cues[0].startTime,end:n.cues[n.cues.length-1].endTime}:n.timingInfo={start:n.startOfSegment,end:n.startOfSegment+n.duration},n.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");n.byteLength=n.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,n.cues.forEach((e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new tp.VTTCue(e.startTime,e.endTime,e.text):e)})),function(e){const t=e.cues;if(!t)return;const i={};for(let n=t.length-1;n>=0;n--){const s=t[n],r=`${s.startTime}-${s.endTime}-${s.text}`;i[r]?e.removeCue(s):i[r]=s}}(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t,i=!1;if("function"!=typeof tp.WebVTT)throw new $k;"function"==typeof tp.TextDecoder?t=new tp.TextDecoder("utf8"):(t=tp.WebVTT.StringDecoder(),i=!0);const n=new tp.WebVTT.Parser(tp,tp.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=t=>{e.timestampmap=t},n.onparsingerror=e=>{XS.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;i&&(t=Uk(t)),n.parse(t)}let s=e.bytes;i&&(s=Uk(s)),n.parse(s),n.flush()}updateTimeMapping_(e,t,i){const n=e.segment;if(!t)return;if(!e.cues.length)return void(n.empty=!0);const{MPEGTS:s,LOCAL:r}=e.timestampmap,o=s/P_-r+t.mapping;if(e.cues.forEach((e=>{const i=e.endTime-e.startTime,n=this.handleRollover_(e.startTime+o,t.time);e.startTime=Math.max(n,0),e.endTime=Math.max(n+i,0)})),!i.syncInfo){const t=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(t,s-n.duration)}}}handleRollover_(e,t){if(null===t)return e;let i=e*P_;const n=t*P_;let s;for(s=n<i?-8589934592:8589934592;Math.abs(i-n)>4294967296;)i+=s;return i/P_}}const Hk=function(e,t){const i=e.cues;for(let e=0;e<i.length;e++){const n=i[e];if(t>=n.adStartTime&&t<=n.adEndTime)return n}return null};class Vk{constructor({start:e,end:t,segmentIndex:i,partIndex:n=null,appended:s=!1}){this.start_=e,this.end_=t,this.segmentIndex_=i,this.partIndex_=n,this.appended_=s}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 zk{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 Wk{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:n}=e;if(this.isReliable_=this.isReliablePlaylist_(i,n),this.isReliable_)return this.updateStorage_(n,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 n=new Map;let s="\n",r=i,o=t;this.start_=r,e.forEach(((e,t)=>{const i=this.storage_.get(o),a=r,l=a+e.duration,c=Boolean(i&&i.segmentSyncInfo&&i.segmentSyncInfo.isAppended),u=new Vk({start:a,end:l,appended:c,segmentIndex:t});e.syncInfo=u;let h=r;const d=(e.parts||[]).map(((e,n)=>{const r=h,a=h+e.duration,l=Boolean(i&&i.partsSyncInfo&&i.partsSyncInfo[n]&&i.partsSyncInfo[n].isAppended),c=new Vk({start:r,end:a,appended:l,segmentIndex:t,partIndex:n});return h=a,s+=`Media Sequence: ${o}.${n} | Range: ${r} --\x3e ${a} | Appended: ${l}\n`,e.syncInfo=c,c}));n.set(o,new zk(u,d)),s+=`${nk(e.resolvedUri)} | Media Sequence: ${o} | Range: ${a} --\x3e ${l} | Appended: ${c}\n`,o++,r=l})),this.end_=r,this.storage_=n,this.diagnostics_=s}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 Gk extends Wk{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 Xk=[{name:"VOD",run:(e,t,i,n,s)=>{if(i!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"MediaSequence",run:(e,t,i,n,s,r)=>{const o=e.getMediaSequenceSync(r);if(!o)return null;if(!o.isReliable)return null;const a=o.getSyncInfoForTime(s);return a?{time:a.start,partIndex:a.partIndex,segmentIndex:a.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,i,n,s)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let r=null,o=null;const a=fE(t);s=s||0;for(let i=0;i<a.length;i++){const n=a[t.endList||0===s?i:a.length-(i+1)],l=n.segment,c=e.timelineToDatetimeMappings[l.timeline];if(!c||!l.dateTimeObject)continue;let u=l.dateTimeObject.getTime()/1e3+c;if(l.parts&&"number"==typeof n.partIndex)for(let e=0;e<n.partIndex;e++)u+=l.parts[e].duration;const h=Math.abs(s-u);
vendor: 6,682 bytes, line 35
35if(null!==o&&(0===h||o<h))break;o=h,r={time:u,segmentIndex:n.segmentIndex,partIndex:n.partIndex}}return r}},{name:"Segment",run:(e,t,i,n,s)=>{let r=null,o=null;s=s||0;const a=fE(t);for(let e=0;e<a.length;e++){const i=a[t.endList||0===s?e:a.length-(e+1)],l=i.segment,c=i.part&&i.part.start||l&&l.start;if(l.timeline===n&&void 0!==c){const e=Math.abs(s-c);if(null!==o&&o<e)break;(!r||null===o||o>=e)&&(o=e,r={time:c,segmentIndex:i.segmentIndex,partIndex:i.partIndex})}}return r}},{name:"Discontinuity",run:(e,t,i,n,s)=>{let r=null;if(s=s||0,t.discontinuityStarts&&t.discontinuityStarts.length){let i=null;for(let n=0;n<t.discontinuityStarts.length;n++){const o=t.discontinuityStarts[n],a=t.discontinuitySequence+n+1,l=e.discontinuities[a];if(l){const e=Math.abs(s-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,n,s)=>{if(t.syncInfo){return{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}}return null}}];class Kk extends XS.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const t=new Wk,i=new Gk(t),n=new Gk(t);this.mediaSequenceStorage_={main:t,audio:i,vtt:n},this.logger_=tE("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,i,n,s){if(t!==1/0){return Xk.find((({name:e})=>"VOD"===e)).run(this,e,t)}const r=this.runStrategies_(e,t,i,n,s);if(!r.length)return null;for(const t of r){const{syncPoint:i,strategy:s}=t,{segmentIndex:r,time:o}=i;if(r<0)continue;const a=o,l=a+e.segments[r].duration;if(this.logger_(`Strategy: ${s}. Current time: ${n}. selected segment: ${r}. Time: [${a} -> ${l}]}`),n>=a&&n<l)return this.logger_("Found sync point with exact match: ",i),i}return this.selectSyncPoint_(r,{key:"time",value:n})}getExpiredTime(e,t){if(!e||!e.segments)return null;const i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;const n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+bE({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))}runStrategies_(e,t,i,n,s){const r=[];for(let o=0;o<Xk.length;o++){const a=Xk[o],l=a.run(this,e,t,i,n,s);l&&(l.strategy=a.name,r.push({strategy:a.name,syncPoint:l}))}return r}selectSyncPoint_(e,t){let i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),s=e[0].strategy;for(let r=1;r<e.length;r++){const o=Math.abs(e[r].syncPoint[t.key]-t.value);o<n&&(n=o,i=e[r].syncPoint,s=e[r].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${s}]: [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)XS.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);else for(let n=i-1;n>=0;n--){const i=e.segments[n];if(i&&void 0!==i.start){t.syncInfo={mediaSequence:e.mediaSequence+n,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),n=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:n.start}));const s=n.dateTimeObject;n.discontinuity&&t&&s&&(this.timelineToDatetimeMappings[n.timeline]=-s.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 n=e.segment,s=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 s&&(s.start=r,s.end=o),(!n.start||r<n.start)&&(n.start=r),n.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 n=0;n<t.discontinuityStarts.length;n++){const s=t.discontinuityStarts[n],r=t.discontinuitySequence+n+1,o=s-e.mediaIndex,a=Math.abs(o);if(!this.discontinuities[r]||this.discontinuities[r].accuracy>a){let n;n=o<0?i.start-bE({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:s}):i.end+bE({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:s}),this.discontinuities[r]={time:n,accuracy:a}}}}dispose(){this.trigger("dispose"),this.off()}}class Yk extends XS.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 n={timelineChangeInfo:{from:t,to:i}};this.trigger({type:"timelinechange",metadata:n})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const Qk=vC(bC((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,n=0;n<i;++n)t[n].call(this,arguments[1]);
vendor: 4,890 bytes, lines 35-37
35else for(var s=Array.prototype.slice.call(arguments,1),r=t.length,o=0;o<r;++o)t[o].apply(this,s)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}(); 36/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */let t=null;class i{constructor(e){let i,n,s;t||(t=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],n=t[4],s=i[4];let r,o,a;const l=[],c=[];let u,h,d,p,f,m;for(r=0;r<256;r++)c[(l[r]=r<<1^283*(r>>7))^r]=r;for(o=a=0;!n[o];o^=u||1,a=c[a]||1)for(p=a^a<<1^a<<2^a<<3^a<<4,p=p>>8^255&p^99,n[o]=p,s[p]=o,d=l[h=l[u=l[o]]],m=16843009*d^65537*h^257*u^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 c=e.slice(0),u=[];for(this._key=[c,u],i=a;i<4*a+28;i++)s=c[i-1],(i%a==0||8===a&&i%a==4)&&(s=r[s>>>24]<<24^r[s>>16&255]<<16^r[s>>8&255]<<8^r[255&s],i%a==0&&(s=s<<8^s>>>24^l<<24,l=l<<1^283*(l>>7))),c[i]=c[i-a]^s;for(n=0;i;n++,i--)s=c[3&n?i:i-4],u[n]=i<=4||n<4?s:o[0][r[s>>>24]]^o[1][r[s>>16&255]]^o[2][r[s>>8&255]]^o[3][r[255&s]]}decrypt(e,t,i,n,s,r){const o=this._key[1];let a,l,c,u=e^o[0],h=n^o[1],d=i^o[2],p=t^o[3];const f=o.length/4-2;let m,g=4;const y=this._tables[1],_=y[0],v=y[1],b=y[2],T=y[3],w=y[4];for(m=0;m<f;m++)a=_[u>>>24]^v[h>>16&255]^b[d>>8&255]^T[255&p]^o[g],l=_[h>>>24]^v[d>>16&255]^b[p>>8&255]^T[255&u]^o[g+1],c=_[d>>>24]^v[p>>16&255]^b[u>>8&255]^T[255&h]^o[g+2],p=_[p>>>24]^v[u>>16&255]^b[h>>8&255]^T[255&d]^o[g+3],g+=4,u=a,h=l,d=c;for(m=0;m<4;m++)s[(3&-m)+r]=w[u>>>24]<<24^w[h>>16&255]<<16^w[d>>8&255]<<8^w[255&p]^o[g++],a=u,u=h,h=d,d=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 s=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24};class r{constructor(e,t,i,o){const a=r.STEP,l=new Int32Array(e.buffer),c=new Uint8Array(e.byteLength);let u=0;for(this.asyncStream_=new n,this.asyncStream_.push(this.decryptChunk_(l.subarray(u,u+a),t,i,c)),u=a;u<l.length;u+=a)i=new Uint32Array([s(l[u-4]),s(l[u-3]),s(l[u-2]),s(l[u-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(u,u+a),t,i,c));this.asyncStream_.push((function(){var e; 37/*! @name aes-decrypter @version 4.0.2 @license Apache-2.0 */o(null,(e=c).subarray(0,e.byteLength-e[e.byteLength-1]))}))}static get STEP(){return 32e3}decryptChunk_(e,t,n,r){return function(){const o=function(e,t,n){const r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),o=new i(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),l=new Int32Array(a.buffer);let c,u,h,d,p,f,m,g,y;for(c=n[0],u=n[1],h=n[2],d=n[3],y=0;y<r.length;y+=4)p=s(r[y]),f=s(r[y+1]),m=s(r[y+2]),g=s(r[y+3]),o.decrypt(p,f,m,g,l,y),l[y]=s(l[y]^c),l[y+1]=s(l[y+1]^u),l[y+2]=s(l[y+2]^h),l[y+3]=s(l[y+3]^d),c=p,u=f,h=m,d=g;return a}(e,t,n);r.set(o,e.byteOffset)}}}var o,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};o="undefined"!=typeof window?window:void 0!==a?a:"undefined"!=typeof self?self:{};var l=o.BigInt||Number;l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();const c=function(e){const t={};return Object.keys(e).forEach((i=>{const n=e[i];var s;s=n,("function"===ArrayBuffer.isView?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n})),t};self.onmessage=function(e){const t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),n=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),s=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new r(i,n,s,(function(e,i){self.postMessage(c({source:t.source,decrypted:i}),[i.buffer])}))}})));var Jk=_C(Qk);const Zk=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},ex=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},tx=(e,t)=>{t.activePlaylistLoader=e,e.load()},ix={AUDIO:(e,t)=>
vendor: 5,608 bytes, line 37
37()=>{const{mediaTypes:{[e]:i},excludePlaylist:n}=t,s=i.activeTrack(),r=i.activeGroup(),o=(r.filter((e=>e.default))[0]||r[0]).id,a=i.tracks[o];if(s!==a){XS.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 n({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:i}}=t;XS.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const n=i.activeTrack();n&&(n.mode="disabled"),i.onTrackChanged()}},nx={AUDIO:(e,t,i)=>{if(!t)return;const{tech:n,requestOptions:s,segmentLoaders:{[e]:r}}=i;t.on("loadedmetadata",(()=>{const e=t.media();r.playlist(e,s),(!n.paused()||e.endList&&"none"!==n.preload())&&r.load()})),t.on("loadedplaylist",(()=>{r.playlist(t.media(),s),n.paused()||r.load()})),t.on("error",ix[e](e,i))},SUBTITLES:(e,t,i)=>{const{tech:n,requestOptions:s,segmentLoaders:{[e]:r},mediaTypes:{[e]:o}}=i;t.on("loadedmetadata",(()=>{const e=t.media();r.playlist(e,s),r.track(o.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&r.load()})),t.on("loadedplaylist",(()=>{r.playlist(t.media(),s),n.paused()||r.load()})),t.on("error",ix[e](e,i))}},sx={AUDIO:(e,t)=>{const{vhs:i,sourceType:n,segmentLoaders:{[e]:s},requestOptions:r,main:{mediaGroups:o},mediaTypes:{[e]:{groups:a,tracks:l,logger_:c}},mainPlaylistLoader:u}=t,h=AE(u.main);o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},h&&(o[e].main.default.playlists=u.main.playlists));for(const s in o[e]){a[s]||(a[s]=[]);for(const d in o[e][s]){let p,f=o[e][s][d];if(h?(c(`AUDIO group '${s}' label '${d}' is a main playlist`),f.isMainPlaylist=!0,p=null):p="vhs-json"===n&&f.playlists?new GE(f.playlists[0],i,r):f.resolvedUri?new GE(f.resolvedUri,i,r):f.playlists&&"dash"===n?new mC(f.playlists[0],i,r,u):null,f=iE({id:d,playlistLoader:p},f),nx[e](e,f.playlistLoader,t),a[s].push(f),void 0===l[d]){const e=new XS.AudioTrack({id:d,kind:Zk(f),enabled:!1,language:f.language,default:f.default,label:d});l[d]=e}}}s.on("error",ix[e](e,t))},SUBTITLES:(e,t)=>{const{tech:i,vhs:n,sourceType:s,segmentLoaders:{[e]:r},requestOptions:o,main:{mediaGroups:a},mediaTypes:{[e]:{groups:l,tracks:c}},mainPlaylistLoader:u}=t;for(const r in a[e]){l[r]||(l[r]=[]);for(const h in a[e][r]){if(!n.options_.useForcedSubtitles&&a[e][r][h].forced)continue;let d,p=a[e][r][h];if("hls"===s)d=new GE(p.resolvedUri,n,o);else if("dash"===s){if(!p.playlists.filter((e=>e.excludeUntil!==1/0)).length)return;d=new mC(p.playlists[0],n,o,u)}else"vhs-json"===s&&(d=new GE(p.playlists?p.playlists[0]:p.resolvedUri,n,o));if(p=iE({id:h,playlistLoader:d},p),nx[e](e,p.playlistLoader,t),l[r].push(p),void 0===c[h]){const e=i.addRemoteTextTrack({id:h,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:h},!1).track;c[h]=e}}}r.on("error",ix[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:i,main:{mediaGroups:n},mediaTypes:{[e]:{groups:s,tracks:r}}}=t;for(const t in n[e]){s[t]||(s[t]=[]);for(const o in n[e][t]){const a=n[e][t][o];if(!/^(?:CC|SERVICE)/.test(a.instreamId))continue;const l=i.options_.vhs&&i.options_.vhs.captionServices||{};let c={label:o,language:a.language,instreamId:a.instreamId,default:a.default&&a.autoselect};if(l[c.instreamId]&&(c=iE(c,l[c.instreamId])),void 0===c.default&&delete c.default,s[t].push(iE({id:o},a)),void 0===r[o]){const e=i.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;r[o]=e}}}}},rx=(e,t)=>{for(let i=0;i<e.length;i++){if(xE(t,e[i]))return!0;if(e[i].playlists&&rx(e[i].playlists,t))return!0}return!1},ox={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}},ax=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((t=>{sx[t](t,e)}));const{mediaTypes:t,mainPlaylistLoader:i,tech:n,vhs:s,segmentLoaders:{AUDIO:r,main:o}}=e;["AUDIO","SUBTITLES"].forEach((i=>{t[i].activeGroup=((e,t)=>i=>{const{mainPlaylistLoader:n,mediaTypes:{[e]:{groups:s}}}=t,r=n.media();if(!r)return null;let o=null;r.attributes[e]&&(o=s[r.attributes[e]]);const a=Object.keys(s);if(!o)if("AUDIO"===e&&a.length>1&&AE(t.main))for(let e=0;e<a.length;e++){const t=s[a[e]];if(rx(t,r)){o=t;break}}else s.main?o=s.main:1===a.length&&(o=s[a[0]]);return void 0===i?o:null!==i&&o&&o.filter((e=>e.id===i.id))[0]||null})(i,e),t[i].activeTrack=ox[i](i,e),t[i].onGroupChanged=((e,t)=>()=>{const{segmentLoaders:{[e]:i,main:n},mediaTypes:{[e]:s}}=t,r=s.activeTrack(),o=s.getActiveGroup(),a=s.activePlaylistLoader,l=s.lastGroup_;o&&l&&o.id===l.id||(s.lastGroup_=o,s.lastTrack_=r,ex(i,s),o&&!o.isMainPlaylist&&(o.playlistLoader?(i.resyncLoader(),tx(o.playlistLoader,s)):a&&n.resetEverything()))})(i,e),t[i].onGroupChanging=((e,t)=>()=>{const{segmentLoaders:{[e]:i},mediaTypes:{[e]:n}}=t;n.lastGroup_=null,i.abort(),i.pause()})(i,e),t[i].onTrackChanged=((e,t)=>()=>{const{mainPlaylistLoader:i,segmentLoaders:{[e]:n,main:s},mediaTypes:{[e]:r}}=t,o=r.activeTrack(),a=r.getActiveGroup(),l=r.activePlaylistLoader,c=r.lastTrack_;if((!c||!o||c.id!==o.id)&&(r.lastGroup_=a,r.lastTrack_=o,ex(n,r),a)){if(a.isMainPlaylist){if(!o||!c||o.id===c.id)return;const e=t.vhs.playlistController_,n=e.selectPlaylist();if(e.media()===n)return;return r.logger_(`track change. Switching main audio from ${c.id} to ${o.id}`),i.pause(),s.resetEverything(),void e.fastQualityChange_(n)}
vendor: 5,340 bytes, line 37
37if("AUDIO"===e){if(!a.playlistLoader)return s.setAudio(!0),void s.resetEverything();n.setAudio(!0),s.setAudio(!1)}l!==a.playlistLoader?(n.track&&n.track(o),n.resetEverything(),tx(a.playlistLoader,r)):tx(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(),n.trigger({type:"usage",name:"vhs-audio-change"})};n.audioTracks().addEventListener("change",l),n.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),s.on("dispose",(()=>{n.audioTracks().removeEventListener("change",l),n.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),n.clearTracks("audio");for(const e in t.AUDIO.tracks)n.audioTracks().addTrack(t.AUDIO.tracks[e])};class lx{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_=ZS(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 cx extends XS.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new lx,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_=tE("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=ZS(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 n={contentSteeringInfo:{uri:i}};this.trigger({type:"contentsteeringloadstart",metadata:n}),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 s;this.trigger({type:"contentsteeringloadcomplete",metadata:n});try{s=JSON.parse(this.request_.responseText)}catch(e){const t={errorType:XS.Error.StreamingContentSteeringParserError,error:e};this.trigger({type:"error",metadata:t})}this.assignSteeringProperties_(s);const r={contentSteeringInfo:n.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 tp.URL(e),i=new tp.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const t=JSON.parse(tp.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new tp.URL(e),i=this.getPathway(),n=this.getBandwidth_();if(i){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,i)}if(n){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,n)}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 c
37ontent 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_=tp.setTimeout((()=>{this.requestSteeringManifest()}),t)}clearTTLTimeout_(){tp.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 lx}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&&(ZS(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let ux;const hx=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],dx=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]};class px extends XS.EventTarget{constructor(e){super();const{src:t,withCredentials:i,tech:n,bandwidth:s,externVhs:r,useCueTags:o,playlistExclusionDuration:a,enableLowInitialPlaylist:l,sourceType:c,cacheEncryptionKeys:u,bufferBasedABR:h,leastPixelDiffSelector:d,captionServices:p,experimentalUseMMS: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),ux=r,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(d),this.withCredentials=i,this.tech_=n,this.vhs_=n.vhs,this.player_=e.player_,this.sourceType_=c,this.useCueTags_=o,this.playlistExclusionDuration=a,this.maxPlaylistRetries=m,this.enableLowInitialPlaylist=l,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:vk,activeTrack:vk,getActiveGroup:vk,onGroupChanged:vk,onTrackChanged:vk,lastTrack_:null,logger_:tE(`MediaGroups[${t}]`)}})),e})(),f&&tp.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new tp.ManagedMediaSource,XS.log("Using ManagedMediaSource")):tp.MediaSource&&(this.mediaSource=new tp.MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.mediaSource.addEventListener("startstreaming",this.load),this.mediaSource.addEventListener("endstreaming",this.pause),this.seekable_=nE(),this.hasPlayed_=!1,this.syncController_=new Kk(e),this.segmentMetadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new Jk,this.sourceUpdater_=new Bk(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Yk,this.keyStatusMap_=new Map;const g={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:p,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:s,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:u,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new mC(t,this.vhs_,iE(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new GE(t,this.vhs_,iE(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new _k(iE(g,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new _k(iE(g,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new qk(iE(g,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise(((e,t)=>{function i(){n.off("vttjserror",s),e()}function s(){n.off("vttjsloaded",i),t()}n.one("vttjsloaded",i),n.one("vttjserror",s),n.addWebVttScript_()}))}),e);this.contentSteeringController_=new cx(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",(()=>
vendor: 10,987 bytes, line 37
37this.startABRTimer_()))),hx.forEach((e=>{this[e+"_"]=dx.bind(this,e)})),this.logger_=tE("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 y="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(y,(()=>{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 n=this.media(),s=n&&(n.id||n.uri),r=e&&(e.id||e.uri);if(s&&s!==r){this.logger_(`switch media ${s} -> ${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,n=this.contentSteeringController_.getPathway();if(i&&n){const t=(i.length?i[0].playlists:i.playlists).filter((e=>e.attributes.serviceLocation===n));t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}}))}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=tp.setInterval((()=>this.checkABR_()),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(tp.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,n=Object.keys(i);let s;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)s=this.mediaTypes_.AUDIO.activeTrack();else{const e=i.main||n.length&&i[n[0]];for(const t in e)if(e[t].default){s={label:t};break}}if(!s)return t;const r=[];for(const t in i)if(i[t][s.label]){const n=i[t][s.label];if(n.playlists&&n.playlists.length)r.push.apply(r,n.playlists);else if(n.uri)r.push(n);else if(e.playlists.length)for(let i=0;i<e.playlists.length;i++){const n=e.playlists[i];n.attributes&&n.attributes.AUDIO&&n.attributes.AUDIO===t&&r.push(n)}}return r.length?r:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",(()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;kE(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()),ax({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;kE(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(Op({},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 n=!0;const s=Object.keys(i.AUDIO);for(const e in i.AUDIO)for(const t in i.AUDIO[e]){i.AUDIO[e][t].uri||(n=!1)}n&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),ux.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),s.length&&Object.keys(i.AUDIO[s[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(),n=this.bufferLowWaterLine(),s=this.bufferHighWaterLine();return function({currentPlaylist:e,buffered:t,currentTime:i,nextPlaylist:n,bufferLowWaterLine:s,bufferHighWaterLine:r,duration:o,bufferBasedABR:a,log:l}){if(!n)return XS.log.warn("We received no playlist to switch to. Please check your stream."),!1;const c=`allowing switch ${e&&e.id||"null"} -> ${n.id}`;if(!e)return l(`${c} as current playlist is not set`),!0;if(n.id===e.id)return!1;const u=Boolean(aE(t,i).length);if(!e.endList)return u||"number"!=typeof e.partTargetDuration?(l(`${c} as current playlist is live`),!0):(l(`not ${c} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const h=dE(t,i),d=a?gC.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:gC.MAX_BUFFER_LOW_WATER_LINE;if(o<d)return l(`${c} as duration < max low water line (${o} < ${d})`),!0;const p=n.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(p<f&&(!a||h<r)){let e=`${c} as next bandwidth < current bandwidth (${p} < ${f})`;return a&&(e+=` and forwardBuffer < bufferHighWaterLine (${h} < ${r})`),l(e),!0}if((!a||p>f)&&h>=s){let e=`${c} as forwardBuffer >= bufferLowWaterLine (${h} >= ${s})`;return a&&(e+=` and next bandwidth > current bandwidth (${p} > ${f})`),l(e),!0}return l(`not ${c} as no switching criteria met`),!1}({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:s,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.timelineChangeController_.on("audioTimelineBehind",(()=>{const e=this.audioSegmentLoader_.pendingSegment_;if(!e||!e.segment||!e.segment.syncInfo)return;const t=e.segment.syncInfo.end+.01;this.tech_.setCurrentTime(t)})),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",(()=>
vendor: 4,350 bytes, line 37
37{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(Op({},e))})),this.audioSegmentLoader_.on(e,(e=>{this.player_.trigger(Op({},e))})),this.subtitleSegmentLoader_.on(e,(e=>{this.player_.trigger(Op({},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()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}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.mainSegmentLoader_.load()}))}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 n=i;if(e.start){const s=e.start.timeOffset;n=s<0?Math.max(i+s,t.start(0)):Math.min(i,s)}this.trigger("firstplay"),this.tech_.setCurrentTime(n)}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=ux.Playlist.playlistEnd(e,t),n=this.tech_.currentTime(),s=this.tech_.buffered();if(!s.length)return i-n<=rE;const r=s.end(s.length-1);return r-n<=rE&&i-r<=rE}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 n=this.mainPlaylistLoader_.main.playlists,s=n.filter(EE),r=1===s.length&&s[0]===e;if(1===n.length&&i!==1/0)return XS.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;
vendor: 6,701 bytes, line 37
37n.forEach((i=>{if(i===e)return;const n=i.excludeUntil;void 0!==n&&n!==1/0&&(t=!0,delete i.excludeUntil)})),t&&(XS.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_:XS.log.warn,c=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${c} 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 u=a.targetDuration/2*1e3||5e3,h="number"==typeof a.lastRequest&&Date.now()-a.lastRequest<=u;return this.switchMedia_(a,"exclude",r||h)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const i=[],n="all"===e;(n||"main"===e)&&i.push(this.mainPlaylistLoader_);const s=[];(n||"audio"===e)&&s.push("AUDIO"),(n||"subtitle"===e)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach((e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)})),["main","audio","subtitle"].forEach((t=>{const n=this[`${t}SegmentLoader_`];!n||e!==t&&"all"!==e||i.push(n)})),i.forEach((e=>t.forEach((t=>{"function"==typeof e[t]&&e[t]()}))))}setCurrentTime(e){const t=aE(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:ux.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 n=this.mainPlaylistLoader_.main,s=ux.Playlist.seekable(t,i,ux.Playlist.liveEdgeDelay(n,t));if(0===s.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=ux.Playlist.seekable(t,i,ux.Playlist.liveEdgeDelay(n,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)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=nE([[e.start(0)>s.start(0)?e.start(0):s.start(0),e.end(0)<s.end(0)?e.end(0):s.end(0)]]):this.seekable_=s,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===r&&this.seekable_.start(0)===o)return;this.logger_(`seekable updated [${cE(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=ux.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=KC(this.main(),t),n={},s=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(n.video=i.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(n.video+=`,${i.audio||e.main.audioCodec||Xf}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||s)&&(n.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||Xf,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!n.audio&&!n.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(n.hasOwnProperty(t)&&(i=e[t].isFmp4,s=n[t],!(i?Wf(s):Gf(s)))){const i=e[t].isFmp4?"browser":"muxer";r[i]=r[i]||[],r[i].push(n[t]),"audio"===t&&(o=i)}var i,s})),s&&o&&t.attributes.AUDIO){const e=t.attributes.AUDIO;
vendor: 1,930 bytes, line 37
37this.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): "${n.audio}"`)}if(!Object.keys(r).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach((t=>{const i=(Hf(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,s=(Hf(n[t]||"")[0]||{}).type;i&&s&&i.toLowerCase()!==s.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${n[t]}"`)})),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return n}{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 n=e[i];if(-1!==t.indexOf(n.id))return;t.push(n.id);const s=KC(this.main,n),r=[];!s.audio||Gf(s.audio)||Wf(s.audio)||r.push(`audio codec ${s.audio}`),!s.video||Gf(s.video)||Wf(s.video)||r.push(`video codec ${s.video}`),s.text&&"stpp.ttml.im1t"===s.text&&r.push(`text codec ${s.text}`),r.length&&(n.excludeUntil=1/0,this.logger_(`excluding ${n.id} for unsupported: ${r.join(", ")}`))}))}excludeIncompatibleVariants_(e){const t=[],i=this.main().playlists,n=GC(Hf(e)),s=XC(n),r=n.video&&Hf(n.video)[0]||null,o=n.audio&&Hf(n.audio)[0]||null;
vendor: 11,585 bytes, line 37
37Object.keys(i).forEach((e=>{const n=i[e];if(-1!==t.indexOf(n.id)||n.excludeUntil===1/0)return;t.push(n.id);const a=[],l=KC(this.mainPlaylistLoader_.main,n),c=XC(l);if(l.audio||l.video){if(c!==s&&a.push(`codec count "${c}" !== "${s}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&Hf(l.video)[0]||null,t=l.audio&&Hf(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&&(n.excludeUntil=1/0,this.logger_(`excluding ${n.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 n,s=i;for(let i=0;i<e.segments.length;i++){const r=e.segments[i];if(n||(n=Hk(t,s+r.duration/2)),n){if("cueIn"in r){n.endTime=s,n.adEndTime=s,s+=r.duration,n=null;continue}if(s<n.endTime){s+=r.duration;continue}n.endTime+=r.duration}else if("cueOut"in r&&(n=new tp.VTTCue(s,s+r.duration,r.cueOut),n.adStartTime=s,n.adEndTime=s+parseFloat(r.cueOut),t.addCue(n)),"cueOutCont"in r){const[e,i]=r.cueOutCont.split("/").map(parseFloat);n=new tp.VTTCue(s,s+r.duration,""),n.adStartTime=s-e,n.adEndTime=n.adStartTime+i,t.addCue(n)}s+=r.duration}}(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=gC.GOAL_BUFFER_LENGTH,i=gC.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,gC.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=gC.BUFFER_LOW_WATER_LINE,i=gC.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,gC.MAX_BUFFER_LOW_WATER_LINE),s=Math.max(t,gC.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?s:n)}bufferHighWaterLine(){return gC.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){ak(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:e,dateRanges:t})=>{const i=e.metadataTrack_;if(!i)return;const n=tp.WebKitDataCue||tp.VTTCue;t.forEach((e=>{for(const t of Object.keys(e)){if(ok.has(t))continue;const s=new n(e.startTime,e.endTime,"");s.id=e.id,s.type="com.apple.quicktime.HLS",s.value={key:rk[t],data:e[t]},"scte35Out"!==t&&"scte35In"!==t||(s.value.data=new Uint8Array(s.value.data.match(/[\da-f]{2}/gi)).buffer),i.addCue(s)}e.processDateRange()}))})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,i){const n=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();ak(this.inbandTextTracks_,e,this.tech_),sk({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,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(Op({},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 n of e.playlists){const e=n.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 n=!1;Object.keys(t).forEach((s=>{const r=t[s],o=this.pathwayAttribute_(r),a=o&&e!==o;r.excludeUntil===1/0&&"content-steering"===r.lastExcludeReason_&&!a&&(delete r.excludeUntil,delete r.lastExcludeReason_,n=!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&&(n=!0)}})),n&&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,n]of t.entries()){i.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(n),this.contentSteeringController_.excludePathway(e))}for(const[n,s]of i.entries()){const i=t.get(n);if(i)this.equalPathwayClones_(i,s)||(this.mainPlaylistLoader_.updateOrDeleteClone(s,!0),this.contentSteeringController_.addAvailablePathway(n));else{e.filter((e=>e.attributes["PATHWAY-ID"]===s["BASE-ID"])).forEach((e=>{this.mainPlaylistLoader_.addClonePathway(s,e)})),this.contentSteeringController_.addAvailablePathway(n)}}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,n=t["URI-REPLACEMENT"].PARAMS;for(const e in i)if(i[e]!==n[e])return!1;for(const e in n)if(i[e]!==n[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 n=this.mainPlaylistLoader_.getKeyIdSet(i);n&&n.size&&n.forEach((n=>{const s="usable",r=this.keyStatusMap_.has(n)&&this.keyStatusMap_.get(n)===s,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 ${n} is ${s}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==t&&(i.excludeUntil=1/0,i.lastExcludeReason_=t,this.logger_(`excluding playlist ${i.id} because the key ID ${n} doesn't exist in the keyStatusMap or is not ${s}`)),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,n=e.excludeUntil===1/0&&e.lastExcludeReason_===t;i&&n&&(delete e.excludeUntil,XS.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 fx{constructor(e,t,i){const{playlistController_:n}=e,s=n.fastQualityChange_.bind(n);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=KC(n.main(),t),this.playlist=t,this.id=i,this.enabled=(r=e.playlists,o=t.id,a=s,e=>{const t=r.main.playlists[o],i=SE(t),n=EE(t);if(void 0===e)return n;e?delete t.disabled:t.disabled=!0;const s={renditionInfo:{id:o,bandwidth:t.attributes.BANDWIDTH,resolution:t.attributes.RESOLUTION,codecs:t.attributes.CODECS},cause:"fast-quality"};return e===n||i||(a(t),e?r.trigger({type:"renditionenabled",metadata:s}):r.trigger({type:"renditiondisabled",metadata:s})),e})}}const mx=["seeking","seeked","pause","playing","error"];class gx extends XS.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_=tE("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),n=()=>this.techWaiting_(),s=()=>this.resetTimeUpdate_(),r=this.playlistController_,o=["main","subtitle","audio"],a={};o.forEach((e=>{a[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},r[`${e}SegmentLoader_`].on("appendsdone",a[e].updateend),r[`${e}SegmentLoader_`].on("playlistupdate",a[e].reset),this.tech_.on(["seeked","seeking"],a[e].reset)}));const l=e=>{["main","audio"].forEach((t=>{r[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)}))};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=()=>l("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",n),this.tech_.on(mx,s),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",n),this.tech_.off(mx,s),this.tech_.off("canplay",i),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach((e=>{r[`${e}SegmentLoader_`].off("appendsdone",a[e].updateend),r[`${e}SegmentLoader_`].off("playlistupdate",a[e].reset),this.tech_.off(["seeked","seeking"],a[e].reset)})),this.checkCurrentTimeTimeout_&&tp.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&tp.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=tp.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_`],n=i.buffered_(),s=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;
vendor: 6,265 bytes, line 37
37if(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_`],n);if(this[`${e}Buffered_`]=n,s){const i={bufferedRanges:n};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:uE(n)}),this[`${e}StalledDownloads_`]<10||(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.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+rE>=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(nE([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:rE)}if(void 0!==i)return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${cE(e)}. Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0;const n=this.playlistController_.sourceUpdater_,s=this.tech_.buffered(),r=n.audioBuffer?n.audioBuffered():null,o=n.videoBuffer?n.videoBuffered():null,a=this.media(),l=a.partTargetDuration?a.partTargetDuration:2*(a.targetDuration-sE),c=[r,o];for(let e=0;e<c.length;e++){if(!c[e])continue;if(dE(c[e],t)<l)return!1}const u=lE(s,t);return 0!==u.length&&(i=u.start(0)+rE,this.logger_(`Buffered region starts (${u.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=aE(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_,n=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 s=lE(n,t);return s.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${s.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,i,n=!1){if(!e.length)return!1;let s=e.end(e.length-1)+rE;const r=!i.endList,o="number"==typeof i.partTargetDuration;return r&&(o||n)&&(s=e.end(e.length-1)+3*i.targetDuration),t>s}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 n;if(e.length&&t.length){const s=aE(e,i-3),r=aE(e,i),o=aE(t,i);o.length&&!r.length&&s.length&&(n={start:s.end(0),end:o.end(0)})}else{lE(e,i).length||(n=this.gapFromVideoUnderflow_(e,i))}return!!n&&(this.logger_(`Encountered a gap in video from ${n.start} to ${n.end}. Seeking to current time ${i}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),i=this.tech_.currentTime(),n=lE(t,i);if(this.resetTimeUpdate_(),0===n.length||i!==e)return;this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",n.start(0)),this.tech_.setCurrentTime(n.start(0)+sE);const s={gapInfo:{from:i,to:n.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:s}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){const i=function(e){if(e.length<2)return nE();const t=[];for(let i=1;i<e.length;i++){const n=e.end(i-1),s=e.start(i);t.push([n,s])}return nE(t)}(e);for(let e=0;e<i.length;e++){const n=i.start(e),s=i.end(e);if(t-n<4&&t-n>2)return{start:n,end:s}}return null}}const yx={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},_x=function(e,t){let i=0,n=0;const s=iE(yx,t);e.ready((()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})}));const r=function(){n&&e.currentTime(n)},o=function(t){null!=t&&(n=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*s.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(s.getSource&&"function"==typeof s.getSource)return i=Date.now(),s.getSource.call(e,o);XS.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(),_x(e,t)}},vx=function(e){_x(this,e)};var bx="3.15.0";const Tx={PlaylistLoader:GE,Playlist:LE,utils:sC,STANDARD_PLAYLIST_SELECTOR:ik,INITIAL_PLAYLIST_SELECTOR:function(){const e=this.playlists.main.playlists.filter(LE.isEnabled);ZC(e,((e,t)=>
vendor: 4,221 bytes, line 37
37ek(e,t)));return e.filter((e=>!!KC(this.playlists.main,e).video))[0]||null},lastBandwidthSelector:ik,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 n=this.useDevicePixelRatio&&tp.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(n=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),tk(this.playlists.main,t,parseInt(JC(this.tech_.el(),"width"),10)*n,parseInt(JC(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.playlistController_)}},comparePlaylistBandwidth:ek,comparePlaylistResolution:function(e,t){let i,n;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||tp.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||tp.Number.MAX_VALUE,i===n&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},xhr:KE()};Object.keys(gC).forEach((e=>{Object.defineProperty(Tx,e,{get:()=>(XS.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),gC[e]),set(t){XS.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0?XS.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):gC[e]=t}})}));const wx="videojs-vhs",Sx=function(e,t){const i=t.media();let n=-1;for(let t=0;t<e.length;t++)if(e[t].id===i.id){n=t;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})};Tx.canPlaySource=function(){return XS.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const Ex=({player:e,sourceKeySystems:t,audioMedia:i,mainPlaylists:n})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const s=((e,t)=>e.reduce(((e,i)=>{if(!i.contentProtection)return e;const n=t.reduce(((e,t)=>{const n=i.contentProtection[t];return n&&n.pssh&&(e[t]={pssh:n.pssh}),e}),{});return Object.keys(n).length&&e.push(n),e}),[]))(i?n.concat([i]):n,Object.keys(t)),r=[],o=[];return s.forEach((t=>{o.push(new Promise(((t,i)=>{e.tech_.one("keysessioncreated",t)}))),r.push(new Promise(((i,n)=>{e.eme.initializeMediaKeys({keySystems:t},(e=>{e?n(e):i()}))})))})),Promise.race([Promise.all(r),Promise.race(o)])},Cx=({player:e,sourceKeySystems:t,media:i,audioMedia:n})=>{const s=((e,t,i)=>{if(!e)return e;let n={};t&&t.attributes&&t.attributes.CODECS&&(n=GC(Hf(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(n.audio=i.attributes.CODECS);const s=zf(n.video),r=zf(n.audio),o={};for(const i in e)o[i]={},r&&(o[i].audioContentType=r),s&&(o[i].videoContentType=s),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 iE(e,o)})(t,i,n);return!!s&&(e.currentSource().keySystems=s,!(s&&!e.eme)||(XS.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},kx=()=>{if(!tp.localStorage)return null;const e=tp.localStorage.getItem(wx);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},xx=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},Ix=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},Ax=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},Lx=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};Tx.supportsNativeHls=function(){if(!Lp||!Lp.createElement)return!1;const e=Lp.createElement("video");if(!XS.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))}))}(),Tx.supportsNativeDash=!!(Lp&&Lp.createElement&&XS.getTech("Html5").isSupported())&&/maybe|probably/i.test(Lp.createElement("video").canPlayType("application/d
37ash+xml")),Tx.supportsTypeNatively=e=>"hls"===e?Tx.supportsNativeHls:"dash"===e&&Tx.supportsNativeDash,Tx.isSupported=function(){return XS.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},Tx.xhr.onRequest=function(e){xx(Tx.xhr,e)},Tx.xhr.onResponse=function(e){Ix(Tx.xhr,e)},Tx.xhr.offRequest=function(e){Ax(Tx.xhr,e)},Tx.xhr.offResponse=function(e){Lx(Tx.xhr,e)};const Ox=XS.getComponent("Component");class Px extends Ox{constructor(e,t,i){if(super(t,i.vhs),"number"==typeof i.initialBandwidth&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=tE("VhsHandler"),t.options_&&t.options_.playerId){const e=XS.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(Lp,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(e=>{const t=Lp.fullscreenElement||Lp.webkitFullscreenElement||Lp.mozFullScreenElement||Lp.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_=iE(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=kx();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=gC.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===gC.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=Tx,this.options_.sourceType=Qf(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new px(this.options_);const n=iE({liveRangeSafeTimeDelta:rE},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new gx(n),this.attachStreamingEventListeners_(),this.playlistController_.on("error",(()=>{const e=XS.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)}));
vendor: 5,234 bytes, line 37
37const s=this.options_.bufferBasedABR?Tx.movingAverageBandwidthSelector(.55):Tx.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=Tx.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=tp.navigator.connection||tp.navigator.mozConnection||tp.navigator.webkitConnection,i=1e7;if(this.options_.useNetworkInformationApi&&t){const n=1e3*t.downlink*1e3;e=n>=i&&e>=i?Math.max(e,n):n}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(){XS.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:()=>uE(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:()=>uE(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(!tp.localStorage)return!1;let t=kx();t=t?iE(t,e):e;try{tp.localStorage.setItem(wx,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=AE(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter((e=>!SE(e))).map(((t,i)=>new fx(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_=tp.URL.createObjectURL(this.playlistController_.mediaSource),(XS.browser.IS_ANY_SAFARI||XS.browser.IS_IOS)&&this.options_.overrideNative&&"hls"===this.options_.sourceType&&"function"==typeof this.tech_.addSourceElement?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Ex({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 ke
37ys 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=Cx({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=XS.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)})),Sx(e,t.playlists)}(this.qualityLevels_,this)})),this.playlists.on("mediachange",(()=>{Sx(this.qualityLevels_,this.playlists)})))}static version(){return{"@videojs/http-streaming":bx,"mux.js":"7.0.3","mpd-parser":"1.3.1","m3u8-parser":"7.2.0","aes-decrypter":"4.0.2"}}version(){return this.constructor.version()}canChangeType(){return Bk.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_&&tp.URL.revokeObjectURL&&(tp.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return rC({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,i=!0,n=2){return oC({programTime:e,playlist:this.playlistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{xx(this.xhr,e)},this.xhr.onResponse=e=>{Ix(this.xhr,e)},this.xhr.offRequest=e=>{Ax(this.xhr,e)},this.xhr.offResponse=e=>{Lx(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(Op({},e))}))})),["gapjumped","playedrangeschanged"].forEach((e=>{this.playbackWatcher_.on(e,(e=>{this.player_.trigger(Op({},e))}))}))}}const Dx={name:"videojs-http-streaming",VERSION:bx,canHandleSource(e,t={}){const i=iE(XS.options,t);return!(!i.vhs.experimentalUseMMS&&!Wf("avc1.4d400d,mp4a.40.2",!1))&&Dx.canPlayType(e.type,i)},handleSource(e,t,i={}){const n=iE(XS.options,i);return t.vhs=new Px(e,t,n),t.vhs.xhr=KE(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const i=Qf(e);if(!i)return"";const n=Dx.getOverrideNative(t);return!Tx.supportsTypeNatively(i)||n?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,i=!(XS.browser.IS_ANY_SAFARI||XS.browser.IS_IOS),{overrideNative:n=i}=t;return n}};Wf("avc1.4d400d,mp4a.40.2",!0)&&XS.getTech("Html5").registerSourceHandler(Dx,0),XS.VhsHandler=Px,XS.VhsSourceHandler=Dx,XS.Vhs=Tx,XS.use||XS.registerComponent("Vhs",Tx),XS.options.vhs=XS.options.vhs||{},XS.getPlugin&&XS.getPlugin("reloadSourceOnError")||XS.registerPlugin("reloadSourceOnError",vx);const Mx=e=>{const t=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,i=e.getTech("Tech");class n 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"),n.isApiReady?this.initYTPlayer():n.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var e=n.apiReadyQueue.indexOf(this);-1!==e&&n.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)}
vendor: 13,213 bytes, line 37
37createEl(){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 n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=function(){this.pause()}.bind(this),i.appendChild(n)}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 n=this.options_.customVars;Object.keys(n).forEach((function(t){e[t]=n[t]}))}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=e.list;var s={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&&(s.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,s)}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=n.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){}}}n.isSupported=function(){return!0},n.canPlaySource=function(e){return n.canPlayType(e.type)},n.canPlayType=function(e){return"video/youtube"===e},n.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},n.apiReadyQueue=[],"undefined"!=typeof document&&(function(e,t){if("undefined"!=typeof document){var i=!1,n=document.createElement("script"),s=document.getElementsByTagName("script")[0];s&&(s.parentNode.insertBefore(n,s),n.onload=function(){i||(i=!0,t())},n.onreadystatechange=function(){i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,t())},n.src=e)}}("https://www.youtube.com/iframe_api",(function(){YT.ready((function(){n.isApiReady=!0;for(var e=0;e<n.apiReadyQueue.length;++e)n.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",n):e.registerComponent("Youtube",n)},Nx={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",Backgroun
37d:"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"},Rx={};"undefined"!=typeof window&&(window.videojs=XS);class Fx extends _i{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=XS(e,Nx)}setYouTubeVideo(e){Mx(XS),this.player.tech("youtube"),this.player.src({type:"video/youtube",src:e})}static get NAME(){return"videoplayer"}_getConfig(e){return e={...Rx,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}}const Bx=vi.find("[data-bs-video]");Bx.length>0&&Bx.forEach((e=>{Fx.getOrCreateInstance(e)}));const Ux="show";class jx extends _i{constructor(e,t){super(e.closest(".acceptoverlay")),this._overlayable=e.closest(".acceptoverlayable");const i=r.isChoiceRemembered(t.service);if(this._isShown=!0,this._toggleElement=e,this._element.classList.contains(Ux)&&this._overlayable.classList.add(Ux),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.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(Ux),this._overlayable.classList.remove(Ux),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&&Ht(this._element),this._element.classList.add(Ux),this._overlayable.add(Ux);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}const $x=vi.find("[data-bs-accept-from]");$x.length>0&&$x.forEach((e=>{jx.getOrCreateInstance(e,{service:e.dataset.bsAcceptFrom})})),n();return{Alert:class extends Ca{},Button:class extends xa{},Carousel:class extends al{},Collapse:class extends Tl{},Dropdown:class extends Cu{},Modal:class extends oh{},Offcanvas:class extends Eh{},Popover:class extends Yh{},ScrollSpy:class extends ad{},Tab:Ud,Toast:class extends ep{},Tooltip:class extends zh{},VideoPlayer:Fx,AcceptOverlay:jx,Accordion:Dn,BackToTop:Oo,CarouselBI:wi,Cookiebar:nn,Dimmer:Bi,FormValidate:class{constructor(e,t,i){return this.formSelector=e,this.target=document.querySelector(e),this.validate=null!=i?new Dr(e,t,i):new Dr(e,t),this.config=Object.assign({},Rr,this.validate.globalConfig),this.formItems=[],this.init(),this.validate}init(){this.target.querySelectorAll("input, select").forEach((e=>{const t=new Mr(e,this.config.errorFieldCssClass,(()=>this.onInputError(e)),(()=>this.onInputErrorRemove(e)),!0);e.id||e.setAttribute("id",Fr+"-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 Nr(e,"."+this.config.errorLabelCssClass,(()=>this.onFieldsetError(e)),(()=>this.onFieldsetErrorRemove(e)));e.id||e.setAttribute("id",Fr+"-fieldset-"+Math.random()),this.formItems.push({item:e,watcher:t})}}))}onInputError(e){const t=this.getErrorMessages(e),i=[];t.forEach(((t,n)=>{const s=e.id+"-error-"+n;t.setAttribute("id",s),i.push(s)})),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")}
37onFieldsetError(e){const t=this.getErrorMessages(e),i=[],n=[];if(t.forEach(((t,s)=>{const r=e.id+"-error-"+s;t.setAttribute("id",r),i.push(r),n.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}},Forward:jo,HistoryBack:No,Input:Br,InputNumber:Ri,InputPassword:uo,InputSearchAutocomplete:Yr,List:sa,Masonry:Qo,NavBarCollapsible:In,NavScroll:rr,Notification:Wi,ProgressDonut:yo,SelectAutocomplete:class extends _i{constructor(e,t){super(e),this._hasFormControl=e.classList.contains("form-control"),this.element_original_id=this._element.id,this._config=t,this._config.tAssistiveHint||(this._config.tAssistiveHint=()=>"Quando i risultati del completamento automatico sono disponibili, usa le frecce su e giù per rivedere e Invio per selezionare. Utenti di dispositivi touch, esplora tramite tocco o con gesti di scorrimento"),this._config.tNoResults||(this._config.tNoResults=()=>"Nessun risultato trovato"),this._config.tStatusQueryTooShort||(this._config.tStatusQueryTooShort=e=>`Digita ${e} o più caratteri per mostrare le opzioni di ricerca`),this._config.tStatusNoResults||(this._config.tStatusNoResults=()=>"Nessun risultato di ricerca"),this._config.tStatusSelectedOption||(this._config.tStatusSelectedOption=(e,t,i)=>`${e} ${i+1} di ${t} è sottolineato`),this._config.tStatusResults||(this._config.tStatusResults=(e,t)=>`${e} ${1===e?"risultato":"risultati"} ${1===e?"è":"sono"} ${1===e?"disponibile":"disponibili"}. ${t}`),this._enhance()}static get NAME(){return"selectautocomplete"}_enhance(){zr.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)}},Sticky:fr,HeaderSticky:_r,Transfer:Ta,UploadDragDrop:xo,ValidatorSelectAutocomplete:(e,t={})=>(i,n)=>{let s=!1;const r=n[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&&(s=!0)})):s=!0,s},loadFonts:(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 }
37\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)},cookies:r}}));
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.