2025-04-25 19:17:40 -04:00
var hD = ( b , D ) => ( ) => ( D || b ( ( D = { exports : { } } ) . exports , D ) , D . exports ) ; var iR = hD ( ( uR , Th ) => { ( function ( ) { const D = document . createElement ( "link" ) . relList ; if ( D && D . supports && D . supports ( "modulepreload" ) ) return ; for ( const T of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) x ( T ) ; new MutationObserver ( T => { for ( const j of T ) if ( j . type === "childList" ) for ( const O of j . addedNodes ) O . tagName === "LINK" && O . rel === "modulepreload" && x ( O ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function N ( T ) { const j = { } ; return T . integrity && ( j . integrity = T . integrity ) , T . referrerPolicy && ( j . referrerPolicy = T . referrerPolicy ) , T . crossOrigin === "use-credentials" ? j . credentials = "include" : T . crossOrigin === "anonymous" ? j . credentials = "omit" : j . credentials = "same-origin" , j } function x ( T ) { if ( T . ep ) return ; T . ep = ! 0 ; const j = N ( T ) ; fetch ( T . href , j ) } } ) ( ) ; var yD = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { } ; function Zf ( b ) { return b && b . _ _esModule && Object . prototype . hasOwnProperty . call ( b , "default" ) ? b . default : b } var _0 = { exports : { } } , yh = { } , U0 = { exports : { } } , Wt = { } ; / * *
2025-04-24 17:06:14 -04:00
* @ license React
* react . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
2025-04-26 19:21:13 -04:00
* /var h2;function gD(){if(h2)return Wt;h2=1;var b=Symbol.for("react.element"),D=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),O=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),v=Symbol.iterator;function A(se){return se===null||typeof se!="object"?null:(se=v&&se[v]||se["@@iterator"],typeof se=="function"?se:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,ee={};function re(se,Ie,Lt){this.props=se,this.context=Ie,this.refs=ee,this.updater=Lt||z}re.prototype.isReactComponent={},re.prototype.setState=function(se,Ie){if(typeof se!="object"&&typeof se!="function"&&se!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,se,Ie,"setState")},re.prototype.forceUpdate=function(se){this.updater.enqueueForceUpdate(this,se,"forceUpdate")};function ge(){}ge.prototype=re.prototype;function Ae(se,Ie,Lt){this.props=se,this.context=Ie,this.refs=ee,this.updater=Lt||z}var oe=Ae.prototype=new ge;oe.constructor=Ae,I(oe,re.prototype),oe.isPureReactComponent=!0;var De=Array.isArray,Ge=Object.prototype.hasOwnProperty,mt={current:null},ln={key:!0,ref:!0,__self:!0,__source:!0};function xn(se,Ie,Lt){var G,It={},kt=null,dn=null;if(Ie!=null)for(G in Ie.ref!==void 0&&(dn=Ie.ref),Ie.key!==void 0&&(kt=""+Ie.key),Ie)Ge.call(Ie,G)&&!ln.hasOwnProperty(G)&&(It[G]=Ie[G]);var on=arguments.length-2;if(on===1)It.children=Lt;else if(1<on){for(var Sn=Array(on),oi=0;oi<on;oi++)Sn[oi]=arguments[oi+2];It.children=Sn}if(se&&se.defaultProps)for(G in on=se.defaultProps,on)It[G]===void 0&&(It[G]=on[G]);return{$$typeof:b,type:se,key:kt,ref:dn,props:It,_owner:mt.current}}function mn(se,Ie){return{$$typeof:b,type:se.type,key:Ie,ref:se.ref,props:se.props,_owner:se._owner}}function _(se){return typeof se=="object"&&se!==null&&se.$$typeof===b}function le(se){var Ie={"=":"=0",":":"=2"};return"$"+se.replace(/ [ = : ] / g , function ( Lt ) { return Ie [ Lt ] } ) } var pe = /\/+/g ; function qe ( se , Ie ) { return typeof se == "object" && se !== null && se . key != null ? le ( "" + se . key ) : Ie . toString ( 36 ) } function be ( se , Ie , Lt , G , It ) { var kt = typeof se ; ( kt === "undefined" || kt === "boolean" ) && ( se = null ) ; var dn = ! 1 ; if ( se === null ) dn = ! 0 ; else switch ( kt ) { case "string" : case "number" : dn = ! 0 ; break ; case "object" : switch ( se . $$typeof ) { case b : case D : dn = ! 0 } } if ( dn ) return dn = se , It = It ( dn ) , se = G === "" ? "." + qe ( dn , 0 ) : G , De ( It ) ? ( Lt = "" , se != null && ( Lt = se . replace ( pe , "$&/" ) + "/" ) , be ( It , Ie , Lt , "" , function ( oi ) { return oi } ) ) : It != null && ( _ ( It ) && ( It = mn ( It , Lt + ( ! It . key || dn && dn . key === It . key ? "" : ( "" + It . key ) . replace ( pe , "$&/" ) + "/" ) + se ) ) , Ie . push ( It ) ) , 1 ; if ( dn = 0 , G = G === "" ? "." : G + ":" , De ( se ) ) for ( var on = 0 ; on < se . length ; on ++ ) { kt = se [ on ] ; var Sn = G + qe ( kt , on ) ; dn += be ( kt , Ie , Lt , Sn , It ) } else if ( Sn = A ( se ) , typeof Sn == "function" ) for ( se = Sn . call ( se ) , on = 0 ; ! ( kt = se . next ( ) ) . done ; ) kt = kt . value , Sn = G + qe ( kt , on ++ ) , dn += be ( kt , Ie , Lt , Sn , It ) ; else if ( kt === "object" ) throw Ie = String ( se ) , Error ( "Objects are not valid as a React child (found: " + ( Ie === "[object Object]" ? "object with keys {" + Object . keys ( se ) . join ( ", " ) + "}" : Ie ) + "). If you meant to render a collection of children, use an array instead." ) ; return dn } function ke ( se , Ie , Lt ) { if ( se == null ) return se ; var G = [ ] , It = 0 ; return be ( se , G , "" , "" , function ( kt ) { return Ie . call ( Lt , kt , It ++ ) } ) , G } function Ut ( se ) { if ( se . _status === - 1 ) { var Ie = se . _result ; Ie = Ie ( ) , Ie . then ( function ( Lt ) { ( se . _status === 0 || se . _status === - 1 ) && ( se . _status = 1 , se . _result = Lt ) } , function ( Lt ) { ( se . _status === 0 || se . _status === - 1 ) && ( se . _status = 2 , se . _result = Lt ) } ) , se . _status === - 1 && ( se . _status = 0 , se . _result = Ie ) } if ( se . _status === 1 ) return se . _result . default ; throw se . _result } var Ot = { current : null } , Ue = { transition : null } , gt = { ReactCurrentDispatcher : Ot , ReactCurrentBatchConfig : Ue , ReactCurrentOwner : mt } ; function Xe ( ) { throw Error ( "act(...) is not supported in production builds of React." ) } return Wt . Children = { map : ke , forEach : function ( se , Ie ,
2025-04-24 17:06:14 -04:00
* @ license React
* react - jsx - runtime . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
2025-04-26 19:21:13 -04:00
* /var g2;function vD(){if(g2)return yh;g2=1;var b=ev(),D=Symbol.for("react.element"),N=Symbol.for("react.fragment"),x=Object.prototype.hasOwnProperty,T=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function O(h,l,u){var d,v={},A=null,z=null;u!==void 0&&(A=""+u),l.key!==void 0&&(A=""+l.key),l.ref!==void 0&&(z=l.ref);for(d in l)x.call(l,d)&&!j.hasOwnProperty(d)&&(v[d]=l[d]);if(h&&h.defaultProps)for(d in l=h.defaultProps,l)v[d]===void 0&&(v[d]=l[d]);return{$$typeof:D,type:h,key:A,ref:z,props:v,_owner:T.current}}return yh.Fragment=N,yh.jsx=O,yh.jsxs=O,yh}var v2;function mD(){return v2||(v2=1,_0.exports=vD()),_0.exports}var ae=mD(),we=ev();const xh=Zf(we);var Wg={},j0={exports:{}},Gi={},B0={exports:{}},V0={};/ * *
2025-04-24 17:06:14 -04:00
* @ license React
* scheduler . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
2025-04-26 19:21:13 -04:00
* / v a r m 2 ; f u n c t i o n S D ( ) { r e t u r n m 2 | | ( m 2 = 1 , f u n c t i o n ( b ) { f u n c t i o n D ( U e , g t ) { v a r X e = U e . l e n g t h ; U e . p u s h ( g t ) ; e : f o r ( ; 0 < X e ; ) { v a r s e = X e - 1 > > > 1 , I e = U e [ s e ] ; i f ( 0 < T ( I e , g t ) ) U e [ s e ] = g t , U e [ X e ] = I e , X e = s e ; e l s e b r e a k e } } f u n c t i o n N ( U e ) { r e t u r n U e . l e n g t h = = = 0 ? n u l l : U e [ 0 ] } f u n c t i o n x ( U e ) { i f ( U e . l e n g t h = = = 0 ) r e t u r n n u l l ; v a r g t = U e [ 0 ] , X e = U e . p o p ( ) ; i f ( X e ! = = g t ) { U e [ 0 ] = X e ; e : f o r ( v a r s e = 0 , I e = U e . l e n g t h , L t = I e > > > 1 ; s e < L t ; ) { v a r G = 2 * ( s e + 1 ) - 1 , I t = U e [ G ] , k t = G + 1 , d n = U e [ k t ] ; i f ( 0 > T ( I t , X e ) ) k t < I e & & 0 > T ( d n , I t ) ? ( U e [ s e ] = d n , U e [ k t ] = X e , s e = k t ) : ( U e [ s e ] = I t , U e [ G ] = X e , s e = G ) ; e l s e i f ( k t < I e & & 0 > T ( d n , X e ) ) U e [ s e ] = d n , U e [ k t ] = X e , s e = k t ; e l s e b r e a k e } } r e t u r n g t } f u n c t i o n T ( U e , g t ) { v a r X e = U e . s o r t I n d e x - g t . s o r t I n d e x ; r e t u r n X e ! = = 0 ? X e : U e . i d - g t . i d } i f ( t y p e o f p e r f o r m a n c e = = " o b j e c t " & & t y p e o f p e r f o r m a n c e . n o w = = " f u n c t i o n " ) { v a r j = p e r f o r m a n c e ; b . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n j . n o w ( ) } } e l s e { v a r O = D a t e , h = O . n o w ( ) ; b . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n O . n o w ( ) - h } } v a r l = [ ] , u = [ ] , d = 1 , v = n u l l , A = 3 , z = ! 1 , I = ! 1 , e e = ! 1 , r e = t y p e o f s e t T i m e o u t = = " f u n c t i o n " ? s e t T i m e o u t : n u l l , g e = t y p e o f c l e a r T i m e o u t = = " f u n c t i o n " ? c l e a r T i m e o u t : n u l l , A e = t y p e o f s e t I m m e d i a t e < " u " ? s e t I m m e d i a t e : n u l l ; t y p e o f n a v i g a t o r < " u " & & n a v i g a t o r . s c h e d u l i n g ! = = v o i d 0 & & n a v i g a t o r . s c h e d u l i n g . i s I n p u t P e n d i n g ! = = v o i d 0 & & n a v i g a t o r . s c h e d u l i n g . i s I n p u t P e n d i n g . b i n d ( n a v i g a t o r . s c h e d u l i n g ) ; f u n c t i o n o e ( U e ) { f o r ( v a r g t = N ( u ) ; g t ! = = n u l l ; ) { i f ( g t . c a l l b a c k = = = n u l l ) x ( u ) ; e l s e i f ( g t . s t a r t T i m e < = U e ) x ( u ) , g t . s o r t I n d e x = g t . e x p i r a t i o n T i m e , D ( l , g t ) ; e l s e b r e a k ; g t = N ( u ) } } f u n c t i o n D e ( U e ) { i f ( e e = ! 1 , o e ( U e ) , ! I ) i f ( N ( l ) ! = = n u l l ) I = ! 0 , U t ( G e ) ; e l s e { v a r g t = N ( u ) ; g t ! = = n u l l & & O t ( D e , g t . s t a r t T i m e - U e ) } } f u n c t i o n G e ( U e , g t ) { I = ! 1 , e e & & ( e e = ! 1 , g e ( x n ) , x n = - 1 ) , z = ! 0 ; v a r X e = A ; t r y { f o r ( o e ( g t ) , v = N ( l ) ; v ! = = n u l l & & ( ! ( v . e x p i r a t i o n T i m e > g t ) | | U e & & ! l e ( ) ) ; ) { v a r s e = v . c a l l b a c k ; i f ( t y p e o f s e = = " f u n c t i o n " ) { v . c a l l b a c k = n u l l , A = v . p r i o r i t y L e v e l ; v a r I e = s e ( v . e x p i r a t i o n T i m e < = g t ) ; g t = b . u n s t a b l e _ n o w ( ) , t y p e o f I e = = " f u n c t i o n " ? v . c a l l b a c k = I e : v = = = N ( l ) & & x ( l ) , o e ( g t ) } e l s e x ( l ) ; v = N ( l ) } i f ( v ! = = n u l l ) v a r L t = ! 0 ; e l s e { v a r G = N ( u ) ; G ! = = n u l l & & O t ( D e , G . s t a r t T i m e - g t ) , L t = ! 1 } r e t u r n L t } f i n a l l y { v = n u l l , A = X e , z = ! 1 } } v a r m t = ! 1 , l n = n u l l , x n = - 1 , m n = 5 , _ = - 1 ; f u n c t i o n l e ( ) { r e t u r n ! ( b . u n s t a b l e _ n o w ( ) - _ < m n ) } f u n c t i o n p e ( ) { i f ( l n ! = = n u l l ) { v a r U e = b . u n s t a b l e _ n o w ( ) ; _ = U e ; v a r g t = ! 0 ; t r y { g t = l n ( ! 0 , U e ) } f i n a l l y { g t ? q e ( ) : ( m t = ! 1 , l n = n u l l ) } } e l s e m t = ! 1 } v a r q e ; i f ( t y p e o f A e = = " f u n c t i o n " ) q e = f u n c t i o n ( ) { A e ( p e ) } ; e l s e i f ( t y p e o f M e s s a g e C h a n n e l < " u " ) { v a r b e = n e w M e s s a g e C h a n n e l , k e = b e . p o r t 2 ; b e . p o r t 1 . o n m e s s a g e = p e , q e = f u n c t i o n ( ) { k e . p o s t M e s s a g e ( n u l l ) } } e l s e q e = f u n c t i o n ( ) { r e ( p e , 0 ) } ; f u n c t i o n U t ( U e ) { l n = U e , m t | | ( m t = ! 0 , q e ( ) ) } f u n c t i o n O t ( U e , g t ) { x n = r e ( f u n c t i o n ( ) { U e ( b . u n s t a b l e _ n o w ( ) ) } , g t ) } b . u n s t a b l e _ I d l e P r i o r i t y = 5 , b . u n s t a b l e _ I m m e d i a t e P r i o r i t y = 1 , b . u n s t a b l e _ L o w P r i o r i t y = 4 , b . u n s t a b l e _ N o r m a l P r i o r i t y = 3 , b . u n s t a b l e _ P r o f i l i n g = n u l l , b . u n s t a b l e _ U s e r B l o c k i n g P r i o r i t y = 2 , b . u n s t a b l e _ c a n c e l C a l l b a c k = f u n c t i o n ( U e ) { U e . c a l l b a c k = n u l l } , b . u n s t a b l e _ c o n t i n u e E x e c u t i o n = f u n c t i o n ( ) { I | | z | | ( I = ! 0 , U t ( G e ) ) } , b . u n s t a b l e _ f o r c e F r a m e R a t e = f u n c t i o n ( U e ) { 0 > U e | | 1 2 5 < U e ? c o n s o l e . e r r o r ( " f o r c e F r a m e R a t e t a k e s a p o s i t i v e i n t b e t w e e n 0 a n d 1 2 5 , f o r c i n g f r a m e r a t e s h i g h e r t h a n 1 2 5 f p s i s n o t s u p p o r t e d " ) : m n = 0 < U e ? M a t h . f l o o r ( 1 e 3 / U e ) : 5 } , b . u n s t a b l e _ g e t C u r r e n t P r i o r i t y L e v e l = f u n c t i o n ( ) { r e t u r n A } , b . u n s t a b l e _ g e t F i r s t C a l l b a c k N o d e = f u n c t i o n ( ) { r e t u r n N ( l ) } , b . u n s t a b l e _ n e x t = f u n c t i o n ( U e ) { s w i t c h ( A ) { c a s e 1 : c a s e 2 : c a s e 3 : v a r g t = 3 ; b r e a k ; d e f a u l t : g t = A } v a r X e = A ; A = g t ; t r y { r e t u r n U e ( ) } f i n a l l y { A = X e } } , b . u n s t a b l e _ p a u s e E x e c u t i o n = f u n c t i o n ( ) { } , b . u n s t a b l e _ r e q u e s t P a i n t = f u n c t i o n ( ) { } , b . u n s t a b l e _ r u n W i t h P r i o r i t y = f u n c t i o n ( U e , g t ) { s w i t c h ( U e ) { c a s e 1 : c a s e 2 : c a s e 3 : c a s e 4 : c a s e 5 : b r e a k ; d e f a u l t : U e = 3 } v a r X e = A ; A = U e ; t r y { r e t u r n g t ( ) } f i n a l l y { A = X e } } , b . u n s t a b l e _ s c h e d u l e C a l l b a c k = f u n c t i o n ( U e , g t , X e ) { v a r s e = b . u n s t a b l e _ n o w ( ) ; s w i t c h ( t y p e o f X e = = " o b j e c t " & & X e ! = = n u l l ? ( X e = X e . d e l a y , X e = t y p e o f X e = = " n u m b e r " & & 0 < X e ? s e + X e : s e ) : X e = s e , U e ) { c a s e 1 : v a r I e = - 1 ; b r e a k ; c a s e 2 : I e = 2 5 0 ; b r e a k ; c a s e 5 : I e = 1 0 7 3 7 4 1 8 2 3 ; b r e a k ; c a s e 4 : I e = 1 e 4 ; b r e a k ; d e f a u l t : I e = 5 e 3 } r e t u r n I e = X e + I e , U e = { i d : d + + , c a l l b a c k : g t , p r i o r i t y L e v e l : U e , s t a r t T i m e : X e , e x p i r a t i o n T i m e : I e , s o r t I n d e x : - 1 } , X e > s e ? ( U e . s o r t I n d e x = X e , D ( u , U e ) , N ( l ) = = = n u l l & & U e = = = N ( u ) & & ( e e ? ( g e ( x n ) , x n = - 1 ) : e e = ! 0 , O t ( D e , X e - s e ) ) ) : ( U e . s o r t I n d e x = I e , D ( l , U e ) , I | | z | | ( I = ! 0 , U t ( G e ) ) ) , U e } , b . u n s t a b l e _ s h o u l d Y i e l d = l e , b . u n s t a b l e _ w r a p C a l l b a c k = f u n c t i o n ( U e ) { v a r g t = A ; r e t u r n f u n c t i o n ( ) { v a r X e = A ; A = g t ; t r y { r e t u r n U e . a p p l y ( t h i s , a r g u m e n t s )
2025-04-24 17:06:14 -04:00
* @ license React
* react - dom . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
2025-04-26 19:21:13 -04:00
* /var w2;function TD(){if(w2)return Gi;w2=1;var b=ev(),D=wD();function N(s){for(var c="https:/ / reactjs . org / docs / error - decoder . html ? invariant = "+s,y=1;y<arguments.length;y++)c+=" & args [ ] = "+encodeURIComponent(arguments[y]);return" Minified React error # "+s+" ; visit "+c+" for the full message or use the non - minified dev environment for full errors and additional helpful warnings . "}var x=new Set,T={};function j(s,c){O(s,c),O(s+" Capture ",c)}function O(s,c){for(T[s]=c,s=0;s<c.length;s++)x.add(c[s])}var h=!(typeof window>" u "||typeof window.document>" u "||typeof window.document.createElement>" u "),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},v={};function A(s){return l.call(v,s)?!0:l.call(d,s)?!1:u.test(s)?v[s]=!0:(d[s]=!0,!1)}function z(s,c,y,S){if(y!==null&&y.type===0)return!1;switch(typeof c){case" function ":case" symbol ":return!0;case" boolean ":return S?!1:y!==null?!y.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!==" data - "&&s!==" aria - ");default:return!1}}function I(s,c,y,S){if(c===null||typeof c>" u "||z(s,c,y,S))return!0;if(S)return!1;if(y!==null)switch(y.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function ee(s,c,y,S,k,R,V){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=S,this.attributeNamespace=k,this.mustUseProperty=y,this.propertyName=s,this.type=c,this.sanitizeURL=R,this.removeEmptyString=V}var re={};" children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style ".split(" ").forEach(function(s){re[s]=new ee(s,0,!1,s,null,!1,!1)}),[[" acceptCharset "," accept - charset "],[" className "," class "],[" htmlFor "," for "],[" httpEquiv "," http - equiv "]].forEach(function(s){var c=s[0];re[c]=new ee(c,1,!1,s[1],null,!1,!1)}),[" contentEditable "," draggable "," spellCheck "," value "].forEach(function(s){re[s]=new ee(s,2,!1,s.toLowerCase(),null,!1,!1)}),[" autoReverse "," externalResourcesRequired "," focusable "," preserveAlpha "].forEach(function(s){re[s]=new ee(s,2,!1,s,null,!1,!1)})," allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope ".split(" ").forEach(function(s){re[s]=new ee(s,3,!1,s.toLowerCase(),null,!1,!1)}),[" checked "," multiple "," muted "," selected "].forEach(function(s){re[s]=new ee(s,3,!0,s,null,!1,!1)}),[" capture "," download "].forEach(function(s){re[s]=new ee(s,4,!1,s,null,!1,!1)}),[" cols "," rows "," size "," span "].forEach(function(s){re[s]=new ee(s,6,!1,s,null,!1,!1)}),[" rowSpan "," start "].forEach(function(s){re[s]=new ee(s,5,!1,s.toLowerCase(),null,!1,!1)});var ge=/[\-:]([a-z])/g;function Ae(s){return s[1].toUpperCase()}" accent - height alignment - baseline arabic - form baseline - shift cap - height clip - path clip - rule color - interpolation color - interpolation - filters color - profile color - rendering dominant - baseline enable - background fill - opacity fill - rule flood - color flood - opacity font - family font - size font - size - adjust font - stretch font - style font - variant font - weight glyph - name glyph - orientation - horizontal glyph - orientation - vertical horiz - adv - x horiz - origin - x image - rendering letter - spacing lighting - color marker - end marker - mid marker - start overline - position overline - thickness paint - order panose - 1 pointer - events rendering - intent shape - rendering stop - color stop - opacity strikethrough - position strikethrough - thickness stroke - dasharray stroke - dashoffset stroke - linecap stroke - linejoin stroke - miterlimit stroke - opacity stroke - width text - anchor text - decoration text - rendering underline - position underline - thickness unicode - bidi unicode - range units - per - em v - alphabetic v - hanging v - ideographic v - mathematical vector - effect ve
2025-04-24 17:06:14 -04:00
` +se+s}var Lt=!1;function G(s,c){if(!s||Lt)return"";Lt=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(me){var S=me}Reflect.construct(s,[],c)}else{try{c.call()}catch(me){S=me}s.call(c.prototype)}else{try{throw Error()}catch(me){S=me}s()}}catch(me){if(me&&S&&typeof me.stack=="string"){for(var k=me.stack.split( `
` ),R=S.stack.split( `
` ),V=k.length-1,J=R.length-1;1<=V&&0<=J&&k[V]!==R[J];)J--;for(;1<=V&&0<=J;V--,J--)if(k[V]!==R[J]){if(V!==1||J!==1)do if(V--,J--,0>J||k[V]!==R[J]){var te= `
2025-04-25 19:17:40 -04:00
` +k[V].replace(" at new "," at ");return s.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",s.displayName)),te}while(1<=V&&0<=J);break}}}finally{Lt=!1,Error.prepareStackTrace=y}return(s=s?s.displayName||s.name:"")?Ie(s):""}function It(s){switch(s.tag){case 5:return Ie(s.type);case 16:return Ie("Lazy");case 13:return Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 2:case 15:return s=G(s.type,!1),s;case 11:return s=G(s.type.render,!1),s;case 1:return s=G(s.type,!0),s;default:return""}}function kt(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case ln:return"Fragment";case mt:return"Portal";case mn:return"Profiler";case xn:return"StrictMode";case qe:return"Suspense";case be:return"SuspenseList"}if(typeof s=="object")switch(s. $ $ typeof){case le:return(s.displayName||"Context")+".Consumer";case _:return(s._context.displayName||"Context")+".Provider";case pe:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ke:return c=s.displayName||null,c!==null?c:kt(s.type)||"Memo";case Ut:c=s._payload,s=s._init;try{return kt(s(c))}catch{}}return null}function dn(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kt(c);case 8:return c===xn?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function on(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Sn(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function oi(s){var c=Sn(s)?"checked":"value",y=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),S=""+s[c];if(!s.hasOwnProperty(c)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var k=y.get,R=y.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return k.call(this)},set:function(V){S=""+V,R.call(this,V)}}),Object.defineProperty(s,c,{enumerable:y.enumerable}),{getValue:function(){return S},setValue:function(V){S=""+V},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function lc(s){s._valueTracker||(s._valueTracker=oi(s))}function Me(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var y=c.getValue(),S="";return s&&(S=Sn(s)?s.checked?"true":"false":s.value),s=S,s!==y?(c.setValue(s),!0):!1}function sc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function nd(s,c){var y=c.checked;return Xe({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??s._wrapperState.initialChecked})}function Ju(s,c){var y=c.defaultValue==null?"":c.defaultValue,S=c.checked!=null?c.checked:c.defaultChecked;y=on(c.value!=null?c.value:y),s._wrapperState={initialChecked:S,initialValue:y,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Bs(s,c){c=c.checked,c!=null&&oe(s,"checked",c,!1)}function Qu(s,c){Bs(s,c);var y=on(c.value),S=c.type;if(y!=null)S==="number"?(y===0&&s.value===""||s.value!=y)&&(s.value=""+y):s.value!==""+y&&(s.value=""+y);else if(S==="submit"||S==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?Ti(s,c.type,y):c.hasOwnProperty("defaultValue")&&Ti(s,c.type,on(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function Ph(s,c,y){if(c.hasOwnProperty("val
` ).replace(Dd,"")}function ha(s,c,y){if(c=pa(c),pa(s)!==c&&y)throw Error(N(425))}function ya(){}var Oc=null,Od=null;function Rd(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var ns=typeof setTimeout=="function"?setTimeout:void 0,fv=typeof clearTimeout=="function"?clearTimeout:void 0,bd=typeof Promise=="function"?Promise:void 0,dv=typeof queueMicrotask=="function"?queueMicrotask:typeof bd<"u"?function(s){return bd.resolve(null).then(s).catch(pv)}:ns;function pv(s){setTimeout(function(){throw s})}function Rc(s,c){var y=c,S=0;do{var k=y.nextSibling;if(s.removeChild(y),k&&k.nodeType===8)if(y=k.data,y==="/ $ "){if(S===0){s.removeChild(k),rr(c);return}S--}else y!==" $ "&&y!==" $ ?"&&y!==" $ !"||S++;y=k}while(y);rr(c)}function Ru(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c===" $ "||c===" $ !"||c===" $ ?")break;if(c==="/ $ ")return null}}return s}function Md(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var y=s.data;if(y===" $ "||y===" $ !"||y===" $ ?"){if(c===0)return s;c--}else y==="/ $ "&&c++}s=s.previousSibling}return null}var fl=Math.random().toString(36).slice(2),di="__reactFiber $ "+fl,dl="__reactProps $ "+fl,Zo="__reactContainer $ "+fl,Ld="__reactEvents $ "+fl,hv="__reactListeners $ "+fl,rs="__reactHandles $ "+fl;function Co(s){var c=s[di];if(c)return c;for(var y=s.parentNode;y;){if(c=y[Zo]||y[di]){if(y=c.alternate,c.child!==null||y!==null&&y.child!==null)for(s=Md(s);s!==null;){if(y=s[di])return y;s=Md(s)}return c}s=y,y=s.parentNode}return null}function pl(s){return s=s[di]||s[Zo],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function bu(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(N(33))}function ga(s){return s[dl]||null}var va=[],hl=-1;function Pi(s){return{current:s}}function vn(s){0>hl||(s.current=va[hl],va[hl]=null,hl--)}function un(s,c){hl++,va[hl]=s.current,s.current=c}var eu={},fr=Pi(eu),Nr=Pi(!1),Mu=eu;function is(s,c){var y=s.type.contextTypes;if(!y)return eu;var S=s.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===c)return S.__reactInternalMemoizedMaskedChildContext;var k={},R;for(R in y)k[R]=c[R];return S&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=k),k}function dr(s){return s=s.childContextTypes,s!=null}function bc(){vn(Nr),vn(fr)}function Zt(s,c,y){if(fr.current!==eu)throw Error(N(168));un(fr,c),un(Nr,y)}function Nd(s,c,y){var S=s.stateNode;if(c=c.childContextTypes,typeof S.getChildContext!="function")return y;S=S.getChildContext();for(var k in S)if(!(k in c))throw Error(N(108,dn(s)||"Unknown",k));return Xe({},y,S)}function os(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||eu,Mu=fr.current,un(fr,s),un(Nr,Nr.current),!0}function zh(s,c,y){var S=s.stateNode;if(!S)throw Error(N(169));y?(s=Nd(s,c,Mu),S.__reactInternalMemoizedMergedChildContext=s,vn(Nr),vn(fr),un(fr,s)):vn(Nr),un(Nr,y)}var tu=null,ma=!1,Mc=!1;function Di(s){tu===null?tu=[s]:tu.push(s)}function Nt(s){ma=!0,Di(s)}function $ t(){if(!Mc&&tu!==null){Mc=!0;var s=0,c=jt;try{var y=tu;for(jt=1;s<y.length;s++){var S=y[s];do S=S(!0);while(S!==null)}tu=null,ma=!1}catch(k){throw tu!==null&&(tu=tu.slice(s+1)),zl(Mr, $ t),k}finally{jt=c,Mc=!1}}return null}var Oi=[],Lu=0,nu=null,Sa=0,pi=[],Ri=0,Te=null,ko=1,bi="";function xt(s,c){Oi[Lu++]=Sa,Oi[Lu++]=nu,nu=s,Sa=c}function yl(s,c,y){pi[Ri++]=ko,pi[Ri++]=bi,pi[Ri++]=Te,Te=s;var S=ko;s=bi;var k=32-Yr(S)-1;S&=~(1<<k),y+=1;var R=32-Yr(c)+k;if(30<R){var V=k-k%5;R=(S&(1<<V)-1).toString(32),S>>=V,k-=V,ko=1<<32-Yr(c)+k|y<<k|S,bi=R+s}else ko=1<<R|y<<k|S,bi=s}function ru(s){s.return!==null&&(xt(s,1),yl(s,1,0))}function Bt(s){for(;s===nu;)nu=Oi[--Lu],Oi[Lu]=null,Sa=Oi[--Lu],Oi[Lu]=null;for(;s===Te;)Te=pi[--Ri],pi[Ri]=null,bi=pi[--Ri],pi[Ri]=null,ko=pi[--Ri],pi[Ri]=null}var Bn=null,Qr=null,wt=!1,no=null;function _d(s,c){var y=ji(5,null,null,0);y.elementType="DELETED",y.stateNode=c,y.return=s,c=s.deletio
2025-04-24 17:06:14 -04:00
Error generating stack : ` +R.message+ `
2025-04-26 19:21:13 -04:00
` +R.stack}return{value:s,source:c,stack:k,digest:null}}function cu(s,c,y){return{value:s,source:null,stack:y??null,digest:c??null}}function Bu(s,c){try{console.error(c.value)}catch(y){setTimeout(function(){throw y})}}var ty=typeof WeakMap=="function"?WeakMap:Map;function ba(s,c,y){y=ou(-1,y),y.tag=3,y.payload={element:null};var S=c.value;return y.callback=function(){Ba||(Ba=!0,af=S),Bu(s,c)},y}function Ma(s,c,y){y=ou(-1,y),y.tag=3;var S=s.type.getDerivedStateFromError;if(typeof S=="function"){var k=c.value;y.payload=function(){return S(k)},y.callback=function(){Bu(s,c)}}var R=s.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(y.callback=function(){Bu(s,c),typeof S!="function"&&(pu===null?pu=new Set([this]):pu.add(this));var V=c.stack;this.componentDidCatch(c.value,{componentStack:V!==null?V:""})}),y}function tp(s,c,y){var S=s.pingCache;if(S===null){S=s.pingCache=new ty;var k=new Set;S.set(c,k)}else k=S.get(c),k===void 0&&(k=new Set,S.set(c,k));k.has(y)||(k.add(y),s=Sp.bind(null,s,c,y),c.then(s,s))}function np(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function rp(s,c,y,S,k){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(c=ou(-1,1),c.tag=2,uu(y,c,1))),y.lanes|=1),s):(s.flags|=65536,s.lanes=k,s)}var vv=De.ReactCurrentOwner,ir=!1;function cn(s,c,y,S){c.child=s===null?Ao(c,null,y,S):Mt(c,s.child,y,S)}function Ro(s,c,y,S,k){y=y.render;var R=c.ref;return vl(c,k),S=Hd(s,c,y,S,R,k),y=Kc(),s!==null&&!ir?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~k,fu(s,c,k)):(wt&&y&&ru(c),c.flags|=1,cn(s,c,S,k),c.child)}function Jc(s,c,y,S,k){if(s===null){var R=y.type;return typeof R=="function"&&!Tp(R)&&R.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(c.tag=15,c.type=R,Pr(s,c,R,S,k)):(s=Ga(y.type,null,S,c,c.mode,k),s.ref=c.ref,s.return=c,c.child=s)}if(R=s.child,(s.lanes&k)===0){var V=R.memoizedProps;if(y=y.compare,y=y!==null?y:rn,y(V,S)&&s.ref===c.ref)return fu(s,c,k)}return c.flags|=1,s=_o(R,S),s.ref=c.ref,s.return=c,c.child=s}function Pr(s,c,y,S,k){if(s!==null){var R=s.memoizedProps;if(rn(R,S)&&s.ref===c.ref)if(ir=!1,c.pendingProps=S=R,(s.lanes&k)!==0)(s.flags&131072)!==0&&(ir=!0);else return c.lanes=s.lanes,fu(s,c,k)}return or(s,c,y,S,k)}function dt(s,c,y){var S=c.pendingProps,k=S.children,R=s!==null?s.memoizedState:null;if(S.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},un(Il,gi),gi|=y;else{if((y&1073741824)===0)return s=R!==null?R.baseLanes|y:y,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,un(Il,gi),gi|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},S=R!==null?R.baseLanes:y,un(Il,gi),gi|=S}else R!==null?(S=R.baseLanes|y,c.memoizedState=null):S=y,un(Il,gi),gi|=S;return cn(s,c,k,y),c.child}function Qc(s,c){var y=c.ref;(s===null&&y!==null||s!==null&&s.ref!==y)&&(c.flags|=512,c.flags|=2097152)}function or(s,c,y,S,k){var R=dr(y)?Mu:fr.current;return R=is(c,R),vl(c,k),y=Hd(s,c,y,S,R,k),S=Kc(),s!==null&&!ir?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~k,fu(s,c,k)):(wt&&S&&ru(c),c.flags|=1,cn(s,c,y,k),c.child)}function Oe(s,c,y,S,k){if(dr(y)){var R=!0;os(c)}else R=!1;if(vl(c,k),c.stateNode===null)Ts(s,c),Zd(c,y,S),Ra(c,y,S,k),S=!0;else if(s===null){var V=c.stateNode,J=c.memoizedProps;V.props=J;var te=V.context,me=y.contextType;typeof me=="object"&&me!==null?me=Ur(me):(me=dr(y)?Mu:fr.current,me=is(c,me));var Ee=y.getDerivedStateFromProps,Pe=typeof Ee=="function"||typeof V.getSnapshotBeforeUpdate=="function";Pe||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(J!==S||te!==me)&&ep(c,V,S,me),io=!1;var xe=c.memoizedState;V.state=xe,Ia(c,S,V,k),te=c.memoizedState,J!==S||xe!==te||Nr.current||io?(typeof Ee=="function"&&(Yc(c,y,Ee,S),te=c.memoizedState),(J=io|| $ c(c,y,J,S,xe,te,me))?(Pe||typeof V.UNSAFE_componentWillMount!="function"&&typ
2025-04-24 17:06:14 -04:00
* react - router v7 . 1.3
*
* Copyright ( c ) Remix Software Inc .
*
* This source code is licensed under the MIT license found in the
* LICENSE . md file in the root directory of this source tree .
*
* @ license MIT
2025-04-26 19:21:13 -04:00
* /var E2="popstate";function kD(b={}){function D(x,T){let{pathname:j,search:O,hash:h}=x.location;return Q0("",{pathname:j,search:O,hash:h},T.state&&T.state.usr||null,T.state&&T.state.key||"default")}function N(x,T){return typeof T=="string"?T:Ih(T)}return PD(D,N,null,b)}function zn(b,D){if(b===!1||b===null||typeof b>"u")throw new Error(D)}function Yu(b,D){if(!b){typeof console<"u"&&console.warn(D);try{throw new Error(D)}catch{}}}function AD(){return Math.random().toString(36).substring(2,10)}function C2(b,D){return{usr:b.state,key:b.key,idx:D}}function Q0(b,D,N=null,x){return{pathname:typeof b=="string"?b:b.pathname,search:"",hash:"",...typeof D=="string"?ed(D):D,state:N,key:D&&D.key||x||AD()}}function Ih({pathname:b="/ ",search:D=" ",hash:N=" "}){return D&&D!==" ? "&&(b+=D.charAt(0)===" ? "?D:" ? "+D),N&&N!==" # "&&(b+=N.charAt(0)===" # "?N:" # "+N),b}function ed(b){let D={};if(b){let N=b.indexOf(" # ");N>=0&&(D.hash=b.substring(N),b=b.substring(0,N));let x=b.indexOf(" ? ");x>=0&&(D.search=b.substring(x),b=b.substring(0,x)),b&&(D.pathname=b)}return D}function PD(b,D,N,x={}){let{window:T=document.defaultView,v5Compat:j=!1}=x,O=T.history,h=" POP ",l=null,u=d();u==null&&(u=0,O.replaceState({...O.state,idx:u}," "));function d(){return(O.state||{idx:null}).idx}function v(){h=" POP ";let re=d(),ge=re==null?null:re-u;u=re,l&&l({action:h,location:ee.location,delta:ge})}function A(re,ge){h=" PUSH ";let Ae=Q0(ee.location,re,ge);u=d()+1;let oe=C2(Ae,u),De=ee.createHref(Ae);try{O.pushState(oe," ",De)}catch(Ge){if(Ge instanceof DOMException&&Ge.name===" DataCloneError ")throw Ge;T.location.assign(De)}j&&l&&l({action:h,location:ee.location,delta:1})}function z(re,ge){h=" REPLACE ";let Ae=Q0(ee.location,re,ge);u=d();let oe=C2(Ae,u),De=ee.createHref(Ae);O.replaceState(oe," ",De),j&&l&&l({action:h,location:ee.location,delta:0})}function I(re){let ge=T.location.origin!==" null "?T.location.origin:T.location.href,Ae=typeof re==" string "?re:Ih(re);return Ae=Ae.replace(/ $/," % 20 "),zn(ge,`No window.location.(origin|href) available to create URL for href: ${Ae}`),new URL(Ae,ge)}let ee={get action(){return h},get location(){return b(T,O)},listen(re){if(l)throw new Error(" A history only accepts one active listener ");return T.addEventListener(E2,v),l=re,()=>{T.removeEventListener(E2,v),l=null}},createHref(re){return D(T,re)},createURL:I,encodeLocation(re){let ge=I(re);return{pathname:ge.pathname,search:ge.search,hash:ge.hash}},push:A,replace:z,go(re){return O.go(re)}};return ee}function V2(b,D,N=" / "){return DD(b,D,N,!1)}function DD(b,D,N,x){let T=typeof D==" string "?ed(D):D,j=Us(T.pathname||" / ",N);if(j==null)return null;let O=F2(b);OD(O);let h=null;for(let l=0;h==null&&l<O.length;++l){let u=FD(j);h=BD(O[l],u,x)}return h}function F2(b,D=[],N=[],x=" "){let T=(j,O,h)=>{let l={relativePath:h===void 0?j.path||" ":h,caseSensitive:j.caseSensitive===!0,childrenIndex:O,route:j};l.relativePath.startsWith(" / ")&&(zn(l.relativePath.startsWith(x),`Absolute route path " $ { l . relativePath } " nested under path " $ { x } " is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(x.length));let u=Fl([x,l.relativePath]),d=N.concat(l);j.children&&j.children.length>0&&(zn(j.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path " $ { u } ".`),F2(j.children,D,d,u)),!(j.path==null&&!j.index)&&D.push({path:u,score:UD(u,j.index),routesMeta:d})};return b.forEach((j,O)=>{var h;if(j.path===" "||!((h=j.path)!=null&&h.includes(" ? ")))T(j,O);else for(let l of K2(j.path))T(j,O,l)}),D}function K2(b){let D=b.split(" / ");if(D.length===0)return[];let[N,...x]=D,T=N.endsWith(" ? "),j=N.replace(/\?$/," ");if(x.length===0)return T?[j," "]:[j];let O=K2(x.join(" / ")),h=[];return h.push(...O.map(l=>l===" "?j:[j,l].join(" / "))),T&&h.push(...O),h.map(l=>b.startsWith(" / ")&&l===" "?" / ":l)}function OD(b){b.sort((D,N)=>D.score!==N.score?N.score-D.score:jD(D.routesMeta.map(x=>x.childrenIndex),N.routesMeta.map(x=>x.childrenIndex)))}var RD=/^:[\w-]+$/,bD=3,MD=2,LD=1,ND=10,_D=-2,k2=b=>b===" * ";function UD(b,D){let N=b.split(" / " ) , x =
2025-04-24 17:06:14 -04:00
2025-04-26 19:21:13 -04:00
Please change the parent < Route path = "${Ae}" > to < Route path = "${Ae===" / "?" * ":`${Ae}/*`}" > . ` )}let v=js(),A;if(D){let Ae=typeof D=="string"?ed(D):D;zn(u==="/"||((ge=Ae.pathname)==null?void 0:ge.startsWith(u)), ` When overriding the location using \ ` <Routes location> \` or \` useRoutes(routes, location) \` , the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is " ${ u } " but pathname " ${ Ae . pathname } " was given in the \` location \` prop. ` ) , A = Ae } else A = v ; let z = A . pathname || "/" , I = z ; if ( u !== "/" ) { let Ae = u . replace ( /^\// , "" ) . split ( "/" ) ; I = "/" + z . replace ( /^\// , "" ) . split ( "/" ) . slice ( Ae . length ) . join ( "/" ) } let ee = V2 ( b , { pathname : I } ) ; Yu ( d || ee != null , ` No routes matched location " ${ A . pathname } ${ A . search } ${ A . hash } " ` ) , Yu ( ee == null || ee [ ee . length - 1 ] . route . element !== void 0 || ee [ ee . length - 1 ] . route . Component !== void 0 || ee [ ee . length - 1 ] . route . lazy !== void 0 , ` Matched leaf route at location " ${ A . pathname } ${ A . search } ${ A . hash } " does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page. ` ) ; let re = uO ( ee && ee . map ( Ae => Object . assign ( { } , Ae , { params : Object . assign ( { } , h , Ae . params ) , pathname : Fl ( [ u , T . encodeLocation ? T . encodeLocation ( Ae . pathname ) . pathname : Ae . pathname ] ) , pathnameBase : Ae . pathnameBase === "/" ? u : Fl ( [ u , T . encodeLocation ? T . encodeLocation ( Ae . pathnameBase ) . pathname : Ae . pathnameBase ] ) } ) ) , j , N , x ) ; return D && re ? we . createElement ( Ch . Provider , { value : { location : { pathname : "/" , search : "" , hash : "" , state : null , key : "default" , ... A } , navigationType : "POP" } } , re ) : re } function nO ( ) { let b = fO ( ) , D = XD ( b ) ? ` ${ b . status } ${ b . statusText } ` : b instanceof Error ? b . message : JSON . stringify ( b ) , N = b instanceof Error ? b . stack : null , x = "rgba(200,200,200, 0.5)" , T = { padding : "0.5rem" , backgroundColor : x } , j = { padding : "2px 4px" , backgroundColor : x } , O = null ; return console . error ( "Error handled by React Router default ErrorBoundary:" , b ) , O = we . createElement ( we . Fragment , null , we . createElement ( "p" , null , "💿 Hey developer 👋" ) , we . createElement ( "p" , null , "You can provide a way better UX than this when your app throws errors by providing your own " , we . createElement ( "code" , { style : j } , "ErrorBoundary" ) , " or" , " " , we . createElement ( "code" , { style : j } , "errorElement" ) , " prop on your route." ) ) , we . createElement ( we . Fragment , null , we . createElement ( "h2" , null , "Unexpected Application Error!" ) , we . createElement ( "h3" , { style : { fontStyle : "italic" } } , D ) , N ? we . createElement ( "pre" , { style : T } , N ) : null , O ) } var rO = we . createElement ( nO , null ) , iO = class extends we . Component { constructor ( b ) { super ( b ) , this . state = { location : b . location , revalidation : b . revalidation , error : b . error } } static getDerivedStateFromError ( b ) { return { error : b } } static getDerivedStateFromProps ( b , D ) { return D . location !== b . location || D . revalidation !== "idle" && b . revalidation === "idle" ? { error : b . error , location : b . location , revalidation : b . revalidation } : { error : b . error !== void 0 ? b . error : D . error , location : D . location , revalidation : b . revalidation || D . revalidation } } componentDidCatch ( b , D ) { console . error ( "React Router caught the following error during render" , b , D ) } render ( ) { return this . state . error !== void 0 ? we . createElement ( Kl . Provider , { value : this . props . routeContext } , we . createElement ( o1 . Provider , { value : this . state . error , children : this . props . component } ) ) : this . props . children } } ; function oO ( { routeContext : b , match : D , children : N } ) { let x = we . useContext ( td ) ; return x && x . static && x . staticContext && ( D . route . errorElement || D . route . ErrorBoundary ) && ( x . staticContext . _deepestRenderedBoundaryId = D . route . id ) , we . createElement ( Kl . Provider , { value : b } , N ) } function uO ( b , D = [ ] , N = null , x = null ) { if ( b == null ) { if ( ! N ) return null ; if ( N . errors ) b = N . matches ; else if ( D . length === 0 && ! N . initialized && N . matches . length > 0 ) b = N . matches ; else return null } let T = b , j = N == null ? void 0 : N . errors ; if ( j != null ) { let l = T . findIndex ( u => u . route . id && ( j == null ? void 0 : j [ u . route . id ] ) !== void 0 ) ; zn ( l >= 0 , ` Could not find a matching route for errors on route IDs: ${ Object . keys ( j ) . join ( "," ) } ` ) , T = T . slice ( 0 , Math . min ( T . length , l + 1 ) ) } let O = ! 1 , h = - 1 ; if ( N ) for ( let l = 0 ; l < T . length ; l ++ ) { let u = T [ l ] ; if ( ( u . route . HydrateFallback || u . route . hydrateFallbackElement ) && ( h = l ) , u . route . id ) { let { loaderData : d , errors : v
2025-04-24 17:06:14 -04:00
object - assign
( c ) Sindre Sorhus
@ license MIT
2025-04-26 19:21:13 -04:00
* /var X0,L2;function c3(){if(L2)return X0;L2=1;var b=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;function x(j){if(j==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(j)}function T(){try{if(!Object.assign)return!1;var j=new String("abc");if(j[5]="de",Object.getOwnPropertyNames(j)[0]==="5")return!1;for(var O={},h=0;h<10;h++)O["_"+String.fromCharCode(h)]=h;var l=Object.getOwnPropertyNames(O).map(function(d){return O[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return X0=T()?Object.assign:function(j,O){for(var h,l=x(j),u,d=1;d<arguments.length;d++){h=Object(arguments[d]);for(var v in h)D.call(h,v)&&(l[v]=h[v]);if(b){u=b(h);for(var A=0;A<u.length;A++)N.call(h,u[A])&&(l[u[A]]=h[u[A]])}}return l},X0}var f3=c3();const d3=Zf(f3);var uc={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},Dt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Dt).map(function(b){return Dt[b]});var _n={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Zg={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Eh={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},p3=Object.keys(Zg).reduce(function(b,D){return b[Zg[D]]=D,b},{}),h3=[Dt.NOSCRIPT,Dt.SCRIPT,Dt.STYLE],gu="data-react-helmet",y3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},g3=function(b,D){if(!(b instanceof D))throw new TypeError("Cannot call a class as a function")},v3=function(){function b(D,N){for(var x=0;x<N.length;x++){var T=N[x];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(D,T.key,T)}}return function(D,N,x){return N&&b(D.prototype,N),x&&b(D,x),D}}(),Wi=Object.assign||function(b){for(var D=1;D<arguments.length;D++){var N=arguments[D];for(var x in N)Object.prototype.hasOwnProperty.call(N,x)&&(b[x]=N[x])}return b},m3=function(b,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);b.prototype=Object.create(D&&D.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(b,D):b.__proto__=D)},N2=function(b,D){var N={};for(var x in b)D.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(b,x)&&(N[x]=b[x]);return N},S3=function(b,D){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:b},e1=function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return N===!1?String(D):String(D).replace(/ & /g,"&").replace(/ < /g,"<").replace(/ > /g,">").replace(/ "/g," & quot ; ").replace(/'/g," & # x27 ; ")},w3=function(D){var N=Jf(D,Dt.TITLE),x=Jf(D,Eh.TITLE_TEMPLATE);if(x&&N)return x.replace(/%s/g,function(){return Array.isArray(N)?N.join(" "):N});var T=Jf(D,Eh.DEFAULT_TITLE);return N||T||void 0},T3=function(D){return Jf(D,Eh.ON_CHANGE_CLIENT_STATE)||function(){}},Y0=function(D,N){return N.filter(function(x){return typeof x[D]<" u "}).map(function(x){return x[D]}).reduce(function(x,T){return Wi({},x,T)},{})},x3=function(D,N){return N.filter(function(x){return typeof x[Dt.BASE]<" u " } ) . map ( function ( x ) { return x [ Dt . BASE ] } ) . reverse ( ) . reduce ( function ( x , T ) { if ( ! x . length ) for ( var j = Object . keys ( T ) , O = 0 ; O < j . length ; O ++ ) { var
2025-04-24 17:06:14 -04:00
* protobuf . js v7 . 4.0 ( c ) 2016 , daniel wirtz
* compiled thu , 22 aug 2024 20 : 30 : 39 utc
* licensed under the bsd - 3 - clause license
* see : https : //github.com/dcodeio/protobuf.js for details
2025-04-26 19:21:13 -04:00
* / ( f u n c t i o n ( b ) { ( f u n c t i o n ( D , N , x ) { v a r T = f u n c t i o n j ( O ) { v a r h = N [ O ] ; r e t u r n h | | D [ O ] [ 0 ] . c a l l ( h = N [ O ] = { e x p o r t s : { } } , j , h , h . e x p o r t s ) , h . e x p o r t s } ( x [ 0 ] ) ; T . u t i l . g l o b a l . p r o t o b u f = T , t y p e o f d e f i n e = = " f u n c t i o n " & & d e f i n e . a m d & & d e f i n e ( [ " l o n g " ] , f u n c t i o n ( j ) { r e t u r n j & & j . i s L o n g & & ( T . u t i l . L o n g = j , T . c o n f i g u r e ( ) ) , T } ) , t y p e o f T h = = " o b j e c t " & & T h & & T h . e x p o r t s & & ( T h . e x p o r t s = T ) } ) ( { 1 : [ f u n c t i o n ( D , N , x ) { N . e x p o r t s = f u n c t i o n ( T , j ) { f o r ( v a r O = A r r a y ( a r g u m e n t s . l e n g t h - 1 ) , h = 0 , l = 2 , u = ! 0 ; l < a r g u m e n t s . l e n g t h ; ) O [ h + + ] = a r g u m e n t s [ l + + ] ; r e t u r n n e w P r o m i s e ( f u n c t i o n ( d , v ) { O [ h ] = f u n c t i o n ( A ) { i f ( u ) i f ( u = ! 1 , A ) v ( A ) ; e l s e { f o r ( v a r z = A r r a y ( a r g u m e n t s . l e n g t h - 1 ) , I = 0 ; I < z . l e n g t h ; ) z [ I + + ] = a r g u m e n t s [ I ] ; d . a p p l y ( n u l l , z ) } } ; t r y { T . a p p l y ( j | | n u l l , O ) } c a t c h ( A ) { u & & ( u = ! 1 , v ( A ) ) } } ) } } , { } ] , 2 : [ f u n c t i o n ( D , N , x ) { x . l e n g t h = f u n c t i o n ( l ) { v a r u = l . l e n g t h ; i f ( ! u ) r e t u r n 0 ; f o r ( v a r d = 0 ; 1 < - - u % 4 & & ( l [ 0 | u ] | | " " ) = = " = " ; ) + + d ; r e t u r n M a t h . c e i l ( 3 * l . l e n g t h ) / 4 - d } ; f o r ( v a r T = A r r a y ( 6 4 ) , j = A r r a y ( 1 2 3 ) , O = 0 ; O < 6 4 ; ) j [ T [ O ] = O < 2 6 ? O + 6 5 : O < 5 2 ? O + 7 1 : O < 6 2 ? O - 4 : O - 5 9 | 4 3 ] = O + + ; x . e n c o d e = f u n c t i o n ( l , u , d ) { f o r ( v a r v , A = n u l l , z = [ ] , I = 0 , e e = 0 ; u < d ; ) { v a r r e = l [ u + + ] ; s w i t c h ( e e ) { c a s e 0 : z [ I + + ] = T [ r e > > 2 ] , v = ( 3 & r e ) < < 4 , e e = 1 ; b r e a k ; c a s e 1 : z [ I + + ] = T [ v | r e > > 4 ] , v = ( 1 5 & r e ) < < 2 , e e = 2 ; b r e a k ; c a s e 2 : z [ I + + ] = T [ v | r e > > 6 ] , z [ I + + ] = T [ 6 3 & r e ] , e e = 0 } 8 1 9 1 < I & & ( ( A = A | | [ ] ) . p u s h ( S t r i n g . f r o m C h a r C o d e . a p p l y ( S t r i n g , z ) ) , I = 0 ) } r e t u r n e e & & ( z [ I + + ] = T [ v ] , z [ I + + ] = 6 1 , e e = = = 1 & & ( z [ I + + ] = 6 1 ) ) , A ? ( I & & A . p u s h ( S t r i n g . f r o m C h a r C o d e . a p p l y ( S t r i n g , z . s l i c e ( 0 , I ) ) ) , A . j o i n ( " " ) ) : S t r i n g . f r o m C h a r C o d e . a p p l y ( S t r i n g , z . s l i c e ( 0 , I ) ) } ; v a r h = " i n v a l i d e n c o d i n g " ; x . d e c o d e = f u n c t i o n ( l , u , d ) { f o r ( v a r v , A = d , z = 0 , I = 0 ; I < l . l e n g t h ; ) { v a r e e = l . c h a r C o d e A t ( I + + ) ; i f ( e e = = 6 1 & & 1 < z ) b r e a k ; i f ( ( e e = j [ e e ] ) = = = b ) t h r o w E r r o r ( h ) ; s w i t c h ( z ) { c a s e 0 : v = e e , z = 1 ; b r e a k ; c a s e 1 : u [ d + + ] = v < < 2 | ( 4 8 & e e ) > > 4 , v = e e , z = 2 ; b r e a k ; c a s e 2 : u [ d + + ] = ( 1 5 & v ) < < 4 | ( 6 0 & e e ) > > 2 , v = e e , z = 3 ; b r e a k ; c a s e 3 : u [ d + + ] = ( 3 & v ) < < 6 | e e , z = 0 } } i f ( z = = = 1 ) t h r o w E r r o r ( h ) ; r e t u r n d - A } , x . t e s t = f u n c t i o n ( l ) { r e t u r n / ^ ( ? : [ A - Z a - z 0 - 9 + / ] { 4 } ) * ( ? : [ A - Z a - z 0 - 9 + / ] { 2 } = = | [ A - Z a - z 0 - 9 + / ] { 3 } = ) ? $ / . t e s t ( l ) } } , { } ] , 3 : [ f u n c t i o n ( D , N , x ) { f u n c t i o n T ( ) { t h i s . t = { } } ( N . e x p o r t s = T ) . p r o t o t y p e . o n = f u n c t i o n ( j , O , h ) { r e t u r n ( t h i s . t [ j ] | | ( t h i s . t [ j ] = [ ] ) ) . p u s h ( { f n : O , c t x : h | | t h i s } ) , t h i s } , T . p r o t o t y p e . o f f = f u n c t i o n ( j , O ) { i f ( j = = = b ) t h i s . t = { } ; e l s e i f ( O = = = b ) t h i s . t [ j ] = [ ] ; e l s e f o r ( v a r h = t h i s . t [ j ] , l = 0 ; l < h . l e n g t h ; ) h [ l ] . f n = = = O ? h . s p l i c e ( l , 1 ) : + + l ; r e t u r n t h i s } , T . p r o t o t y p e . e m i t = f u n c t i o n ( j ) { v a r O = t h i s . t [ j ] ; i f ( O ) { f o r ( v a r h = [ ] , l = 1 ; l < a r g u m e n t s . l e n g t h ; ) h . p u s h ( a r g u m e n t s [ l + + ] ) ; f o r ( l = 0 ; l < O . l e n g t h ; ) O [ l ] . f n . a p p l y ( O [ l + + ] . c t x , h ) } r e t u r n t h i s } } , { } ] , 4 : [ f u n c t i o n ( D , N , x ) { f u n c t i o n T ( u ) { f u n c t i o n d ( l e , p e , q e , b e ) { v a r k e = p e < 0 ? 1 : 0 ; l e ( ( p e = k e ? - p e : p e ) = = = 0 ? 0 < 1 / p e ? 0 : 2 1 4 7 4 8 3 6 4 8 : i s N a N ( p e ) ? 2 1 4 3 2 8 9 3 4 4 : 3 4 0 2 8 2 3 4 6 6 3 8 5 2 8 8 6 e 2 2 < p e ? ( k e < < 3 1 | 2 1 3 9 0 9 5 0 4 0 ) > > > 0 : p e < 1 1 7 5 4 9 4 3 5 0 8 2 2 2 8 7 5 e - 5 4 ? ( k e < < 3 1 | M a t h . r o u n d ( p e / 1 4 0 1 2 9 8 4 6 4 3 2 4 8 1 7 e - 6 0 ) ) > > > 0 : ( k e < < 3 1 | 1 2 7 + ( l e = M a t h . f l o o r ( M a t h . l o g ( p e ) / M a t h . L N 2 ) ) < < 2 3 | 8 3 8 8 6 0 7 & M a t h . r o u n d ( p e * M a t h . p o w ( 2 , - l e ) * 8 3 8 8 6 0 8 ) ) > > > 0 , q e , b e ) } f u n c t i o n v ( l e , p e , q e ) { r e t u r n l e = l e ( p e , q e ) , p e = 2 * ( l e > > 3 1 ) + 1 , q e = l e > > > 2 3 & 2 5 5 , l e & = 8 3 8 8 6 0 7 , q e = = 2 5 5 ? l e ? N a N : 1 / 0 * p e : q e = = 0 ? 1 4 0 1 2 9 8 4 6 4 3 2 4 8 1 7 e - 6 0 * p e * l e : p e * M a t h . p o w ( 2 , q e - 1 5 0 ) * ( 8 3 8 8 6 0 8 + l e ) } f u n c t i o n A ( l e , p e , q e ) { r e [ 0 ] = l e , p e [ q e ] = g e [ 0 ] , p e [ q e + 1 ] = g e [ 1 ] , p e [ q e + 2 ] = g e [ 2 ] , p e [ q e + 3 ] = g e [ 3 ] } f u n c t i o n z ( l e , p e , q e ) { r e [ 0 ] = l e , p e [ q e ] = g e [ 3 ] , p e [ q e + 1 ] = g e [ 2 ] , p e [ q e + 2 ] = g e [ 1 ] , p e [ q e + 3 ] = g e [ 0 ] } f u n c t i o n I ( l e , p e ) { r e t u r n g e [ 0 ] = l e [ p e ] , g e [ 1 ] = l e [ p e + 1 ] , g e [ 2 ] = l e [ p e + 2 ] , g e [ 3 ] = l e [ p e + 3 ] , r e [ 0 ] } f u n c t i o n e e ( l e , p e ) { r e t u r n g e [ 3 ] = l e [ p e ] , g e [ 2 ] = l e [ p e + 1 ] , g e [ 1 ] = l e [ p e + 2 ] , g e [ 0 ] = l e [ p e + 3 ] , r e [ 0 ] } v a r r e , g e , A e , o e , D e ; f u n c t i o n G e ( l e , p e , q e , b e , k e , U t ) { v a r O t , U e = b e < 0 ? 1 : 0 ; ( b e = U e ? - b e : b e ) = = = 0 ? ( l e ( 0 , k e , U t + p e ) , l e ( 0 < 1 / b e ? 0 : 2 1 4 7 4 8 3 6 4 8 , k e , U t + q e ) ) : i s N a N ( b e ) ? ( l e ( 0 , k e , U t + p e ) , l e ( 2 1 4 6 9 5 9 3 6 0 , k e , U t + q e ) ) : 1 7 9 7 6 9 3 1 3 4 8 6 2 3 1 5 7 e 2 9 2 < b e ? ( l e ( 0 , k e , U t + p e ) , l e ( ( U e < < 3 1 | 2 1 4 6 4 3 5 0 7 2 ) > > > 0 , k e , U t + q e ) ) : b e < 2 2 2 5 0 7 3 8 5 8 5 0 7 2 0 1 4 e - 3 2 4 ? ( l e ( ( O t = b e / 5 e - 3 2 4 ) > > > 0 , k e , U t + p e ) , l e ( ( U e < < 3 1 | O t / 4 2 9 4 9 6 7 2 9 6 ) > > > 0 , k e , U t + q e ) ) : ( l e ( 4 5 0 3 5 9 9 6 2 7 3 7 0 4 9 6 * ( O t = b e * M a t h . p o w ( 2 , - ( b e = ( b e = M a t h . f l o o r ( M a t h . l o g ( b e ) / M a t h . L N 2 ) ) = = = 1 0 2 4 ? 1 0 2 3 : b e ) ) ) > > > 0 , k e , U t + p e ) , l e ( ( U e < < 3 1 | b e + 1 0 2 3 < < 2 0 | 1 0 4 8 5 7 6 * O t & 1 0 4 8 5 7 5 ) > > > 0 , k e , U t + q e ) ) } f u n c t i o n m t ( l e , p e , q e , b e , k e ) { r e t u r n p e = l e ( b e , k e + p e ) , l e = l e ( b e , k e + q e ) , b e = 2 * ( l e > > 3 1 ) + 1 , k e = l e > > > 2 0 & 2 0 4 7 , q e = 4 2 9 4 9 6 7 2 9 6 * ( 1 0 4 8 5 7 5 & l e ) + p e , k e = = 2 0 4 7 ? q e ? N a N : 1 / 0 * b e : k e = = 0 ? 5 e - 3 2 4 * b e * q e : b e * M a t h . p o w ( 2 , k e - 1 0 7 5 ) * ( q e + 4 5 0 3 5 9 9 6 2 7 3 7 0 4 9 6 ) } f u n c t i o n l n ( l e , p e , q e ) { A e [ 0 ] = l e , p e [ q e ] = o e [ 0 ] , p e [ q e + 1 ] = o e [ 1 ] , p e [ q e + 2 ] = o e [ 2 ] , p e [ q e + 3
2025-04-25 19:17:40 -04:00
` ).map(O=>O.trim()).filter(Boolean);const N={method:"UNDEFINED",url:"",headers:{},body:null},x=b.match(D);if(!x)throw console.log(b),new Error("Invalid 'Copy as fetch' string.");N.url=x[1];const T=x[2],j=JSON.parse(T);return j.method&&(N.method=j.method),j.headers&&(N.headers=j.headers),j.body&&(N.body=j.body),N}const V3=new Uint8Array([237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237]),F3=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),K3=new Uint8Array([112,115,115,104]);function r1(b,D){const N=new ArrayBuffer(4);return new DataView(N).setUint32(0,b,D),new Uint8Array(N)}function $ 0(b,D){const N=new ArrayBuffer(2);return new DataView(N).setUint16(0,b,D),new Uint8Array(N)}function j2(b,D){const N=b.length,x=N+32,T=new Uint8Array([...r1(x,!1),...K3,...new Uint8Array(4),...D,...r1(N,!1),...b]);return oI(T)}function H3(b){const D=new Uint8Array([... $ 0(1,!0),... $ 0(b.length,!0),...b]);return new Uint8Array([...r1(D.length+2+4,!0),... $ 0(1,!0),...D])}function q3(b){const D=new Uint8Array(b.length*2);for(let N=0;N<b.length;N++){const x=b.charCodeAt(N);D[N*2]=x&255,D[N*2+1]=x>>8}return D}function z3(b){return Uint8Array.from(b.split("").map(D=>D.charCodeAt()))}async function G3(){try{const b=await navigator.clipboard.readText(),D=B3(b);let N,x;if(D.body.startsWith("<")){x=D.body;const T=x.match(/.*(<WRMHEADER.*< \/ WRMHEADER>).*/),j=T?T[1]:null,O=q3(j),h=H3(O);N=j2(h,F3)}else{const T=z3(D.body);let j,O;try{j=U3.decode(T),O=j3.decode(j.msg)}catch(h){console.error("Decoding failed, returning empty pssh",h),N=""}if(O&&O.contentId&&O.contentId.widevinePsshData){const h=O.contentId.widevinePsshData.psshData[0];N=j2(h,V3)}W3(T)?x=oI(T):x=D.body}document.getElementById("licurl").value=D.url,document.getElementById("headers").value=JSON.stringify(D.headers),document.getElementById("pssh").value=N,document.getElementById("data").value=x}catch(b){console.error("Failed to read clipboard contents:",b)}}function W3(b){return b.some(D=>D>127)}function X3(){const[b,D]=we.useState(""),[N,x]=we.useState(!1),T=()=>{let u=document.getElementById("main_content");u.scrollTop=0},j=u=>{let d=document.getElementById("messageresults").innerHTML;d=d.replace(/<br \s * \/ ?>/gi, `
2025-04-26 19:21:13 -04:00
` ),navigator.clipboard.writeText(d),console.log(d)},O=u=>{u.preventDefault()},h=u=>{let d=document.getElementById("pssh").value,v=document.getElementById("licurl").value,A=document.getElementById("proxy").value,z=document.getElementById("headers").value,I=document.getElementById("cookies").value,ee=document.getElementById("data").value;fetch("/api/decrypt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pssh:d,licurl:v,proxy:A,headers:z,cookies:I,data:ee})}).then(re=>re.json()).then(re=>{const ge=re.message.replace(/ \n /g,"<br />");D(ge),x(!0)}).catch(re=>{console.error("Error during decryption request:",re),D("Error: Unable to process request."),x(!0)})},l=u=>{let d=document.getElementById("pssh"),v=document.getElementById("licurl");document.getElementById("proxy");let A=document.getElementById("headers"),z=document.getElementById("cookies"),I=document.getElementById("data");d.value="",v.value="",A.value="",z.value="",I.value="",D(""),x(!1)};return we.useEffect(()=>{if(N){let u=document.getElementById("main_content");u.scrollTop=u.scrollHeight}},[b,N]),ae.jsxs(ae.Fragment,{children:[ae.jsxs("div",{className:"w-full min-h-full bg-zinc-900 flex flex-col items-center justify-center",children:[ae.jsx(Qf,{children:ae.jsx("title",{children:"CDRM-Project"})}),ae.jsxs("form",{className:"flex flex-col w-8/10 min-h-8/10 bg-[rgba(0,0,0,0.2)] p-10 border-black border-1 rounded-xl shadow-lg shadow-cyan-500/50 overflow-y-auto",onSubmit:O,children:[ae.jsx("label",{htmlFor:"pssh",className:"text-white mb-1",children:"PSSH:"}),ae.jsx("input",{type:"text",id:"pssh",name:"pssh",className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-shadow duration-300 ease-in-out p-2"}),ae.jsx("label",{htmlFor:"licurl",className:"text-white mb-1 mt-1",children:"License URL:"}),ae.jsx("input",{type:"text",id:"licurl",name:"licurl",className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-shadow duration-300 ease-in-out p-2"}),ae.jsx("label",{htmlFor:"proxy",className:"text-white mb-1 mt-1",children:"Proxy:"}),ae.jsx("input",{type:"text",id:"proxy",name:"proxy",className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-shadow duration-300 ease-in-out p-2"}),ae.jsx("label",{htmlFor:"headers",className:"text-white mb-1 mt-1",children:"Headers:"}),ae.jsx("textarea",{id:"headers",name:"headers",className:"text-white bg-[rgba(0,0,0,0.2)] h-24 focus:h-92 focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsx("label",{htmlFor:"cookies",className:"text-white mb-1 mt-1",children:"Cookies:"}),ae.jsx("textarea",{id:"cookies",name:"cookies",className:"text-white bg-[rgba(0,0,0,0.2)] h-24 focus:h-92 focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsx("label",{htmlFor:"data",className:"text-white mb-1 mt-1",children:"Data:"}),ae.jsx("textarea",{id:"data",name:"data",className:"text-white bg-[rgba(0,0,0,0.2)] h-24 focus:h-92 focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsxs("div",{className:"flex flex-row w-full justify-evenly mt-5 mb-5",children:[ae.jsx("button",{type:"button",onClick:h,className:"bg-cyan-500 text-white rounded p-2 hover:bg-cyan-600 transition-colors duration-300 ease-in-out w-1/6 cursor-pointer active:transform active:scale-95 overflow-x-hidden overflow-y-hidden",children:"Submit"}),ae.jsx("button",{type:"button",onClick:G3,className:"bg-yellow-500 text-white rounded p-2 hover:bg-yellow-600 transition-colors duration-300 ease-in-out w-1/6 cursor-pointer active:transform active:scale-95 overflow-x-hidden overflow-y-hidden",children:"Paste from fetch"}),ae.jsx("button",{type:"button",onClick:l,className:"bg-red-500 text-white rounded p-2 hover:bg-red-600 transition-colors duration-300 ease-in
2025-04-24 17:06:14 -04:00
print ( requests . post (
url = '${Yf}/api/decrypt' ,
headers = {
'Content-Type' : 'application/json' ,
} ,
json = {
'pssh' : 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA==' ,
'licurl' : 'https://cwip-shaka-proxy.appspot.com/no_auth' ,
'headers' : str ( {
'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0' ,
'Accept' : '*/*' ,
'Accept-Language' : 'en-US,en;q=0.5' ,
} )
}
2025-04-26 19:21:13 -04:00
) . json ( ) [ 'message' ] ) ` })})]}),ae.jsxs("details",{open:!0,className:" p-5 mb-5 shadow-lg shadow-black border overflow-y-auto",children:[ae.jsxs("summary",{className:"bg-[rgba(0,0,0,0.2)] p-2 rounded text-white flex shadow-sm shadow-purple-900",children:["Sending a search request | ","(Python)"]}),ae.jsx("br",{}),ae.jsx("div",{className:"h-9/10 bg-[rgba(0,0,0,0.2)] p-2 rounded text-white shadow-sm shadow-purple-900",children:ae.jsx("pre",{className:"p-2",children: ` import requests
2025-04-24 17:06:14 -04:00
print ( requests . post (
url = '${Yf}/api/cache/search' ,
json = {
'input' : 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA=='
}
2025-04-26 19:21:13 -04:00
) . json ( ) ) ` })})]}),ae.jsxs("details",{open:!0,className:" p-5 mb-5 shadow-lg shadow-black border overflow-y-auto",children:[ae.jsxs("summary",{className:"bg-[rgba(0,0,0,0.2)] p-2 rounded text-white flex shadow-sm shadow-purple-900",children:["Remote CDM configuration (Widevine) | ","(For PyWidevine / Devine / VineTrimmer / Extensions)"]}),ae.jsx("br",{}),ae.jsx("div",{className:"h-9/10 bg-[rgba(0,0,0,0.2)] p-2 rounded text-white shadow-sm shadow-purple-900",children:ae.jsxs("p",{className:"p-2",children:["device_type: ",ae.jsxs("span",{id:"wv_device_type",children:['"',b.device_type,'"']}),ae.jsx("br",{}),"system_id: ",ae.jsx("span",{id:"wv_system_id",children:b.system_id}),ae.jsx("br",{}),"security_level: ",ae.jsx("span",{id:"wv_security_level",children:b.security_level}),ae.jsx("br",{}),"host: ",ae.jsxs("span",{id:"wv_host",children:['"',Yf,'/remotecdm/widevine"']}),ae.jsx("br",{}),"secret: ",ae.jsxs("span",{id:"wv_secret",children:['"',b.secret,'"']}),ae.jsx("br",{}),"device_name: ",ae.jsx("span",{id:"wv_device_name",children:b.device_name})]})})]}),ae.jsxs("details",{open:!0,className:" p-5 mb-5 shadow-lg shadow-black border overflow-y-auto",children:[ae.jsxs("summary",{className:"bg-[rgba(0,0,0,0.2)] p-2 rounded text-white flex shadow-sm shadow-purple-900",children:["Remote CDM configuration (PlayReady) | ","(For PyPlayReady / Extensions / PlayReady Proxy)"]}),ae.jsx("br",{}),ae.jsx("div",{className:"h-9/10 bg-[rgba(0,0,0,0.2)] p-2 rounded text-white shadow-sm shadow-purple-900",children:ae.jsxs("p",{className:"p-2",children:["device_name: ",ae.jsx("span",{id:"pr_device_name",children:N.device_name}),ae.jsx("br",{}),"security_level: ",ae.jsx("span",{id:"pr_security_level",children:N.security_level}),ae.jsx("br",{}),"host: ",ae.jsxs("span",{id:"pr_host",children:['"',Yf,'/remotecdm/playready"']}),ae.jsx("br",{}),"secret: ",ae.jsxs("span",{id:"pr_secret",children:['"',N.secret,'"']}),ae.jsx("br",{})]})})]}),ae.jsxs("details",{open:!0,className:"p-5 mb-5 shadow-lg shadow-black border overflow-y-auto",children:[ae.jsxs("summary",{className:"bg-[rgba(0,0,0,0.2)] p-2 rounded text-white flex shadow-sm shadow-purple-900 transition-all transition-300 ease-in",children:["Webvault configuration | ","(For Devine / VineTrimmer)"]}),ae.jsx("br",{}),ae.jsx("div",{className:"h-9/10 bg-[rgba(0,0,0,0.2)] p-2 rounded text-white shadow-sm shadow-purple-900",children:ae.jsx("pre",{className:"p-2",children: ` key _vaults :
2025-04-24 17:06:14 -04:00
- type : API
name : "Online Vault"
uri : "${Yf}/api/cache"
2025-04-26 19:21:13 -04:00
token : "${b.secret}" ` })})]})]})})}function J3(){const[b,D]=we.useState(""),[N,x]=we.useState([]),[T,j]=we.useState(0),O=we.useRef(null),h=d=>{const v=d.target.value;D(v),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{v.trim()!==""?u(v):x([])},1e3)},l=()=>{fetch("/api/cache/keycount").then(d=>d.json()).then(d=>{j(d.count)}).catch(d=>{console.error("Error fetching key count:",d)})};we.useEffect(()=>{const d=setInterval(l,1e4);return l(),()=>clearInterval(d)},[]);const u=d=>{fetch("/api/cache/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:d})}).then(v=>v.json()).then(v=>x(v)).catch(v=>console.error("Error:",v))};return ae.jsx(ae.Fragment,{children:ae.jsxs("div",{className:"w-full h-full bg-zinc-900 flex flex-col p-0",children:[ae.jsx(Qf,{children:ae.jsx("title",{children:"Cache"})}),ae.jsxs("div",{className:"flex flex-row w-full",children:[ae.jsx("form",{className:"flex flex-row w-8/10 p-10 h-full rounded-xl self-start",children:ae.jsx("input",{type:"text",id:"search",name:"search",value:b,onChange:h,placeholder:"Search by PSSH/KID",className:"w-full text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-green-700/50 transition-shadow duration-300 ease-in-out p-2"})}),ae.jsxs("p",{className:"text-white w-2/10 p-10 rounded-xl self-start flex flex-col h-full",children:[ae.jsxs("span",{className:"text-white w-1/1 text-center",children:["Cached Keys: ",T," "]}),ae.jsx("a",{href:"/api/cache/download",children:ae.jsx("button",{className:" self-start w-1/1 bg-green-700 rounded-md mt-1 active:transform active:scale-95 cursor-pointer hover:bg-green-600/50 pt-1 pb-1",children:"Download"})})]})]}),ae.jsx("div",{className:"h-full w-full p-10 overflow-y-auto",children:ae.jsx("div",{className:"overflow-x-auto border p-10 rounded-2xl bg-[rgba(0,0,0,0.2)] shadow-md shadow-green-700 min-h-full overflow-y-auto",children:ae.jsxs("table",{className:"min-w-full text-white",children:[ae.jsx("thead",{children:ae.jsxs("tr",{children:[ae.jsx("th",{className:"p-2 border border-black",children:"PSSH"}),ae.jsx("th",{className:"p-2 border border-black",children:"KID"}),ae.jsx("th",{className:"p-2 border border-black",children:"Key"})]})}),ae.jsx("tbody",{children:N.length>0?N.map((d,v)=>ae.jsxs("tr",{children:[ae.jsx("td",{className:"p-2 border border-black",children:d.PSSH}),ae.jsx("td",{className:"p-2 border border-black",children:d.KID}),ae.jsx("td",{className:"p-2 border border-black",children:d.Key})]},v)):ae.jsx("tr",{children:ae.jsx("td",{colSpan:"3",className:"p-2 border border-black text-center",children:"No data found"})})})]})})})]})})}var J0={};/*
2025-04-24 17:06:14 -04:00
@ license
Shaka Player
Copyright 2016 Google LLC
SPDX - License - Identifier : Apache - 2.0
2025-04-26 19:21:13 -04:00
* / v a r B 2 ; f u n c t i o n Q 3 ( ) { r e t u r n B 2 | | ( B 2 = 1 , f u n c t i o n ( b ) { ( f u n c t i o n ( ) { v a r D = t y p e o f w i n d o w < " u " ? w i n d o w : y D , N = { } ; ( f u n c t i o n ( T , j , O ) { v a r h ; f u n c t i o n l ( e ) { v a r t = 0 ; r e t u r n f u n c t i o n ( ) { r e t u r n t < e . l e n g t h ? { d o n e : ! 1 , v a l u e : e [ t + + ] } : { d o n e : ! 0 } } } v a r u = t y p e o f O b j e c t . d e f i n e P r o p e r t i e s = = " f u n c t i o n " ? O b j e c t . d e f i n e P r o p e r t y : f u n c t i o n ( e , t , n ) { r e t u r n e = = A r r a y . p r o t o t y p e | | e = = O b j e c t . p r o t o t y p e | | ( e [ t ] = n . v a l u e ) , e } ; f u n c t i o n d ( e ) { e = [ t y p e o f g l o b a l T h i s = = " o b j e c t " & & g l o b a l T h i s , e , t y p e o f T = = " o b j e c t " & & T , t y p e o f s e l f = = " o b j e c t " & & s e l f , t y p e o f j = = " o b j e c t " & & j ] ; f o r ( v a r t = 0 ; t < e . l e n g t h ; + + t ) { v a r n = e [ t ] ; i f ( n & & n . M a t h = = M a t h ) r e t u r n n } t h r o w E r r o r ( " C a n n o t f i n d g l o b a l o b j e c t " ) } v a r v = d ( t h i s ) ; f u n c t i o n A ( e , t ) { i f ( t ) e : { v a r n = v ; e = e . s p l i t ( " . " ) ; f o r ( v a r r = 0 ; r < e . l e n g t h - 1 ; r + + ) { v a r i = e [ r ] ; i f ( ! ( i i n n ) ) b r e a k e ; n = n [ i ] } e = e [ e . l e n g t h - 1 ] , r = n [ e ] , t = t ( r ) , t ! = r & & t ! = n u l l & & u ( n , e , { c o n f i g u r a b l e : ! 0 , w r i t a b l e : ! 0 , v a l u e : t } ) } } A ( " S y m b o l " , f u n c t i o n ( e ) { f u n c t i o n t ( o ) { i f ( t h i s i n s t a n c e o f t ) t h r o w n e w T y p e E r r o r ( " S y m b o l i s n o t a c o n s t r u c t o r " ) ; r e t u r n n e w n ( r + ( o | | " " ) + " _ " + i + + , o ) } f u n c t i o n n ( o , a ) { t h i s . g = o , u ( t h i s , " d e s c r i p t i o n " , { c o n f i g u r a b l e : ! 0 , w r i t a b l e : ! 0 , v a l u e : a } ) } i f ( e ) r e t u r n e ; n . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n t h i s . g } ; v a r r = " j s c o m p _ s y m b o l _ " + ( 1 e 9 * M a t h . r a n d o m ( ) > > > 0 ) + " _ " , i = 0 ; r e t u r n t } ) , A ( " S y m b o l . i t e r a t o r " , f u n c t i o n ( e ) { i f ( e ) r e t u r n e ; e = S y m b o l ( " S y m b o l . i t e r a t o r " ) ; f o r ( v a r t = " A r r a y I n t 8 A r r a y U i n t 8 A r r a y U i n t 8 C l a m p e d A r r a y I n t 1 6 A r r a y U i n t 1 6 A r r a y I n t 3 2 A r r a y U i n t 3 2 A r r a y F l o a t 3 2 A r r a y F l o a t 6 4 A r r a y " . s p l i t ( " " ) , n = 0 ; n < t . l e n g t h ; n + + ) { v a r r = v [ t [ n ] ] ; t y p e o f r = = " f u n c t i o n " & & t y p e o f r . p r o t o t y p e [ e ] ! = " f u n c t i o n " & & u ( r . p r o t o t y p e , e , { c o n f i g u r a b l e : ! 0 , w r i t a b l e : ! 0 , v a l u e : f u n c t i o n ( ) { r e t u r n z ( l ( t h i s ) ) } } ) } r e t u r n e } ) ; f u n c t i o n z ( e ) { r e t u r n e = { n e x t : e } , e [ S y m b o l . i t e r a t o r ] = f u n c t i o n ( ) { r e t u r n t h i s } , e } f u n c t i o n I ( e ) { v a r t = t y p e o f S y m b o l < " u " & & S y m b o l . i t e r a t o r & & e [ S y m b o l . i t e r a t o r ] ; i f ( t ) r e t u r n t . c a l l ( e ) ; i f ( t y p e o f e . l e n g t h = = " n u m b e r " ) r e t u r n { n e x t : l ( e ) } ; t h r o w E r r o r ( S t r i n g ( e ) + " i s n o t a n i t e r a b l e o r A r r a y L i k e " ) } f u n c t i o n e e ( e ) { i f ( ! ( e i n s t a n c e o f A r r a y ) ) { e = I ( e ) ; f o r ( v a r t , n = [ ] ; ! ( t = e . n e x t ( ) ) . d o n e ; ) n . p u s h ( t . v a l u e ) ; e = n } r e t u r n e } v a r r e = t y p e o f O b j e c t . c r e a t e = = " f u n c t i o n " ? O b j e c t . c r e a t e : f u n c t i o n ( e ) { f u n c t i o n t ( ) { } r e t u r n t . p r o t o t y p e = e , n e w t } , g e ; i f ( t y p e o f O b j e c t . s e t P r o t o t y p e O f = = " f u n c t i o n " ) g e = O b j e c t . s e t P r o t o t y p e O f ; e l s e { v a r A e ; e : { v a r o e = { a : ! 0 } , D e = { } ; t r y { D e . _ _ p r o t o _ _ = o e , A e = D e . a ; b r e a k e } c a t c h { } A e = ! 1 } g e = A e ? f u n c t i o n ( e , t ) { i f ( e . _ _ p r o t o _ _ = t , e . _ _ p r o t o _ _ ! = = t ) t h r o w n e w T y p e E r r o r ( e + " i s n o t e x t e n s i b l e " ) ; r e t u r n e } : n u l l } v a r G e = g e ; f u n c t i o n m t ( e , t ) { i f ( e . p r o t o t y p e = r e ( t . p r o t o t y p e ) , e . p r o t o t y p e . c o n s t r u c t o r = e , G e ) G e ( e , t ) ; e l s e f o r ( v a r n i n t ) i f ( n ! = " p r o t o t y p e " ) i f ( O b j e c t . d e f i n e P r o p e r t i e s ) { v a r r = O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( t , n ) ; r & & O b j e c t . d e f i n e P r o p e r t y ( e , n , r ) } e l s e e [ n ] = t [ n ] ; e . F k = t . p r o t o t y p e } f u n c t i o n l n ( ) { t h i s . o = ! 1 , t h i s . l = n u l l , t h i s . h = v o i d 0 , t h i s . g = 1 , t h i s . j = t h i s . m = 0 , t h i s . A = t h i s . i = n u l l } f u n c t i o n x n ( e ) { i f ( e . o ) t h r o w n e w T y p e E r r o r ( " G e n e r a t o r i s a l r e a d y r u n n i n g " ) ; e . o = ! 0 } l n . p r o t o t y p e . s = f u n c t i o n ( e ) { t h i s . h = e } ; f u n c t i o n m n ( e , t ) { e . i = { E g : t , R g : ! 0 } , e . g = e . m | | e . j } l n . p r o t o t y p e . r e t u r n = f u n c t i o n ( e ) { t h i s . i = { r e t u r n : e } , t h i s . g = t h i s . j } ; f u n c t i o n _ ( e , t , n ) { r e t u r n e . g = n , { v a l u e : t } } l n . p r o t o t y p e . u = f u n c t i o n ( e ) { t h i s . g = e } ; f u n c t i o n l e ( e ) { e . g = 0 } f u n c t i o n p e ( e , t , n ) { e . m = t , n ! = n u l l & & ( e . j = n ) } f u n c t i o n q e ( e , t ) { e . m = 0 , e . j = t | | 0 } f u n c t i o n b e ( e , t , n ) { e . g = t , e . m = n | | 0 } f u n c t i o n k e ( e , t ) { r e t u r n e . m = t | | 0 , t = e . i . E g , e . i = n u l l , t } f u n c t i o n U t ( e ) { e . A = [ e . i ] , e . m = 0 , e . j = 0 } f u n c t i o n O t ( e , t ) { v a r n = e . A . s p l i c e ( 0 ) [ 0 ] ; ( n = e . i = e . i | | n ) ? n . R g ? e . g = e . m | | e . j : n . u ! = n u l l & & e . j < n . u ? ( e . g = n . u , e . i = n u l l ) : e . g = e . j : e . g = t } f u n c t i o n U e ( e ) { t h i s . g = n e w l n , t h i s . h = e } f u n c t i o n g t ( e , t ) { x n ( e . g ) ; v a r n = e . g . l ; r e t u r n n ? X e ( e , " r e t u r n " i n n ? n . r e t u r n : f u n c t i o n ( r ) { r e t u r n { v a l u e : r , d o n e : ! 0 } } , t , e . g . r e t u r n ) : ( e . g . r e t u r n ( t ) , s e ( e ) ) } f u n c t i o n X e ( e , t , n , r ) { t r y { v a r i = t . c a l l ( e . g . l , n ) ; i f ( ! ( i i n s t a n c e o f O b j e c t ) ) t h r o w n e w T y p e E r r o r ( " I t e r a t o r r e s u l t " + i + " i s n o t a n o b j e c t " ) ; i f ( ! i . d o n e ) r e t u r n e . g . o = ! 1 , i ; v a r o = i . v a l u e } c a t c h ( a ) { r e t u r n e . g . l = n u l l , m n ( e . g , a ) , s e ( e ) } r e t u r n e . g . l = n u l l , r . c a l l ( e . g , o ) , s e ( e ) } f u n c t i o n s e ( e ) { f o r ( ; e . g . g ; ) t r y { v a r t = e . h ( e . g ) ; i f ( t ) r e t u r n e . g . o = ! 1 , { v a l u e : t . v a l u e , d o n e : ! 1 } } c a t c h ( n ) { e . g . h = v o i d 0 , m n ( e . g , n ) } i f ( e . g . o = ! 1 , e . g . i ) { i f ( t = e . g . i , e . g . i = n u l l , t . R g ) t h r o w t . E g ; r e t u r n { v a l u e : t . r e t u r n , d o n e : ! 0 } } r e t u r n { v a l u e : v o i d 0 , d o n e : ! 0 } } f u n c t i o n I e ( e ) { t h i s . n e x t = f u n c t i o n ( t ) { r e t u r n x
2025-04-24 17:06:14 -04:00
` ),Error( ` Unexpected close tag
Line : ` +(o.length-1)+ `
Column : ` +(o[o.length-1].length+1)+ `
Char : ` +e[i]);i+1&&(i+=1);break}else if(e.charCodeAt(i+1)===33){if(e.charCodeAt(i+2)==45){for(;i!==-1&&(e.charCodeAt(i)!==62||e.charCodeAt(i-1)!=45||e.charCodeAt(i-2)!=45||i==-1);)i=e.indexOf(">",i+1);i===-1&&(i=e.length)}else if(e.charCodeAt(i+2)===91&&e.charCodeAt(i+8)===91&&e.substr(i+3,5).toLowerCase()==="cdata"){p=e.indexOf("]]>",i),p==-1?(f.push(e.substr(i+9)),i=e.length):(f.push(e.substring(i+9,p)),i=p+3);continue}i++;continue}e:{g=a,i++;var m=r(),w={};for(p=[];e.charCodeAt(i)!==62&&e[i];){var E=e.charCodeAt(i);if(64<E&&91>E||96<E&&123>E){E=r();for(var C=e.charCodeAt(i);C&&C!==39&&C!==34&&!(64<C&&91>C||96<C&&123>C)&&C!==62;)i++,C=e.charCodeAt(i);var P=i+1;if(i=e.indexOf(e[i],P),P=e.slice(P,i),C===39||C===34){if(i===-1){if(g={tagName:m,attributes:w,children:p,parent:null},t)for(m=0;m<p.length;m++)typeof p[m]!="string"&&(p[m].parent=g);p=g;break e}}else P=null,i--;if(E.startsWith("xmlns:")){C=P;var L=E.split(":")[1];ol.set(C,L),Yl.set(L,C)}m==="tt"&&E==="xml:space"&&P==="preserve"&&(g=!0),w[E]=P}i++}for(e.charCodeAt(i-1)!==47?(i++,p=n(m,g)):i++,g={tagName:m,attributes:w,children:p,parent:null},m=p.length,w=0;w<m;w++)E=p[w],typeof E!="string"?t&&(E.parent=g):w==m-1&&E== `
` &&p.pop();p=g}if(f.push(p),typeof p=="string")break;p.tagName[0]==="?"&&p.children&&(f.push.apply(f,ee(p.children)),p.children=[])}else p=i,i=e.indexOf("<",i)-1,i===-2&&(i=e.length),p=e.slice(p,i+1),a?0<p.length&&f.push(p):(f.length&&p.length==1&&p[0]== `
` ||0<p.trim().length)&&f.push(p),i++;return f}function r(){for(var o=i; ` \ r
2025-04-25 19:17:40 -04:00
> /= `.indexOf(e[i])===-1&&e[i];)i++;return e.slice(o,i)}var i=0;return n("")}function rl(e){return typeof e=="string"}function hd(e){var t=[];if(!e.children)return[];e=I(e.children);for(var n=e.next();!n.done;n=e.next())n=n.value,typeof n!="string"&&t.push(n);return t}function bt(e,t){var n=[];if(!e.children)return[];e=I(e.children);for(var r=e.next();!r.done;r=e.next())r=r.value,r.tagName===t&&n.push(r);return n}function sn(e){return typeof e=="string"?ur(e):(e=e.children.reduce(function(t,n){return typeof n=="string"?t+n:t},""),e===""?null:ur(e))}function rr(e){return Array.from(e.children).every(function(t){return typeof t=="string"})?((e=sn(e))&&(e=e.trim()),e):null}function xr(e,t,n){if(n=n===void 0?[]:n,e.tagName===t&&n.push(e),e.children){e=I(e.children);for(var r=e.next();!r.done;r=e.next())xr(r.value,t,n)}return n}function pn(e,t){return e=bt(e,t),e.length!=1?null:e[0]}function ki(e,t,n){return e=na(e,t,n),e.length!=1?null:e[0]}function rt(e,t,n,r){r=r===void 0?null:r;var i=null;return e=e.attributes[t],e!=null&&(i=n(e)),i??r}function Zi(e,t,n){return t=pd(t),e.attributes[t+":"+n]||null}function na(e,t,n){var r=pd(t);if(t=[],e.children)for(n=r?r+":"+n:n,e=I(e.children),r=e.next();!r.done;r=e.next())(r=r.value)&&r.tagName===n&&t.push(r);return t}function Ai(e,t,n){t=I(t);for(var r=t.next();!r.done;r=t.next())if(r=Zi(e,r.value,n))return r;return null}function Fo(e){return e?(/ ^ \ d + - \ d + - \ d + T \ d + : \ d + : \ d + ( \ . \ d + ) ? $ / . test ( e ) && ( e += "Z" ) , e = Date . parse ( e ) , isNaN ( e ) ? null : e / 1e3 ) : null } function lr ( e ) { return ! e || ( e = RegExp ( "^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$" ) . exec ( e ) , ! e ) ? null : ( e = 31536e3 * Number ( e [ 1 ] || null ) + 2592e3 * Number ( e [ 2 ] || null ) + 86400 * Number ( e [ 3 ] || null ) + 3600 * Number ( e [ 4 ] || null ) + 60 * Number ( e [ 5 ] || null ) + Number ( e [ 6 ] || null ) , isFinite ( e ) ? e : null ) } function Wl ( e ) { var t = /([0-9]+)-([0-9]+)/ . exec ( e ) ; return ! t || ( e = Number ( t [ 1 ] ) , ! isFinite ( e ) ) ? null : ( t = Number ( t [ 2 ] ) , isFinite ( t ) ? { start : e , end : t } : null ) } function sr ( e ) { return e = Number ( e ) , e % 1 === 0 ? e : null } function xo ( e ) { return e = Number ( e ) , e % 1 === 0 && 0 < e ? e : null } function jn ( e ) { return e = Number ( e ) , e % 1 === 0 && 0 <= e ? e : null } function il ( e ) { return e = Number ( e ) , isNaN ( e ) ? null : e } function ra ( e ) { return e ? e . toLowerCase ( ) === "true" : ! 1 } function si ( e ) { var t , n = ( t = e . match ( /^(\d+)\/(\d+)$/ ) ) ? Number ( t [ 1 ] ) / Number ( t [ 2 ] ) : Number ( e ) ; return isNaN ( n ) ? null : n } function Ko ( e ) { var t = [ ] ; e = ur ( e ) . split ( /\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/ ) , e = I ( e ) ; for ( var n = e . next ( ) ; ! n . done ; n = e . next ( ) ) { n = n . value ; var r = n . match ( /^([\w]+)/ ) ; if ( r ) { var i = n . match ( /(@id='(.*?)')/ ) , o = n . match ( /(@t='(\d+)')/ ) , a = n . match ( /(@n='(\d+)')/ ) , f = n . match ( /\[(\d+)\]/ ) ; t . push ( { name : r [ 0 ] , id : i ? i [ 0 ] . match ( /'(.*?)'/ ) [ 0 ] . replace ( /'/gm , "" ) : null , t : o ? Number ( o [ 0 ] . match ( /'(.*?)'/ ) [ 0 ] . replace ( /'/gm , "" ) ) : null , n : a ? Number ( a [ 0 ] . match ( /'(.*?)'/ ) [ 0 ] . replace ( /'/gm , "" ) ) : null , position : f ? Number ( f [ 1 ] ) - 1 : null , Yb : n . split ( "/@" ) [ 1 ] || null } ) } else n . startsWith ( "@" ) && t . length && ( t [ t . length - 1 ] . Yb = n . slice ( 1 ) ) } return t } function yc ( e , t ) { var n = Ko ( t . attributes . sel || "" ) ; if ( n . length ) { var r = n [ n . length - 1 ] , i = t . attributes . pos || null ; n = r . position , n == null && ( r . t !== null && ( n = Xl ( e , "t" , r . t ) ) , r . n !== null && ( n = Xl ( e , "n" , r . n ) ) ) , n === null ? n = i === "prepend" ? 0 : e . length : i === "prepend" ? -- n : i === "after" && ++ n , i = t . tagName , ( r = r . Yb ) && e [ n ] ? Lh ( e [ n ] , i , r , rr ( t ) || "" ) : ( i !== "remove" && i !== "replace" || e . splice ( n , 1 ) , i !== "add" && i !== "replace" || e . splice . apply ( e , [ n , 0 ] . concat ( ee ( t . children ) ) ) ) } } function Xl ( e , t , n ) { var r = 0 ; e = I ( e ) ; for ( var i = e . next ( ) ; ! i . done ; i = e . next ( ) ) { if ( Number ( i . value . attributes [ t ] ) === n ) return r ; r ++ } return null } function Lh ( e , t , n , r ) { t === "remove" ? delete e . attributes [ n ] : ( t === "add" || t === "replace" ) && ( e . attributes [ n ] = r ) } function gc ( e ) { var t = "" , n = e . tagName . split ( ":" ) ; 0 < n . length && ( t = n [ 0 ] , t = Yl . has ( t ) ? Yl . get ( t ) : "" ) , t = document . createElementNS ( t , e . tagName ) ; for ( var r in e . attributes ) t . setAttribute ( r , e . attributes [ r ] ) ; for ( e = I ( e . children ) , r = e . next ( ) ; ! r . done ; r = e . next ( ) ) r = r . value , n = void 0 , typeof r == "string" ? n = new Text ( r ) : n = gc ( r ) , t . appendChild ( n ) ; return t } function ia ( e ) { if ( ! e ) return null ; var t = { tagName : e . tagName , attributes : Jr ( e . attributes ) , children : [ ] , parent : null } ; e = I ( e . children ) ; for ( var n = e . next ( ) ; ! n . done ; n = e . next ( )
` ),e=!0,n=I(n),i=n.next();!i.done;i=n.next())i=i.value,e||(e=Nh(r.startTime,r.endTime),t.nestedCues.push(e)),0<i.length&&(e=r.clone(),e.payload=ur(i),t.nestedCues.push(e)),e=!1;else for(t.nestedCues.push(r),t=I(i),e=t.next();!e.done;e=t.next())_h(e.value,r,n)}function oa(e,t){return e&&0<e.length?e:t}Me("shaka.text.Cue",zt),zt.parseCuePayload=mc,zt.equal=vc,zt.prototype.clone=zt.prototype.clone;var wc="auto";zt.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:wc};var Io="center",Tc={LEFT:"left",RIGHT:"right",CENTER:Io,START:"start",END:"end"};zt.textAlign=Tc;var ua="after",Uh={BEFORE:"before",CENTER:"center",AFTER:ua};zt.displayAlign=Uh;var la="ltr";zt.direction={HORIZONTAL_LEFT_TO_RIGHT:la,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var ul="horizontal-tb";zt.writingMode={HORIZONTAL_TOP_TO_BOTTOM:ul,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var ll=0;zt.lineInterpretation={LINE_NUMBER:ll,PERCENTAGE:1};var sl="start",yd={CENTER:"center",START:sl,END:"end"};zt.lineAlign=yd;var jh={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};zt.defaultTextColor=jh;var gd={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};zt.defaultTextBackgroundColor=gd;var Bh=400, $ l=700;zt.fontWeight={NORMAL:Bh,BOLD: $ l};var vd="normal",Jl="italic",Vh={NORMAL:vd,ITALIC:Jl,OBLIQUE:"oblique"};zt.fontStyle=Vh;var Ho="underline";zt.textDecoration={UNDERLINE:Ho,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var uv=/(?:( \d {1,}):)?( \d {2}):( \d {2}) \. ( \d {2,3})/g;function Eo(){}Eo.prototype.destroy=function(){};function ai(e,t,n){xc[e.toLowerCase().split(";")[0]+"-"+n]={priority:n,ne:t}}function Cu(e,t){for(var n=e.toLowerCase().split(";")[0],r=I([md,Ec,Ic,qo]),i=r.next();!i.done;i=r.next())if(i=xc[n+"-"+i.value]){var o=i.ne(),a=o.isSupported(e,t);if(o.destroy(),a)return i.ne}return null}Me("shaka.transmuxer.TransmuxerEngine",Eo),Eo.findTransmuxer=Cu,Eo.unregisterTransmuxer=function(e,t){delete xc[e.toLowerCase().split(";")[0]+"-"+t]},Eo.registerTransmuxer=ai,Eo.prototype.destroy=Eo.prototype.destroy;var xc={},qo=1,Ic=2,Ec=3,md=4;Eo.PluginPriority={FALLBACK:qo,PREFERRED_SECONDARY:Ic,PREFERRED:Ec,APPLICATION:md};/*
2025-04-24 17:06:14 -04:00
@ license
Copyright 2008 The Closure Library Authors
SPDX - License - Identifier : Apache - 2.0
* /var Ql=RegExp("^(?:([^:/?#.]+):)?(?:/ / ( ? : ( [ ^ /?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/ *
@ license
Copyright 2006 The Closure Library Authors
SPDX - License - Identifier : Apache - 2.0
2025-04-26 19:21:13 -04:00
* /function hn(e){var t;e instanceof hn?(Cc(this,e.Gb),this.Dc=e.Dc,kc(this,e.ub),Ac(this,e.Xc),this.Za=e.Za,ku(this,e.g.clone()),this.oc=e.oc):e&&(t=String(e).match(Ql))?(Cc(this,t[1]||"",!0),this.Dc=zo(t[2]||""),kc(this,t[3]||"",!0),Ac(this,t[4]),this.Za=zo(t[5]||"",!0),ku(this,t[6]||"",!0),this.oc=zo(t[7]||"")):this.g=new al(null)}h=hn.prototype,h.Gb="",h.Dc="",h.ub="",h.Xc=null,h.Za="",h.oc="",h.toString=function(){var e=[],t=this.Gb;if(t&&e.push(Go(t,sa,!0),":"),t=this.ub){e.push("/ / ");var n=this.Dc;n&&e.push(Go(n,sa,!0)," @ "),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g," % $1 ")),t=this.Xc,t!=null&&e.push(" : ",String(t))}return(t=this.Za)&&(this.ub&&t.charAt(0)!=" / "&&e.push(" / "),e.push(Go(t,t.charAt(0)==" / "?Fh:sv,!0))),(t=this.g.toString())&&e.push(" ? ",t),(t=this.oc)&&e.push(" # ",Go(t,wd)),e.join(" ")},h.resolve=function(e){var t=this.clone();t.Gb===" data "&&(t=new hn);var n=!!e.Gb;n?Cc(t,e.Gb):n=!!e.Dc,n?t.Dc=e.Dc:n=!!e.ub,n?kc(t,e.ub):n=e.Xc!=null;var r=e.Za;if(n)Ac(t,e.Xc);else if(n=!!e.Za){if(r.charAt(0)!=" / ")if(this.ub&&!this.Za)r=" / "+r;else{var i=t.Za.lastIndexOf(" / ");i!=-1&&(r=t.Za.substr(0,i+1)+r)}if(r==" . . "||r==" . ")r=" ";else if(r.indexOf(" . / ")!=-1||r.indexOf(" / . ")!=-1){i=r.lastIndexOf(" / ",0)==0,r=r.split(" / ");for(var o=[],a=0;a<r.length;){var f=r[a++];f==" . "?i&&a==r.length&&o.push(" "):f==" . . "?((1<o.length||o.length==1&&o[0]!=" ")&&o.pop(),i&&a==r.length&&o.push(" ")):(o.push(f),i=!0)}r=o.join(" / ")}}return n?t.Za=r:n=e.g.toString()!==" ",n?ku(t,e.g.clone()):n=!!e.oc,n&&(t.oc=e.oc),t},h.clone=function(){return new hn(this)};function Cc(e,t,n){e.Gb=n?zo(t,!0):t,e.Gb&&(e.Gb=e.Gb.replace(/:$/," "))}function kc(e,t,n){e.ub=n?zo(t,!0):t}function Ac(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error(" Bad port number "+t);e.Xc=t}else e.Xc=null}function ku(e,t,n){t instanceof al?e.g=t:(n||(t=Go(t,Sd)),e.g=new al(t))}function zo(e,t){return e?t?decodeURI(e):decodeURIComponent(e):" "}function Go(e,t,n){return e!=null?(e=encodeURI(e).replace(t,lv),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g," % $1 ")),e):null}function lv(e){return e=e.charCodeAt(0)," % "+(e>>4&15).toString(16)+(e&15).toString(16)}var sa=/[#\/\?@]/g,sv=/[#\?:]/g,Fh=/[#\?]/g,Sd=/[#\?@]/g,wd=/#/g;function al(e){this.g=e||null}function aa(e){if(!e.Ra&&(e.Ra={},e.hd=0,e.g))for(var t=e.g.split(" & "),n=0;n<t.length;n++){var r=t[n].indexOf(" = "),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];o=decodeURIComponent(o.replace(/\+/g," ")),i=i||" ",e.add(o,decodeURIComponent(i.replace(/\+/g," ")))}}h=al.prototype,h.Ra=null,h.hd=null;function Td(e){return aa(e),e.hd}h.add=function(e,t){aa(this),this.g=null;var n=this.Ra.hasOwnProperty(e)?this.Ra[e]:null;return n||(this.Ra[e]=n=[]),n.push(t),this.hd++,this},h.set=function(e,t){return aa(this),this.g=null,this.Ra.hasOwnProperty(e)?this.Ra[e]=[t]:this.add(e,t),this},h.get=function(e){return aa(this),this.Ra[e]||[]},h.toString=function(){if(this.g)return this.g;if(!this.Ra)return" ";var e=[],t;for(t in this.Ra)for(var n=encodeURIComponent(t),r=this.Ra[t],i=0;i<r.length;i++){var o=n;r[i]!==" "&&(o+=" = "+encodeURIComponent(r[i])),e.push(o)}return this.g=e.join(" & ")},h.clone=function(){var e=new al;if(e.g=this.g,this.Ra){var t={},n;for(n in this.Ra)t[n]=this.Ra[n].concat();e.Ra=t,e.hd=this.hd}return e};function ar(){}function Pc(e){return e=ea(Ze(e)),btoa(e)}function Wo(e,t){return t=t??!0,e=Pc(e).replace(/\+/g," - ").replace(/\//g," _ "),t?e:e.replace(/[=]*$/," ")}function ci(e){e=T.atob(e.replace(/-/g," + ").replace(/_/g," / "));for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}function cl(e){for(var t=e.length/2,n=new Uint8Array(t),r=0;r<t;r++)n[r]=T.parseInt(e.substr(2*r,2),16);return n}function Yn(e){var t=Ze(e);e=" ",t=I(t);for(var n=t.next();!n.done;n=t.next())n=n.value,n=n.toString(16),n.length==1&&(n=" 0 "+n),e+=n;return e}function rn(){for(var e=It.apply(0,arguments),t=0,n=0;n<e.length;++n)t+=e[n].byteLength;t=new Uint8Array(t);for(var r=n=0;r<e.length;++r){var i=e[r];ArrayBuffer.isView(i)&&i.BYTES_PER_ELEMENT===1?t.set(i,n):t.set(Ze(i),n),n+=i.byteLength}return t}Me(" shaka . u
2025-04-24 17:06:14 -04:00
@ license
Shaka Player
Copyright 2023 Google LLC
SPDX - License - Identifier : Apache - 2.0
2025-04-25 19:17:40 -04:00
* / f u n c t i o n G c ( e , t , n ) { t h i s . g = e , t h i s . i = t , t h i s . h = n } f u n c t i o n p s ( e , t ) { r e t u r n G ( f u n c t i o n ( n ) { i f ( n . g = = 1 ) r e t u r n _ ( n , f v ( e . h , t , e . g . d r m . p r e f e r r e d K e y S y s t e m s , e . g . d r m . k e y S y s t e m s M a p p i n g ) , 2 ) ; i f ( e . g . s t r e a m i n g . d o n t C h o o s e C o d e c s | | O c ( t , e . g . p r e f e r r e d V i d e o C o d e c s , e . g . p r e f e r r e d A u d i o C o d e c s , e . g . p r e f e r r e d D e c o d i n g A t t r i b u t e s , e . g . p r e f e r r e d T e x t F o r m a t s ) , ! t . v a r i a n t s . s o m e ( P i ) ) t h r o w n e w Y ( 2 , 4 , 4 0 3 2 ) ; r e t u r n n . r e t u r n ( O a ( e , t ) ) } ) } f u n c t i o n G d ( e , t ) { v a r n = e . g . r e s t r i c t i o n s ; e = e . i ; v a r r = ! 1 ; t = I ( t . v a r i a n t s ) ; f o r ( v a r i = t . n e x t ( ) ; ! i . d o n e ; i = t . n e x t ( ) ) { i = i . v a l u e ; v a r o = i . a l l o w e d B y A p p l i c a t i o n ; i . a l l o w e d B y A p p l i c a t i o n = n s ( i , n , e ) , o ! = i . a l l o w e d B y A p p l i c a t i o n & & ( r = ! 0 ) } r e t u r n r } f u n c t i o n O a ( e , t ) { v a r n = G d ( e , t ) ; i f ( t ) { v a r r = e . h ? e . h . h : n u l l ; i f ( r & & e . h . A ) f o r ( v a r i = I ( t . v a r i a n t s ) , o = i . n e x t ( ) ; ! o . d o n e ; o = i . n e x t ( ) ) o = o . v a l u e , h s ( e , r . k e y S y s t e m , o . v i d e o ) , h s ( e , r . k e y S y s t e m , o . a u d i o ) ; W d ( e , t ) } r e t u r n n } f u n c t i o n h s ( e , t , n ) { i f ( n ) { n = I ( n . d r m I n f o s ) ; f o r ( v a r r = n . n e x t ( ) ; ! r . d o n e ; r = n . n e x t ( ) ) i f ( r = r . v a l u e , r . k e y S y s t e m = = t ) { r = I ( r . i n i t D a t a | | [ ] ) ; f o r ( v a r i = r . n e x t ( ) ; ! i . d o n e ; i = r . n e x t ( ) ) i = i . v a l u e , l u ( e . h , i . i n i t D a t a T y p e , i . i n i t D a t a ) } } } f u n c t i o n W d ( e , t ) { e = e . h ? e . h . V d ( ) : { } ; v a r n = O b j e c t . k e y s ( e ) ; n = n . l e n g t h & & n [ 0 ] = = " 0 0 " ; v a r r = ! 1 , i = ! 1 , o = n e w S e t , a = n e w S e t ; t = I ( t . v a r i a n t s ) ; f o r ( v a r f = t . n e x t ( ) ; ! f . d o n e ; f = t . n e x t ( ) ) { f = f . v a l u e ; v a r p = [ ] ; f . a u d i o & & p . p u s h ( f . a u d i o ) , f . v i d e o & & p . p u s h ( f . v i d e o ) , p = I ( p ) ; f o r ( v a r g = p . n e x t ( ) ; ! g . d o n e ; g = p . n e x t ( ) ) i f ( g = g . v a l u e , g . k e y I d s . s i z e ) { g = I ( g . k e y I d s ) ; f o r ( v a r m = g . n e x t ( ) ; ! m . d o n e ; m = g . n e x t ( ) ) { m = m . v a l u e ; v a r w = e [ n ? " 0 0 " : m ] ; w ? W c . i n c l u d e s ( w ) & & a . a d d ( w ) : o . a d d ( m ) } } f . a l l o w e d B y A p p l i c a t i o n ? f . a l l o w e d B y K e y S y s t e m & & ( r = ! 0 ) : i = ! 0 } i f ( ! r ) t h r o w e = { h a s A p p R e s t r i c t i o n s : i , m i s s i n g K e y s : A r r a y . f r o m ( o ) , r e s t r i c t e d K e y S t a t u s e s : A r r a y . f r o m ( a ) } , n e w Y ( 2 , 4 , 4 0 1 2 , e ) } v a r W c = [ " o u t p u t - r e s t r i c t e d " , " i n t e r n a l - e r r o r " ] ; f u n c t i o n y s ( ) { } f u n c t i o n X d ( e , t ) { i f ( t ) { v a r n = h i [ t . t o L o w e r C a s e ( ) ] ; i f ( n ) r e t u r n n } t h r o w n e w Y ( 2 , 4 , 4 e 3 , e , t ) } M e ( " s h a k a . m e d i a . M a n i f e s t P a r s e r " , y s ) , y s . u n r e g i s t e r P a r s e r B y M i m e = f u n c t i o n ( e ) { d e l e t e h i [ e ] } , y s . r e g i s t e r P a r s e r B y M i m e = f u n c t i o n ( e , t ) { h i [ e ] = t } , y s . r e g i s t e r P a r s e r B y E x t e n s i o n = f u n c t i o n ( ) { R t ( " M a n i f e s t P a r s e r . r e g i s t e r P a r s e r B y E x t e n s i o n " , " P l e a s e u s e a n M a n i f e s t P a r s e r w i t h r e g i s t e r P a r s e r B y M i m e f u n c t i o n . " ) } , y s . A c c e s s i b i l i t y P u r p o s e = { y k : " v i s u a l l y i m p a i r e d " , P j : " h a r d o f h e a r i n g " } ; v a r h i = { } ; f u n c t i o n J h ( e , t ) { f u n c t i o n n ( ) { o = ! 0 } f u n c t i o n r ( m ) { f . p u s h ( m ) , i t ( m ) } v a r i = e = Z e ( e ) , o = ! 1 , a , f = [ ] , p = [ ] ; i f ( n e w V t ( ) . b o x ( " m o o v " , r ) . b o x ( " t r a k " , r ) . b o x ( " m d i a " , r ) . b o x ( " m i n f " , r ) . b o x ( " s t b l " , r ) . S ( " s t s d " , f u n c t i o n ( m ) { a = m , f . p u s h ( m ) , P o ( m ) } ) . S ( " e n c v " , n ) . S ( " e n c a " , n ) . S ( " d v a v " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " d v a 1 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " d v h 1 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " d v h e " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " d v c 1 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " d v i 1 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " h e v 1 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " h v c 1 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " a v c 1 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " a v c 3 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 3 8 } ) } ) . S ( " a c - 3 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 1 7 } ) } ) . S ( " e c - 3 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 1 7 } ) } ) . S ( " a c - 4 " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 1 7 } ) } ) . S ( " m p 4 a " , f u n c t i o n ( m ) { p . p u s h ( { b o x : m , Y a : 1 7 0 1 7 3 3 2 1 7 } ) } ) . p a r s e ( e ) , o ) r e t u r n e ; i f ( p . l e n g t h = = 0 | | ! a ) t h r o w Y n ( e ) , n e w Y ( 2 , 3 , 3 0 1 9 , t ) ; p . r e v e r s e ( ) , t = I ( p ) ; f o r ( v a r g = t . n e x t ( ) ; ! g . d o n e ; g = t . n e x t ( ) ) g = g . v a l u e , i = Y d ( i , a , g . b o x , f , g . Y a ) ; r e t u r n I n ( ) & & T u ( ) & & ! $ i ( ) ? ( t = n e w U i n t 8 A r r a y ( e . b y t e L e n g t h + i . b y t e L e n g t h ) , t . s e t ( i ) , t . s e t ( e , i . b y t e L e n g t h ) , t ) : i } f u n c t i o n Y d ( e , t , n , r , i ) { v a r o = Q h . v a l u e ( ) , a = e . s u b a r r a y ( n . s t a r t , n . s t a r t + n . s i z e ) , f = w r ( a ) , p = n e w U i n t 8 A r r a y ( n . s i z e + o . b y t e L e n g t h ) ; f o r ( p . s e t ( a , 0 ) , a = w r ( p ) , a . s e t U i n t 3 2 ( 4 , i ) , p . s e t ( o , n . s i z e ) , i = f . g e t U i n t 3 2 ( 4 ) , a . s e t U i n t 3 2 ( n . s i z e + 1 6 , i ) , $ d ( p , 0 , p . b y t e L e n g t h ) , i = n e w U i n t 8 A r r a y ( e . b y t e L e n g t h + p . b y t e L e n g t h ) , n = $ i ( ) | | I n ( ) ? n . s t a r t : n . s t a r t + n . s i z e , o = e . s u b a r r a y ( n ) , i . s e t ( e . s u b a r r a y ( 0 , n ) ) , i . s e t ( p , n ) , i . s e t ( o , n + p . b y t e L e n g t h ) , e = I ( r ) , r = e . n e x t ( ) ; ! r . d o n e ; r = e . n e x t ( ) ) r = r . v a l u e , $ d ( i , r . s t a r t , r . s i z e + p . b y t e L e n g t h ) ; r e t u r n p = w r ( i , t . s t a r t ) , t = M i ( t ) , e = p . g e t U i n t 3 2 ( t ) , p . s e t U i n t 3 2 ( t , e + 1 ) , i } f u n c t i o n $ d ( e , t , n ) { e = w r ( e , t ) , t = e . g e t U i n t 3 2 ( 0 ) , t ! = 0 & & ( t = = 1 ? ( e . s e t U i n t 3 2 ( 8 , n > > 3 2 ) , e . s e t U i n t 3 2 ( 1 2 , n & 4 2 9 4 9 6 7 2 9 5 ) ) : e . s e t U i n t 3 2 ( 0 , n ) ) } v a r Q h = n e w I i ( f u
2025-04-24 17:06:14 -04:00
@ license
Shaka Player
Copyright 2022 Google LLC
SPDX - License - Identifier : Apache - 2.0
2025-04-26 19:21:13 -04:00
* /function $c(){}function Zd(e,t){return t+10<=e.length&&e[t]===73&&e[t+1]===68&&e[t+2]===51&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function ep(e,t){return t+10<=e.length&&e[t]===51&&e[t+1]===68&&e[t+2]===73&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function Ra(e,t){var n=(e[t]&127)<<21;return n|=(e[t+1]&127)<<14,n|=(e[t+2]&127)<<7,n|=e[t+3]&127}function ms(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.type==="APIC"){if(2>e.size||e.data[0]!==3)return null;var n=e.data.subarray(1).indexOf(0);if(n===-1)return null;var r=Qt(Ze(e.data,1,n)),i=e.data[2+n],o=e.data.subarray(3+n).indexOf(0);if(o===-1)return null;var a=Qt(Ze(e.data,3+n,o)),f;return r==="-->"?f=Qt(Ze(e.data,4+n+o)):f=zr(e.data.subarray(4+n+o)),t.mimeType=r,t.pictureType=i,t.description=a,t.data=f,t}return e.type==="TXXX"?2>e.size||e.data[0]!==3||(r=e.data.subarray(1).indexOf(0),r===-1)?null:(n=Qt(Ze(e.data,1,r)),e=Qt(Ze(e.data,2+r)).replace(/ \ 0 * $ / , "" ) , t . description = n , t . data = e , t ) : e . type === "WXXX" ? 2 > e . size || e . data [ 0 ] !== 3 || ( r = e . data . subarray ( 1 ) . indexOf ( 0 ) , r === - 1 ) ? null : ( n = Qt ( Ze ( e . data , 1 , r ) ) , e = Qt ( Ze ( e . data , 2 + r ) ) . replace ( /\0*$/ , "" ) , t . description = n , t . data = e , t ) : e . type === "PRIV" ? 2 > e . size || ( n = e . data . indexOf ( 0 ) , n === - 1 ) ? null : ( n = Qt ( Ze ( e . data , 0 , n ) ) , t . description = n , n == "com.apple.streaming.transportStreamTimestamp" ? ( n = e . data . subarray ( n . length + 1 ) , e = n [ 3 ] & 1 , n = ( n [ 4 ] << 23 ) + ( n [ 5 ] << 15 ) + ( n [ 6 ] << 7 ) + n [ 7 ] , n /= 45 , e && ( n += 4772185884e-2 ) , t . data = n ) : ( e = zr ( e . data . subarray ( n . length + 1 ) ) , t . data = e ) , t ) : e . type [ 0 ] === "T" ? 2 > e . size || e . data [ 0 ] !== 3 ? null : ( e = Qt ( e . data . subarray ( 1 ) ) . replace ( /\0*$/ , "" ) , t . data = e , t ) : e . type [ 0 ] === "W" ? ( e = Qt ( e . data ) . replace ( /\0*$/ , "" ) , t . data = e , t ) : e . data ? ( t . data = zr ( e . data ) , t ) : null } function cu ( e ) { for ( var t = 0 , n = [ ] ; Zd ( e , t ) ; ) { var r = Ra ( e , t + 6 ) ; for ( e [ t + 5 ] >> 6 & 1 && ( t += 10 ) , t += 10 , r = t + r ; t + 10 < r ; ) { var i = e . subarray ( t ) , o = Ra ( i , 4 ) ; i = { type : String . fromCharCode ( i [ 0 ] , i [ 1 ] , i [ 2 ] , i [ 3 ] ) , size : o , data : i . subarray ( 10 , 10 + o ) } , ( o = ms ( i ) ) && n . push ( o ) , t += i . size + 10 } ep ( e , t ) && ( t += 10 ) } return n } function Bu ( e , t ) { for ( var n = t = t === void 0 ? 0 : t , r = 0 ; Zd ( e , t ) ; ) e [ t + 5 ] >> 6 & 1 && ( r += 10 ) , r += 10 , r += Ra ( e , t + 6 ) , ep ( e , t + 10 ) && ( r += 10 ) , t += r ; return 0 < r ? e . subarray ( n , n + r ) : new Uint8Array ( [ ] ) } Me ( "shaka.util.Id3Utils" , $c ) , $c . getID3Data = Bu , $c . getID3Frames = cu ; function ty ( e , t ) { var n = null , r = null , i = null , o = e . R ( ) ; return t & 1 && ( i = e . Yc ( ) ) , t & 2 && e . skip ( 4 ) , t & 8 && ( n = e . R ( ) ) , t & 16 && ( r = e . R ( ) ) , { trackId : o , jd : n , Sd : r , Ak : i } } function ba ( e , t ) { return t == 1 ? ( t = e . R ( ) , e = e . R ( ) , { baseMediaDecodeTime : t * Math . pow ( 2 , 32 ) + e } ) : { baseMediaDecodeTime : e . R ( ) } } function Ma ( e , t ) { return t == 1 ? ( e . skip ( 8 ) , e . skip ( 8 ) ) : ( e . skip ( 4 ) , e . skip ( 4 ) ) , t = e . R ( ) , e . skip ( 4 ) , e = e . ma ( ) , { timescale : t , language : String . fromCharCode ( ( e >> 10 ) + 96 ) + String . fromCharCode ( ( ( e & 960 ) >> 5 ) + 96 ) + String . fromCharCode ( ( e & 31 ) + 96 ) } } function tp ( e , t , n ) { var r = e . R ( ) , i = [ ] , o = null ; n & 1 && ( o = e . R ( ) ) , n & 4 && e . skip ( 4 ) ; for ( var a = 0 ; a < r ; a ++ ) { var f = { Wf : null , sampleSize : null , se : null } ; n & 256 && ( f . Wf = e . R ( ) ) , n & 512 && ( f . sampleSize = e . R ( ) ) , n & 1024 && e . skip ( 4 ) , n & 2048 && ( f . se = t == 0 ? e . R ( ) : e . fh ( ) ) , i . push ( f ) } return { Ek : r , kh : i , Xh : o } } function np ( e ) { e . skip ( 6 ) , e . skip ( 2 ) , e . skip ( 8 ) ; var t = e . ma ( ) ; return e . skip ( 2 ) , e . skip ( 2 ) , e . skip ( 2 ) , e = e . ma ( ) + e . ma ( ) / 65536 , { channelCount : t , sampleRate : e } } function rp ( e ) { return e = e . R ( ) , { codec : Ur ( e ) } } function vv ( e ) { var t = null , n = null , r = e . Ab ( 4 ) , i = String . fromCharCode ( r [ 0 ] ) ; if ( i += String . fromCharCode ( r [ 1 ] ) , i += String . fromCharCode ( r [ 2 ] ) , i += String . fromCharCode ( r [ 3 ] ) , i === "nclx" ) { switch ( e . ma ( ) ) { case 1 : case 5 : case 6 : case 7 : t = "srgb" ; break ; case 9 : t = "rec2020" ; break ; case 11 : case 12 : t = "p3" } switch ( r = e . ma ( ) , e . ma ( ) , r ) { case 1 : case 6 : case 13 : case 14 : case 15 : n = "SDR" ; break ; case 16 : n = "PQ" ; break ; case 18 : n = "HLG" } } return { colorGamut : t , Jd : n } } function ir ( e , t ) { return t = t === void 0 ? ! 1 : t , e = e . toString ( 16 ) . toUpperCase ( ) , t ? e : ( "0" + e ) . slice ( - 2 ) } function cn ( e ) { return ( 10 > e ? "0" : "" ) + e } function Ro ( e , t ) { if ( this . j = e , t !== void 0 && t ) { t = new Uint8Array ( e . byteLength ) ; for ( var n = 0 , r = 0 ; r < e . byteLength ; r ++ ) 2 <= r && e [ r ] == 3 && e [ r - 1 ] == 0 && e [ r - 2 ] == 0 || ( t [ n ] = e [ r ] , n ++ ) ; this . j = Ze ( t , 0 , n ) } this . i = this . j . byteLength , this . g = this . h = 0 } function Jc ( e ) { var t = e . j . byteLength - e . i , n = new Uint8Array ( 4 ) , r = Math . min ( 4 , e . i ) ; r !== 0 && ( n . set ( e . j . subarray ( t , t + r ) ) , e . h = new Mt ( n , 0 ) . R ( )
2025-04-25 19:17:40 -04:00
` ;if(e.nestedCues.length)return e.nestedCues.map(function(a){return d1(a,e)}).join("");if(!e.payload)return e.payload;var n=[],r=e.fontWeight>= $ l,i=e.fontStyle==Jl,o=e.textDecoration.includes(Ho);return r&&n.push(["b"]),i&&n.push(["i"]),o&&n.push(["u"]),i=e.color,i==""&&t&&(i=t.color),r="",(i=p1(i))&&(r+="."+i),i=e.backgroundColor,i==""&&t&&(i=t.backgroundColor),(t=p1(i))&&(r+=".bg_"+t),r&&n.push(["c",r]),n.reduceRight(function(a,f){var p=I(f);return f=p.next().value,p=p.next().value,"<"+f+(p===void 0?"":p)+">"+a+"</"+f+">"},e.payload)}function p1(e){e=e.toLowerCase();var t=e.replace(/ \s /g,"").match(/^rgba? \( ( \d +),( \d +),( \d +),?([^, \s )]+)?/i);switch(t?e="#"+(parseInt(t[1],10)|256).toString(16).slice(1)+(parseInt(t[2],10)|256).toString(16).slice(1)+(parseInt(t[3],10)|256).toString(16).slice(1):e.startsWith("#")&&7<e.length&&(e=e.slice(0,7)),e){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function Pv(e,t){var n=[];e=I(h1(e));for(var r=e.next();!r.done;r=e.next())if(r=r.value,r.isContainer)n.push.apply(n,ee(Pv(r.nestedCues,r)));else{var i=r.clone();i.nestedCues=[],i.payload=d1(r,t),n.push(i)}return n}function h1(e){var t=[];e=I(e);for(var n=e.next(),r={};!n.done;r={Xe:void 0},n=e.next())r.Xe=n.value,t.some(function(i){return function(o){return vc(i.Xe,o)}}(r))||t.push(r.Xe);return t}function SI(e){function t(r){for(var i=5381,o=r.length;o;)i=33*i^r.charCodeAt(--o);return(i>>>0).toString()}if(e.startTime>=e.endTime)return null;var n=new VTTCue(e.startTime,e.endTime,e.payload);n.id=t(e.startTime.toString())+t(e.endTime.toString())+t(e.payload),n.lineAlign=e.lineAlign,n.positionAlign=e.positionAlign,e.size&&(n.size=e.size);try{n.align=e.textAlign}catch{}return e.textAlign=="center"&&n.align!="center"&&(n.align="middle"),e.writingMode=="vertical-lr"?n.vertical="lr":e.writingMode=="vertical-rl"&&(n.vertical="rl"),e.lineInterpretation==1&&(n.snapToLines=!1),e.line!=null&&(n.line=e.line),e.position!=null&&(n.position=e.position),n}function wI(e){if(e.endTime===1/0||e.endTime<e.startTime)return null;var t=new zt(e.startTime,e.endTime,e.text);return t.line=typeof e.line=="number"?e.line:null,e.lineAlign&&(t.lineAlign=e.lineAlign),t.lineInterpretation=e.snapToLines?ll:1,t.position=typeof e.position=="number"?e.position:null,e.positionAlign&&(t.positionAlign=e.positionAlign),t.size=e.size,t.textAlign=e.align,e.vertical==="lr"?t.writingMode="vertical-lr":e.vertical==="rl"&&(t.writingMode="vertical-rl"),e.region&&(t.region.id=e.region.id,t.region.height=e.region.lines,t.region.heightUnits=2,t.region.regionAnchorX=e.region.regionAnchorX,t.region.regionAnchorY=e.region.regionAnchorY,t.region.scroll=e.region.scroll,t.region.viewportAnchorX=e.region.viewportAnchorX,t.region.viewportAnchorY=e.region.viewportAnchorY,t.region.viewportAnchorUnits=Xn,t.region.width=e.region.width,t.region.widthUnits=Xn),mc(t),t}function yr(e,t){for(this.h=e,this.i=t,this.g=null,e=I(Array.from(this.h.textTracks)),t=e.next();!t.done;t=e.next())t=t.value,t.kind!=="metadata"&&t.kind!=="chapters"&&(t.mode="disabled",t.label==this.i&&(this.g=t));this.g&&(this.g.mode="hidden")}h=yr.prototype,h.configure=function(){},h.remove=function(e,t){return this.g?(g1(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0):!1},h.append=function(e){if(this.g){var t=Pv(e),n=[];e=this.g.cues?Array.from(this.g.cues):[],t=I(t);for(var r=t.next(),i={};!r.done;i={Pc:void 0},r=t.next())i.Pc=r.value,!e.some(function(o){return function(a){return a.startTime==o.Pc.startTime&&a.endTime==o.Pc.endTime&&a.text==o.Pc.payload}}(i))&&i.Pc.payload&&(r=SI(i.Pc))&&n.push(r);for(e=n.slice().sort(function(o,a){return o.startTime!=a.startTime?o.startTime-a.startTime:o.endTime!=a.endTime?o.endTime-a.startTime:"line"in VTTCue.prototype?n.i
2025-04-24 17:06:14 -04:00
` ,r=I(r);for(var i=r.next();!i.done;i=r.next())i=i.value,e+=n(i.startTime)+" --> "+n(i.endTime)+function(o){var a=[];switch(o.textAlign){case"left":a.push("align:left");break;case"right":a.push("align:right");break;case Io:a.push("align:middle");break;case"start":a.push("align:start");break;case"end":a.push("align:end")}switch(o.writingMode){case"vertical-lr":a.push("vertical:lr");break;case"vertical-rl":a.push("vertical:rl")}return a.length?" "+a.join(" "):""}(i)+ `
` ,e+=i.payload+ `
2025-04-26 19:21:13 -04:00
` ;return e}Me("shaka.text.WebVttGenerator",function(){});function Ov(e,t){this.h=e,this.g=t,this.i=void 0,this.s=!1,this.F=!0,this.l=this.B=!1,this.o=this.m=void 0,this.A=0,this.G=!1,this.C=new At,this.j=null}Ov.prototype.setMediaElement=function(e){this.j=e,RI(this)},Ov.prototype.configure=function(e){this.g=e};function AI(e){e.s=!1,e.F=!0,e.B=!1,e.l=!1,e.m=0,e.o=0,e.A=0,e.G=!1,e.j=null,e.C.La()}function PI(e,t){e.l=t,e.l?e.i==ky?e.i=Ay:e.i==Py&&(e.i=Dy):e.i==Ay?e.i=ky:e.i==Dy&&(e.i=Py)}function DI(e,t){if(e.j){var n=e.j.play();n&&n.then(function(){e.A=t}).catch(function(){e.A=0})}}function OI(e,t,n){try{if(!e.g.enabled)return t;var r=Rv(e);e:{switch(n.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var i=xy;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":i=Ey;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":i=S1;break e}i=void 0}r.ot=i,r.su=!0;var o=Ty(r);return bv(t,o)}catch(a){return xi("CMCD_SRC_ERROR","Could not generate src CMCD data.",a),t}}function RI(e){e.C.la(e.j,"play",function(){e.m||(e.m=Date.now())}),e.C.la(e.j,"playing",function(){e.o||(e.o=Date.now())})}function Rv(e){return e.g.sessionId||(e.g.sessionId=T.crypto.randomUUID()),{v:e.g.version,sf:e.i,sid:e.g.sessionId,cid:e.g.contentId,mtp:e.h.getBandwidthEstimate()/1e3}}function xf(e,t,n){n=n===void 0?{}:n;var r=r===void 0?e.g.useHeaders:r;if(e.g.enabled){Object.assign(n,Rv(e)),n.pr=e.h.mb();var i=n.ot===Iy||n.ot===Ey;if(e.B&&i&&(n.bs=!0,n.su=!0,e.B=!1),n.su==null&&(n.su=e.F),n.v===jI&&(e.h.T()&&(n.ltc=e.h.Wd()),i=!e.G&&e.o&&e.m?e.o-(e.A||e.m):void 0,i!=null&&(n.msd=i,e.G=!0)),e=bI(e,n),r)r=_I(e),Object.keys(r).length&&Object.assign(t.headers,r);else{var o=Ty(e);o&&(t.uris=t.uris.map(function(a){return bv(a,o)}))}}}function bI(e,t){var n=e.g.includeKeys;return n.length?Object.keys(t).reduce(function(r,i){return n.includes(i)&&(r[i]=t[i]),r},{}):t}function MI(e){if(e.type===0)return UI;if(e=e.stream){var t=e.type;if(t=="video")return e.codecs&&e.codecs.includes(",")?Ey:Iy;if(t=="audio")return xy;if(t=="text")return e.mimeType==="application/mp4"?Cy:Mv}}function LI(e,t){if(t=e.h.Eb()[t],!t.length)return NaN;var n=e.h.getCurrentTime();return(e=t.find(function(r){return r.start<=n&&r.end>=n}))?1e3*(e.end-n):NaN}function m1(e,t){if(t=e.h.Eb()[t],!t.length)return 0;var n=e.h.getCurrentTime();return(e=t.find(function(r){return r.start<=n&&r.end>=n}))?1e3*(e.end-n):0}function NI(e,t){var n=e.h.sc();if(!n.length)return NaN;e=n[0],n=I(n);for(var r=n.next();!r.done;r=n.next())r=r.value,r.type==="variant"&&r.bandwidth>e.bandwidth&&(e=r);switch(t){case Iy:return e.videoBandwidth||NaN;case xy:return e.audioBandwidth||NaN;default:return e.bandwidth}}function Ty(e){function t(w){return 100*n(w/100)}function n(w){return Math.round(w)}function r(w){return!Number.isNaN(w)&&w!=null&&w!==""&&w!==!1}var i=[],o={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(w){return encodeURIComponent(w)},rtp:t,tb:n},a=Object.keys(e||{}).sort();a=I(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var p=e[f];if(r(p)&&(f!=="v"||p!==1)&&(f!="pr"||p!==1)){var g=o[f];g&&(p=g(p)),g=typeof p;var m=void 0;m=g==="string"&&f!=="ot"&&f!=="sf"&&f!=="st"?f+"="+JSON.stringify(p):g==="boolean"?f:g==="symbol"?f+"="+p.description:f+"="+p,i.push(m)}}return i.join(",")}function _I(e){var t=Object.keys(e),n={},r=["Object","Request","Session","Status"],i=[{},{},{},{}],o={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};t=I(t);for(var a=t.next();!a.done;a=t.next())a=a.value,i[o[a]!=null?o[a]:1][a]=e[a];for(e=0;e<i.length;e++)(o=Ty(i[e]))&&(n["CMCD-"+r[e]]=o);return n}function bv(e,t){return!t||e.includes("offline:")?e:(e=new hn(e),e.g.set("CMCD",t),e.toString())}var S1="m",xy="a",Iy="v",Ey="av",UI="i",Mv="c",Cy="tt",jI=2,ky="d",Ay="ld",Py="h",Dy="lh";Me("shaka.util.CmcdManager.StreamingFormat",{DASH:ky,Tj:Ay,HLS:Py,Uj:Dy,gk:"s",OTHER:"o"});fun
` ).trim();var n=t.split(/ \n +/m);if(!/^#EXTM3U( $ |[ \t \n ])/m.test(n[0]))throw new Y(2,4,4015);t=0;for(var r=!0,i=I(n),o=i.next();!o.done;o=i.next())if(o=o.value,/^#(?!EXT)/m.test(o)||r)r=!1;else if(o=km(e,o),--e.g,kw.includes(o.name)){t=1;break}else o.name=="EXT-X-STREAM-INF"&&(r=!0);for(i=[],r=!0,o=0;o<n.length;o++){var a=n[o],f=n[o+1];if(/^#(?!EXT)/m.test(a)||r)r=!1;else{if(a=km(e,a),nk.includes(a.name)){if(t!=1)throw new Y(2,4,4017);a=n.splice(o,n.length-o),n=[],r=[],o=[],f=null,a=I(a);for(var p=a.next();!p.done;p=a.next())p=p.value,/^(#EXT)/.test(p)?(p=km(e,p),kw.includes(p.name)?i.push(p):p.name=="EXT-X-MAP"?f=p:p.name=="EXT-X-PART"?o.push(p):p.name=="EXT-X-PRELOAD-HINT"?je(p,"TYPE")=="PART"?o.push(p):je(p,"TYPE")=="MAP"&&(p.name="EXT-X-MAP",f=p):r.push(p)):/^#(?!EXT)/m.test(p)||(p=p.trim(),f&&r.push(f),n.push(new xw(p,r,o)),r=[],o=[]);return o.length&&(f&&r.push(f),n.push(new xw("",r,o))),new ww(t,i,n)}i.push(a),a.name=="EXT-X-STREAM-INF"&&(a.attributes.push(new Em("URI",f)),r=!0)}}return new ww(t,i)}function km(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))? $ /);if(!n)throw new Y(2,4,4016,t);t=n[1];var r=n[2];n=[];var i;if(r){r=new nl(r);var o;(o=To(r,/^([^,=]+)(?:,| $ )/g))&&(i=o[1]);for(var a=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,| $ )/g;o=To(r,a);)n.push(new Em(o[1],o[2]||o[3])),Eu(r)}return new Im(e,t,n,i)}var kw="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),nk="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP EXT-X-TILES".split(" ");function Aw(){}function Pw(e,t){try{var n=lg(e);return nu({uri:e,originalUri:e,data:n.data,headers:{"content-type":n.contentType},originalRequest:t})}catch(r){return Oi(r)}}function lg(e){var t=e.split(":");if(2>t.length||t[0]!="data")throw new Y(2,1,1004,e);if(t=t.slice(1).join(":").split(","),2>t.length)throw new Y(2,1,1004,e);var n=t[0];e=T.decodeURIComponent(t.slice(1).join(",")),t=n.split(";"),n=t[0];var r=!1;1<t.length&&t[t.length-1]=="base64"&&(r=!0,t.pop());var i;return r?i=ci(e):i=ui(e),{data:i,contentType:n}}Me("shaka.net.DataUriPlugin",Aw),Aw.parse=Pw,Bn("data",Pw);function sg(){var e=this;this.g=this.h=null,this.C=1,this.A=new Map,this.H=new Map,this.M=new Map,this.M.set("video",new Map),this.M.set("audio",new Map),this.M.set(at,new Map),this.M.set("image",new Map),this.Cb=new Set,this.i=new Map,this.l=null,this.L="",this.Ia=new tk,this.I=-1,this.fa=1/0,this.da=this.dc=this.Pa=!1,this.B=new st(function(){if(e. $ &&!e.g.continueLoadingWhenPaused&&(e.V.bb(e. $ ,"timeupdate"),e. $ .paused)){e.V.la(e. $ ,"timeupdate",function(){return Xw(e)});return}Xw(e)}),this.Ca=pg,this.m=null,this.Na=0,this.o=1/0,this.Ha=this.za=this.P=0,this.ba=new yl,this.F=new Map,this.G=new Map,this.sa=new Map,this.ha=new Map,this.K=new Map,this.na=new Map,this.pa=new Map,this.Qb=this.ga=!1,this.Lb=new Ju(5),this.j=null,this.O=!0,this.Ba=new Set,this.V=new At,this.s=this. $ =null,this.Mb=function(){return!1}}h=sg.prototype,h.configure=function(e,t){var n=this.h&&e.hls.updatePeriod!=this.g.hls.updatePeriod&&0<=e.hls.updatePeriod;this.g=e,t&&(this.Mb=t),this.j&&this.j.configure(this.g),n&&this.m&&this.m.presentationTimeline.T()&&this.B.Hb()},h.start=function(e,t){var n=this,r;return G(function(i){return i.g==1?(n.h=t,n.ga=t.isLowLatencyMode(),_(i,Lm(n,[e]).promise,2)):i.g!=3?(r=i.h,n.L=r.uri,_(i,ok(n,r.data,e),3)):i.return(n.m)})},h.stop=function(){this.B&&(this.B.stop(),this.B=null);var e=[];return this.ba&&(e.push(this.ba.destroy()),this.ba=null),this.g=this.h=null,this.Cb.clear(),this.m=null,this.i.clear(),this.H.clear(),this.G.clear(),this.A.clear(),this.sa.clear(),this.ha.clear(),this.K.clear(),this.na.clear(),this.pa.clear(),this.Ba.clear(),this.j&&this.j.destroy(),this.V&&(this.V.release(),this.V=null),Promise.all(e)},h.update=function(){var e=this,t,n,r,i,o,a,f,p,g,m,w,E;return G(function(C){if(C.g==1){if(!Kr(e))return C.return();for(t=[],n=Array.from(e.i.values()),e.o=1/0,e.m.gapCount=0,r=n.f
2025-04-25 19:17:40 -04:00
` )))&&(n.licenseServerUri=Jy(e)),n},"urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":function(e){var t=Ft(e,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t))return null;var n="cenc";return t=="SAMPLE-AES"&&(n="cbcs"),t=Ft(e,"URI"),t=lg(t.split("?")[0]),t=Ze(t.data),n=Xo("com.huawei.wiseplay",n,[{initDataType:"cenc",initData:t}]),(e=je(e,"KEYID"))&&(n.keyIds=new Set([e.toLowerCase().substr(2)])),n}},pg="VOD",Qw="EVENT",hg="LIVE",kk={Hh:pg,Kj:Qw,Sj:hg};hi["application/x-mpegurl"]=function(){return new sg},hi["application/vnd.apple.mpegurl"]=function(){return new sg};function yg(e){return Jy(e)}var Ak=new Map().set("com.microsoft.playready",yg).set("com.microsoft.playready.recommendation",yg).set("com.microsoft.playready.software",yg).set("com.microsoft.playready.hardware",yg);function Bf(e){if(!nT){nT=!0;var t=new Uint8Array([105,115,111,109]),n=new Uint8Array([97,118,99,49]),r=new Uint8Array([0,0,0,1]);gg=vt("ftyp",t,r,t,n),t=vt("dref",jk),Um=vt("dinf",t)}this.g=e}function Vf(e){for(var t=[],n=I(e.g),r=n.next();!r.done;r=n.next()){var i=t,o=i.push,a=r.value;r=vt;var f=a.id+1,p=a.stream.width||0,g=a.stream.height||0;a.type=="audio"&&(g=p=0);var m=a.duration*a.timescale,w=Math.floor(m/(Ms+1));switch(m=Math.floor(m%(Ms+1)),f=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(ee(fn(f,4)),[0,0,0,0],ee(fn(w,4)),ee(fn(m,4)),[0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],ee(fn(p,2)),[0,0],ee(fn(g,2)),[0,0])),f=vt("tkhd",f),p=vt,w=a.duration*a.timescale,g=Math.floor(w/(Ms+1)),w=Math.floor(w%(Ms+1)),m=a.stream.language,m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96,g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(ee(fn(a.timescale,4)),ee(fn(g,4)),ee(fn(w,4)),ee(fn(m,2)),[0,0])),g=vt("mdhd",g),w=a,m=new Uint8Array([]),w.type){case"video":m=Dk;break;case"audio":m=Ok}w=vt("hdlr",m);e:{switch(a.type){case"video":a=vt("minf",vt("vmhd",Nk),Um,Zw(a));break e;case"audio":a=vt("minf",vt("smhd",_k),Um,Zw(a));break e}a=new Uint8Array([])}a=p("mdia",g,w,a),r=r("trak",f,a),o.call(i,r)}for(t=rn.apply(ar,ee(t)),o=e.g[0],n=vt,r=o.duration*o.timescale,i=Math.floor(r/(Ms+1)),r=Math.floor(r%(Ms+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(ee(fn(o.timescale,4)),ee(fn(i,4)),ee(fn(r,4)),[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])),i=vt("mvhd",i),r=[],e=I(e.g),p=e.next();!p.done;p=e.next())a=r,f=a.push,p=new Uint8Array([0,0,0,0].concat(ee(fn(p.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),p=vt("trex",p),f.call(a,p);if(e=rn.apply(ar,ee(r)),e=vt("mvex",e),r=[],o.encrypted){for(o=I(o.stream.drmInfos),a=o.next();!a.done;a=o.next())if(a=a.value,a.initData)for(a=I(a.initData),f=a.next();!f.done;f=a.next())r.push(f.value.initData);o=rn.apply(ar,ee(r))}else o=new Uint8Array([]);return e=n("moov",i,t,e,o),t=new Uint8Array(gg.byteLength+e.byteLength),t.set(gg),t.set(e,gg.byteLength),t}function Zw(e){var t=vt,n=new Uint8Array([]);switch(e.type){case"video":if(e.codecs.includes("avc1")){n=e.stream.width||0;var r=e.stream.height||0;if(0<e.ya.byteLength)var i=vt("avcC",e.ya);else{i=vt;for(var o=7,a=[],f=[],p=0,g=0,m=0,w=0;w<e.kb.length;w++){var E=tT(e.kb[w]);switch(E[0]&31){case 7:a.push(E),o+=E.length+2;break;case 8:f.push(E),o+=E.length+2}}for(0<a.length&&(p=a[0][1],m=a[0][2],g=a[0][3]),o=new Uint8Array(o),w=0,o[w++]=1,o[w++]=p,o[w++]=m,o[w++]=g,o[w++]=255,o[w++]=224|a.length,p=0;p<a.length;p++)o[w++]=(a[p].length&65280)>>8,o[w++]=a[p].length&255,o.set(a[p],w),w+=a[p].length;for(o[w++]=f.length,a=0;a<f.length;a++)o[w++]=(f[a].length&65280)>>8,o[w++]=f[a].length&255,o.set(f[a],w),w+=f[a].length;i=i("avcC",o)}n=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].concat(ee(fn(n,2)),ee(fn(r,2)),[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])),r="avc1",f=eT(e),a=new Uint8Array([]),e.encrypted&&
2025-04-26 19:21:13 -04:00
` );e={},t=I(t);for(var n=t.next();!n.done;n=t.next())n=n.value.split(": "),e[n[0].toLowerCase()]=n.slice(1).join(": ");return e}Me("shaka.net.HttpXHRPlugin",lT),lT.parse=mg;var Qk=T.XMLHttpRequest;Bn("http",mg,1,!0),Bn("https",mg,1,!0),Bn("blob",mg,1,!0);function aT(e,t,n,r,i){this.g=e,this.i=t,this.groupId=n,this.h=r,this.j=i}function Fm(e){var t=e.Pb();return t?Wo(t):e.N().map(function(n){return"{"+encodeURI(n.split("#xywh=")[0])+"}"}).join("")+":"+e.Ma+":"+e.va}function Zk(e,t){return Pl(e.g.N(),e.g.Ma,e.g.va,t.streaming.retryParameters)}function cT(){this.g=this.j=this.i=0,this.h=new Map,this.l=0}function fT(e,t){e.i+=t;var n=e.l;return e.l++,e.h.set(n,t),n}cT.prototype.close=function(e,t){if(this.h.has(e)){var n=this.h.get(e);this.h.delete(e),this.j+=n,this.g+=t}};function dT(e){return e.i==0?0:e.j/e.i}function pT(e){var t=this;this.s=e,this.i=new Map,this.h=new Nu(function(){return Km(t).catch(function(){})}),this.j=[],this.o=function(){},this.m=function(){},this.g=new cT,this.l=!1}pT.prototype.destroy=function(){return this.h.destroy()};function eA(e,t,n){e.o=t,e.m=n}function Km(e){e.l=!0;var t=e.j.map(function(n){return n()});return e.j=[],Promise.all(t)}function tA(e,t,n,r,i,o){Ht(e.h);var a=(e.i.get(t)||Promise.resolve()).then(function(){var f,p,g,m,w,E,C;return G(function(P){if(P.g==1)return _(P,iA(e,n),2);if(f=P.h,e.h.g)throw new Y(2,9,7001);if(i)for(m in p=Ze(f),g=new ro(p),g.data)w=Number(m),E=g.data[w],C=g.g[w],e.m(E,C);return e.g.close(r,f.byteLength),e.o(dT(e.g),e.g.g),P.return(o(f))})});e.i.set(t,a)}function nA(e,t,n,r,i,o){Ht(e.h);var a=(e.i.get(t)||Promise.resolve()).then(function(){if(e.h.g)throw new Y(2,9,7001);if(i){var f=Ze(n);f=new ro(f);for(var p in f.data){var g=Number(p);e.m(f.data[g],f.g[g])}}return e.g.close(r,n.byteLength),e.o(dT(e.g),e.g.g),o(n)});e.i.set(t,a)}function rA(e){return G(function(t){return t.g==1?_(t,Promise.all(e.i.values()),2):t.return(e.g.g)})}function iA(e,t){var n,r,i,o;return G(function(a){return a.g==1?(n=_r,r=e.s.request(n,t),i=function(){return r.abort()},e.j.push(i),_(a,r.promise,2)):(o=a.h,Gr(e.j,i),a.return(o.data))})}function Sg(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new Nt,e.onabort=function(r){r.preventDefault(),n.g.reject()},e.onerror=function(r){r.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}Sg.prototype.abort=function(){var e=this;return G(function(t){if(t.g==1){try{e.i.abort()}catch{}return pe(t,2),_(t,e.g,4)}if(t.g!=2)return be(t,0);ke(t),le(t)})};function Hm(e,t){return new Promise(function(n,r){var i=e.h.openCursor();i.onerror=r,i.onsuccess=function(){var o;return G(function(a){if(a.g==1)return i.result==null?(n(),a.return()):(o=i.result,_(a,t(o.key,o.value,o),2));o.continue(),le(a)})}})}Sg.prototype.store=function(){return this.h},Sg.prototype.promise=function(){return this.g};function qm(e){this.h=e,this.g=[]}qm.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))};function nc(e,t){return wg(e,t,"readwrite")}function wg(e,t,n){n=e.h.transaction([t],n);var r=new Sg(n,t);return e.g.push(r),r.promise().then(function(){Gr(e.g,r)},function(){Gr(e.g,r)}),r}function rc(e,t,n){this.h=new qm(e),this.i=t,this.g=n}h=rc.prototype,h.destroy=function(){return this.h.destroy()},h.hasFixedKeySpace=function(){return!0},h.addSegments=function(){return hT(this.i)},h.removeSegments=function(e,t){return yT(this,this.i,e,t)},h.getSegments=function(e){var t=this,n;return G(function(r){return r.g==1?_(r,gT(t,t.i,e),2):(n=r.h,r.return(n.map(function(i){return t.zg(i)})))})},h.addManifests=function(){return hT(this.g)},h.updateManifest=function(){return Promise.reject(new Y(2,9,9016,"Cannot modify values in "+this.g))};function oA(e,t,n){e=nc(e.h,e.g);var r=e.store();return r.get(t).onsuccess=function(){r.put(n,t)},e.promise()}h.updateManifestExpiration=function(e,t){var n=nc(this.h,this.g),r=n.store();return r.get(e).onsuccess=function(i){(i=i.target.result)&&(i.expiration=t,r.put(i,e))},n.promise()},h.removeManifests=function(e,t){return yT(this,this.g,e,t)},h.getManifests=function(e){var t=this,n
2025-04-25 19:17:40 -04:00
` }),p=xr(o,"style"),o=xr(o,"region"),g=[];for(var C=I(o),P=C.next();!P.done;P=C.next())(P=TP(P.value,p,E))&&g.push(P);if(bt(i,"p").length)throw new Y(2,2,2001,"<p> can only be inside <div> in TTML");for(E=I(bt(i,"div")),C=E.next();!C.done;C=E.next())if(bt(C.value,"span").length)throw new Y(2,2,2001,"<span> can only be inside <p> in TTML");return(t=yx(i,t,a,f,p,o,g,w,m,null,!1,n,r))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e};function yx(e,t,n,r,i,o,a,f,p,g,m,w,E){var C=g;if(rl(e)){if(!m)return null;var P={tagName:"span",children:[sn(e)],attributes:{},parent:null}}else P=e;for(var L=null,M=I(Cx),B=M.next();!B.done&&!(L=Lg(P,"backgroundImage",r,"#",B.value)[0]);B=M.next());M=null,B=Ai(P,Cx,"backgroundImage");var U=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+) $ /;if(B&&U.test(B)){if(M=parseInt(B.split(":").pop(),10)-1,M>=E.length)return null;M=E[M]}else w&&B&&!B.startsWith("#")&&(U=new hn(w),B=new hn(B),(B=U.resolve(B).toString())&&(M=B));if((e.tagName=="p"||L||M)&&(m=!0),e=m,B=(P.attributes["xml:space"]||(f?"default":"preserve"))=="default",U=P.children.every(rl),f=[],!U)for(var K=I(P.children),W=K.next();!W.done;W=K.next())(W=yx(W.value,t,n,r,i,o,a,B,p,P,m,w,E))&&f.push(W);if(r=g!=null,w=sn(P),w=P.children.length&&w&&/ \S /.test(w),K=P.attributes.begin||P.attributes.end||P.attributes.dur,!(K||w||P.tagName=="br"||f.length!=0||r&&!B))return null;for(E=mx(P,n),w=E.start,E=E.end;C&&C.tagName&&C.tagName!="tt";)E=IP(C,n,w,E),w=E.start,E=E.end,C=C.parent;if(w==null&&(w=0),w+=t.periodStart,E=E==null?1/0:E+t.periodStart,w=Math.max(w,t.segmentStart),E=Math.min(E,t.segmentEnd),!K&&0<f.length)for(w=1/0,E=0,t=I(f),n=t.next();!n.done;n=t.next())n=n.value,w=Math.min(w,n.startTime),E=Math.max(E,n.endTime);if(P.tagName=="br")return i=new zt(w,E,""),i.lineBreak=!0,i;if(t="",U&&(t=ur(sn(P)||""),B&&(t=t.replace(/ \s +/g," "))),t=new zt(w,E,t),t.nestedCues=f,m||(t.isContainer=!0),p&&(t.cellResolution=p),p=Lg(P,"region",o,"")[0],P.attributes.region&&p&&p.attributes["xml:id"]){var X=p.attributes["xml:id"];t.region=a.filter(function(q){return q.id==X})[0]}return a=p,g&&r&&!P.attributes.region&&!P.attributes.style&&(a=Lg(g,"region",o,"")[0]),xP(t,P,a,L,M,i,e,f.length==0),t}function TP(e,t,n){var r=new el,i=e.attributes["xml:id"];if(!i)return null;r.id=i,i=null,n&&(i=g0.exec(n)||v0.exec(n)),n=i?Number(i[1]):null,i=i?Number(i[2]):null;var o,a=Mg(e,t,"extent");if(a){var f=(o=g0.exec(a))||v0.exec(a);f!=null&&(r.width=Number(f[1]),r.height=Number(f[2]),o||(n!=null&&(r.width=100*r.width/n),i!=null&&(r.height=100*r.height/i)),r.widthUnits=o||n!=null?Xn:0,r.heightUnits=o||i!=null?Xn:0)}return(e=Mg(e,t,"origin"))&&(f=(o=g0.exec(e))||v0.exec(e),f!=null&&(r.viewportAnchorX=Number(f[1]),r.viewportAnchorY=Number(f[2]),o?a||(r.width=100-r.viewportAnchorX,r.widthUnits=Xn,r.height=100-r.viewportAnchorY,r.heightUnits=Xn):(i!=null&&(r.viewportAnchorY=100*r.viewportAnchorY/i),n!=null&&(r.viewportAnchorX=100*r.viewportAnchorX/n)),r.viewportAnchorUnits=o||n!=null?Xn:0)),r}function d0(e){var t=e.match(/rgba \( ([^)]+) \) /);return t&&(t=t[1].split(","),t.length==4)?(t[3]=String(Number(t[3])/255),"rgba("+t.join(",")+")"):e}function xP(e,t,n,r,i,o,a,f){if(a=a||f,Sr(t,n,o,"direction",a)=="rtl"&&(e.direction="rtl"),f=Sr(t,n,o,"writingMode",a),f=="tb"||f=="tblr"?e.writingMode="vertical-lr":f=="tbrl"?e.writingMode="vertical-rl":f=="rltb"||f=="rl"?e.direction="rtl":f&&(e.direction=la),(f=Sr(t,n,o,"textAlign",!0))?(e.positionAlign=PP[f],e.lineAlign=AP[f],e.textAlign=Tc[f.toUpperCase()]):e.textAlign=Io,(f=Sr(t,n,o,"displayAlign",!0))&&(e.displayAlign=Uh[f.toUpperCase()]),(f=Sr(t,n,o,"color",a))&&(e.color=d0(f)),(f=Sr(t,n,o,"backgroundColor",a))&&(e.backgroundColor=d0(f)),(f=Sr(t,n,o,"border",a))&&(e.border=f),f=Sr(t,n,o,"fontFamily",a))switch(f){case"monospaceSerif":e.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.fontFamily="sans-serif";break;case"monospaceSansSerif":e.fontFamily="Consolas,monospace";break;case"proportionalS
2025-04-24 17:06:14 -04:00
` );var n=e.split(/ \n {2,}/m);if(!/^WEBVTT( $ |[ \t \n ])/m.test(n[0]))throw new Y(2,2,2e3);if(e=t.vttOffset,this.g=="HLS")if(n[0].includes("X-TIMESTAMP-MAP")){var r=n[0];if(e=r.match(/LOCAL:((?:( \d {1,}):)?( \d {2}):( \d {2}) \. ( \d {3}))/m),r=r.match(/MPEGTS:( \d +)/m),!e||!r)throw new Y(2,2,2e3);if(e=li(e[1]),e==null)throw new Y(2,2,2e3);r=Number(r[1]);for(var i=t.segmentStart-t.periodStart;95443.7176888889<=i;)i-=95443.7176888889,r+=8589934592;e=t.periodStart+r/9e4-e}else t.periodStart&&t.vttOffset==t.periodStart&&(e=0);for(t=[],r=I(n[0].split( `
` )),i=r.next();!i.done;i=r.next())if(i=i.value,/^Region:/.test(i)){i=new nl(i);var o=new el; $ r(i),Eu(i);for(var a= $ r(i);a;){var f=o,p=a;(a=/^id=(.*) $ /.exec(p))?f.id=a[1]:(a=/^width=( \d {1,2}|100)% $ /.exec(p))?f.width=Number(a[1]):(a=/^lines=( \d +) $ /.exec(p))?(f.height=Number(a[1]),f.heightUnits=2):(a=/^regionanchor=( \d {1,2}|100)%,( \d {1,2}|100)% $ /.exec(p))?(f.regionAnchorX=Number(a[1]),f.regionAnchorY=Number(a[2])):(a=/^viewportanchor=( \d {1,2}|100)%,( \d {1,2}|100)% $ /.exec(p))?(f.viewportAnchorX=Number(a[1]),f.viewportAnchorY=Number(a[2])):/^scroll=up $ /.exec(p)&&(f.scroll="up"),Eu(i),a= $ r(i)}t.push(o)}for(r=new Map,Sc(r),i=[],n=I(n.slice(1)),o=n.next();!o.done;o=n.next()){if(o=o.value.split( `
2025-04-25 19:17:40 -04:00
` ),(o.length!=1||o[0])&&!/^NOTE( $ |[ \t ])/.test(o[0])&&o[0]=="STYLE"){for(f=[],a=-1,p=1;p<o.length;p++)o[p].includes("::cue")&&(f.push([]),a=f.length-1),a!=-1&&(f[a].push(o[p]),o[p].includes("}")&&(a=-1));for(f=I(f),a=f.next();!a.done;a=f.next()){var g=a.value;a="global",(p=g[0].match(/ \( (.*) \) /))&&(a=p.pop()),p=g.slice(1,-1),g[0].includes("}")&&(g=/ \{ (.*?) \} /.exec(g[0]))&&(p=g[1].split(";")),(g=r.get(a))||(g=new zt(0,0,""));for(var m=!1,w=0;w<p.length;w++){var E=/^ \s *([^:]+): \s *(.*)/.exec(p[w]);if(E){var C=E[2].trim().replace(";","");switch(E[1].trim()){case"background-color":case"background":m=!0,g.backgroundColor=C;break;case"color":m=!0,g.color=C;break;case"font-family":m=!0,g.fontFamily=C;break;case"font-size":m=!0,g.fontSize=C;break;case"font-weight":(700<=parseInt(C,10)||C=="bold")&&(m=!0,g.fontWeight= $ l);break;case"font-style":switch(C){case"normal":m=!0,g.fontStyle=vd;break;case"italic":m=!0,g.fontStyle=Jl;break;case"oblique":m=!0,g.fontStyle="oblique"}break;case"opacity":m=!0,g.opacity=parseFloat(C);break;case"text-combine-upright":m=!0,g.textCombineUpright=C;break;case"text-shadow":m=!0,g.textShadow=C;break;case"white-space":m=!0,g.wrapLine=C!="noWrap"}}}m&&r.set(a,g)}}if(g=o,m=e,g.length==1&&!g[0]||/^NOTE( $ |[ \t ])/.test(g[0])||g[0]=="STYLE"||g[0]=="REGION")o=null;else if(o=null,g[0].includes("-->")||(o=g[0],g.splice(0,1)),f=new nl(g[0]),a=Ci(f),w=To(f,/[ \t ]+-- \x 3e[ \t ]+/g),p=Ci(f),a==null||w==null||p==null)ft("Failed to parse VTT time code. Cue skipped:",o,g),o=null;else{for(a+=m,p+=m,m=g.slice(1).join( `
` ).trim(),r.has("global")?(g=r.get("global").clone(),g.startTime=a,g.endTime=p,g.payload=m):g=new zt(a,p,m),Eu(f),a= $ r(f);a;)kx(g,a,t),Eu(f),a= $ r(f);mc(g,r),o!=null&&(g.id=o),o=g}o&&i.push(o)}return i};function kx(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right) $ /.exec(t))?(t=r[1],t=="middle"?e.textAlign=Io:e.textAlign=Tc[t.toUpperCase()]):(r=/^vertical:(lr|rl) $ /.exec(t))?e.writingMode=r[1]=="lr"?"vertical-lr":"vertical-rl":(r=/^size:([ \d .]+)% $ /.exec(t))?e.size=Number(r[1]):(r=/^position:([ \d .]+)%(?:,(line-left|line-right|middle|center|start|end|auto))? $ /.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign=t=="line-left"||t=="start"?"line-left":t=="line-right"||t=="end"?"line-right":t=="center"||t=="middle"?"center":wc)):(r=/^region:(.*) $ /.exec(t))?(t=DP(n,r[1]))&&(e.region=t):(n=/^line:([ \d .]+)%(?:,(start|end|center))? $ /.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=yd[n[2].toUpperCase()])):(n=/^line:(-? \d +)(?:,(start|end|center))? $ /.exec(t))&&(e.lineInterpretation=ll,e.line=Number(n[1]),n[2]&&(e.lineAlign=yd[n[2].toUpperCase()]))}function DP(e,t){return e=e.filter(function(n){return n.id==t}),e.length?e[0]:null}Me("shaka.text.VttTextParser",Hr),Hr.prototype.parseMedia=Hr.prototype.parseMedia,Hr.prototype.setManifestType=Hr.prototype.setManifestType,Hr.prototype.setSequenceMode=Hr.prototype.setSequenceMode,Hr.prototype.parseInit=Hr.prototype.parseInit,gn["text/vtt"]=function(){return new Hr},gn['text/vtt; codecs="vtt"']=function(){return new Hr},gn['text/vtt; codecs="wvtt"']=function(){return new Hr};function Fi(){this.g=null}Fi.prototype.parseInit=function(e){var t=this,n=!1;if(new Vt().box("moov",it).box("trak",it).box("mdia",it).S("mdhd",function(r){r=Ma(r.reader,r.version),t.g=r.timescale}).box("minf",it).box("stbl",it).S("stsd",Po).box("wvtt",function(){n=!0}).parse(e),!this.g)throw new Y(2,2,2008);if(!n)throw new Y(2,2,2008)},Fi.prototype.setSequenceMode=function(){},Fi.prototype.setManifestType=function(){},Fi.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new Y(2,2,2008);var n=0,r=[],i,o=[],a=!1,f=!1,p=!1,g=null;if(new Vt().box("moof",it).box("traf",it).S("tfdt",function(K){a=!0,n=ba(K.reader,K.version).baseMediaDecodeTime}).S("tfhd",function(K){g=ty(K.reader,K.flags).jd}).S("trun",function(K){f=!0,r=tp(K.reader,K.version,K.flags).kh}).box("mdat",_u(function(K){p=!0,i=K})).parse(e,!1),!p&&!a&&!f)throw new Y(2,2,2008);e=n;for(var m=new Mt(i,0),w=I(r),E=w.next();!E.done;E=w.next()){E=E.value;var C=E.Wf||g,P=E.se?n+E.se:e;e=P+(C||0);var L=0;do{var M=m.R();L+=M;var B=m.R(),U=null;Ur(B)=="vttc"?8<M&&(U=m.Ab(M-8)):m.skip(M-8),C&&U&&(M=OP(U,t.periodStart+P/this.g,t.periodStart+e/this.g),o.push(M))}while(E.sampleSize&&L<E.sampleSize)}return o.filter(to)};function OP(e,t,n){var r,i,o;return new Vt().box("payl",_u(function(a){r=Qt(a)})).box("iden",_u(function(a){i=Qt(a)})).box("sttg",_u(function(a){o=Qt(a)})).parse(e),r?RP(r,i,o,t,n):null}function RP(e,t,n,r,i){if(e=new zt(r,i,e),mc(e),t&&(e.id=t),n)for(t=new nl(n),n= $ r(t);n;)kx(e,n,[]),Eu(t),n= $ r(t);return e}Me("shaka.text.Mp4VttParser",Fi),Fi.prototype.parseMedia=Fi.prototype.parseMedia,Fi.prototype.setManifestType=Fi.prototype.setManifestType,Fi.prototype.setSequenceMode=Fi.prototype.setSequenceMode,Fi.prototype.parseInit=Fi.prototype.parseInit,gn['application/mp4; codecs="wvtt"']=function(){return new Fi};function Ki(){}Ki.prototype.parseInit=function(){},Ki.prototype.setSequenceMode=function(){},Ki.prototype.setManifestType=function(){},Ki.prototype.parseMedia=function(e){var t=Qt(e).replace(/ \r +/g,"");if(t=t.trim(),e=[],t=="")return e;t=I(t.split( `
2025-04-24 17:06:14 -04:00
` ));for(var n=t.next();!n.done;n=t.next()){n=n.value.split( `
` );var r=new nl(n[0]),i=Ci(r),o=To(r,/,/g);if(r=Ci(r),i==null||o==null||r==null)throw new Y(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new zt(i,r,n.slice(1).join( `
2025-04-25 19:17:40 -04:00
` ).trim()))}return e},Me("shaka.text.SbvTextParser",Ki),Ki.prototype.parseMedia=Ki.prototype.parseMedia,Ki.prototype.setManifestType=Ki.prototype.setManifestType,Ki.prototype.setSequenceMode=Ki.prototype.setSequenceMode,Ki.prototype.parseInit=Ki.prototype.parseInit,gn["text/x-subviewer"]=function(){return new Ki};function wi(){this.g=new Hr}wi.prototype.parseInit=function(){},wi.prototype.setSequenceMode=function(){},wi.prototype.setManifestType=function(){},wi.prototype.parseMedia=function(e,t,n){return e=Qt(e),e=Ax(e),e=Ze(ui(e)),this.g.parseMedia(e,t,n,[])};function Ax(e){var t= ` WEBVTT
2025-04-24 17:06:14 -04:00
` ;if(e=="")return t;e=e.replace(/ \r +/g,""),e=e.trim(),e=I(e.split( `
` ));for(var n=e.next();!n.done;n=e.next())n=n.value.split(/ \n /),n[0].match(/ \d +/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join( `
` ).replace(/{b}/g,"<b>").replace(/{ \/ b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{ \/ i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{ \/ u}/g,"</u>")+ `
2025-04-25 19:17:40 -04:00
` ;return t}Me("shaka.text.SrtTextParser",wi),wi.srt2webvtt=Ax,wi.prototype.parseMedia=wi.prototype.parseMedia,wi.prototype.setManifestType=wi.prototype.setManifestType,wi.prototype.setSequenceMode=wi.prototype.setSequenceMode,wi.prototype.parseInit=wi.prototype.parseInit,gn["text/srt"]=function(){return new wi};function Hi(){}Hi.prototype.parseInit=function(){},Hi.prototype.setSequenceMode=function(){},Hi.prototype.setManifestType=function(){},Hi.prototype.parseMedia=function(e){var t="",n="",r=null,i=null;for(i=Qt(e).split(/ \r ? \n \s * \r ? \n /),e=I(i),i=e.next();!i.done;i=e.next()){var o=i.value;i=o,(o=MP.exec(o))&&(r=o[1],i=o[2]),r=="V4 Styles"||r=="V4+ Styles"?(t=i,t=n?t+( `
2025-04-24 17:06:14 -04:00
` +i):i):r=="Events"&&(n=n?n+( `
2025-04-25 19:17:40 -04:00
` +i):i)}for(r=[],i=null,t=I(t.split(/ \r ? \n /)),e=t.next();!e.done;e=t.next())if(e=e.value,!/^ \s *;/.test(e)&&(o=Ox.exec(e))){if(e=o[1].trim(),o=o[2].trim(),e=="Format")i=o.split(_g);else if(e=="Style"){e=o.split(_g),o={};for(var a=0;a<i.length&&a<e.length;a++)o[i[a]]=e[a];r.push(o)}}for(i=[],t=null,n=I(n.split(/ \r ? \n /)),o=n.next(),e={};!o.done;e={wh:void 0},o=n.next())if(o=o.value,!/^ \s *;/.test(o)&&(a=Ox.exec(o))){if(o=a[1].trim(),a=a[2].trim(),o=="Format")t=a.split(_g);else if(o=="Dialogue"){a=a.split(_g),o={};for(var f=0;f<t.length&&f<a.length;f++)o[t[f]]=a[f];f=Dx(o.Start);var p=Dx(o.End);a=new zt(f,p,a.slice(t.length-1).join(",").replace(/ \\ N/g, `
2025-04-26 19:21:13 -04:00
` ).replace(/ \{ [^}]+ \} /g,"")),e.wh=o.Style,(e=r.find(function(g){return function(m){return m.Name==g.wh}}(e)))&&bP(a,e),i.push(a)}}return i};function bP(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=Px(n))&&(e.color=n),(n=t.BackColour)&&(n=Px(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight= $ l),t.Italic&&(e.fontStyle=Jl),t.Underline&&e.textDecoration.push(Ho),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=ua,e.textAlign="start";break;case 2:e.displayAlign=ua,e.textAlign=Io;break;case 3:e.displayAlign=ua,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=Io;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=Io;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function Px(e){return e=parseInt(e.replace("&H",""),16),0<=e?"rgba("+(e&255)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function Dx(e){return e=LP.exec(e),3600*(e[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Me("shaka.text.SsaTextParser",Hi),Hi.prototype.parseMedia=Hi.prototype.parseMedia,Hi.prototype.setManifestType=Hi.prototype.setManifestType,Hi.prototype.setSequenceMode=Hi.prototype.setSequenceMode,Hi.prototype.parseInit=Hi.prototype.parseInit;var MP=/^ \s * \[ ([^ \] ]+) \] \r ? \n ([ \s \S ]*)/,Ox=/^ \s *([^:]+): \s *(.*)/,_g=/ \s *, \s */,LP=/^( \d +:)?( \d {1,2}):( \d {1,2}(?:[.] \d {1,3})?)? $ /;gn["text/x-ssa"]=function(){return new Hi};function Rx(e,t){var n=e[t+1]&1?7:9;return t+n<=e.length&&(e=((e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5)-n,0<e)?{rd:n,ea:e}:null}function bx(e,t){var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=(e[t+2]&60)>>>2;if(r>n.length-1)return null;var i=((e[t+2]&192)>>>6)+1,o=(e[t+2]&1)<<2;return o|=(e[t+3]&192)>>>6,{sampleRate:n[r],channelCount:o,codec:"mp4a.40."+i}}function Mx(e,t){if(t+1<e.length&&e[t]===255&&(e[t+1]&246)===240){var n=e[t+1]&1?7:9;if(t+n>=e.length)return!1;var r=(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5;return r<=n?!1:(t+=r,t===e.length||t+1<e.length&&e[t]===255&&(e[t+1]&246)===240)}return!1}function NP(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2||t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}function qi(e){this.j=e,this.h=0,this.g=new Map,this.i=null}h=qi.prototype,h.destroy=function(){this.g.clear()},h.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/aac"?Un(this.convertCodecs("audio",e)):!1},h.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/aac"?'audio/mp4; codecs="'+(Er(t)||"mp4a.40.2")+'"':t},h.getOriginalMimeType=function(){return this.j},h.transmux=function(e,t,n,r){for(var i=Ze(e),o=Bu(i),a=o.length;a<i.length&&!Mx(i,a);a++);if(e=1e3*n.endTime,o=cu(o),o.length&&n&&(o=o.find(function(m){return m.description==="com.apple.streaming.transportStreamTimestamp"}))&&(e=o.data),o=bx(i,a),!o)return Promise.reject(new Y(2,3,3018,n?n.N()[0]:null));t.audioSamplingRate=o.sampleRate,t.channelsCount=o.channelCount;for(var f=[];a<i.
2025-04-24 17:06:14 -04:00
@ license
MSS Transmuxer
Copyright 2015 Dash Industry Forum
SPDX - License - Identifier : BSD - 3 - Clause
2025-04-26 19:21:13 -04:00
* /function zi(e){this.h=e,(this.g=xm.get("ISOBoxer")())&&YP(this)}function YP(e){function t(){this._procFullBox(),this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8)),this._procField("sample_count","uint",32),this._procEntries("entry",this.sample_count,function(n){this._procEntryField(n,"InitializationVector","data",8),this.flags&2&&(this._procEntryField(n,"NumberOfEntries","uint",16),this._procSubEntries(n,"clearAndCryptedData",n.NumberOfEntries,function(r){this._procEntryField(r,"BytesOfClearData","uint",16),this._procEntryField(r,"BytesOfEncryptedData","uint",32)}))})}e.g.addBoxProcessor("saio",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("entry_count","uint",32),this._procFieldArray("offset",this.entry_count,"uint",this.version===1?64:32)}),e.g.addBoxProcessor("saiz",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("default_sample_info_size","uint",8),this._procField("sample_count","uint",32),this.default_sample_info_size===0&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)}),e.g.addBoxProcessor("senc",t),e.g.addBoxProcessor("uuid",function(){for(var n=!0,r=0;16>r;r++)this.usertype[r]!==$P[r]&&(n=!1);n&&(this._parsing&&(this.type="sepiff"),t.call(this))})}h=zi.prototype,h.destroy=function(){},h.isSupported=function(e,t){var n=e.startsWith("mss/ ");return!this.g||!n?!1:t?Un(this.convertCodecs(t,e)):(t=this.convertCodecs(" audio ",e),e=this.convertCodecs(" video ",e),Un(t)||Un(e))},h.convertCodecs=function(e,t){return t.replace(" mss / "," ")},h.getOriginalMimeType=function(){return this.h},h.transmux=function(e,t,n){if(!n)return Promise.resolve(Ze(e));if(!t.mssPrivateData)return Promise.reject(new Y(2,3,3020,n?n.N()[0]:null));try{var r,i=this.g.parseBuffer(e),o=i.fetch(" tfhd ");o.track_ID=t.id+1;var a=i.fetch(" tfdt "),f=i.fetch(" traf ");a===null&&(a=this.g.createFullBox(" tfdt ",f,o),a.version=1,a.flags=0,a.baseMediaDecodeTime=Math.floor(n.startTime*t.mssPrivateData.timescale));var p=i.fetch(" trun "),g=i.fetch(" tfxd ");g&&g._parent.boxes.splice(g._parent.boxes.indexOf(g),1);var m=i.fetch(" tfrf ");m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var w=i.fetch(" sepiff ");if(w!==null){w.type=" senc ",w.usertype=void 0;var E=i.fetch(" saio ");if(E===null){E=this.g.createFullBox(" saio ",f),E.version=0,E.flags=0,E.entry_count=1,E.offset=[0];var C=this.g.createFullBox(" saiz ",f);if(C.version=0,C.flags=0,C.sample_count=w.sample_count,C.default_sample_info_size=0,C.sample_info_size=[],w.flags&2)for(r=0;r<w.sample_count;r+=1)C.sample_info_size[r]=10+6*w.entry[r].NumberOfEntries;else C.default_sample_info_size=8}}o.flags&=16777214,o.flags|=131072,p.flags|=1;var P=i.fetch(" moof ");p.data_offset=P.getLength()+8;var L=i.fetch(" saio ");L!==null&&(L.offset[0]=jx(P," traf ")+jx(f," senc ")+16);var M=Ze(i.write());return Promise.resolve(M)}catch(B){return B instanceof Y?Promise.reject(B):Promise.reject(new Y(2,3,3022,n?n.N()[0]:null))}};function jx(e,t){for(var n=8,r=0;r<e.boxes.length&&e.boxes[r].type!==t;r++)n+=e.boxes[r].size;return n}Me(" shaka . transmuxer . MssTransmuxer ",zi),zi.prototype.transmux=zi.prototype.transmux,zi.prototype.getOriginalMimeType=zi.prototype.getOriginalMimeType,zi.prototype.convertCodecs=zi.prototype.convertCodecs,zi.prototype.isSupported=zi.prototype.isSupported,zi.prototype.destroy=zi.prototype.destroy;var $P=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);ai(" mss / audio / mp4 ",function(){return new zi(" mss / audio / mp4 ")},qo),ai(" mss / video / mp4 ",function(){return new zi(" mss / video / mp4 ")},qo);function yo(e){this.m=e,this.g=0,this.i=new Map,this.l=this.h=this.j=null}h=yo.prototype,h.destroy=function(){this.i.clear(),this.h&&this.h.destroy()},h.isSupported=function(e,t){if(e.toLowerCase().split(" ; ")[0]!=" video / mp2t ")return!1;var n=e;t&&(n=this.convertCodecs(t,e));var r=Er(n).split(" , " ) ; return n = cr
2025-04-24 17:06:14 -04:00
@ license
EME Encryption Scheme Polyfill
Copyright 2019 Google LLC
SPDX - License - Identifier : Apache - 2.0
2025-04-25 19:17:40 -04:00
* / f u n c t i o n B x ( ) { } v a r c h ; f u n c t i o n V x ( ) { c h | | n a v i g a t o r . e m e E n c r y p t i o n S c h e m e P o l y f i l l e d ? c o n s o l e . d e b u g ( " E m e E n c r y p t i o n S c h e m e P o l y f i l l : A l r e a d y i n s t a l l e d . " ) : n a v i g a t o r . r e q u e s t M e d i a K e y S y s t e m A c c e s s & & M e d i a K e y S y s t e m A c c e s s . p r o t o t y p e . g e t C o n f i g u r a t i o n ? ( c h = n a v i g a t o r . r e q u e s t M e d i a K e y S y s t e m A c c e s s , c o n s o l e . d e b u g ( " E m e E n c r y p t i o n S c h e m e P o l y f i l l : W a i t i n g t o d e t e c t e n c r y p t i o n S c h e m e s u p p o r t . " ) , n a v i g a t o r . r e q u e s t M e d i a K e y S y s t e m A c c e s s = Z P , n a v i g a t o r . e m e E n c r y p t i o n S c h e m e P o l y f i l l e d = ! 0 ) : c o n s o l e . d e b u g ( " E m e E n c r y p t i o n S c h e m e P o l y f i l l : E M E n o t f o u n d " ) } f u n c t i o n Z P ( e , t ) { v a r n = t h i s , r ; r e t u r n G ( f u n c t i o n ( i ) { r e t u r n i . g = = 1 ? ( c o n s o l e . a s s e r t ( n = = n a v i g a t o r , ' b a d " t h i s " f o r r e q u e s t M e d i a K e y S y s t e m A c c e s s ' ) , _ ( i , c h . c a l l ( n , e , t ) , 2 ) ) : ( r = i . h , X x ( r ) ? ( c o n s o l e . d e b u g ( " E m e E n c r y p t i o n S c h e m e P o l y f i l l : N a t i v e e n c r y p t i o n S c h e m e s u p p o r t f o u n d . " ) , n a v i g a t o r . r e q u e s t M e d i a K e y S y s t e m A c c e s s = c h , i . r e t u r n ( r ) ) : ( c o n s o l e . d e b u g ( " E m e E n c r y p t i o n S c h e m e P o l y f i l l : N o n a t i v e e n c r y p t i o n S c h e m e s u p p o r t f o u n d . P a t c h i n g e n c r y p t i o n S c h e m e s u p p o r t . " ) , n a v i g a t o r . r e q u e s t M e d i a K e y S y s t e m A c c e s s = F x , i . r e t u r n ( F x . c a l l ( n , e , t ) ) ) ) } ) } f u n c t i o n F x ( e , t ) { v a r n = t h i s , r , i , o , a , f , p , g , m , w , E , C , P ; r e t u r n G ( f u n c t i o n ( L ) { i f ( L . g = = 1 ) { f o r ( c o n s o l e . a s s e r t ( n = = n a v i g a t o r , ' b a d " t h i s " f o r r e q u e s t M e d i a K e y S y s t e m A c c e s s ' ) , r = W x ( e ) , i = [ ] , o = I ( t ) , a = o . n e x t ( ) ; ! a . d o n e ; a = o . n e x t ( ) ) f = a . v a l u e , p = K x ( f . v i d e o C a p a b i l i t i e s , r ) , g = K x ( f . a u d i o C a p a b i l i t i e s , r ) , f . v i d e o C a p a b i l i t i e s & & f . v i d e o C a p a b i l i t i e s . l e n g t h & & ! p . l e n g t h | | f . a u d i o C a p a b i l i t i e s & & f . a u d i o C a p a b i l i t i e s . l e n g t h & & ! g . l e n g t h | | ( m = O b j e c t . a s s i g n ( { } , f ) , m . v i d e o C a p a b i l i t i e s = p , m . a u d i o C a p a b i l i t i e s = g , i . p u s h ( m ) ) ; i f ( ! i . l e n g t h ) t h r o w w = E r r o r ( " U n s u p p o r t e d k e y S y s t e m o r s u p p o r t e d C o n f i g u r a t i o n s . " ) , w . n a m e = " N o t S u p p o r t e d E r r o r " , w . c o d e = D O M E x c e p t i o n . N O T _ S U P P O R T E D _ E R R , w ; r e t u r n _ ( L , c h . c a l l ( n , e , i ) , 2 ) } r e t u r n E = L . h , P = C = n u l l , i [ 0 ] & & ( i [ 0 ] . v i d e o C a p a b i l i t i e s & & ( C = i [ 0 ] . v i d e o C a p a b i l i t i e s [ 0 ] . e n c r y p t i o n S c h e m e ) , i [ 0 ] . a u d i o C a p a b i l i t i e s & & ( P = i [ 0 ] . a u d i o C a p a b i l i t i e s [ 0 ] . e n c r y p t i o n S c h e m e ) ) , L . r e t u r n ( n e w j g ( E , C , P ) ) } ) } f u n c t i o n K x ( e , t ) { r e t u r n e & & e . f i l t e r ( f u n c t i o n ( n ) { r e t u r n m 0 ( n . e n c r y p t i o n S c h e m e , t ) } ) } M e ( " E m e E n c r y p t i o n S c h e m e P o l y f i l l " , B x ) , B x . i n s t a l l = V x ; f u n c t i o n H x ( ) { } v a r f h ; f u n c t i o n q x ( ) { f h | | n a v i g a t o r . m e d i a C a p a b i l i t i e s E n c r y p t i o n S c h e m e P o l y f i l l e d ? c o n s o l e . d e b u g ( " M c E n c r y p t i o n S c h e m e P o l y f i l l : A l r e a d y i n s t a l l e d . " ) : n a v i g a t o r . m e d i a C a p a b i l i t i e s ? ( f h = n a v i g a t o r . m e d i a C a p a b i l i t i e s . d e c o d i n g I n f o , c o n s o l e . d e b u g ( " M c E n c r y p t i o n S c h e m e P o l y f i l l : W a i t i n g t o d e t e c t e n c r y p t i o n S c h e m e s u p p o r t . " ) , n a v i g a t o r . m e d i a C a p a b i l i t i e s . d e c o d i n g I n f o = e D , n a v i g a t o r . m e d i a C a p a b i l i t i e s E n c r y p t i o n S c h e m e P o l y f i l l e d = ! 0 ) : c o n s o l e . d e b u g ( " M c E n c r y p t i o n S c h e m e P o l y f i l l : M e d i a C a p a b i l i t i e s n o t f o u n d " ) } f u n c t i o n e D ( e ) { v a r t = t h i s , n , r ; r e t u r n G ( f u n c t i o n ( i ) { s w i t c h ( i . g ) { c a s e 1 : r e t u r n c o n s o l e . a s s e r t ( t = = n a v i g a t o r . m e d i a C a p a b i l i t i e s , ' b a d " t h i s " f o r d e c o d i n g I n f o ' ) , _ ( i , f h . c a l l ( t , e ) , 2 ) ; c a s e 2 : i f ( n = i . h , ! e . k e y S y s t e m C o n f i g u r a t i o n ) r e t u r n i . r e t u r n ( n ) ; i f ( ( r = n . k e y S y s t e m A c c e s s ) & & X x ( r ) ) r e t u r n c o n s o l e . d e b u g ( " M c E n c r y p t i o n S c h e m e P o l y f i l l : N a t i v e e n c r y p t i o n S c h e m e s u p p o r t f o u n d . " ) , n a v i g a t o r . m e d i a C a p a b i l i t i e s . d e c o d i n g I n f o = f h , i . r e t u r n ( n ) ; i f ( c o n s o l e . d e b u g ( " M c E n c r y p t i o n S c h e m e P o l y f i l l : N o n a t i v e e n c r y p t i o n S c h e m e s u p p o r t f o u n d . P a t c h i n g e n c r y p t i o n S c h e m e s u p p o r t . " ) , n a v i g a t o r . m e d i a C a p a b i l i t i e s . d e c o d i n g I n f o = z x , r ) { i . u ( 3 ) ; b r e a k } r e t u r n _ ( i , G x ( e ) , 4 ) ; c a s e 4 : r e t u r n n . k e y S y s t e m A c c e s s = i . h , i . r e t u r n ( n ) ; c a s e 3 : r e t u r n i . r e t u r n ( z x . c a l l ( t , e ) ) } } ) } f u n c t i o n z x ( e ) { v a r t = t h i s , n , r , i , o , a , f , p ; r e t u r n G ( f u n c t i o n ( g ) { s w i t c h ( g . g ) { c a s e 1 : r e t u r n c o n s o l e . a s s e r t ( t = = n a v i g a t o r . m e d i a C a p a b i l i t i e s , ' b a d " t h i s " f o r d e c o d i n g I n f o ' ) , r = n = n u l l , ! e . k e y S y s t e m C o n f i g u r a t i o n | | ( i = e . k e y S y s t e m C o n f i g u r a t i o n , o = i . k e y S y s t e m , r = i . a u d i o & & i . a u d i o . e n c r y p t i o n S c h e m e , n = i . v i d e o & & i . v i d e o . e n c r y p t i o n S c h e m e , a = W x ( o ) , f = { p o w e r E f f i c i e n t : ! 1 , s m o o t h : ! 1 , s u p p o r t e d : ! 1 , k e y S y s t e m A c c e s s : n u l l , c o n f i g u r a t i o n : e } , m 0 ( r , a ) & & m 0 ( n , a ) ) ? _ ( g , f h . c a l l ( t , e ) , 2 ) : g . r e t u r n ( f ) ; c a s e 2 : i f ( p = g . h , p . k e y S y s t e m A c c e s s ) { p . k e y S y s t e m A c c e s s = n e w j g ( p . k e y S y s t e m A c c e s s , n , r ) , g . u ( 3 ) ; b r e a k } i f ( ! e . k e y S y s t e m C o n f i g u r a t i o n ) { g . u ( 3 ) ; b r e a k } r e t u r n _ ( g , G x ( e ) , 5 ) ; c a s e 5 : p . k e y S y s t e m A c c e s s = g . h ; c a s e 3 : r e t u r n g . r e t u r n ( p ) } } ) } f u n c t i o n G x ( e ) { v a r t , n ; r e t u r n G ( f u n c t i o n ( r ) { i f ( r . g = = 1 ) { v a r i = e . k e y S y s t e m C o n f i g u r a t i o n , o = [ ] , a = [ ] ; r e t u r n i . a u d i o & & o . p u s h ( { r o b u s t n e s s : i . a u d i o . r o b u s t n e s s | | " " , c o n t e n t T y p e : e . a u d i o . c o n t e n t T y p e , e n c r y p t i o n S c h e m e : i . a u d i o . e n c r y p t
2025-04-24 17:06:14 -04:00
` ).map(z=>z.trim()),u=T.split( `
2025-04-26 19:21:13 -04:00
` ).map(z=>z.trim());if(l.length!==u.length){console.error("The number of KIDs and Keys must be the same.");return}const d=new eR.Player(O.current),v={drm:{clearKeys:{}}};l.forEach((z,I)=>{v.drm.clearKeys[z]=u[I]}),console.log("Configuring player with the following DRM config:",v),d.configure(v);const A=b;d.load(A).then(()=>{console.log("Shaka Player loaded successfully."),O.current.play()}).catch(z=>{console.error("Error loading the stream:",z)})}};return ae.jsxs("div",{className:"min-w-full w-full min-h-full h-full bg-zinc-900 shadow-lg shadow-black flex flex-row overflow-y-auto pt-5 pl-5 pr-5 items-center justify-around",children:[ae.jsx(Qf,{children:ae.jsx("title",{children:"Test Player"})}),ae.jsxs("div",{className:"min-8/10 w-8/10 min-h-8/10 h-8/10 flex flex-row overflow-y-auto items-center justify-around border shadow-lg shadow-red-700 rounded-2xl",children:[ae.jsx("div",{className:"w-7/10 h-7/10 border border-black rounded-2xl p-5 bg-[rgba(0,0,0,0.2)] shadow-lg shadow-black",children:ae.jsx("video",{ref:O,className:"w-full h-full",controls:!0})}),ae.jsx("div",{className:"w-2/10 h-7/10 flex flex-col border border-black rounded-2xl p-5 bg-[rgba(0,0,0,0.2)] shadow-lg shadow-black focus-within:w-3/10 transition-all duration-300 ease-in-out",children:ae.jsxs("form",{className:"h-full flex flex-col gap-2",children:[ae.jsx("input",{type:"text",placeholder:"MPD URL",id:"player_mpd",name:"player_mpd",value:b,onChange:l=>D(l.target.value),className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-red-700/50 transition-all duration-300 ease-in-out p-2"}),ae.jsx("textarea",{placeholder:"KIDs, separated by new lines",id:"player_kid",name:"player_kid",value:N,onChange:l=>x(l.target.value),className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded h-1/4 focus:h-1/3 overflow-y-auto focus:shadow-sm focus:shadow-red-700/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsx("textarea",{placeholder:"Keys, separated by new lines",id:"player_key",name:"player_key",value:T,onChange:l=>j(l.target.value),className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded h-1/4 focus:h-1/3 focus:shadow-sm focus:shadow-red-700/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsx("button",{type:"button",onClick:h,className:"mt-auto bg-white text-black rounded p-2 hover:bg-slate-200 transition-colors duration-300 ease-in-out w-full cursor-pointer active:transform active:scale-95 overflow-x-hidden overflow-y-hidden",children:"Submit"})]})})]})]})}function nR(){return ae.jsx(BO,{children:ae.jsxs("div",{className:"flex flex-row",children:[ae.jsx("div",{className:"w-1/8 h-dvh overflow-y-auto",children:ae.jsx(ZO,{})}),ae.jsx("div",{className:"w-7/8 h-dvh overflow-y-auto scroll-smooth",id:"main_content",children:ae.jsxs(yO,{children:[ae.jsx(wh,{path:"/",element:ae.jsx(X3,{})}),ae.jsx(wh,{path:"/api",element:ae.jsx( $ 3,{})}),ae.jsx(wh,{path:"/testplayer",element:ae.jsx(tR,{})}),ae.jsx(wh,{path:"/cache",element:ae.jsx(J3,{})})]})})]})})}function rR(){return ae.jsx(ae.Fragment,{children:ae.jsx(nR,{})})}ED.createRoot(document.getElementById("root")).render(ae.jsx(we.StrictMode,{children:ae.jsx(rR,{})}))});export default iR();